diff --git a/dist/bundle.js b/dist/bundle.js index 9fe72d926..efa4f9c9e 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1,10 +1,21 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/static/",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}var i=n(2),a=o(i),s=n(93),u=n(39),l=n(103),c=n(80),f=n(331),d=o(f),p=n(330),h=r(p),m=n(323),v=o(m),g=n(81),y=o(g),b=n(54),x=(o(b),n(159)),A=o(x),w=n(152),k=o(w),P=n(167),C=o(P),T=n(163),E=o(T),N=n(82),M=(o(N),n(169)),S=o(M),O=h.reducer(A["default"]),L=(0,v["default"])("atlas-store"),j=h.createMiddleware(L),R=(0,c.applyMiddleware)(j,d["default"])(c.createStore),D=R(O),I=h.createLoader(L);I(D),(0,s.render)(a["default"].createElement(u.Provider,{store:D},a["default"].createElement(l.Router,{history:y["default"]},a["default"].createElement(l.Route,{path:"/",component:k["default"]},a["default"].createElement(l.IndexRoute,{component:C["default"]}),a["default"].createElement(l.Route,{path:"/editor",component:E["default"]}),a["default"].createElement(l.Route,{path:"/auth/slack",component:S["default"]})))),document.getElementById("root"))},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=r},function(e,t,n){"use strict";e.exports=n(274)},function(e,t,n){"use strict";var r=n(15),o=r;e.exports=o},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o]}function i(){s={}}t.__esModule=!0,t["default"]=o,t._resetWarned=i;var a=n(14),s=(r(a),{})},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;tr;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===U?e.documentElement:e.firstChild:null}function i(e){var t=o(e);return t&&Y.getID(t)}function a(e){var t=s(e);if(t)if(F.hasOwnProperty(t)){var n=F[t];n!==e&&(f(n,t)?I(!1):void 0,F[t]=e)}else F[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(W)||""}function u(e,t){var n=s(e);n!==t&&delete F[n],e.setAttribute(W,t),F[t]=e}function l(e){return F.hasOwnProperty(e)&&f(F[e],e)||(F[e]=Y.findReactNodeByID(e)),F[e]}function c(e){var t=T.get(e)._rootNodeID;return P.isNullComponentID(t)?null:(F.hasOwnProperty(t)&&f(F[t],t)||(F[t]=Y.findReactNodeByID(t)),F[t])}function f(e,t){if(e){s(e)!==t?I(!1):void 0;var n=Y.findReactContainerForID(t);if(n&&R(n,e))return!0}return!1}function d(e){delete F[e]}function p(e){var t=F[e];return t&&f(t,e)?void(J=t):!1}function h(e){J=null,C.traverseAncestors(e,p);var t=J;return J=null,t}function m(e,t,n,r,o,i){w.useCreateElement&&(i=L({},i),n.nodeType===U?i[V]=n:i[V]=n.ownerDocument);var a=M.mountComponent(e,t,r,i);e._renderedComponent._topLevelWrapper=e,Y._mountImageIntoNode(a,n,o,r)}function v(e,t,n,r,o){var i=O.ReactReconcileTransaction.getPooled(r);i.perform(m,null,e,t,n,i,r,o),O.ReactReconcileTransaction.release(i)}function g(e,t){for(M.unmountComponent(e),t.nodeType===U&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function y(e){var t=i(e);return t?t!==C.getReactRootIDFromNodeID(t):!1}function b(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=C.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===Z[r])return e}}return null}var x=n(29),A=n(44),w=(n(17),n(117)),k=n(11),P=n(124),C=n(30),T=n(34),E=n(127),N=n(12),M=n(24),S=n(67),O=n(13),L=n(4),j=n(31),R=n(84),D=n(74),I=n(1),z=n(51),H=n(77),W=(n(79),n(3),x.ID_ATTRIBUTE_NAME),F={},q=1,U=9,X=11,V="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),B={},Z={},G=[],J=null,K=function(){};K.prototype.isReactComponent={},K.prototype.render=function(){return this.props};var Y={TopLevelWrapper:K,_instancesByReactRootID:B,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return Y.scrollMonitor(n,function(){S.enqueueElementInternal(e,t),r&&S.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){!t||t.nodeType!==q&&t.nodeType!==U&&t.nodeType!==X?I(!1):void 0,A.ensureScrollValueMonitoring();var n=Y.registerContainer(t);return B[n]=e,n},_renderNewRootComponent:function(e,t,n,r){var o=D(e,null),i=Y._registerComponent(o,t);return O.batchedUpdates(v,o,i,t,n,r),o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?I(!1):void 0,Y._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){k.isValidElement(t)?void 0:I(!1);var a=new k(K,null,null,null,null,null,t),u=B[i(n)];if(u){var l=u._currentElement,c=l.props;if(H(c,t)){var f=u._renderedComponent.getPublicInstance(),d=r&&function(){r.call(f)};return Y._updateRootComponent(u,a,n,d),f}Y.unmountComponentAtNode(n)}var p=o(n),h=p&&!!s(p),m=y(n),v=h&&!u&&!m,g=Y._renderNewRootComponent(a,n,v,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):j)._renderedComponent.getPublicInstance();return r&&r.call(g),g},render:function(e,t,n){return Y._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=i(e);return t&&(t=C.getReactRootIDFromNodeID(t)),t||(t=C.createReactRootID()),Z[t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==q&&e.nodeType!==U&&e.nodeType!==X?I(!1):void 0;var t=i(e),n=B[t];if(!n){var r=(y(e),s(e));r&&r===C.getReactRootIDFromNodeID(r);return!1}return O.batchedUpdates(g,n,e),delete B[t],delete Z[t],!0},findReactContainerForID:function(e){var t=C.getReactRootIDFromNodeID(e),n=Z[t];return n},findReactNodeByID:function(e){var t=Y.findReactContainerForID(e);return Y.findComponentRoot(t,e)},getFirstReactDOM:function(e){return b(e)},findComponentRoot:function(e,t){var n=G,r=0,o=h(t)||e;for(n[0]=o.firstChild,n.length=1;r=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=y++;n=g||(g=s(t)),r=c.bind(null,n,i,!1),o=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,y=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a1){for(var p=Array(d),h=0;d>h;h++)p[h]=arguments[h+2];i.children=p}if(e&&e.defaultProps){var m=e.defaultProps;for(o in m)"undefined"==typeof i[o]&&(i[o]=m[o])}return s(e,u,l,c,f,r.current,i)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){var n=s(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},s.cloneAndReplaceProps=function(e,t){var n=s(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},s.cloneElement=function(e,t,n){var i,u=o({},e.props),l=e.key,c=e.ref,f=e._self,d=e._source,p=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,p=r.current),void 0!==t.key&&(l=""+t.key);for(i in t)t.hasOwnProperty(i)&&!a.hasOwnProperty(i)&&(u[i]=t[i])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var m=Array(h),v=0;h>v;v++)m[v]=arguments[v+2];u.children=m}return s(e.type,l,c,f,d,p,u)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},e.exports=s},function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o},function(e,t,n){"use strict";function r(){T.ReactReconcileTransaction&&x?void 0:v(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled(!1)}function i(e,t,n,o,i,a){r(),x.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==g.length?v(!1):void 0,g.sort(a);for(var n=0;t>n;n++){var r=g[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,p.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var i=0;ixi&&setTimeout(function(){u.display.input.reset(!0)},20),Ut(this),Yo(),xt(this),this.curOp.forceUpdate=!0,Yr(this,o),r.autofocus&&!Mi||u.hasFocus()?setTimeout(Wo(gn,this),20):yn(this);for(var c in ta)ta.hasOwnProperty(c)&&ta[c](this,r[c],na);w(this),r.finishInit&&r.finishInit(this);for(var f=0;fxi&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),Ai||vi&&Mi||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,n.init(r)}function n(t){t.doc.mode=e.getMode(t.options,t.doc.modeOption),r(t)}function r(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,We(e,100),e.state.modeGen++,e.curOp&&Dt(e)}function o(e){e.options.lineWrapping?(_a(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Qa(e.display.wrapper,"CodeMirror-wrap"),d(e)),a(e),Dt(e),st(e),setTimeout(function(){y(e)},100)}function i(e){var t=yt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/bt(e.display)-3);return function(o){if(wr(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;at.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function p(e){var t=Ro(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function h(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ve(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+Ze(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function m(e,t,n){this.cm=n;var r=this.vert=Xo("div",[Xo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Xo("div",[Xo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Sa(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Sa(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,bi&&8>xi&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function v(){}function g(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Qa(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new e.scrollbarModel[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),Sa(e,"mousedown",function(){t.state.focused&&setTimeout(function(){t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?on(t,e):rn(t,e)},t),t.display.scrollbars.addClass&&_a(t.display.wrapper,t.display.scrollbars.addClass)}function y(e,t){t||(t=h(e));var n=e.display.barWidth,r=e.display.barHeight;b(e,t);for(var o=0;4>o&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&O(e),b(e,h(e)),n=e.display.barWidth,r=e.display.barHeight}function b(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 x(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Xe(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=no(t,r),a=no(t,o);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;i>s?(i=s,a=no(t,ro(Qr(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(i=no(t,ro(Qr(t,u))-e.wrapper.clientHeight),a=u)}return{from:i,to:Math.max(a,i+1)}}function A(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=P(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==qt(e))return!1;w(e)&&(zt(e),t.dims=j(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),zi&&(i=xr(e.doc,i),a=Ar(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ft(e,i,a),n.viewOffset=ro(Qr(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=qt(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Zo();return u>4&&(n.lineDiv.style.display="none"),R(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,l&&Zo()!=l&&l.offsetHeight&&l.focus(),Vo(n.cursorDiv),Vo(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,We(e,400)),n.updateLineNumbers=null,!0}function N(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ge(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ve(e.display)-Je(e),n.top)}),t.visible=x(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&E(e,t);r=!1){O(e);var o=h(e);Re(e),y(e,o),S(e,o)}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 M(e,t){var n=new C(e,t);if(E(e,n)){O(e),N(e,n);var r=h(e);Re(e),y(e,r),S(e,r),n.finish()}}function S(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+Ze(e)+"px"}function O(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;rxi){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var u=i.line.height-o;if(2>o&&(o=yt(t)),(u>.001||-.001>u)&&(eo(i.line,o),L(i.line),i.rest))for(var l=0;l=t&&f.lineNumber;f.changes&&(Ro(f.changes,"gutter")>-1&&(d=!1),D(e,f,l,n)),d&&(Vo(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(k(e.options,l)))),s=f.node.nextSibling}else{var p=X(e,f,l,n);a.insertBefore(p,s)}l+=f.size}for(;s;)s=r(s)}function D(e,t,n,r){for(var o=0;oxi&&(e.node.style.zIndex=2)),e.node}function z(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=I(e);e.background=n.insertBefore(Xo("div",null,t),n.firstChild)}}function H(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Hr(e,t)}function W(e,t){var n=t.text.className,r=H(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,F(t)):n&&(t.text.className=n)}function F(e){z(e),e.line.wrapClass?I(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function q(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground), -t.gutterBackground=null),t.line.gutterClass){var o=I(t);t.gutterBackground=Xo("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),o.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=I(t),a=t.gutter=Xo("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),o.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(Xo("div",k(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s1)if(Fi&&Fi.join("\n")==t){if(r.ranges.length%Fi.length==0){u=[];for(var l=0;l=0;l--){var c=r.ranges[l],f=c.from(),d=c.to();c.empty()&&(n&&n>0?f=Hi(f.line,f.ch-n):e.state.overwrite&&!a&&(d=Hi(d.line,Math.min(Qr(i,d.line).text.length,d.ch+jo(s).length))));var p=e.curOp.updateInput,h={from:f,to:d,text:u?u[l%u.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};Tn(e.doc,h),Co(e,"inputRead",e,h)}t&&!a&&$(e,t),Hn(e),e.curOp.updateInput=p,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function _(e,t){var n=e.clipboardData&&e.clipboardData.getData("text/plain");return n?(e.preventDefault(),t.isReadOnly()||t.options.disableInput||Mt(t,function(){Q(t,n,0,null,"paste")}),!0):void 0}function $(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=Fn(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Qr(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Fn(e,o.head.line,"smart"));a&&Co(e,"electricInput",e,o.head.line)}}}function ee(e){for(var t=[],n=[],r=0;ro?l.map:c[o],a=0;ao?e.line:e.rest[o]),f=i[a]+r;return(0>r||s!=t)&&(f=i[a+(r?1:0)]),Hi(u,f)}}}var o=e.text.firstChild,i=!1;if(!t||!Ja(o,t))return ae(Hi(to(e.line),0),!0);if(t==o&&(i=!0,t=o.childNodes[n],n=0,!t)){var a=e.rest?jo(e.rest):e.line;return ae(Hi(to(a),a.text.length),i)}var s=3==t.nodeType?t:null,u=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));u.parentNode!=o;)u=u.parentNode;var l=e.measure,c=l.maps,f=r(s,u,n);if(f)return ae(f,i);for(var d=u.nextSibling,p=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(f=r(d,d.firstChild,0))return ae(Hi(f.line,f.ch-p),i);p+=d.textContent.length}for(var h=u.previousSibling,p=n;h;h=h.previousSibling){if(f=r(h,h.firstChild,-1))return ae(Hi(f.line,f.ch+p),i);p+=d.textContent.length}}function le(e,t,n,r,o){function i(e){return function(t){return t.id==e}}function a(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return""==n&&(n=t.textContent.replace(/\u200b/g,"")),void(s+=n);var c,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(Hi(r,0),Hi(o+1,0),i(+f));return void(d.length&&(c=d[0].find())&&(s+=_r(e.doc,c.from,c.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;for(var p=0;p=0){var a=K(i.from(),o.from()),s=J(i.to(),o.to()),u=i.empty()?o.from()==o.head:i.from()==i.head;t>=r&&--t,e.splice(--r,2,new fe(u?s:a,u?a:s))}}return new ce(e,t)}function pe(e,t){return new ce([new fe(e,t||e)],0)}function he(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.linen?Hi(n,Qr(e,n).text.length):ve(t,Qr(e,t.line).text.length)}function ve(e,t){var n=e.ch;return null==n||n>t?Hi(e.line,t):0>n?Hi(e.line,0):e}function ge(e,t){return t>=e.first&&t=t.ch:s.to>t.ch))){if(o&&(ja(u,"beforeCursorEnter"),u.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l,c=u.find(0>r?1:-1);if((0>r?u.inclusiveRight:u.inclusiveLeft)&&(c=je(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(l=Wi(c,n))&&(0>r?0>l:l>0))return Oe(e,c,t,r,o)}var f=u.find(0>r?-1:1);return(0>r?u.inclusiveLeft:u.inclusiveRight)&&(f=je(e,f,r,f.line==t.line?i:null)),f?Oe(e,f,t,r,o):null}}return t}function Le(e,t,n,r,o){var i=r||1,a=Oe(e,t,n,i,o)||!o&&Oe(e,t,n,i,!0)||Oe(e,t,n,-i,o)||!o&&Oe(e,t,n,-i,!0);return a?a:(e.cantEdit=!0,Hi(e.first,0))}function je(e,t,n,r){return 0>n&&0==t.ch?t.line>e.first?me(e,Hi(t.line-1)):null:n>0&&t.ch==(r||Qr(e,t.line)).text.length?t.line=e.display.viewTo||s.to().linet&&(t=0),t=Math.round(t),r=Math.round(r),s.appendChild(Xo("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?c-e:n)+"px; height: "+(r-t)+"px"))}function o(t,n,o){function i(n,r){return dt(e,Hi(t,n),"div",f,r)}var s,u,f=Qr(a,t),d=f.text.length;return ti(oo(f),n||0,null==o?d:o,function(e,t,a){var f,p,h,m=i(e,"left");if(e==t)f=m,p=h=m.left;else{if(f=i(t-1,"right"),"rtl"==a){var v=m;m=f,f=v}p=m.left,h=f.right}null==n&&0==e&&(p=l),f.top-m.top>3&&(r(p,m.top,null,m.bottom),p=l,m.bottomu.bottom||f.bottom==u.bottom&&f.right>u.right)&&(u=f),l+1>p&&(p=l),r(p,f.top,h-p,f.bottom)}),{start:s,end:u}}var i=e.display,a=e.doc,s=document.createDocumentFragment(),u=Be(e.display),l=u.left,c=Math.max(i.sizerWidth,Ge(e)-i.sizer.offsetLeft)-u.right,f=t.from(),d=t.to();if(f.line==d.line)o(f.line,f.ch,d.ch);else{var p=Qr(a,f.line),h=Qr(a,d.line),m=yr(p)==yr(h),v=o(f.line,f.ch,m?p.text.length+1:null).end,g=o(d.line,m?0:null,d.ch).start;m&&(v.top0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function We(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ua(t.mode,Ue(e,t.frontier)),o=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(t.frontier>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength,u=Rr(e,i,s?ua(t.mode,r):r,!0);i.styles=u.styles;var l=i.styleClasses,c=u.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!f&&dn?(We(e,e.options.workDelay),!0):void 0}),o.length&&Mt(e,function(){for(var t=0;ta;--s){if(s<=i.first)return i.first;var u=Qr(i,s-1);if(u.stateAfter&&(!n||s<=i.frontier))return s;var l=Fa(u.text,null,e.options.tabSize);(null==o||r>l)&&(o=s-1,r=l)}return o}function Ue(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return!0;var i=qe(e,t,n),a=i>r.first&&Qr(r,i-1).stateAfter;return a=a?ua(r.mode,a):la(r.mode),r.iter(i,t,function(n){Ir(e,n.text,a);var s=i==t-1||i%5==0||i>=o.viewFrom&&i2&&i.push((u.bottom+l.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Ye(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Qe(e,t){t=yr(t);var n=to(t),r=e.display.externalMeasured=new jt(e.doc,t,n);r.lineN=n;var o=r.built=Hr(e,r);return r.text=o.pre,Bo(e.display.lineMeasure,o.pre),r}function _e(e,t,n,r){return tt(e,et(e,t),n,r)}function $e(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt?(o=0,i=1,a="left"):l>t?(o=t-u,i=o+1):(s==e.length-3||t==l&&e[s+3]>t)&&(i=l-u,o=i-1,t>=l&&(a="right")),null!=o){if(r=e[s+2],u==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[(s-=3)+2],a="left";if("right"==n&&o==l-u)for(;sc;c++){for(;s&&Uo(t.line.text.charAt(i.coverStart+s));)--s;for(;i.coverStart+uxi&&0==s&&u==i.coverEnd-i.coverStart)o=a.parentNode.getBoundingClientRect();else if(bi&&e.options.lineWrapping){var f=Va(a,s,u).getClientRects();o=f.length?f["right"==r?f.length-1:0]:Vi}else o=Va(a,s,u).getBoundingClientRect()||Vi;if(o.left||o.right||0==s)break;u=s,s-=1,l="right"}bi&&11>xi&&(o=ot(e.display.measure,o))}else{s>0&&(l=r="right");var f;o=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(bi&&9>xi&&!s&&(!o||!o.left&&!o.right)){var d=a.parentNode.getClientRects()[0];o=d?{left:d.left,right:d.left+bt(e.display),top:d.top,bottom:d.bottom}:Vi}for(var p=o.top-t.rect.top,h=o.bottom-t.rect.top,m=(p+h)/2,v=t.view.measure.heights,c=0;cn.from?a(e-1):a(e,r)}r=r||Qr(e.doc,t.line),o||(o=et(e,r));var u=oo(r),l=t.ch;if(!u)return a(l);var c=ci(u,l),f=s(l,c);return null!=as&&(f.other=s(l,as)),f}function ht(e,t){var n=0,t=me(e.doc,t);e.options.lineWrapping||(n=bt(e.display)*t.ch);var r=Qr(e.doc,t.line),o=ro(r)+Xe(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function mt(e,t,n,r){var o=Hi(e,t);return o.xRel=r,n&&(o.outside=!0),o}function vt(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,0>n)return mt(r.first,0,!0,-1);var o=no(r,n),i=r.first+r.size-1;if(o>i)return mt(r.first+r.size-1,Qr(r,i).text.length,!0,1);0>t&&(t=0);for(var a=Qr(r,o);;){var s=gt(e,a,o,t,n),u=vr(a),l=u&&u.find(0,!0);if(!u||!(s.ch>l.from.ch||s.ch==l.from.ch&&s.xRel>0))return s;o=to(a=l.to.line)}}function gt(e,t,n,r,o){function i(r){var o=pt(e,Hi(n,r),"line",t,l);return s=!0,a>o.bottom?o.left-u:av)return mt(n,p,g,1);for(;;){if(c?p==d||p==di(t,d,1):1>=p-d){for(var y=h>r||v-r>=r-h?d:p,b=r-(y==d?h:v);Uo(t.text.charAt(y));)++y;var x=mt(n,y,y==d?m:g,-1>b?-1:b>1?1:0);return x}var A=Math.ceil(f/2),w=d+A;if(c){w=d;for(var k=0;A>k;++k)w=di(t,w,1)}var P=i(w);P>r?(p=w,v=P,(g=s)&&(v+=1e3),f=A):(d=w,h=P,m=s,f-=A)}}function yt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==qi){qi=Xo("pre");for(var t=0;49>t;++t)qi.appendChild(document.createTextNode("x")),qi.appendChild(Xo("br"));qi.appendChild(document.createTextNode("x"))}Bo(e.measure,qi);var n=qi.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Vo(e.measure),n||1}function bt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Xo("span","xxxxxxxxxx"),n=Xo("pre",[t]);Bo(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function xt(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:++Zi},Bi?Bi.ops.push(e.curOp):e.curOp.ownsGroup=Bi={ops:[e.curOp],delayedCallbacks:[]}}function At(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new C(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ct(e){e.updatedDisplay=e.mustUpdate&&E(e.cm,e.update)}function Tt(e){var t=e.cm,n=t.display;e.updatedDisplay&&O(t),e.barMeasure=h(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=_e(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+Ze(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ge(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Et(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLefti;i=r){var a=new jt(e.doc,Qr(e.doc,i),i);r=i+a.size,o.push(a)}return o}function Dt(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&nt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)zi&&xr(e.doc,t)o.viewFrom?zt(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)zt(e);else if(t<=o.viewFrom){var i=Wt(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):zt(e)}else if(n>=o.viewTo){var i=Wt(e,t,t,-1);i?(o.view=o.view.slice(0,i.index),o.viewTo=i.lineN):zt(e)}else{var a=Wt(e,t,t,-1),s=Wt(e,n,n+r,1);a&&s?(o.view=o.view.slice(0,a.index).concat(Rt(e,a.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):zt(e)}var u=o.externalMeasured;u&&(n=o.lineN&&t=r.viewTo)){var i=r.view[Ht(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==Ro(a,n)&&a.push(n)}}}function zt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ht(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,0>t)return null;for(var n=e.display.view,r=0;rt)return r}function Wt(e,t,n,r){var o,i=Ht(e,t),a=e.display.view;if(!zi||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=0,u=e.display.viewFrom;i>s;s++)u+=a[s].size;if(u!=t){if(r>0){if(i==a.length-1)return null;o=u+a[i].size-t,i++}else o=u-t;t+=o,n+=o}for(;xr(e.doc,n)!=n;){if(i==(0>r?0:a.length-1))return null;n+=r*a[i-(0>r?1:0)].size,i+=r}return{index:i,lineN:n}}function Ft(e,t,n){var r=e.display,o=r.view;0==o.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Rt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Rt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ht(e,n)))),r.viewTo=n}function qt(e){for(var t=e.display.view,n=0,r=0;r400}var o=e.display;Sa(o.scroller,"mousedown",St(e,Gt)),bi&&11>xi?Sa(o.scroller,"dblclick",St(e,function(t){if(!Eo(e,t)){var n=Zt(e,t);if(n&&!_t(e,t)&&!Bt(e.display,t)){Ea(t);var r=e.findWordAt(n);xe(e.doc,r.anchor,r.head)}}})):Sa(o.scroller,"dblclick",function(t){Eo(e,t)||Ea(t)}),Di||Sa(o.scroller,"contextmenu",function(t){bn(e,t)});var i,a={end:0};Sa(o.scroller,"touchstart",function(t){if(!Eo(e,t)&&!n(t)){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)}}),Sa(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Sa(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Bt(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 fe(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new fe(Hi(s.line,0),me(e.doc,Hi(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ea(n)}t()}),Sa(o.scroller,"touchcancel",t),Sa(o.scroller,"scroll",function(){o.scroller.clientHeight&&(rn(e,o.scroller.scrollTop),on(e,o.scroller.scrollLeft,!0),ja(e,"scroll",e))}),Sa(o.scroller,"mousewheel",function(t){an(e,t)}),Sa(o.scroller,"DOMMouseScroll",function(t){an(e,t)}),Sa(o.wrapper,"scroll",function(){o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){Eo(e,t)||Ma(t)},over:function(t){Eo(e,t)||(tn(e,t),Ma(t))},start:function(t){en(e,t)},drop:St(e,$t),leave:function(t){Eo(e,t)||nn(e)}};var s=o.input.getField();Sa(s,"keyup",function(t){hn.call(e,t)}),Sa(s,"keydown",St(e,dn)),Sa(s,"keypress",St(e,mn)),Sa(s,"focus",Wo(gn,e)),Sa(s,"blur",Wo(yn,e))}function Xt(t,n,r){var o=r&&r!=e.Init;if(!n!=!o){var i=t.display.dragFunctions,a=n?Sa:La;a(t.display.scroller,"dragstart",i.start),a(t.display.scroller,"dragenter",i.enter),a(t.display.scroller,"dragover",i.over),a(t.display.scroller,"dragleave",i.leave),a(t.display.scroller,"drop",i.drop)}}function Vt(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Bt(e,t){for(var n=wo(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Zt(e,t,n,r){var o=e.display; -if(!n&&"true"==wo(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var u,l=vt(e,i,a);if(r&&1==l.xRel&&(u=Qr(e.doc,l.line).text).length==l.ch){var c=Fa(u,u.length,e.options.tabSize)-u.length;l=Hi(l.line,Math.max(0,Math.round((i-Be(e.display).left)/bt(e.display))-c))}return l}function Gt(e){var t=this,n=t.display;if(!(Eo(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.shift=e.shiftKey,Bt(n,e))return void(Ai||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!_t(t,e)){var r=Zt(t,e);switch(window.focus(),ko(e)){case 1:t.state.selectingText?t.state.selectingText(e):r?Jt(t,e,r):wo(e)==n.scroller&&Ea(e);break;case 2:Ai&&(t.state.lastMiddleDown=+new Date),r&&xe(t.doc,r),setTimeout(function(){n.input.focus()},20),Ea(e);break;case 3:Di?bn(t,e):vn(t)}}}}function Jt(e,t,n){bi?setTimeout(Wo(Y,e),0):e.curOp.focus=Zo();var r,o=+new Date;Xi&&Xi.time>o-400&&0==Wi(Xi.pos,n)?r="triple":Ui&&Ui.time>o-400&&0==Wi(Ui.pos,n)?(r="double",Xi={time:o,pos:n}):(r="single",Ui={time:o,pos:n});var i,a=e.doc.sel,s=Si?t.metaKey:t.ctrlKey;e.options.dragDrop&&es&&!e.isReadOnly()&&"single"==r&&(i=a.contains(n))>-1&&(Wi((i=a.ranges[i]).from(),n)<0||n.xRel>0)&&(Wi(i.to(),n)>0||n.xRel<0)?Kt(e,t,n,s):Yt(e,t,n,r,s)}function Kt(e,t,n,r){var o=e.display,i=+new Date,a=St(e,function(s){Ai&&(o.scroller.draggable=!1),e.state.draggingText=!1,La(document,"mouseup",a),La(o.scroller,"drop",a),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(Ea(s),!r&&+new Date-200=h;h++){var g=Qr(l,h).text,y=qa(g,u,i);u==p?o.push(new fe(Hi(h,y),Hi(h,y))):g.length>y&&o.push(new fe(Hi(h,y),Hi(h,qa(g,p,i))))}o.length||o.push(new fe(n,n)),Te(l,de(d.ranges.slice(0,f).concat(o),f),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b=c,x=b.anchor,A=t;if("single"!=r){if("double"==r)var w=e.findWordAt(t);else var w=new fe(Hi(t.line,0),me(l,Hi(t.line+1,0)));Wi(w.anchor,x)>0?(A=w.head,x=K(b.from(),w.anchor)):(A=w.anchor,x=J(b.to(),w.head))}var o=d.ranges.slice(0);o[f]=new fe(me(l,x),A),Te(l,de(o,f),Ha)}}function a(t){var n=++y,o=Zt(e,t,!0,"rect"==r);if(o)if(0!=Wi(o,v)){e.curOp.focus=Zo(),i(o);var s=x(u,l);(o.line>=s.to||o.lineg.bottom?20:0;c&&setTimeout(St(e,function(){y==n&&(u.scroller.scrollTop+=c,a(t))}),50)}}function s(t){e.state.selectingText=!1,y=1/0,Ea(t),u.input.focus(),La(document,"mousemove",b),La(document,"mouseup",A),l.history.lastSelOrigin=null}var u=e.display,l=e.doc;Ea(t);var c,f,d=l.sel,p=d.ranges;if(o&&!t.shiftKey?(f=l.sel.contains(n),c=f>-1?p[f]:new fe(n,n)):(c=l.sel.primary(),f=l.sel.primIndex),Oi?t.shiftKey&&t.metaKey:t.altKey)r="rect",o||(c=new fe(n,n)),n=Zt(e,t,!0,!0),f=-1;else if("double"==r){var h=e.findWordAt(n);c=e.display.shift||l.extend?be(l,c,h.anchor,h.head):h}else if("triple"==r){var m=new fe(Hi(n.line,0),me(l,Hi(n.line+1,0)));c=e.display.shift||l.extend?be(l,c,m.anchor,m.head):m}else c=be(l,c,n);o?-1==f?(f=p.length,Te(l,de(p.concat([c]),f),{scroll:!1,origin:"*mouse"})):p.length>1&&p[f].empty()&&"single"==r&&!t.shiftKey?(Te(l,de(p.slice(0,f).concat(p.slice(f+1)),0),{scroll:!1,origin:"*mouse"}),d=l.sel):we(l,f,c,Ha):(f=0,Te(l,new ce([c],0),Ha),d=l.sel);var v=n,g=u.wrapper.getBoundingClientRect(),y=0,b=St(e,function(e){ko(e)?a(e):s(e)}),A=St(e,s);e.state.selectingText=A,Sa(document,"mousemove",b),Sa(document,"mouseup",A)}function Qt(e,t,n,r){try{var o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ea(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!Mo(e,n))return Ao(t);i-=s.top-a.viewOffset;for(var u=0;u=o){var c=no(e.doc,i),f=e.options.gutters[u];return ja(e,n,e,c,f,t),Ao(t)}}}function _t(e,t){return Qt(e,t,"gutterClick",!0)}function $t(e){var t=this;if(nn(t),!Eo(t,e)&&!Bt(t.display,e)){Ea(e),bi&&(Gi=+new Date);var n=Zt(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),a=0,s=function(e,r){if(!t.options.allowDropFileTypes||-1!=Ro(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=St(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),i[r]=e,++a==o){n=me(t.doc,n);var u={from:n,to:n,text:t.doc.splitLines(i.join(t.doc.lineSeparator())),origin:"paste"};Tn(t.doc,u),Ce(t.doc,pe(n,$i(u)))}}),s.readAsText(e)}},u=0;o>u;++u)s(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var i=e.dataTransfer.getData("Text");if(i){if(t.state.draggingText&&!(Si?e.altKey:e.ctrlKey))var l=t.listSelections();if(Ee(t.doc,pe(n,n)),l)for(var u=0;ua.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||o&&u){if(o&&Si&&Ai)e:for(var l=t.target,c=i.view;l!=a;l=l.parentNode)for(var f=0;fd?p=Math.max(0,p+d-50):h=Math.min(e.doc.height,h+d+50),M(e,{top:p,bottom:h})}20>Ji&&(null==i.wheelStartX?(i.wheelStartX=a.scrollLeft,i.wheelStartY=a.scrollTop,i.wheelDX=r,i.wheelDY=o,setTimeout(function(){if(null!=i.wheelStartX){var e=a.scrollLeft-i.wheelStartX,t=a.scrollTop-i.wheelStartY,n=t&&i.wheelDY&&t/i.wheelDY||e&&i.wheelDX&&e/i.wheelDX;i.wheelStartX=i.wheelStartY=null,n&&(Ki=(Ki*Ji+n)/(Ji+1),++Ji)}},200)):(i.wheelDX+=r,i.wheelDY+=o))}}function sn(e,t,n){if("string"==typeof t&&(t=ca[t],!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)!=Ia}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function un(e,t,n){for(var r=0;rxi&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=cn(t,e);Pi&&(_i=r?n:null,!r&&88==n&&!rs&&(Si?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||pn(t)}}function pn(e){function t(e){18!=e.keyCode&&e.altKey||(Qa(n,"CodeMirror-crosshair"),La(document,"keyup",t),La(document,"mouseover",t))}var n=e.display.lineDiv;_a(n,"CodeMirror-crosshair"),Sa(document,"keyup",t),Sa(document,"mouseover",t)}function hn(e){16==e.keyCode&&(this.doc.sel.shift=!1),Eo(this,e)}function mn(e){var t=this;if(!(Bt(t.display,e)||Eo(t,e)||e.ctrlKey&&!e.altKey||Si&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(Pi&&n==_i)return _i=null,void Ea(e);if(!Pi||e.which&&!(e.which<10)||!cn(t,e)){var o=String.fromCharCode(null==r?n:r);fn(t,e,o)||t.display.input.onKeyPress(e)}}}function vn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,yn(e))},100)}function gn(e){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ja(e,"focus",e),e.state.focused=!0,_a(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),Ai&&setTimeout(function(){e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),He(e))}function yn(e){e.state.delayingBlurEvent||(e.state.focused&&(ja(e,"blur",e),e.state.focused=!1,Qa(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function bn(e,t){Bt(e.display,t)||xn(e,t)||Eo(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function xn(e,t){return Mo(e,"gutterContextMenu")?Qt(e,t,"gutterContextMenu",!1):!1}function An(e,t){if(Wi(e,t.from)<0)return e;if(Wi(e,t.to)<=0)return $i(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+=$i(t).ch-t.to.ch),Hi(n,r)}function wn(e,t){for(var n=[],r=0;r=0;--o)En(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text});else En(e,t)}}function En(e,t){if(1!=t.text.length||""!=t.text[0]||0!=Wi(t.from,t.to)){var n=wn(e,t);lo(e,t,n,e.cm?e.cm.curOp.id:NaN),Sn(e,t,n,ir(e,t));var r=[];Kr(e,function(e,n){n||-1!=Ro(r,e.history)||(xo(e.history,t),r.push(e.history)),Sn(e,t,null,ir(e,t))})}}function Nn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits){for(var r,o=e.history,i=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--u){var f=r.changes[u];if(f.origin=t,c&&!Cn(e,f,!1))return void(a.length=0);l.push(ao(e,f));var d=u?wn(e,f):jo(a);Sn(e,f,d,sr(e,f)),!u&&e.cm&&e.cm.scrollIntoView({from:f.from,to:$i(f)});var p=[];Kr(e,function(e,t){t||-1!=Ro(p,e.history)||(xo(e.history,f),p.push(e.history)),Sn(e,f,null,sr(e,f))})}}}}function Mn(e,t){if(0!=t&&(e.first+=t,e.sel=new ce(Do(e.sel.ranges,function(e){return new fe(Hi(e.anchor.line+t,e.anchor.ch),Hi(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Dt(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:Hi(i,Qr(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_r(e,t.from,t.to),n||(n=wn(e,t)),e.cm?On(e.cm,t,r):Zr(e,t,r),Ee(e,n,za)}}function On(e,t,n){var r=e.doc,o=e.display,a=t.from,s=t.to,u=!1,l=a.line;e.options.lineWrapping||(l=to(yr(Qr(r,a.line))),r.iter(l,s.line+1,function(e){return e==o.maxLine?(u=!0,!0):void 0})),r.sel.contains(t.from,t.to)>-1&&No(e),Zr(r,t,n,i(e)),e.options.lineWrapping||(r.iter(l,a.line+t.text.length,function(e){var t=f(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,u=!1)}),u&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,a.line),We(e,400);var c=t.text.length-(s.line-a.line)-1;t.full?Dt(e):a.line!=s.line||1!=t.text.length||Br(e.doc,t)?Dt(e,a.line,s.line+1,c):It(e,a.line,"text");var d=Mo(e,"changes"),p=Mo(e,"change");if(p||d){var h={from:a,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&Co(e,"change",e,h),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Ln(e,t,n,r,o){if(r||(r=n),Wi(r,n)<0){var i=r;r=n,n=i}"string"==typeof t&&(t=e.splitLines(t)),Tn(e,{from:n,to:r,text:t,origin:o})}function jn(e,t){if(!Eo(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Ei){var i=Xo("div","​",null,"position: absolute; top: "+(t.top-n.viewOffset-Xe(e.display))+"px; height: "+(t.bottom-t.top+Ze(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function Rn(e,t,n,r){null==r&&(r=0);for(var o=0;5>o;o++){var i=!1,a=pt(e,t),s=n&&n!=t?pt(e,n):a,u=In(e,Math.min(a.left,s.left),Math.min(a.top,s.top)-r,Math.max(a.left,s.left),Math.max(a.bottom,s.bottom)+r),l=e.doc.scrollTop,c=e.doc.scrollLeft;if(null!=u.scrollTop&&(rn(e,u.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(i=!0)),null!=u.scrollLeft&&(on(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(i=!0)),!i)break}return a}function Dn(e,t,n,r,o){var i=In(e,t,n,r,o);null!=i.scrollTop&&rn(e,i.scrollTop),null!=i.scrollLeft&&on(e,i.scrollLeft)}function In(e,t,n,r,o){var i=e.display,a=yt(e.display);0>n&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:i.scroller.scrollTop,u=Je(e),l={};o-n>u&&(o=n+u);var c=e.doc.height+Ve(i),f=a>n,d=o>c-a;if(s>n)l.scrollTop=f?0:n;else if(o>s+u){var p=Math.min(n,(d?c:o)-u);p!=s&&(l.scrollTop=p)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:i.scroller.scrollLeft,m=Ge(e)-(e.options.fixedGutter?i.gutters.offsetWidth:0),v=r-t>m;return v&&(r=t+m),10>t?l.scrollLeft=0:h>t?l.scrollLeft=Math.max(0,t-(v?0:10)):r>m+h-3&&(l.scrollLeft=r+(v?0:10)-m),l}function zn(e,t,n){null==t&&null==n||Wn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Hn(e){Wn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?Hi(t.line,t.ch-1):t,r=Hi(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function Wn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=ht(e,t.from),r=ht(e,t.to),o=In(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(o.scrollLeft,o.scrollTop)}}function Fn(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=Ue(e,t):n="prev");var a=e.options.tabSize,s=Qr(i,t),u=Fa(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(l=i.mode.indent(o,s.text.slice(c.length),s.text),l==Ia||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?Fa(Qr(i,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(l/a);p;--p)d+=a,f+=" ";if(l>d&&(f+=Lo(l-d)),f!=c)return Ln(i,f,Hi(t,0),Hi(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p=0;t--)Ln(e.doc,"",r[t].from,r[t].to,"+delete");Hn(e)})}function Xn(e,t,n,r,o){function i(){var t=s+n;return t=e.first+e.size?!1:(s=t,c=Qr(e,t))}function a(e){var t=(o?di:pi)(c,u,n,!0);if(null==t){if(e||!i())return!1;u=o?(0>n?ii:oi)(c):0>n?c.text.length:0}else u=t;return!0}var s=t.line,u=t.ch,l=n,c=Qr(e,s);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(0>n)||a(!h);h=!1){var m=c.text.charAt(u)||"\n",v=Fo(m,p)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||v||(v="s"),f&&f!=v){0>n&&(n=1,a());break}if(v&&(f=v),n>0&&!a(!h))break}var g=Le(e,Hi(s,u),t,l,!0);return Wi(t,g)||(g.hitSide=!0),g}function Vn(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);o=t.top+n*(s-(0>n?1.5:.5)*yt(e.display))}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;;){var u=vt(e,a,o);if(!u.outside)break;if(0>n?0>=o:o>=i.height){u.hitSide=!0;break}o+=5*n}return u}function Bn(t,n,r,o){e.defaults[t]=n,r&&(ta[t]=o?function(e,t,n){n!=na&&r(e,t,n)}:r)}function Zn(e){for(var t,n,r,o,i=e.split(/-(?!$)/),e=i[i.length-1],a=0;a0||0==a&&i.clearWhenEmpty!==!1)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=Xo("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(gr(e,t.line,t,n,i)||t.line!=n.line&&gr(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");zi=!0}i.addToHistory&&lo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,l=e.cm;if(e.iter(u,n.line+1,function(e){l&&i.collapsed&&!l.options.lineWrapping&&yr(e)==l.display.maxLine&&(s=!0),i.collapsed&&u!=t.line&&eo(e,0),nr(e,new $n(i,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),i.collapsed&&e.iter(t.line,n.line+1,function(t){wr(e,t)&&eo(t,0)}),i.clearOnEnter&&Sa(i,"beforeCursorEnter",function(){i.clear()}),i.readOnly&&(Ii=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++va,i.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),i.collapsed)Dt(l,t.line,n.line+1);else if(i.className||i.title||i.startStyle||i.endStyle||i.css)for(var c=t.line;c<=n.line;c++)It(l,c,"text");i.atomic&&Me(l.doc),Co(l,"markerAdded",l,i)}return i}function Kn(e,t,n,r,o){r=Ho(r),r.shared=!1;var i=[Jn(e,t,n,r,o)],a=i[0],s=r.widgetNode;return Kr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(Jn(e,me(e,t),me(e,n),r,o));for(var u=0;u=t:i.to>t);(r||(r=[])).push(new $n(a,i.from,u?null:i.to))}}return r}function or(e,t,n){if(e)for(var r,o=0;o=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var u=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var f=0;ff;++f)h.push(m);h.push(u)}return h}function ar(e){for(var t=0;t0)){var c=[u,1],f=Wi(l.from,s.from),d=Wi(l.to,s.to);(0>f||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:l.to}),o.splice.apply(o,c),u+=c.length-1}}return o}function lr(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&0>=f||0>=c&&f>=0)&&(0>=c&&(Wi(l.to,n)>0||u.marker.inclusiveRight&&o.inclusiveLeft)||c>=0&&(Wi(l.from,r)<0||u.marker.inclusiveLeft&&o.inclusiveRight)))return!0}}}function yr(e){for(var t;t=mr(e);)e=t.find(-1,!0).line;return e}function br(e){for(var t,n;t=vr(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function xr(e,t){var n=Qr(e,t),r=yr(n);return n==r?t:to(r)}function Ar(e,t){if(t>e.lastLine())return t;var n,r=Qr(e,t);if(!wr(e,r))return t;for(;n=vr(r);)r=n.find(1,!0).line;return to(r)+1}function wr(e,t){var n=zi&&t.markedSpans;if(n)for(var r,o=0;oi;i++){o&&(o[0]=e.innerMode(t,r).mode);var a=t.token(n,r);if(n.pos>n.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}function Lr(e,t,n,r){function o(e){return{start:f.start,end:f.pos,string:f.current(),type:i||null,state:e?ua(a.mode,c):c}}var i,a=e.doc,s=a.mode;t=me(a,t);var u,l=Qr(a,t.line),c=Ue(e,t.line,n),f=new ma(l.text,e.options.tabSize);for(r&&(u=[]);(r||f.pose.options.maxHighlightLength?(s=!1,a&&Ir(e,t,r,f.pos),f.pos=t.length,u=null):u=Mr(Or(n,f,r,d),i),d){var p=d[0].name;p&&(u="m-"+(u?p+" "+u:p))}if(!s||c!=u){for(;ll;){var r=o[u];r>e&&o.splice(u,1,e,o[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,u-n,e,"cm-overlay "+t),u=n+2;else for(;u>n;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"cm-overlay "+t}},i)}return{styles:o,classes:i.bgClass||i.textClass?i:null}}function Dr(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ue(e,to(t)),o=Rr(e,t,t.text.length>e.options.maxHighlightLength?ua(e.doc.mode,r):r);t.stateAfter=r,t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function Ir(e,t,n,r){var o=e.doc.mode,i=new ma(t,e.options.tabSize);for(i.start=i.pos=r||0,""==t&&Sr(o,n);!i.eol();)Or(o,i,n),i.start=i.pos}function zr(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?wa:Aa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Hr(e,t){var n=Xo("span",null,null,Ai?"padding-right: .1px":null),r={pre:Xo("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,splitSpaces:(bi||Ai)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i,a=o?t.rest[o-1]:t.line;r.pos=0,r.addToken=Fr,$o(e.display.measure)&&(i=oo(a))&&(r.addToken=Ur(r.addToken,i)),r.map=[];var s=t!=e.display.externalMeasured&&to(a);Vr(a,r,Dr(e,a,s)),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=Jo(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=Jo(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(_o(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return Ai&&/\bcm-tab\b/.test(r.content.lastChild.className)&&(r.content.className="cm-tab-wrap-hack"),ja(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Jo(r.pre.className,r.textClass||"")),r}function Wr(e){var t=Xo("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16), -t.setAttribute("aria-label",t.title),t}function Fr(e,t,n,r,o,i,a){if(t){var s=e.splitSpaces?t.replace(/ {3,}/g,qr):t,u=e.cm.state.specialChars,l=!1;if(u.test(t))for(var c=document.createDocumentFragment(),f=0;;){u.lastIndex=f;var d=u.exec(t),p=d?d.index-f:t.length-f;if(p){var h=document.createTextNode(s.slice(f,f+p));bi&&9>xi?c.appendChild(Xo("span",[h])):c.appendChild(h),e.map.push(e.pos,e.pos+p,h),e.col+=p,e.pos+=p}if(!d)break;if(f+=p+1," "==d[0]){var m=e.cm.options.tabSize,v=m-e.col%m,h=c.appendChild(Xo("span",Lo(v),"cm-tab"));h.setAttribute("role","presentation"),h.setAttribute("cm-text"," "),e.col+=v}else if("\r"==d[0]||"\n"==d[0]){var h=c.appendChild(Xo("span","\r"==d[0]?"␍":"␤","cm-invalidchar"));h.setAttribute("cm-text",d[0]),e.col+=1}else{var h=e.cm.options.specialCharPlaceholder(d[0]);h.setAttribute("cm-text",d[0]),bi&&9>xi?c.appendChild(Xo("span",[h])):c.appendChild(h),e.col+=1}e.map.push(e.pos,e.pos+1,h),e.pos++}else{e.col+=t.length;var c=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,c),bi&&9>xi&&(l=!0),e.pos+=t.length}if(n||r||o||l||a){var g=n||"";r&&(g+=r),o&&(g+=o);var y=Xo("span",[c],g,a);return i&&(y.title=i),e.content.appendChild(y)}e.content.appendChild(c)}}function qr(e){for(var t=" ",n=0;nl&&d.from<=l)break}if(d.to>=c)return e(n,r,o,i,a,s,u);e(n,r.slice(0,d.to-l),o,i,null,s,u),i=null,r=r.slice(d.to-l),l=d.to}}}function Xr(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t}function Vr(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,u,l,c,f,d,p=o.length,h=0,m=1,v="",g=0;;){if(g==h){u=l=c=f=s="",d=null,g=1/0;for(var y,b=[],x=0;xh||w.collapsed&&A.to==h&&A.from==h)?(null!=A.to&&A.to!=h&&g>A.to&&(g=A.to,l=""),w.className&&(u+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&A.from==h&&(c+=" "+w.startStyle),w.endStyle&&A.to==g&&(y||(y=[])).push(w.endStyle,A.to),w.title&&!f&&(f=w.title),w.collapsed&&(!d||pr(d.marker,w)<0)&&(d=A)):A.from>h&&g>A.from&&(g=A.from)}if(y)for(var x=0;x=p)break;for(var k=Math.min(p,g);;){if(v){var P=h+v.length;if(!d){var C=P>k?v.slice(0,k-h):v;t.addToken(t,C,a?a+u:u,c,h+C.length==g?l:"",f,s)}if(P>=k){v=v.slice(k-h),h=k;break}h=P,c=""}v=o.slice(i,i=n[m++]),a=zr(n[m++],t.cm.options)}}else for(var m=1;mn;++n)i.push(new xa(l[n],o(n),r));return i}var s=t.from,u=t.to,l=t.text,c=Qr(e,s.line),f=Qr(e,u.line),d=jo(l),p=o(l.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(Br(e,t)){var m=a(0,l.length-1);i(f,f.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==f)if(1==l.length)i(c,c.text.slice(0,s.ch)+d+c.text.slice(u.ch),p);else{var m=a(1,l.length-1);m.push(new xa(d+c.text.slice(u.ch),p,r)),i(c,c.text.slice(0,s.ch)+l[0],o(0)),e.insert(s.line+1,m)}else if(1==l.length)i(c,c.text.slice(0,s.ch)+l[0]+f.text.slice(u.ch),o(0)),e.remove(s.line+1,h);else{i(c,c.text.slice(0,s.ch)+l[0],o(0)),i(f,d+f.text.slice(u.ch),p);var m=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,m)}Co(e,"change",e,t)}function Gr(e){this.lines=e,this.parent=null;for(var t=0,n=0;tt||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(i>t){n=o;break}t-=i}return n.lines[t]}function _r(e,t,n){var r=[],o=t.line;return e.iter(t.line,n.line+1,function(e){var i=e.text;o==n.line&&(i=i.slice(0,n.ch)),o==t.line&&(i=i.slice(t.ch)),r.push(i),++o}),r}function $r(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function eo(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function to(e){if(null==e.parent)return null;for(var t=e.parent,n=Ro(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)n+=r.children[o].chunkSize();return n+t.first}function no(e,t){var n=e.first;e:do{for(var r=0;rt){e=o;continue e}t-=i,n+=o.chunkSize()}return n}while(!e.lines);for(var r=0;rt)break;t-=s}return n+r}function ro(e){e=yr(e);for(var t=0,n=e.parent,r=0;r1&&!e.done[e.done.length-2].ranges?(e.done.pop(),jo(e.done)):void 0}function lo(e,t,n,r){var o=e.history;o.undone.length=0;var i,a=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&o.lastModTime>a-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(i=uo(o,o.lastOp==r))){var s=jo(i.changes);0==Wi(t.from,t.to)&&0==Wi(t.from,s.to)?s.to=$i(t):i.changes.push(ao(e,t))}else{var u=jo(o.done);for(u&&u.ranges||po(e.sel,o.done),i={changes:[ao(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=a,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,s||ja(e,"historyAdded")}function co(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 fo(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||co(e,i,jo(o.done),t))?o.done[o.done.length-1]=t:po(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&r.clearRedo!==!1&&so(o.undone)}function po(e,t){var n=jo(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ho(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 mo(e){if(!e)return null;for(var t,n=0;n-1&&(jo(s)[f]=c[f],delete c[f])}}}return o}function yo(e,t,n,r){n0?r.slice():Oa:r||Oa}function Co(e,t){function n(e){return function(){e.apply(null,i)}}var r=Po(e,t,!1);if(r.length){var o,i=Array.prototype.slice.call(arguments,2);Bi?o=Bi.delayedCallbacks:Ra?o=Ra:(o=Ra=[],setTimeout(To,0));for(var a=0;a0}function So(e){e.prototype.on=function(e,t){Sa(this,e,t)},e.prototype.off=function(e,t){La(this,e,t)}}function Oo(){this.id=null}function Lo(e){for(;Ua.length<=e;)Ua.push(jo(Ua)+" ");return Ua[e]}function jo(e){return e[e.length-1]}function Ro(e,t){for(var n=0;n-1&&Za(e)?!0:t.test(e):Za(e)}function qo(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function Uo(e){return e.charCodeAt(0)>=768&&Ga.test(e)}function Xo(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i0;--t)e.removeChild(e.firstChild);return e}function Bo(e,t){return Vo(e).appendChild(t)}function Zo(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function Go(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Jo(e,t){for(var n=e.split(" "),r=0;r2&&!(bi&&8>xi))}var n=Ka?Xo("span","​"):Xo("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function $o(e){if(null!=Ya)return Ya;var t=Bo(e,document.createTextNode("AخA")),n=Va(t,0,1).getBoundingClientRect();if(!n||n.left==n.right)return!1;var r=Va(t,1,2).getBoundingClientRect();return Ya=r.right-n.right<3}function ei(e){if(null!=os)return os;var t=Bo(e,Xo("span","x")),n=t.getBoundingClientRect(),r=Va(t,0,1).getBoundingClientRect();return os=Math.abs(n.left-r.left)>1}function ti(e,t,n,r){if(!e)return r(t,n,"ltr");for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),o=!0)}o||r(t,n,"ltr")}function ni(e){return e.level%2?e.to:e.from}function ri(e){return e.level%2?e.from:e.to}function oi(e){var t=oo(e);return t?ni(t[0]):0}function ii(e){var t=oo(e);return t?ri(jo(t)):e.text.length}function ai(e,t){var n=Qr(e.doc,t),r=yr(n);r!=n&&(t=to(r));var o=oo(r),i=o?o[0].level%2?ii(r):oi(r):0;return Hi(t,i)}function si(e,t){for(var n,r=Qr(e.doc,t);n=vr(r);)r=n.find(1,!0).line,t=null;var o=oo(r),i=o?o[0].level%2?oi(r):ii(r):r.text.length;return Hi(null==t?to(r):t,i)}function ui(e,t){var n=ai(e,t.line),r=Qr(e.doc,n.line),o=oo(r);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 Hi(n.line,a?0:i)}return n}function li(e,t,n){var r=e[0].level;return t==r?!0:n==r?!1:n>t}function ci(e,t){as=null;for(var n,r=0;rt)return r;if(o.from==t||o.to==t){if(null!=n)return li(e,o.level,e[n].level)?(o.from!=o.to&&(as=n),r):(o.from!=o.to&&(as=r),n);n=r}}return n}function fi(e,t,n,r){if(!r)return t+n;do t+=n;while(t>0&&Uo(e.text.charAt(t)));return t}function di(e,t,n,r){var o=oo(e);if(!o)return pi(e,t,n,r);for(var i=ci(o,t),a=o[i],s=fi(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s0==a.level%2?a.to:a.from);if(a=o[i+=n],!a)return null;s=n>0==a.level%2?fi(e,a.to,-1,r):fi(e,a.from,1,r)}}function pi(e,t,n,r){var o=t+n;if(r)for(;o>0&&Uo(e.text.charAt(o));)o+=n;return 0>o||o>e.text.length?null:o}var hi=navigator.userAgent,mi=navigator.platform,vi=/gecko\/\d/i.test(hi),gi=/MSIE \d/.test(hi),yi=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(hi),bi=gi||yi,xi=bi&&(gi?document.documentMode||6:yi[1]),Ai=/WebKit\//.test(hi),wi=Ai&&/Qt\/\d+\.\d+/.test(hi),ki=/Chrome\//.test(hi),Pi=/Opera\//.test(hi),Ci=/Apple Computer/.test(navigator.vendor),Ti=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(hi),Ei=/PhantomJS/.test(hi),Ni=/AppleWebKit/.test(hi)&&/Mobile\/\w+/.test(hi),Mi=Ni||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(hi),Si=Ni||/Mac/.test(mi),Oi=/\bCrOS\b/.test(hi),Li=/win/i.test(mi),ji=Pi&&hi.match(/Version\/(\d*\.\d*)/);ji&&(ji=Number(ji[1])),ji&&ji>=15&&(Pi=!1,Ai=!0);var Ri=Si&&(wi||Pi&&(null==ji||12.11>ji)),Di=vi||bi&&xi>=9,Ii=!1,zi=!1;m.prototype=Ho({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=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}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=Si&&!Ti?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Oo,this.disableVert=new Oo},enableZeroWidthBar:function(e,t){function n(){var r=e.getBoundingClientRect(),o=document.elementFromPoint(r.left+1,r.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},m.prototype),v.prototype=Ho({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},v.prototype),e.scrollbarModel={"native":m,"null":v},C.prototype.signal=function(e,t){Mo(e,t)&&this.events.push(arguments)},C.prototype.finish=function(){for(var e=0;e=9&&n.hasSelection&&(n.hasSelection=null),n.poll()}),Sa(i,"paste",function(e){Eo(r,e)||_(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),Sa(i,"cut",t),Sa(i,"copy",t),Sa(e.scroller,"paste",function(t){Bt(e,t)||Eo(r,t)||(r.state.pasteIncoming=!0,n.focus())}),Sa(e.lineSpace,"selectstart",function(t){Bt(e,t)||Ea(t)}),Sa(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Sa(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,r=De(e);if(e.options.moveInputWithCursor){var o=pt(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},showSelection:function(e){var t=this.cm,n=t.display;Bo(n.cursorDiv,e.cursors),Bo(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,r=this.cm,o=r.doc;if(r.somethingSelected()){this.prevInput="";var i=o.sel.primary();t=rs&&(i.to().line-i.from().line>100||(n=r.getSelection()).length>1e3);var a=t?"-":n||r.getSelection();this.textarea.value=a,r.state.focused&&Xa(this.textarea),bi&&xi>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",bi&&xi>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!Mi||Zo()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},fastPoll:function(){function e(){var r=n.poll();r||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)},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||ns(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=t.value;if(r==n&&!e.somethingSelected())return!1;if(bi&&xi>=9&&this.hasSelection===r||Si&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var i=0,a=Math.min(n.length,r.length);a>i&&n.charCodeAt(i)==r.charCodeAt(i);)++i;var s=this;return Mt(e,function(){Q(e,r.slice(i),n.length-i,null,s.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?t.value=s.prevInput="":s.prevInput=r,s.composing&&(s.composing.range.clear(),s.composing.range=e.markText(s.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){bi&&xi>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){function t(){if(null!=a.selectionStart){var e=o.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=f,a.style.cssText=c,bi&&9>xi&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=a.selectionStart){(!bi||bi&&9>xi)&&t();var e=0,n=function(){i.selForContextMenu==o.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?St(o,ca.selectAll)(o):e++<10?i.detectingSelectAll=setTimeout(n,500):i.input.reset()};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,a=r.textarea,s=Zt(o,e),u=i.scroller.scrollTop;if(s&&!Pi){var l=o.options.resetSelectionOnContextMenu;l&&-1==o.doc.sel.contains(s)&&St(o,Te)(o.doc,pe(s),za);var c=a.style.cssText,f=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var d=r.wrapper.getBoundingClientRect();if(a.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px; z-index: 1000; background: "+(bi?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",Ai)var p=window.scrollY;if(i.input.focus(),Ai&&window.scrollTo(null,p),i.input.reset(),o.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),bi&&xi>=9&&t(),Di){Ma(e);var h=function(){La(window,"mouseup",h),setTimeout(n,20)};Sa(window,"mouseup",h)}else setTimeout(n,50)}},readOnlyChanged:function(e){e||this.reset()},setUneditable:Io,needsContentAttribute:!1},ne.prototype),oe.prototype=Ho({init:function(e){function t(e){if(!Eo(r,e)){if(r.somethingSelected())Fi=r.getSelections(),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=ee(r);Fi=t.text,"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,za),r.replaceSelection("",null,"cut")})}if(e.clipboardData&&!Ni)e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/plain",Fi.join("\n"));else{var n=re(),o=n.firstChild;r.display.lineSpace.insertBefore(n,r.display.lineSpace.firstChild),o.value=Fi.join("\n");var i=document.activeElement;Xa(o),setTimeout(function(){r.display.lineSpace.removeChild(n),i.focus()},50)}}}var n=this,r=n.cm,o=n.div=e.lineDiv;te(o),Sa(o,"paste",function(e){Eo(r,e)||_(e,r)}),Sa(o,"compositionstart",function(e){var t=e.data;if(n.composing={sel:r.doc.sel,data:t,startData:t},t){var o=r.doc.sel.primary(),i=r.getLine(o.head.line),a=i.indexOf(t,Math.max(0,o.head.ch-t.length));a>-1&&a<=o.head.ch&&(n.composing.sel=pe(Hi(o.head.line,a),Hi(o.head.line,a+t.length)))}}),Sa(o,"compositionupdate",function(e){n.composing.data=e.data}),Sa(o,"compositionend",function(e){var t=n.composing;t&&(e.data==t.startData||/\u200b/.test(e.data)||(t.data=e.data),setTimeout(function(){t.handled||n.applyComposition(t),n.composing==t&&(n.composing=null)},50))}),Sa(o,"touchstart",function(){n.forceCompositionEnd()}),Sa(o,"input",function(){n.composing||!r.isReadOnly()&&n.pollContent()||Mt(n.cm,function(){Dt(r)})}),Sa(o,"copy",t),Sa(o,"cut",t)},prepareSelection:function(){var e=De(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e){e&&this.cm.display.view.length&&(e.focus&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=se(this.cm,e.anchorNode,e.anchorOffset),r=se(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!r||r.bad||0!=Wi(K(n,r),t.from())||0!=Wi(J(n,r),t.to())){var o=ie(this.cm,t.from()),i=ie(this.cm,t.to());if(o||i){var a=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(o){if(!i){var u=a[a.length-1].measure,l=u.maps?u.maps[u.maps.length-1]:u.map;i={node:l[l.length-1],offset:l[l.length-2]-l[l.length-3]}}}else o={node:a[0].measure.map[2],offset:0};try{var c=Va(o.node,o.offset,i.offset,i.node)}catch(f){}c&&(!vi&&this.cm.state.focused?(e.collapse(o.node,o.offset),c.collapsed||e.addRange(c)):(e.removeAllRanges(),e.addRange(c)),s&&null==e.anchorNode?e.addRange(s):vi&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){e.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(e){Bo(this.cm.display.cursorDiv,e.cursors),Bo(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ja(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():Mt(this.cm,function(){t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=se(t,e.anchorNode,e.anchorOffset),r=se(t,e.focusNode,e.focusOffset);n&&r&&Mt(t,function(){Te(t.doc,pe(n,r),za),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}},pollContent:function(){var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),o=n.to();if(r.linet.viewTo-1)return!1;var i;if(r.line==t.viewFrom||0==(i=Ht(e,r.line)))var a=to(t.view[0].line),s=t.view[0].node;else var a=to(t.view[i].line),s=t.view[i-1].node.nextSibling;var u=Ht(e,o.line);if(u==t.view.length-1)var l=t.viewTo-1,c=t.lineDiv.lastChild;else var l=to(t.view[u+1].line)-1,c=t.view[u+1].node.previousSibling;for(var f=e.doc.splitLines(le(e,s,c,a,l)),d=_r(e.doc,Hi(a,0),Hi(l,Qr(e.doc,l).text.length));f.length>1&&d.length>1;)if(jo(f)==jo(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),a++}for(var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);g>p&&m.charCodeAt(p)==v.charCodeAt(p);)++p;for(var y=jo(f),b=jo(d),x=Math.min(y.length-(1==f.length?p:0),b.length-(1==d.length?p:0));x>h&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;f[f.length-1]=y.slice(0,y.length-h),f[0]=f[0].slice(p);var A=Hi(a,p),w=Hi(l,d.length?jo(d).length-h:0);return f.length>1||f[0]||Wi(A,w)?(Ln(e.doc,f,A,w,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?St(this.cm,Dt)(this.cm):e.data&&e.data!=e.startData&&St(this.cm,Q)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||St(this.cm,Q)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:Io,resetPosition:Io,needsContentAttribute:!0},oe.prototype),e.inputStyles={textarea:ne,contenteditable:oe},ce.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&&Wi(e,r.to())<=0)return n}return-1}},fe.prototype={from:function(){return K(this.anchor,this.head)},to:function(){return J(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var qi,Ui,Xi,Vi={left:0,right:0,top:0,bottom:0},Bi=null,Zi=0,Gi=0,Ji=0,Ki=null;bi?Ki=-.53:vi?Ki=15:ki?Ki=-.7:Ci&&(Ki=-1/3);var Yi=function(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}};e.wheelEventPixels=function(e){var t=Yi(e);return t.x*=Ki,t.y*=Ki,t};var Qi=new Oo,_i=null,$i=e.changeEnd=function(e){return e.text?Hi(e.from.line+e.text.length-1,jo(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,ta.hasOwnProperty(e)&&St(this,ta[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Gn(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Fn(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Hn(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;n>u;++u)Fn(this,u,e);var l=this.doc.sel.ranges;0==i.ch&&t.length==l.length&&l[r].from().ch>0&&we(this.doc,r,new fe(i,l[r].to()),za)}}}),getTokenAt:function(e,t){return Lr(this,e,t)},getLineTokens:function(e,t){return Lr(this,Hi(e),t,!0)},getTokenTypeAt:function(e){e=me(this.doc,e);var t,n=Dr(this,Qr(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]s?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!sa.hasOwnProperty(t))return n;var r=sa[t],o=this.getModeAt(e);if("string"==typeof o[t])r[o[t]]&&n.push(r[o[t]]);else if(o[t])for(var i=0;io&&(e=o,r=!0),n=Qr(this.doc,e)}else n=e;return ct(this,n,{top:0,left:0},t||"page").top+(r?this.doc.height-ro(n):0)},defaultTextHeight:function(){return yt(this.display)},defaultCharWidth:function(){return bt(this.display)},setGutterMarker:Ot(function(e,t,n){return qn(this.doc,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&qo(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Ot(function(e){var t=this,n=t.doc,r=n.first;n.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,It(t,r,"gutter"),qo(n.gutterMarkers)&&(n.gutterMarkers=null)),++r})}),lineInfo:function(e){if("number"==typeof e){if(!ge(this.doc,e))return null;var t=e;if(e=Qr(this.doc,e),!e)return null}else{var t=to(e);if(null==t)return null}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display;e=pt(this,me(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),l=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>l&&(s=l-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&&Dn(this,s,a,s+t.offsetWidth,a+t.offsetHeight)},triggerOnKeyDown:Ot(dn),triggerOnKeyPress:Ot(mn),triggerOnKeyUp:hn,execCommand:function(e){return ca.hasOwnProperty(e)?ca[e].call(null,this):void 0},triggerElectric:Ot(function(e){$(this,e)}),findPosH:function(e,t,n,r){var o=1;0>t&&(o=-1,t=-t);for(var i=0,a=me(this.doc,e);t>i&&(a=Xn(this.doc,a,o,n,r),!a.hitSide);++i);return a},moveH:Ot(function(e,t){var n=this;n.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Xn(n.doc,r.head,e,t,n.options.rtlMoveVisually):0>e?r.from():r.to()},Wa)}),deleteH:Ot(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Un(this,function(n){var o=Xn(r,n.head,e,t,!1);return 0>e?{from:o,to:n.head}:{from:n.head,to:o}})}),findPosV:function(e,t,n,r){var o=1,i=r;0>t&&(o=-1,t=-t);for(var a=0,s=me(this.doc,e);t>a;++a){var u=pt(this,s,"div");if(null==i?i=u.left:u.left=i,s=Vn(this,u,o,n),s.hitSide)break}return s},moveV:Ot(function(e,t){var n=this,r=this.doc,o=[],i=!n.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(i)return 0>e?a.from():a.to();var s=pt(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var u=Vn(n,s,e,t);return"page"==t&&a==r.sel.primary()&&zn(n,null,dt(n,u,"div").top-s.top),u},Wa),o.length)for(var a=0;a0&&s(n.charAt(r-1));)--r;for(;o.5)&&a(this),ja(this,"refresh",this)}),swapDoc:Ot(function(e){var t=this.doc;return t.cm=null,Yr(this,e),st(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Co(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}},So(e);var ea=e.defaults={},ta=e.optionHandlers={},na=e.Init={toString:function(){return"CodeMirror.Init"}};Bn("value","",function(e,t){e.setValue(t)},!0),Bn("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),Bn("indentUnit",2,n,!0),Bn("indentWithTabs",!1),Bn("smartIndent",!0),Bn("tabSize",4,function(e){r(e),st(e),Dt(e)},!0),Bn("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(Hi(r,i))}r++});for(var o=n.length-1;o>=0;o--)Ln(e.doc,t,n[o],Hi(n[o].line,n[o].ch+t.length))}}),Bn("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,n,r){t.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),r!=e.Init&&t.refresh()}),Bn("specialCharPlaceholder",Wr,function(e){e.refresh()},!0),Bn("electricChars",!0),Bn("inputStyle",Mi?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Bn("rtlMoveVisually",!Li),Bn("wholeLineUpdateBefore",!0),Bn("theme","default",function(e){s(e),u(e)},!0),Bn("keyMap","default",function(t,n,r){var o=Gn(n),i=r!=e.Init&&Gn(r);i&&i.detach&&i.detach(t,o),o.attach&&o.attach(t,i||null)}),Bn("extraKeys",null),Bn("lineWrapping",!1,o,!0),Bn("gutters",[],function(e){p(e.options),u(e)},!0),Bn("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?P(e.display)+"px":"0",e.refresh()},!0),Bn("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),Bn("scrollbarStyle","native",function(e){g(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),Bn("lineNumbers",!1,function(e){p(e.options),u(e)},!0),Bn("firstLineNumber",1,u,!0),Bn("lineNumberFormatter",function(e){return e},u,!0),Bn("showCursorWhenSelecting",!1,Re,!0),Bn("resetSelectionOnContextMenu",!0),Bn("lineWiseCopyCut",!0),Bn("readOnly",!1,function(e,t){"nocursor"==t?(yn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),Bn("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),Bn("dragDrop",!0,Xt),Bn("allowDropFileTypes",null),Bn("cursorBlinkRate",530),Bn("cursorScrollMargin",0),Bn("cursorHeight",1,Re,!0),Bn("singleCursorHeightPerLine",!0,Re,!0),Bn("workTime",100),Bn("workDelay",100),Bn("flattenSpans",!0,r,!0),Bn("addModeClass",!1,r,!0),Bn("pollInterval",100),Bn("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),Bn("historyEventDelay",1250),Bn("viewportMargin",10,function(e){e.refresh()},!0),Bn("maxHighlightLength",1e4,r,!0),Bn("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),Bn("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),Bn("autofocus",null);var ra=e.modes={},oa=e.mimeModes={};e.defineMode=function(t,n){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),ra[t]=n},e.defineMIME=function(e,t){oa[e]=t},e.resolveMode=function(t){if("string"==typeof t&&oa.hasOwnProperty(t))t=oa[t];else if(t&&"string"==typeof t.name&&oa.hasOwnProperty(t.name)){var n=oa[t.name];"string"==typeof n&&(n={name:n}),t=zo(n,t),t.name=n.name}else if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return e.resolveMode("application/xml");return"string"==typeof t?{name:t}:t||{name:"null"}},e.getMode=function(t,n){var n=e.resolveMode(n),r=ra[n.name];if(!r)return e.getMode(t,"text/plain");var o=r(t,n);if(ia.hasOwnProperty(n.name)){var i=ia[n.name];for(var a in i)i.hasOwnProperty(a)&&(o.hasOwnProperty(a)&&(o["_"+a]=o[a]),o[a]=i[a])}if(o.name=n.name,n.helperType&&(o.helperType=n.helperType),n.modeProps)for(var a in n.modeProps)o[a]=n.modeProps[a];return o},e.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),e.defineMIME("text/plain","null");var ia=e.modeExtensions={};e.extendMode=function(e,t){var n=ia.hasOwnProperty(e)?ia[e]:ia[e]={};Ho(t,n)},e.defineExtension=function(t,n){e.prototype[t]=n},e.defineDocExtension=function(e,t){Pa.prototype[e]=t},e.defineOption=Bn;var aa=[];e.defineInitHook=function(e){aa.push(e)};var sa=e.helpers={};e.registerHelper=function(t,n,r){sa.hasOwnProperty(t)||(sa[t]=e[t]={_global:[]}),sa[t][n]=r},e.registerGlobalHelper=function(t,n,r,o){e.registerHelper(t,n,o),sa[t]._global.push({pred:r,val:o})};var ua=e.copyState=function(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n},la=e.startState=function(e,t,n){return e.startState?e.startState(t,n):!0};e.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var ca=e.commands={selectAll:function(e){e.setSelection(Hi(e.firstLine(),0),Hi(e.lastLine()),za)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),za)},killLine:function(e){Un(e,function(t){if(t.empty()){var n=Qr(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new Hi(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),Hi(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Qr(e.doc,o.line-1).text;a&&e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),Hi(o.line-1,a.length-1),Hi(o.line,1),"+transpose")}n.push(new fe(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){Mt(e,function(){for(var t=e.listSelections().length,n=0;t>n;n++){var r=e.listSelections()[n];e.replaceRange(e.doc.lineSeparator(),r.anchor,r.head,"+input"),e.indentLine(r.from().line+1,null,!0)}Hn(e)})},toggleOverwrite:function(e){e.toggleOverwrite()}},fa=e.keyMap={};fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"},fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},fa["default"]=Si?fa.macDefault:fa.pcDefault,e.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var o=Do(n.split(" "),Zn),i=0;i=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){return this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);return t>-1?(this.pos=t,!0):void 0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e},i=this.string.substr(this.pos,e.length);return o(i)==o(e)?(t!==!1&&(this.pos+=e.length),!0):void 0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var va=0,ga=e.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};So(ga),ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&xt(e),Mo(this,"clear")){var n=this.find();n&&Co(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Dt(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Me(e.doc)),e&&Co(e,"markerCleared",e,this),t&&wt(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,o=0;on;++n){var o=this.lines[n];this.height-=o.height,Nr(o),Co(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;re;++e)if(n(this.lines[e]))return!0}},Jr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;ne){var i=Math.min(t,o-e),a=r.height;if(r.removeInner(e,i),this.height-=a-r.height,o==i&&(this.children.splice(n--,1),r.parent=null),0==(t-=i))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Gr))){var s=[];this.collapse(s),this.children=[new Gr(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t=e){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(;o.lines.length>50;){var a=o.lines.splice(o.lines.length-25,25),s=new Gr(a);o.height-=s.height,this.children.splice(r+1,0,s),s.parent=this}this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Jr(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=Ro(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var o=new Jr(e.children);o.parent=e,e.children=[o,n],e=o}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re){var a=Math.min(t,i-e);if(o.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=i}}};var ka=0,Pa=e.Doc=function(e,t,n,r){if(!(this instanceof Pa))return new Pa(e,t,n,r);null==n&&(n=0),Jr.call(this,[new Gr([new xa("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var o=Hi(n,0);this.sel=pe(o),this.history=new io(null),this.id=++ka,this.modeOption=t,this.lineSep=r,this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Zr(this,{from:o,to:o,text:e}),Te(this,pe(o),za)};Pa.prototype=zo(Jr.prototype,{constructor:Pa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r=0;i--)Tn(this,r[i]);s?Ce(this,s):this.cm&&Hn(this.cm)}),undo:Lt(function(){Nn(this,"undo")}),redo:Lt(function(){Nn(this,"redo")}),undoSelection:Lt(function(){Nn(this,"undo",!0)}),redoSelection:Lt(function(){Nn(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=me(this,e),t=me(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?(t=e,!0):(e-=i,void++n)}),me(this,Hi(n,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.tos||s>=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}},qa=e.findColumn=function(e,t,n){for(var r=0,o=0;;){var i=e.indexOf(" ",r);-1==i&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,o+=n-o%n,r=i+1,o>=t)return r}},Ua=[""],Xa=function(e){e.select()};Ni?Xa=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:bi&&(Xa=function(e){try{e.select()}catch(t){}});var Va,Ba=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Za=e.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Ba.test(e))},Ga=/[\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]/;Va=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(o){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ja=e.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do if(11==t.nodeType&&(t=t.host),t==e)return!0;while(t=t.parentNode)};bi&&11>xi&&(Zo=function(){try{return document.activeElement}catch(e){return document.body}});var Ka,Ya,Qa=e.rmClass=function(e,t){var n=e.className,r=Go(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}},_a=e.addClass=function(e,t){var n=e.className;Go(t).test(n)||(e.className+=(n?" ":"")+t)},$a=!1,es=function(){if(bi&&9>xi)return!1;var e=Xo("div");return"draggable"in e||"dragDrop"in e}(),ts=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;r>=t;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ns=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(n){}return t&&t.parentElement()==e?0!=t.compareEndPoints("StartToEnd",t):!1},rs=function(){var e=Xo("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),os=null,is=e.keyNames={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};!function(){for(var e=0;10>e;e++)is[e+48]=is[e+96]=String(e);for(var e=65;90>=e;e++)is[e]=String.fromCharCode(e);for(var e=1;12>=e;e++)is[e+111]=is[e+63235]="F"+e}();var as,ss=function(){function e(e){return 247>=e?n.charAt(e):e>=1424&&1524>=e?"R":e>=1536&&1773>=e?r.charAt(e-1536):e>=1774&&2220>=e?"r":e>=8192&&8203>=e?"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="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/,l="L";return function(n){if(!o.test(n))return!1;for(var r,c=n.length,f=[],d=0;c>d;++d)f.push(r=e(n.charCodeAt(d)));for(var d=0,p=l;c>d;++d){var r=f[d];"m"==r?f[d]=p:p=r}for(var d=0,h=l;c>d;++d){var r=f[d];"1"==r&&"r"==h?f[d]="n":a.test(r)&&(h=r,"r"==r&&(f[d]="R"))}for(var d=1,p=f[0];c-1>d;++d){var r=f[d];"+"==r&&"1"==p&&"1"==f[d+1]?f[d]="1":","!=r||p!=f[d+1]||"1"!=p&&"n"!=p||(f[d]=p),p=r}for(var d=0;c>d;++d){var r=f[d];if(","==r)f[d]="N";else if("%"==r){for(var m=d+1;c>m&&"%"==f[m];++m);for(var v=d&&"!"==f[d-1]||c>m&&"1"==f[m]?"1":"N",g=d;m>g;++g)f[g]=v;d=m-1}}for(var d=0,h=l;c>d;++d){var r=f[d];"L"==h&&"1"==r?f[d]="L":a.test(r)&&(h=r)}for(var d=0;c>d;++d)if(i.test(f[d])){for(var m=d+1;c>m&&i.test(f[m]);++m);for(var y="L"==(d?f[d-1]:l),b="L"==(c>m?f[m]:l),v=y||b?"L":"R",g=d;m>g;++g)f[g]=v;d=m-1}for(var x,A=[],d=0;c>d;)if(s.test(f[d])){var w=d;for(++d;c>d&&s.test(f[d]);++d);A.push(new t(0,w,d))}else{var k=d,P=A.length;for(++d;c>d&&"L"!=f[d];++d);for(var g=k;d>g;)if(u.test(f[g])){g>k&&A.splice(P,0,new t(1,k,g));var C=g;for(++g;d>g&&u.test(f[g]);++g);A.splice(P,0,new t(2,C,g)),k=g}else++g;d>k&&A.splice(P,0,new t(1,k,d))}return 1==A[0].level&&(x=n.match(/^\s+/))&&(A[0].from=x[0].length,A.unshift(new t(0,0,x[0].length))),1==jo(A).level&&(x=n.match(/\s+$/))&&(jo(A).to-=x[0].length,A.push(new t(0,c-x[0].length,c))),2==A[0].level&&A.unshift(new t(1,A[0].to,A[0].to)),A[0].level!=jo(A).level&&A.push(new t(A[0].level,c,c)),A}}();return e.version="5.14.2",e})},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null==e||p["default"].isValidElement(e)}function i(e){return o(e)||Array.isArray(e)&&e.every(o)}function a(e,t,n){e=e||"UnknownComponent";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r](n,r,e);o instanceof Error}}function s(e,t){return f({},e,t)}function u(e){var t=e.type,n=s(t.defaultProps,e.props);if(t.propTypes&&a(t.displayName||t.name,t.propTypes,n),n.children){var r=l(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function l(e,t){var n=[];return p["default"].Children.forEach(e,function(e){if(p["default"].isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function c(e){return i(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t should not have a "'+t+'" prop'):void 0}t.__esModule=!0,t.falsy=r;var o=n(2),i=o.PropTypes.func,a=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,l=o.PropTypes.element,c=o.PropTypes.shape,f=o.PropTypes.string,d=c({listen:i.isRequired,push:i.isRequired,replace:i.isRequired,go:i.isRequired,goBack:i.isRequired,goForward:i.isRequired});t.history=d;var p=u([i,f]);t.component=p;var h=u([p,a]);t.components=h;var m=u([a,l]);t.route=m;var v=u([m,s(m)]);t.routes=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function i(e){var t=o(e),n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0,t.extractPath=o,t.parsePath=i;var a=n(14);r(a)},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(293),i={mountComponent:function(e,t,n,o){var i=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),i},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=n(21),i=n(4),a=n(15),s=(n(3),{type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";var r=n(1),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e){for(var t="",n=[],r=[],i=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;i=s.exec(e);)i.index!==a&&(r.push(e.slice(a,i.index)),t+=o(e.slice(a,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]&&(t+=")?"),r.push(i[0]),a=s.lastIndex;return a!==e.length&&(r.push(e.slice(a,e.length)),t+=o(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function a(e){return e in p||(p[e]=i(e)),p[e]}function s(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=a(e),r=n.regexpSource,o=n.paramNames,i=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===i[i.length-1]&&(r+="$");var s=t.match(new RegExp("^"+r,"i")),u=void 0,l=void 0;if(null!=s){var c=s[0];if(u=t.substr(c.length)){if("/"!==c.charAt(c.length-1))return{remainingPathname:null,paramNames:o,paramValues:null};u="/"+u}l=s.slice(1).map(function(e){return e&&decodeURIComponent(e)})}else u=l=null;return{remainingPathname:u,paramNames:o,paramValues:l}}function u(e){return a(e).paramNames}function l(e,t){var n=s(e,t),r=n.paramNames,o=n.paramValues;return null!=o?r.reduce(function(e,t,n){return e[t]=o[n],e},{}):null}function c(e,t){t=t||{};for(var n=a(e),r=n.tokens,o=0,i="",s=0,u=void 0,l=void 0,c=void 0,f=0,p=r.length;p>f;++f)u=r[f],"*"===u||"**"===u?(c=Array.isArray(t.splat)?t.splat[s++]:t.splat,null!=c||o>0?void 0:d["default"](!1),null!=c&&(i+=encodeURI(c))):"("===u?o+=1:")"===u?o-=1:":"===u.charAt(0)?(l=u.substring(1),c=t[l],null!=c||o>0?void 0:d["default"](!1),null!=c&&(i+=encodeURIComponent(c))):i+=u;return i.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=a,t.matchPattern=s,t.getParamNames=u,t.getParams=l,t.formatPattern=c;var f=n(10),d=r(f),p={}},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var o="POP";t.POP=o,t["default"]={PUSH:n,REPLACE:r,POP:o}},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(1),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?o(!1):void 0;var d=f.toLowerCase(),p=n[f],h={attributeName:d,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(p,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasSideEffects:r(p,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.mustUseAttribute&&h.mustUseProperty?o(!1):void 0,!h.mustUseProperty&&h.hasSideEffects?o(!1):void 0,h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o(!1),u.hasOwnProperty(f)){var m=u[f];h.attributeName=m}a.hasOwnProperty(f)&&(h.attributeNamespace=a[f]),l.hasOwnProperty(f)&&(h.propertyName=l[f]),c.hasOwnProperty(f)&&(h.mutationMethod=c[f]),s.properties[f]=h}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t=a;a++)if(o(e,a)&&o(t,a))r=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,r);return i(s)?void 0:d(!1),s}function c(e,t,n,r,o,i){e=e||"",t=t||"",e===t?d(!1):void 0;var l=a(t,e);l||a(e,t)?void 0:d(!1);for(var c=0,f=l?s:u,p=e;;p=f(p,t)){var h;if(o&&p===e||i&&p===t||(h=n(p,l,r)),h===!1||p===t)break;c++1){var t=e.indexOf(p,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=l(e,t);i!==e&&c(e,i,n,r,!1,!0),i!==t&&c(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:p};e.exports=v},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(112),o=n(271),i=n(125),a=n(134),s=n(135),u=n(1),l=(n(3),{}),c=null,f=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return f(e,!0)},p=function(e){return f(e,!1)},h=null,m={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){h=e},getInstanceHandle:function(){return h},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n?u(!1):void 0;var o=l[t]||(l[t]={});o[e]=n;var i=r.registrationNameModules[t];i&&i.didPutListener&&i.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t];return n&&n[e]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=l[t];o&&delete o[e]},deleteAllListeners:function(e){for(var t in l)if(l[t][e]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete l[t][e]}},extractEvents:function(e,t,n,o,i){for(var s,u=r.plugins,l=0;l=200&&e.status<300)return e;401===e.status&&u["default"].logout();var n=void 0;try{n=JSON.parse(e)}catch(r){n={error:e.statusText}}n.statusCode=e.status,n.response=e,t(n)}).then(function(e){return e.json()}).then(function(t){e(t)})["catch"](function(){t({error:"Unknown error"})})})},this.post=function(e,n){return t.fetch(e,"POST",n)},this.put=function(e,n){return t.fetch(e,"PUT",n)},this.get=function(e,n){return t.fetch(e,"GET",n)},this["delete"]=function(e,n){return t.fetch(e,"DELETE",n)},this.constructQueryString=function(e){return a["default"].map(e,function(e,t){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&")},this.baseUrl=n.baseUrl||c["default"].API_BASE_URL,this.userAgent=n.userAgent||c["default"].API_USER_AGENT};t["default"]=f;var d=new f;t.client=d}).call(t,n(89))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=n(235),i=r(o),a=n(236),s=r(a);t.Provider=i["default"],t.connect=s["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1?r-1:0),i=1;r>i;i++)o[i-1]=arguments[i];var a=x.createLocation.apply(x,[n(e,e.query)].concat(o));return e.query&&(a.query=e.query),t(a)}function g(e,t,n){"string"==typeof t&&(t=f.parsePath(t)),s(a({state:e},t,{query:n}))}function y(e,t,n){"string"==typeof t&&(t=f.parsePath(t)),u(a({state:e},t,{query:n}))}var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],x=e(b),A=b.stringifyQuery,w=b.parseQueryString;return"function"!=typeof A&&(A=o),"function"!=typeof w&&(w=m),a({},x,{listenBefore:r,listen:i,push:s,replace:u,createPath:l,createHref:d,createLocation:v,pushState:p["default"](g,"pushState is deprecated; use push instead"),replaceState:p["default"](y,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";var r=n(6),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=a},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),i=r(o),a=n(213),s=(0,i["default"])({JWT_STORE_KEY:null}),u={API_USER_AGENT:a.name+"/"+a.version,API_BASE_URL:"http://localhost:3000/api"};t["default"]=Object.assign(s,u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(53),i=r(o),a=n(81),s=r(a),u=n(38);t["default"]={login:function(e,t){var n=this;return new Promise(function(r,o){u.client.post("/authenticate",{email:e,password:t}).then(function(e){localStorage.setItem(i["default"].JWT_STORE_KEY,e.jwt_token),n.onChange(!0),r(e)})["catch"](function(e){o(e)})})},getToken:function(){return localStorage.getItem(i["default"].JWT_STORE_KEY)},logout:function(){localStorage.removeItem(i["default"].JWT_STORE_KEY),s["default"].push(i["default"].LOGIN_PATH),this.onChange(!1)},loggedIn:function(){return!!localStorage.getItem(i["default"].JWT_STORE_KEY)},onChange:function(){}}},function(e,t,n){function r(e){if(!a(e)||d.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}var o=n(222),i=n(223),a=n(224),s="[object Object]",u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,f=l.call(Object),d=u.toString;e.exports=r},function(e,t){"use strict";function n(e,t,n){function r(){return s=!0,u?void(c=[].concat(o.call(arguments))):void n.apply(this,arguments)}function i(){if(!s&&(l=!0,!u)){for(u=!0;!s&&e>a&&l;)l=!1,t.call(this,a++,i,r);return u=!1,s?void n.apply(this,c):void(a>=e&&l&&(s=!0,n()))}}var a=0,s=!1,u=!1,l=!1,c=void 0;i()}function r(e,t,n){function r(e,t,r){a||(t?(a=!0,n(t)):(i[e]=r,a=++s===o,a&&n(null,i)))}var o=e.length,i=[];if(0===o)return n(null,i);var a=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0;var o=Array.prototype.slice;t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e,t){function n(t){var n=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=void 0;return n&&n!==!0||null!==r?(t={pathname:t,query:n},o=r||!1):(t=e.createLocation(t),o=n),p["default"](t,o,A.location,A.routes,A.params)}function r(t){return e.createLocation(t,u.REPLACE)}function i(e,n){w&&w.location===e?s(w,n):g["default"](t,e,function(t,r){t?n(t):r?s(a({},r,{location:e}),n):n()})}function s(e,t){function n(n,r){return n||r?o(n,r):void m["default"](e,function(n,r){n?t(n):t(null,null,A=a({},e,{components:r}))})}function o(e,n){e?t(e):t(null,r(n))}var i=c["default"](A,e),s=i.leaveRoutes,u=i.changeRoutes,l=i.enterRoutes;f.runLeaveHooks(s),s.filter(function(e){return-1===l.indexOf(e)}).forEach(y),f.runChangeHooks(u,A,e,function(t,r){return t||r?o(t,r):void f.runEnterHooks(l,e,n)})}function l(e){var t=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.__id__||t&&(e.__id__=k++)}function d(e){return e.reduce(function(e,t){return e.push.apply(e,P[l(t)]),e},[])}function h(e,n){g["default"](t,e,function(t,r){if(null==r)return void n();w=a({},r,{location:e});for(var o=d(c["default"](A,w).leaveRoutes),i=void 0,s=0,u=o.length;null==i&&u>s;++s)i=o[s](e);n(i)})}function v(){if(A.routes){for(var e=d(A.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&r>n;++n)t=e[n]();return t}}function y(e){var t=l(e,!1);t&&(delete P[t],o(P)||(C&&(C(),C=null),T&&(T(),T=null)))}function b(t,n){var r=l(t),i=P[r];if(i)-1===i.indexOf(n)&&i.push(n);else{var a=!o(P);P[r]=[n],a&&(C=e.listenBefore(h),e.listenBeforeUnload&&(T=e.listenBeforeUnload(v)))}return function(){var e=P[r];if(e){var o=e.filter(function(e){return e!==n});0===o.length?y(t):P[r]=o}}}function x(t){return e.listen(function(n){A.location===n?t(null,A):i(n,function(n,r,o){n?t(n):r?e.transitionTo(r):o&&t(null,o)})})}var A={},w=void 0,k=1,P=Object.create(null),C=void 0,T=void 0;return{isActive:n,match:i,listenBeforeLeavingRoute:b,listen:x}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;tt||e.hasOverloadedBooleanValue&&t===!1}var i=n(29),a=n(12),s=n(316),u=(n(3),/^[a-zA-Z_][\w\.\-]*$/),l={},c={},f={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else if(o(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var l=r.propertyName;r.hasSideEffects&&""+e[l]==""+n||(e[l]=n)}}else i.isCustomAttribute(t)&&f.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n.propertyName,a=i.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===a||(e[o]=a)}}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};a.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=f},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?l(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?l(!1):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?l(!1):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(131),u=n(46),l=n(1),c=(n(3),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},d={},p={checkPropTypes:function(e,t,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](t,r,e,u.prop);if(o instanceof Error&&!(o.message in d)){d[o.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=p},function(e,t,n){"use strict";var r=n(66),o=n(8),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=i},function(e,t,n){"use strict";var r=n(1),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i},function(e,t,n){"use strict";var r=n(111),o=n(62),i=n(8),a=n(12),s=n(1),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},l={updatePropertyByID:function(e,t,n){var r=i.getNode(e);u.hasOwnProperty(t)?s(!1):void 0,null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=new a(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?l(!1):void 0,t="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new c}else"string"==typeof e||"number"==typeof e?t=s.createInstanceForText(e):l(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var i=n(277),a=n(123),s=n(129),u=n(4),l=n(1),c=(n(3),function(){});u(c.prototype,i.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t,n){"use strict";/** +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/static/",t(0)}([function(e,t,n){e.exports=n(345)},function(e,t,n){"use strict";e.exports=n(534)},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function t(){return ur.apply(null,arguments)}function r(e){ur=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var n,r=[];for(n=0;n0)for(n in cr)r=cr[n],o=t[r],h(o)||(e[r]=o);return e}function _(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),dr===!1&&(dr=!0,t.updateOffset(this),dr=!1)}function y(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function v(e){return 0>e?Math.ceil(e):Math.floor(e)}function g(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function b(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;o>r;r++)(n&&e[r]!==t[r]||!n&&g(e[r])!==g(t[r]))&&i++;return i+a}function M(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,n){var r=!0;return u(function(){return null!=t.deprecationHandler&&t.deprecationHandler(null,e),r&&(M(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),r=!1),n.apply(this,arguments)},n)}function w(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),fr[e]||(M(n),fr[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function S(e,t){var n,r=u({},e);for(n in t)s(t,n)&&(k(e[n])&&k(t[n])?(r[n]={},u(r[n],e[n]),u(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);return r}function D(e){null!=e&&this.set(e)}function P(e){return e?e.toLowerCase().replace("_","-"):e}function C(e){for(var t,n,r,o,a=0;a0;){if(r=O(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&b(o,n,!0)>=t-1)break;t--}a++}return null}function O(t){var r=null;if(!_r[t]&&"undefined"!=typeof e&&e&&e.exports)try{r=hr._abbr,n(487)("./"+t),Y(r)}catch(o){}return _r[t]}function Y(e,t){var n;return e&&(n=h(t)?A(e):E(e,t),n&&(hr=n)),hr._abbr}function E(e,t){return null!==t?(t.abbr=e,null!=_r[e]?(w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),t=S(_r[e]._config,t)):null!=t.parentLocale&&(null!=_r[t.parentLocale]?t=S(_r[t.parentLocale]._config,t):w("parentLocaleUndefined","specified parentLocale is not defined yet")),_r[e]=new D(t),Y(e),_r[e]):(delete _r[e],null)}function j(e,t){if(null!=t){var n;null!=_r[e]&&(t=S(_r[e]._config,t)),n=new D(t),n.parentLocale=_r[e],_r[e]=n,Y(e)}else null!=_r[e]&&(null!=_r[e].parentLocale?_r[e]=_r[e].parentLocale:null!=_r[e]&&delete _r[e]);return _r[e]}function A(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hr;if(!o(e)){if(t=O(e))return t;e=[e]}return C(e)}function H(){return pr(_r)}function N(e,t){var n=e.toLowerCase();yr[n]=yr[n+"s"]=yr[t]=e}function R(e){return"string"==typeof e?yr[e]||yr[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)s(e,n)&&(t=R(n),t&&(r[t]=e[n]));return r}function W(e,n){return function(r){return null!=r?(U(this,e,r),t.updateOffset(this,n),this):F(this,e)}}function F(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function z(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=R(e),x(this[e]))return this[e](t);return this}function B(e,t,n){var r=""+Math.abs(e),o=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}function V(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(Mr[e]=o),t&&(Mr[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(Mr[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(vr);for(t=0,n=r.length;n>t;t++)Mr[r[t]]?r[t]=Mr[r[t]]:r[t]=q(r[t]);return function(t){var o,a="";for(o=0;n>o;o++)a+=r[o]instanceof Function?r[o].call(t,e):r[o];return a}}function K(e,t){return e.isValid()?(t=J(t,e.localeData()),br[t]=br[t]||G(t),br[t](e)):e.localeData().invalidDate()}function J(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(gr.lastIndex=0;r>=0&&gr.test(e);)e=e.replace(gr,n),gr.lastIndex=0,r-=1;return e}function $(e,t,n){Ir[e]=x(t)?t:function(e,r){return e&&n?n:t}}function X(e,t){return s(Ir,e)?Ir[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=g(e)}),n=0;nr;++r)a=l([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?(o=mr.call(this._shortMonthsParse,i),-1!==o?o:null):(o=mr.call(this._longMonthsParse,i),-1!==o?o:null):"MMM"===t?(o=mr.call(this._shortMonthsParse,i),-1!==o?o:(o=mr.call(this._longMonthsParse,i),-1!==o?o:null)):(o=mr.call(this._longMonthsParse,i),-1!==o?o:(o=mr.call(this._shortMonthsParse,i),-1!==o?o:null))}function se(e,t,n){var r,o,a;if(this._monthsParseExact)return ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(o=l([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ue(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function le(e){return null!=e?(ue(this,e),t.updateOffset(this,!0),this):F(this,"Month")}function ce(){return re(this.year(),this.month())}function de(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}function fe(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function pe(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],a=[];for(t=0;12>t;t++)n=l([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),a.sort(e),t=0;12>t;t++)r[t]=Z(r[t]),o[t]=Z(o[t]),a[t]=Z(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function he(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[Ur]<0||n[Ur]>11?Ur:n[zr]<1||n[zr]>re(n[Fr],n[Ur])?zr:n[Br]<0||n[Br]>24||24===n[Br]&&(0!==n[Vr]||0!==n[qr]||0!==n[Gr])?Br:n[Vr]<0||n[Vr]>59?Vr:n[qr]<0||n[qr]>59?qr:n[Gr]<0||n[Gr]>999?Gr:-1,d(e)._overflowDayOfYear&&(Fr>t||t>zr)&&(t=zr),d(e)._overflowWeeks&&-1===t&&(t=Kr),d(e)._overflowWeekday&&-1===t&&(t=Jr),d(e).overflow=t),e}function me(e){var t,n,r,o,a,i,s=e._i,u=to.exec(s)||no.exec(s);if(u){for(d(e).iso=!0,t=0,n=oo.length;n>t;t++)if(oo[t][1].exec(u[1])){o=oo[t][0],r=oo[t][2]!==!1;break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=ao.length;n>t;t++)if(ao[t][1].exec(u[3])){a=(u[2]||" ")+ao[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!ro.exec(u[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Ce(e)}else e._isValid=!1}function _e(e){var n=io.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(me(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function ye(e,t,n,r,o,a,i){var s=new Date(e,t,n,r,o,a,i);return 100>e&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ve(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ge(e){return be(e)?366:365}function be(e){return e%4===0&&e%100!==0||e%400===0}function Me(){return be(this.year())}function Le(e,t,n){var r=7+t-n,o=(7+ve(e,0,r).getUTCDay()-t)%7;return-o+r-1}function we(e,t,n,r,o){var a,i,s=(7+n-r)%7,u=Le(e,r,o),l=1+7*(t-1)+s+u;return 0>=l?(a=e-1,i=ge(a)+l):l>ge(e)?(a=e+1,i=l-ge(e)):(a=e,i=l),{year:a,dayOfYear:i}}function xe(e,t,n){var r,o,a=Le(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return 1>i?(o=e.year()-1,r=i+ke(o,t,n)):i>ke(e.year(),t,n)?(r=i-ke(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function ke(e,t,n){var r=Le(e,t,n),o=Le(e+1,t,n);return(ge(e)-r+o)/7}function Te(e,t,n){return null!=e?e:null!=t?t:n}function Se(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function De(e){var t,n,r,o,a=[];if(!e._d){for(r=Se(e),e._w&&null==e._a[zr]&&null==e._a[Ur]&&Pe(e),e._dayOfYear&&(o=Te(e._a[Fr],r[Fr]),e._dayOfYear>ge(o)&&(d(e)._overflowDayOfYear=!0),n=ve(o,0,e._dayOfYear),e._a[Ur]=n.getUTCMonth(),e._a[zr]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Br]&&0===e._a[Vr]&&0===e._a[qr]&&0===e._a[Gr]&&(e._nextDay=!0,e._a[Br]=0),e._d=(e._useUTC?ve:ye).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Br]=24)}}function Pe(e){var t,n,r,o,a,i,s,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(a=1,i=4,n=Te(t.GG,e._a[Fr],xe(Re(),1,4).year),r=Te(t.W,1),o=Te(t.E,1),(1>o||o>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,n=Te(t.gg,e._a[Fr],xe(Re(),a,i).year),r=Te(t.w,1),null!=t.d?(o=t.d,(0>o||o>6)&&(u=!0)):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a),1>r||r>ke(n,a,i)?d(e)._overflowWeeks=!0:null!=u?d(e)._overflowWeekday=!0:(s=we(n,r,o,a,i),e._a[Fr]=s.year,e._dayOfYear=s.dayOfYear)}function Ce(e){if(e._f===t.ISO_8601)return void me(e);e._a=[],d(e).empty=!0;var n,r,o,a,i,s=""+e._i,u=s.length,l=0;for(o=J(e._f,e._locale).match(vr)||[],n=0;n0&&d(e).unusedInput.push(i),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Mr[a]?(r?d(e).empty=!1:d(e).unusedTokens.push(a),ne(a,r,e)):e._strict&&!r&&d(e).unusedTokens.push(a);d(e).charsLeftOver=u-l,s.length>0&&d(e).unusedInput.push(s),d(e).bigHour===!0&&e._a[Br]<=12&&e._a[Br]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[Br]=Oe(e._locale,e._a[Br],e._meridiem),De(e),he(e)}function Oe(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function Ye(e){var t,n,r,o,a;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;oa)&&(r=a,n=t));u(e,n||t)}function Ee(e){if(!e._d){var t=I(e._i);e._a=i([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),De(e)}}function je(e){var t=new _(he(Ae(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ae(e){var t=e._i,n=e._f;return e._locale=e._locale||A(e._l),null===t||void 0===n&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new _(he(t)):(o(n)?Ye(e):n?Ce(e):a(t)?e._d=t:He(e),f(e)||(e._d=null),e))}function He(e){var n=e._i;void 0===n?e._d=new Date(t.now()):a(n)?e._d=new Date(n.valueOf()):"string"==typeof n?_e(e):o(n)?(e._a=i(n.slice(0),function(e){return parseInt(e,10)}),De(e)):"object"==typeof n?Ee(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function Ne(e,t,n,r,o){var a={};return"boolean"==typeof n&&(r=n,n=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,je(a)}function Re(e,t,n,r){return Ne(e,t,n,r,!1)}function Ie(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Re();for(n=t[0],r=1;re&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function Ve(e,t){var n=(t||"").match(e)||[],r=n[n.length-1]||[],o=(r+"").match(fo)||["-",0,0],a=+(60*o[1])+g(o[2]);return"+"===o[0]?a:-a}function qe(e,n){var r,o;return n._isUTC?(r=n.clone(),o=(y(e)||a(e)?e.valueOf():Re(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),t.updateOffset(r,!1),r):Re(e).local()}function Ge(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ke(e,n){var r,o=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Ve(Hr,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(r=Ge(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!n||this._changeInProgress?dt(this,at(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:Ge(this):null!=e?this:NaN}function Je(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function $e(e){return this.utcOffset(0,e)}function Xe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ge(this),"m")),this}function Qe(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ve(Ar,this._i)),this}function Ze(e){return this.isValid()?(e=e?Re(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function et(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tt(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=Ae(e),e._a){var t=e._isUTC?l(e._a):Re(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function nt(){return this.isValid()?!this._isUTC:!1}function rt(){return this.isValid()?this._isUTC:!1}function ot(){return this.isValid()?this._isUTC&&0===this._offset:!1}function at(e,t){var n,r,o,a=e,i=null;return ze(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(a={},t?a[t]=e:a.milliseconds=e):(i=po.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:g(i[zr])*n,h:g(i[Br])*n,m:g(i[Vr])*n,s:g(i[qr])*n,ms:g(i[Gr])*n}):(i=ho.exec(e))?(n="-"===i[1]?-1:1,a={y:it(i[2],n),M:it(i[3],n),w:it(i[4],n),d:it(i[5],n),h:it(i[6],n),m:it(i[7],n),s:it(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=ut(Re(a.from),Re(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new Ue(a),ze(e)&&s(e,"_locale")&&(r._locale=e._locale),r}function it(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function st(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ut(e,t){var n;return e.isValid()&&t.isValid()?(t=qe(t,e),e.isBefore(t)?n=st(e,t):(n=st(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function lt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function ct(e,t){return function(n,r){var o,a;return null===r||isNaN(+r)||(w(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),a=n,n=r,r=a),n="string"==typeof n?+n:n,o=at(n,r),dt(this,o,e),this}}function dt(e,n,r,o){var a=n._milliseconds,i=lt(n._days),s=lt(n._months);e.isValid()&&(o=null==o?!0:o,a&&e._d.setTime(e._d.valueOf()+a*r),i&&U(e,"Date",F(e,"Date")+i*r),s&&ue(e,F(e,"Month")+s*r),o&&t.updateOffset(e,i||s))}function ft(e,t){var n=e||Re(),r=qe(n,this).startOf("day"),o=this.diff(r,"days",!0),a=-6>o?"sameElse":-1>o?"lastWeek":0>o?"lastDay":1>o?"sameDay":2>o?"nextDay":7>o?"nextWeek":"sameElse",i=t&&(x(t[a])?t[a]():t[a]);return this.format(i||this.localeData().calendar(a,this,Re(n)))}function pt(){return new _(this)}function ht(e,t){var n=y(e)?e:Re(e);return this.isValid()&&n.isValid()?(t=R(h(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()t-a?(n=e.clone().add(o-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(o+1,"months"),r=(t-a)/(n-a)),-(o+r)||0}function Lt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wt(){var e=this.clone().utc();return 0a&&(t=a),Jt.call(this,e,t,n,r,o))}function Jt(e,t,n,r,o){var a=we(e,t,n,r,o),i=ve(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function $t(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Xt(e){return xe(e,this._week.dow,this._week.doy).week}function Qt(){return this._week.dow}function Zt(){return this._week.doy}function en(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function tn(e){var t=xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function nn(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function rn(e,t){return o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function on(e){return this._weekdaysShort[e.day()]}function an(e){return this._weekdaysMin[e.day()]}function sn(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;7>r;++r)a=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(o=mr.call(this._weekdaysParse,i),-1!==o?o:null):"ddd"===t?(o=mr.call(this._shortWeekdaysParse,i),-1!==o?o:null):(o=mr.call(this._minWeekdaysParse,i),-1!==o?o:null):"dddd"===t?(o=mr.call(this._weekdaysParse,i),-1!==o?o:(o=mr.call(this._shortWeekdaysParse,i),-1!==o?o:(o=mr.call(this._minWeekdaysParse,i),-1!==o?o:null))):"ddd"===t?(o=mr.call(this._shortWeekdaysParse,i),-1!==o?o:(o=mr.call(this._weekdaysParse,i),-1!==o?o:(o=mr.call(this._minWeekdaysParse,i),-1!==o?o:null))):(o=mr.call(this._minWeekdaysParse,i),-1!==o?o:(o=mr.call(this._weekdaysParse,i),-1!==o?o:(o=mr.call(this._shortWeekdaysParse,i),-1!==o?o:null)))}function un(e,t,n){var r,o,a;if(this._weekdaysParseExact)return sn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;7>r;r++){if(o=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function ln(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=nn(e,this.localeData()),this.add(e-t,"d")):t}function cn(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function dn(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN}function fn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}function pn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function hn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function mn(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],u=[],c=[];for(t=0;7>t;t++)n=l([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),i.push(r),s.push(o),u.push(a),c.push(r),c.push(o),c.push(a);for(i.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;7>t;t++)s[t]=Z(s[t]),u[t]=Z(u[t]),c[t]=Z(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function _n(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function yn(){return this.hours()%12||12}function vn(){return this.hours()||24}function gn(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function bn(e,t){return t._meridiemParse}function Mn(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ln(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function wn(e,t){t[Gr]=g(1e3*("0."+e))}function xn(){return this._isUTC?"UTC":""}function kn(){return this._isUTC?"Coordinated Universal Time":""}function Tn(e){return Re(1e3*e)}function Sn(){return Re.apply(null,arguments).parseZone()}function Dn(e,t,n){var r=this._calendar[e];return x(r)?r.call(t,n):r}function Pn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function Cn(){return this._invalidDate}function On(e){return this._ordinal.replace("%d",e)}function Yn(e){return e}function En(e,t,n,r){var o=this._relativeTime[n];return x(o)?o(e,t,n,r):o.replace(/%d/i,e)}function jn(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function An(e,t,n,r){var o=A(),a=l().set(r,t);return o[n](a,e)}function Hn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return An(e,t,n,"month");var r,o=[];for(r=0;12>r;r++)o[r]=An(e,r,n,"month");return o}function Nn(e,t,n,r){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var o=A(),a=e?o._week.dow:0;if(null!=n)return An(t,(n+a)%7,r,"day");var i,s=[];for(i=0;7>i;i++)s[i]=An(t,(i+a)%7,r,"day");return s}function Rn(e,t){return Hn(e,t,"months")}function In(e,t){return Hn(e,t,"monthsShort")}function Wn(e,t,n){return Nn(e,t,n,"weekdays")}function Fn(e,t,n){return Nn(e,t,n,"weekdaysShort")}function Un(e,t,n){return Nn(e,t,n,"weekdaysMin")}function zn(){var e=this._data;return this._milliseconds=Fo(this._milliseconds),this._days=Fo(this._days),this._months=Fo(this._months),e.milliseconds=Fo(e.milliseconds),e.seconds=Fo(e.seconds),e.minutes=Fo(e.minutes),e.hours=Fo(e.hours),e.months=Fo(e.months),e.years=Fo(e.years),this}function Bn(e,t,n,r){var o=at(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Vn(e,t){return Bn(this,e,t,1)}function qn(e,t){return Bn(this,e,t,-1)}function Gn(e){return 0>e?Math.floor(e):Math.ceil(e)}function Kn(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,u=this._data;return a>=0&&i>=0&&s>=0||0>=a&&0>=i&&0>=s||(a+=864e5*Gn($n(s)+i),i=0,s=0),u.milliseconds=a%1e3,e=v(a/1e3),u.seconds=e%60,t=v(e/60),u.minutes=t%60,n=v(t/60),u.hours=n%24,i+=v(n/24),o=v(Jn(i)),s+=o,i-=Gn($n(o)),r=v(s/12),s%=12,u.days=i,u.months=s,u.years=r,this}function Jn(e){return 4800*e/146097}function $n(e){return 146097*e/4800}function Xn(e){var t,n,r=this._milliseconds;if(e=R(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+Jn(t),"month"===e?n:n/12;switch(t=this._days+Math.round($n(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e); +}}function Qn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)}function Zn(e){return function(){return this.as(e)}}function er(e){return e=R(e),this[e+"s"]()}function tr(e){return function(){return this._data[e]}}function nr(){return v(this.days()/7)}function rr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function or(e,t,n){var r=at(e).abs(),o=ra(r.as("s")),a=ra(r.as("m")),i=ra(r.as("h")),s=ra(r.as("d")),u=ra(r.as("M")),l=ra(r.as("y")),c=o=a&&["m"]||a=i&&["h"]||i=s&&["d"]||s=u&&["M"]||u=l&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,rr.apply(null,c)}function ar(e,t){return void 0===oa[e]?!1:void 0===t?oa[e]:(oa[e]=t,!0)}function ir(e){var t=this.localeData(),n=or(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function sr(){var e,t,n,r=aa(this._milliseconds)/1e3,o=aa(this._days),a=aa(this._months);e=v(r/60),t=v(e/60),r%=60,e%=60,n=v(a/12),a%=12;var i=n,s=a,u=o,l=t,c=e,d=r,f=this.asSeconds();return f?(0>f?"-":"")+"P"+(i?i+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||d?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var ur,lr;lr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;n>r;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var cr=t.momentProperties=[],dr=!1,fr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var pr;pr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var hr,mr,_r={},yr={},vr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,gr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,br={},Mr={},Lr=/\d/,wr=/\d\d/,xr=/\d{3}/,kr=/\d{4}/,Tr=/[+-]?\d{6}/,Sr=/\d\d?/,Dr=/\d\d\d\d?/,Pr=/\d\d\d\d\d\d?/,Cr=/\d{1,3}/,Or=/\d{1,4}/,Yr=/[+-]?\d{1,6}/,Er=/\d+/,jr=/[+-]?\d+/,Ar=/Z|[+-]\d\d:?\d\d/gi,Hr=/Z|[+-]\d\d(?::?\d\d)?/gi,Nr=/[+-]?\d+(\.\d{1,3})?/,Rr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ir={},Wr={},Fr=0,Ur=1,zr=2,Br=3,Vr=4,qr=5,Gr=6,Kr=7,Jr=8;mr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=e?""+e:"+"+e}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),N("year","y"),$("Y",jr),$("YY",Sr,wr),$("YYYY",Or,kr),$("YYYYY",Yr,Tr),$("YYYYYY",Yr,Tr),ee(["YYYYY","YYYYYY"],Fr),ee("YYYY",function(e,n){n[Fr]=2===e.length?t.parseTwoDigitYear(e):g(e)}),ee("YY",function(e,n){n[Fr]=t.parseTwoDigitYear(e)}),ee("Y",function(e,t){t[Fr]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var so=W("FullYear",!0);t.ISO_8601=function(){};var uo=L("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Re.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:p()}),lo=L("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Re.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}),co=function(){return Date.now?Date.now():+new Date};Be("Z",":"),Be("ZZ",""),$("Z",Hr),$("ZZ",Hr),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ve(Hr,e)});var fo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var po=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,ho=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;at.fn=Ue.prototype;var mo=ct(1,"add"),_o=ct(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var yo=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zt("gggg","weekYear"),zt("ggggg","weekYear"),zt("GGGG","isoWeekYear"),zt("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),$("G",jr),$("g",jr),$("GG",Sr,wr),$("gg",Sr,wr),$("GGGG",Or,kr),$("gggg",Or,kr),$("GGGGG",Yr,Tr),$("ggggg",Yr,Tr),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=g(e)}),te(["gg","GG"],function(e,n,r,o){n[o]=t.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),N("quarter","Q"),$("Q",Lr),ee("Q",function(e,t){t[Ur]=3*(g(e)-1)}),V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),$("w",Sr),$("ww",Sr,wr),$("W",Sr),$("WW",Sr,wr),te(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=g(e)});var vo={dow:0,doy:6};V("D",["DD",2],"Do","date"),N("date","D"),$("D",Sr),$("DD",Sr,wr),$("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ee(["D","DD"],zr),ee("Do",function(e,t){t[zr]=g(e.match(Sr)[0],10)});var go=W("Date",!0);V("d",0,"do","day"),V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),$("d",Sr),$("e",Sr),$("E",Sr),$("dd",function(e,t){return t.weekdaysMinRegex(e)}),$("ddd",function(e,t){return t.weekdaysShortRegex(e)}),$("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:d(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,r){t[r]=g(e)});var bo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wo=Rr,xo=Rr,ko=Rr;V("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),$("DDD",Cr),$("DDDD",xr),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=g(e)}),V("H",["HH",2],0,"hour"),V("h",["hh",2],0,yn),V("k",["kk",2],0,vn),V("hmm",0,0,function(){return""+yn.apply(this)+B(this.minutes(),2)}),V("hmmss",0,0,function(){return""+yn.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),gn("a",!0),gn("A",!1),N("hour","h"),$("a",bn),$("A",bn),$("H",Sr),$("h",Sr),$("HH",Sr,wr),$("hh",Sr,wr),$("hmm",Dr),$("hmmss",Pr),$("Hmm",Dr),$("Hmmss",Pr),ee(["H","HH"],Br),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[Br]=g(e),d(n).bigHour=!0}),ee("hmm",function(e,t,n){var r=e.length-2;t[Br]=g(e.substr(0,r)),t[Vr]=g(e.substr(r)),d(n).bigHour=!0}),ee("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Br]=g(e.substr(0,r)),t[Vr]=g(e.substr(r,2)),t[qr]=g(e.substr(o)),d(n).bigHour=!0}),ee("Hmm",function(e,t,n){var r=e.length-2;t[Br]=g(e.substr(0,r)),t[Vr]=g(e.substr(r))}),ee("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Br]=g(e.substr(0,r)),t[Vr]=g(e.substr(r,2)),t[qr]=g(e.substr(o))});var To=/[ap]\.?m?\.?/i,So=W("Hours",!0);V("m",["mm",2],0,"minute"),N("minute","m"),$("m",Sr),$("mm",Sr,wr),ee(["m","mm"],Vr);var Do=W("Minutes",!1);V("s",["ss",2],0,"second"),N("second","s"),$("s",Sr),$("ss",Sr,wr),ee(["s","ss"],qr);var Po=W("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),$("S",Cr,Lr),$("SS",Cr,wr),$("SSS",Cr,xr);var Co;for(Co="SSSS";Co.length<=9;Co+="S")$(Co,Er);for(Co="S";Co.length<=9;Co+="S")ee(Co,wn);var Oo=W("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var Yo=_.prototype;Yo.add=mo,Yo.calendar=ft,Yo.clone=pt,Yo.diff=bt,Yo.endOf=Yt,Yo.format=xt,Yo.from=kt,Yo.fromNow=Tt,Yo.to=St,Yo.toNow=Dt,Yo.get=z,Yo.invalidAt=Ft,Yo.isAfter=ht,Yo.isBefore=mt,Yo.isBetween=_t,Yo.isSame=yt,Yo.isSameOrAfter=vt,Yo.isSameOrBefore=gt,Yo.isValid=It,Yo.lang=yo,Yo.locale=Pt,Yo.localeData=Ct,Yo.max=lo,Yo.min=uo,Yo.parsingFlags=Wt,Yo.set=z,Yo.startOf=Ot,Yo.subtract=_o,Yo.toArray=Ht,Yo.toObject=Nt,Yo.toDate=At,Yo.toISOString=wt,Yo.toJSON=Rt,Yo.toString=Lt,Yo.unix=jt,Yo.valueOf=Et,Yo.creationData=Ut,Yo.year=so,Yo.isLeapYear=Me,Yo.weekYear=Bt,Yo.isoWeekYear=Vt,Yo.quarter=Yo.quarters=$t,Yo.month=le,Yo.daysInMonth=ce,Yo.week=Yo.weeks=en,Yo.isoWeek=Yo.isoWeeks=tn,Yo.weeksInYear=Gt,Yo.isoWeeksInYear=qt,Yo.date=go,Yo.day=Yo.days=ln,Yo.weekday=cn,Yo.isoWeekday=dn,Yo.dayOfYear=_n,Yo.hour=Yo.hours=So,Yo.minute=Yo.minutes=Do,Yo.second=Yo.seconds=Po,Yo.millisecond=Yo.milliseconds=Oo,Yo.utcOffset=Ke,Yo.utc=$e,Yo.local=Xe,Yo.parseZone=Qe,Yo.hasAlignedHourOffset=Ze,Yo.isDST=et,Yo.isDSTShifted=tt,Yo.isLocal=nt,Yo.isUtcOffset=rt,Yo.isUtc=ot,Yo.isUTC=ot,Yo.zoneAbbr=xn,Yo.zoneName=kn,Yo.dates=L("dates accessor is deprecated. Use date instead.",go),Yo.months=L("months accessor is deprecated. Use month instead",le),Yo.years=L("years accessor is deprecated. Use year instead",so),Yo.zone=L("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Je);var Eo=Yo,jo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ao={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ho="Invalid date",No="%d",Ro=/\d{1,2}/,Io={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Wo=D.prototype;Wo._calendar=jo,Wo.calendar=Dn,Wo._longDateFormat=Ao,Wo.longDateFormat=Pn,Wo._invalidDate=Ho,Wo.invalidDate=Cn,Wo._ordinal=No,Wo.ordinal=On,Wo._ordinalParse=Ro,Wo.preparse=Yn,Wo.postformat=Yn,Wo._relativeTime=Io,Wo.relativeTime=En,Wo.pastFuture=jn,Wo.set=T,Wo.months=oe,Wo._months=Xr,Wo.monthsShort=ae,Wo._monthsShort=Qr,Wo.monthsParse=se,Wo._monthsRegex=eo,Wo.monthsRegex=fe,Wo._monthsShortRegex=Zr,Wo.monthsShortRegex=de,Wo.week=Xt,Wo._week=vo,Wo.firstDayOfYear=Zt,Wo.firstDayOfWeek=Qt,Wo.weekdays=rn,Wo._weekdays=bo,Wo.weekdaysMin=an,Wo._weekdaysMin=Lo,Wo.weekdaysShort=on,Wo._weekdaysShort=Mo,Wo.weekdaysParse=un,Wo._weekdaysRegex=wo,Wo.weekdaysRegex=fn,Wo._weekdaysShortRegex=xo,Wo.weekdaysShortRegex=pn,Wo._weekdaysMinRegex=ko,Wo.weekdaysMinRegex=hn,Wo.isPM=Mn,Wo._meridiemParse=To,Wo.meridiem=Ln,Y("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===g(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=L("moment.lang is deprecated. Use moment.locale instead.",Y),t.langData=L("moment.langData is deprecated. Use moment.localeData instead.",A);var Fo=Math.abs,Uo=Zn("ms"),zo=Zn("s"),Bo=Zn("m"),Vo=Zn("h"),qo=Zn("d"),Go=Zn("w"),Ko=Zn("M"),Jo=Zn("y"),$o=tr("milliseconds"),Xo=tr("seconds"),Qo=tr("minutes"),Zo=tr("hours"),ea=tr("days"),ta=tr("months"),na=tr("years"),ra=Math.round,oa={s:45,m:45,h:22,d:26,M:11},aa=Math.abs,ia=Ue.prototype;ia.abs=zn,ia.add=Vn,ia.subtract=qn,ia.as=Xn,ia.asMilliseconds=Uo,ia.asSeconds=zo,ia.asMinutes=Bo,ia.asHours=Vo,ia.asDays=qo,ia.asWeeks=Go,ia.asMonths=Ko,ia.asYears=Jo,ia.valueOf=Qn,ia._bubble=Kn,ia.get=er,ia.milliseconds=$o,ia.seconds=Xo,ia.minutes=Qo,ia.hours=Zo,ia.days=ea,ia.weeks=nr,ia.months=ta,ia.years=na,ia.humanize=ir,ia.toISOString=sr,ia.toString=sr,ia.toJSON=sr,ia.locale=Pt,ia.localeData=Ct,ia.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sr),ia.lang=yo,V("X",0,0,"unix"),V("x",0,0,"valueOf"),$("x",jr),$("X",Nr),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(g(e))}),t.version="2.13.0",r(Re),t.fn=Eo,t.min=We,t.max=Fe,t.now=co,t.utc=l,t.unix=Tn,t.months=Rn,t.isDate=a,t.locale=Y,t.invalid=p,t.duration=at,t.isMoment=y,t.weekdays=Wn,t.parseZone=Sn,t.localeData=A,t.isDuration=ze,t.monthsShort=In,t.weekdaysMin=Un,t.defineLocale=E,t.updateLocale=j,t.locales=H,t.weekdaysShort=Fn,t.normalizeUnits=R,t.relativeTimeThreshold=ar,t.prototype=Eo;var sa=t;return sa})}).call(t,n(318)(e))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];s["default"].apply(void 0,[e,t].concat(r))}function a(){u={}}t.__esModule=!0,t["default"]=o,t._resetWarned=a;var i=n(15),s=r(i),u={}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===U?e.documentElement:e.firstChild:null}function a(e){var t=o(e);return t&&$.getID(t)}function i(e){var t=s(e);if(t)if(W.hasOwnProperty(t)){var n=W[t];n!==e&&(d(n,t)?H(!1):void 0,W[t]=e)}else W[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(I)||""}function u(e,t){var n=s(e);n!==t&&delete W[n],e.setAttribute(I,t),W[t]=e}function l(e){return W.hasOwnProperty(e)&&d(W[e],e)||(W[e]=$.findReactNodeByID(e)),W[e]}function c(e){var t=T.get(e)._rootNodeID;return x.isNullComponentID(t)?null:(W.hasOwnProperty(t)&&d(W[t],t)||(W[t]=$.findReactNodeByID(t)),W[t])}function d(e,t){if(e){s(e)!==t?H(!1):void 0;var n=$.findReactContainerForID(t);if(n&&j(n,e))return!0}return!1}function f(e){delete W[e]}function p(e){var t=W[e];return t&&d(t,e)?void(K=t):!1}function h(e){K=null,k.traverseAncestors(e,p);var t=K;return K=null,t}function m(e,t,n,r,o,a){L.useCreateElement&&(a=Y({},a),n.nodeType===U?a[B]=n:a[B]=n.ownerDocument);var i=P.mountComponent(e,t,r,a);e._renderedComponent._topLevelWrapper=e,$._mountImageIntoNode(i,n,o,r)}function _(e,t,n,r,o){var a=O.ReactReconcileTransaction.getPooled(r);a.perform(m,null,e,t,n,a,r,o),O.ReactReconcileTransaction.release(a)}function y(e,t){for(P.unmountComponent(e),t.nodeType===U&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function v(e){var t=a(e);return t?t!==k.getReactRootIDFromNodeID(t):!1}function g(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=k.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===q[r])return e}}return null}var b=n(42),M=n(69),L=(n(22),n(285)),w=n(12),x=n(292),k=n(43),T=n(51),S=n(295),D=n(13),P=n(31),C=n(102),O=n(14),Y=n(7),E=n(47),j=n(123),A=n(109),H=n(5),N=n(76),R=n(112),I=(n(114),n(6),b.ID_ATTRIBUTE_NAME),W={},F=1,U=9,z=11,B="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),V={},q={},G=[],K=null,J=function(){};J.prototype.isReactComponent={},J.prototype.render=function(){return this.props};var $={TopLevelWrapper:J,_instancesByReactRootID:V,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return $.scrollMonitor(n,function(){C.enqueueElementInternal(e,t),r&&C.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){!t||t.nodeType!==F&&t.nodeType!==U&&t.nodeType!==z?H(!1):void 0,M.ensureScrollValueMonitoring();var n=$.registerContainer(t);return V[n]=e,n},_renderNewRootComponent:function(e,t,n,r){var o=A(e,null),a=$._registerComponent(o,t);return O.batchedUpdates(_,o,a,t,n,r),o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?H(!1):void 0,$._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){w.isValidElement(t)?void 0:H(!1);var i=new w(J,null,null,null,null,null,t),u=V[a(n)];if(u){var l=u._currentElement,c=l.props;if(R(c,t)){var d=u._renderedComponent.getPublicInstance(),f=r&&function(){r.call(d)};return $._updateRootComponent(u,i,n,f),d}$.unmountComponentAtNode(n)}var p=o(n),h=p&&!!s(p),m=v(n),_=h&&!u&&!m,y=$._renderNewRootComponent(i,n,_,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):E)._renderedComponent.getPublicInstance();return r&&r.call(y),y},render:function(e,t,n){return $._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=a(e);return t&&(t=k.getReactRootIDFromNodeID(t)),t||(t=k.createReactRootID()),q[t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==F&&e.nodeType!==U&&e.nodeType!==z?H(!1):void 0;var t=a(e),n=V[t];if(!n){var r=(v(e),s(e));r&&r===k.getReactRootIDFromNodeID(r);return!1}return O.batchedUpdates(y,n,e),delete V[t],delete q[t],!0},findReactContainerForID:function(e){var t=k.getReactRootIDFromNodeID(e),n=q[t];return n},findReactNodeByID:function(e){var t=$.findReactContainerForID(e);return $.findComponentRoot(t,e)},getFirstReactDOM:function(e){return g(e)},findComponentRoot:function(e,t){var n=G,r=0,o=h(t)||e;for(n[0]=o.firstChild,n.length=1;r1){for(var p=Array(f),h=0;f>h;h++)p[h]=arguments[h+2];a.children=p}if(e&&e.defaultProps){var m=e.defaultProps;for(o in m)"undefined"==typeof a[o]&&(a[o]=m[o])}return s(e,u,l,c,d,r.current,a)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){var n=s(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},s.cloneAndReplaceProps=function(e,t){var n=s(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},s.cloneElement=function(e,t,n){var a,u=o({},e.props),l=e.key,c=e.ref,d=e._self,f=e._source,p=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,p=r.current),void 0!==t.key&&(l=""+t.key);for(a in t)t.hasOwnProperty(a)&&!i.hasOwnProperty(a)&&(u[a]=t[a])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var m=Array(h),_=0;h>_;_++)m[_]=arguments[_+2];u.children=m}return s(e.type,l,c,d,f,p,u)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},e.exports=s},function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o},function(e,t,n){"use strict";function r(){T.ReactReconcileTransaction&&b?void 0:_(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled(!1)}function a(e,t,n,o,a,i){r(),b.batchedUpdates(e,t,n,o,a,i)}function i(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?_(!1):void 0,y.sort(i);for(var n=0;t>n;n++){var r=y[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,p.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var a=0;aba&&setTimeout(function(){u.display.input.reset(!0)},20),Ut(this),$o(),bt(this),this.curOp.forceUpdate=!0,$r(this,o),r.autofocus&&!Pa||u.hasFocus()?setTimeout(Io(yn,this),20):vn(this);for(var c in ti)ti.hasOwnProperty(c)&&ti[c](this,r[c],ni);L(this),r.finishInit&&r.finishInit(this);for(var d=0;dba&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),Ma||_a&&Pa||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null, +r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,n.init(r)}function n(t){t.doc.mode=e.getMode(t.options,t.doc.modeOption),r(t)}function r(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,Ie(e,100),e.state.modeGen++,e.curOp&&At(e)}function o(e){e.options.lineWrapping?(Qi(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Xi(e.display.wrapper,"CodeMirror-wrap"),f(e)),i(e),At(e),st(e),setTimeout(function(){v(e)},100)}function a(e){var t=vt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/gt(e.display)-3);return function(o){if(Lr(e.doc,o))return 0;var a=0;if(o.widgets)for(var i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function p(e){var t=jo(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function h(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Be(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+qe(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function m(e,t,n){this.cm=n;var r=this.vert=zo("div",[zo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=zo("div",[zo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Ci(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ci(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ga&&8>ba&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function _(){}function y(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Xi(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new e.scrollbarModel[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),Ci(e,"mousedown",function(){t.state.focused&&setTimeout(function(){t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?on(t,e):rn(t,e)},t),t.display.scrollbars.addClass&&Qi(t.display.wrapper,t.display.scrollbars.addClass)}function v(e,t){t||(t=h(e));var n=e.display.barWidth,r=e.display.barHeight;g(e,t);for(var o=0;4>o&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&O(e),g(e,h(e)),n=e.display.barWidth,r=e.display.barHeight}function g(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 b(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-ze(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,a=no(t,r),i=no(t,o);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;a>s?(a=s,i=no(t,ro(Xr(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=i&&(a=no(t,ro(Xr(t,u))-e.wrapper.clientHeight),i=u)}return{from:a,to:Math.max(i,a+1)}}function M(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=x(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,a=r+"px",i=0;i=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ft(e))return!1;L(e)&&(Nt(e),t.dims=E(e));var o=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),i=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFromi&&n.viewTo-i<20&&(i=Math.min(o,n.viewTo)),Na&&(a=br(e.doc,a),i=Mr(e.doc,i));var s=a!=n.viewFrom||i!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wt(e,a,i),n.viewOffset=ro(Xr(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=Ft(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=qo();return u>4&&(n.lineDiv.style.display="none"),j(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,l&&qo()!=l&&l.offsetHeight&&l.focus(),Bo(n.cursorDiv),Bo(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ie(e,400)),n.updateLineNumbers=null,!0}function D(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ge(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Be(e.display)-Ke(e),n.top)}),t.visible=b(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&S(e,t);r=!1){O(e);var o=h(e);je(e),v(e,o),C(e,o)}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 P(e,t){var n=new k(e,t);if(S(e,n)){O(e),D(e,n);var r=h(e);je(e),v(e,r),C(e,r),n.finish()}}function C(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+qe(e)+"px"}function O(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;rba){var i=a.node.offsetTop+a.node.offsetHeight;o=i-n,n=i}else{var s=a.node.getBoundingClientRect();o=s.bottom-s.top}var u=a.line.height-o;if(2>o&&(o=vt(t)),(u>.001||-.001>u)&&(eo(a.line,o),Y(a.line),a.rest))for(var l=0;l=t&&d.lineNumber;d.changes&&(jo(d.changes,"gutter")>-1&&(f=!1),A(e,d,l,n)),f&&(Bo(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(w(e.options,l)))),s=d.node.nextSibling}else{var p=z(e,d,l,n);i.insertBefore(p,s)}l+=d.size}for(;s;)s=r(s)}function A(e,t,n,r){for(var o=0;oba&&(e.node.style.zIndex=2)),e.node}function N(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=H(e);e.background=n.insertBefore(zo("div",null,t),n.firstChild)}}function R(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Rr(e,t)}function I(e,t){var n=t.text.className,r=R(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,W(t)):n&&(t.text.className=n)}function W(e){N(e),e.line.wrapClass?H(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function F(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=H(t);t.gutterBackground=zo("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var o=H(t),i=t.gutter=zo("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(i),o.insertBefore(i,t.text),t.line.gutterClass&&(i.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=i.appendChild(zo("div",w(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var s=0;s1)if(Wa&&Wa.join("\n")==t){if(r.ranges.length%Wa.length==0){u=[];for(var l=0;l=0;l--){var c=r.ranges[l],d=c.from(),f=c.to();c.empty()&&(n&&n>0?d=Ra(d.line,d.ch-n):e.state.overwrite&&!i&&(f=Ra(f.line,Math.min(Xr(a,f.line).text.length,f.ch+Eo(s).length))));var p=e.curOp.updateInput,h={from:d,to:f,text:u?u[l%u.length]:s,origin:o||(i?"paste":e.state.cutIncoming?"cut":"+input")};Tn(e.doc,h),ko(e,"inputRead",e,h)}t&&!i&&Z(e,t),Rn(e),e.curOp.updateInput=p,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Q(e,t){var n=e.clipboardData&&e.clipboardData.getData("text/plain");return n?(e.preventDefault(),t.isReadOnly()||t.options.disableInput||Pt(t,function(){X(t,n,0,null,"paste")}),!0):void 0}function Z(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 a=e.getModeAt(o.head),i=!1;if(a.electricChars){for(var s=0;s-1){i=Wn(e,o.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Xr(e.doc,o.head.line).text.slice(0,o.head.ch))&&(i=Wn(e,o.head.line,"smart"));i&&ko(e,"electricInput",e,o.head.line)}}}function ee(e){for(var t=[],n=[],r=0;ro?l.map:c[o],i=0;io?e.line:e.rest[o]),d=a[i]+r;return(0>r||s!=t)&&(d=a[i+(r?1:0)]),Ra(u,d)}}}var o=e.text.firstChild,a=!1;if(!t||!Ki(o,t))return ie(Ra(to(e.line),0),!0);if(t==o&&(a=!0,t=o.childNodes[n],n=0,!t)){var i=e.rest?Eo(e.rest):e.line;return ie(Ra(to(i),i.text.length),a)}var s=3==t.nodeType?t:null,u=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));u.parentNode!=o;)u=u.parentNode;var l=e.measure,c=l.maps,d=r(s,u,n);if(d)return ie(d,a);for(var f=u.nextSibling,p=s?s.nodeValue.length-n:0;f;f=f.nextSibling){if(d=r(f,f.firstChild,0))return ie(Ra(d.line,d.ch-p),a);p+=f.textContent.length}for(var h=u.previousSibling,p=n;h;h=h.previousSibling){if(d=r(h,h.firstChild,-1))return ie(Ra(d.line,d.ch+p),a);p+=f.textContent.length}}function le(e,t,n,r,o){function a(e){return function(t){return t.id==e}}function i(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return""==n&&(n=t.textContent.replace(/\u200b/g,"")),void(s+=n);var c,d=t.getAttribute("cm-marker");if(d){var f=e.findMarks(Ra(r,0),Ra(o+1,0),a(+d));return void(f.length&&(c=f[0].find())&&(s+=Qr(e.doc,c.from,c.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;for(var p=0;p=0){var i=J(a.from(),o.from()),s=K(a.to(),o.to()),u=a.empty()?o.from()==o.head:a.from()==a.head;t>=r&&--t,e.splice(--r,2,new de(u?s:i,u?i:s))}}return new ce(e,t)}function pe(e,t){return new ce([new de(e,t||e)],0)}function he(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.linen?Ra(n,Xr(e,n).text.length):_e(t,Xr(e,t.line).text.length)}function _e(e,t){var n=e.ch;return null==n||n>t?Ra(e.line,t):0>n?Ra(e.line,0):e}function ye(e,t){return t>=e.first&&t=t.ch:s.to>t.ch))){if(o&&(Ei(u,"beforeCursorEnter"),u.explicitlyCleared)){if(a.markedSpans){--i;continue}break}if(!u.atomic)continue;if(n){var l,c=u.find(0>r?1:-1);if((0>r?u.inclusiveRight:u.inclusiveLeft)&&(c=Ee(e,c,-r,c&&c.line==t.line?a:null)),c&&c.line==t.line&&(l=Ia(c,n))&&(0>r?0>l:l>0))return Oe(e,c,t,r,o)}var d=u.find(0>r?-1:1);return(0>r?u.inclusiveLeft:u.inclusiveRight)&&(d=Ee(e,d,r,d.line==t.line?a:null)),d?Oe(e,d,t,r,o):null}}return t}function Ye(e,t,n,r,o){var a=r||1,i=Oe(e,t,n,a,o)||!o&&Oe(e,t,n,a,!0)||Oe(e,t,n,-a,o)||!o&&Oe(e,t,n,-a,!0);return i?i:(e.cantEdit=!0,Ra(e.first,0))}function Ee(e,t,n,r){return 0>n&&0==t.ch?t.line>e.first?me(e,Ra(t.line-1)):null:n>0&&t.ch==(r||Xr(e,t.line)).text.length?t.line=e.display.viewTo||s.to().linet&&(t=0),t=Math.round(t),r=Math.round(r),s.appendChild(zo("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?c-e:n)+"px; height: "+(r-t)+"px"))}function o(t,n,o){function a(n,r){return ft(e,Ra(t,n),"div",d,r)}var s,u,d=Xr(i,t),f=d.text.length;return ta(oo(d),n||0,null==o?f:o,function(e,t,i){var d,p,h,m=a(e,"left");if(e==t)d=m,p=h=m.left;else{if(d=a(t-1,"right"),"rtl"==i){var _=m;m=d,d=_}p=m.left,h=d.right}null==n&&0==e&&(p=l),d.top-m.top>3&&(r(p,m.top,null,m.bottom),p=l,m.bottomu.bottom||d.bottom==u.bottom&&d.right>u.right)&&(u=d),l+1>p&&(p=l),r(p,d.top,h-p,d.bottom)}),{start:s,end:u}}var a=e.display,i=e.doc,s=document.createDocumentFragment(),u=Ve(e.display),l=u.left,c=Math.max(a.sizerWidth,Ge(e)-a.sizer.offsetLeft)-u.right,d=t.from(),f=t.to();if(d.line==f.line)o(d.line,d.ch,f.ch);else{var p=Xr(i,d.line),h=Xr(i,f.line),m=vr(p)==vr(h),_=o(d.line,d.ch,m?p.text.length+1:null).end,y=o(f.line,m?0:null,f.ch).start;m&&(_.top0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ie(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ui(t.mode,Ue(e,t.frontier)),o=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(t.frontier>=e.display.viewFrom){var i=a.styles,s=a.text.length>e.options.maxHighlightLength,u=jr(e,a,s?ui(t.mode,r):r,!0);a.styles=u.styles;var l=a.styleClasses,c=u.classes;c?a.styleClasses=c:l&&(a.styleClasses=null);for(var d=!i||i.length!=a.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),f=0;!d&&fn?(Ie(e,e.options.workDelay),!0):void 0}),o.length&&Pt(e,function(){for(var t=0;ti;--s){if(s<=a.first)return a.first;var u=Xr(a,s-1);if(u.stateAfter&&(!n||s<=a.frontier))return s;var l=Wi(u.text,null,e.options.tabSize);(null==o||r>l)&&(o=s-1,r=l)}return o}function Ue(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return!0;var a=Fe(e,t,n),i=a>r.first&&Xr(r,a-1).stateAfter;return i=i?ui(r.mode,i):li(r.mode),r.iter(a,t,function(n){Hr(e,n.text,i);var s=a==t-1||a%5==0||a>=o.viewFrom&&a2&&a.push((u.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}function $e(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Xe(e,t){t=vr(t);var n=to(t),r=e.display.externalMeasured=new Et(e.doc,t,n);r.lineN=n;var o=r.built=Rr(e,r);return r.text=o.pre,Vo(e.display.lineMeasure,o.pre),r}function Qe(e,t,n,r){return tt(e,et(e,t),n,r)}function Ze(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt?(o=0,a=1,i="left"):l>t?(o=t-u,a=o+1):(s==e.length-3||t==l&&e[s+3]>t)&&(a=l-u,o=a-1,t>=l&&(i="right")),null!=o){if(r=e[s+2],u==l&&n==(r.insertLeft?"left":"right")&&(i=n),"left"==n&&0==o)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[(s-=3)+2],i="left";if("right"==n&&o==l-u)for(;sc;c++){for(;s&&Uo(t.line.text.charAt(a.coverStart+s));)--s;for(;a.coverStart+uba&&0==s&&u==a.coverEnd-a.coverStart)o=i.parentNode.getBoundingClientRect();else if(ga&&e.options.lineWrapping){var d=Bi(i,s,u).getClientRects();o=d.length?d["right"==r?d.length-1:0]:Ba}else o=Bi(i,s,u).getBoundingClientRect()||Ba;if(o.left||o.right||0==s)break;u=s,s-=1,l="right"}ga&&11>ba&&(o=ot(e.display.measure,o))}else{s>0&&(l=r="right");var d;o=e.options.lineWrapping&&(d=i.getClientRects()).length>1?d["right"==r?d.length-1:0]:i.getBoundingClientRect()}if(ga&&9>ba&&!s&&(!o||!o.left&&!o.right)){var f=i.parentNode.getClientRects()[0];o=f?{left:f.left,right:f.left+gt(e.display),top:f.top,bottom:f.bottom}:Ba}for(var p=o.top-t.rect.top,h=o.bottom-t.rect.top,m=(p+h)/2,_=t.view.measure.heights,c=0;c<_.length-1&&!(m<_[c]);c++);var y=c?_[c-1]:0,v=_[c],g={left:("right"==l?o.right:o.left)-t.rect.left,right:("left"==l?o.left:o.right)-t.rect.left,top:y,bottom:v};return o.left||o.right||(g.bogus=!0),e.options.singleCursorHeightPerLine||(g.rtop=p,g.rbottom=h),g}function ot(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!ea(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function at(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;tn.from?i(e-1):i(e,r)}r=r||Xr(e.doc,t.line),o||(o=et(e,r));var u=oo(r),l=t.ch;if(!u)return i(l);var c=ca(u,l),d=s(l,c);return null!=is&&(d.other=s(l,is)),d}function ht(e,t){var n=0,t=me(e.doc,t);e.options.lineWrapping||(n=gt(e.display)*t.ch);var r=Xr(e.doc,t.line),o=ro(r)+ze(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function mt(e,t,n,r){var o=Ra(e,t);return o.xRel=r,n&&(o.outside=!0),o}function _t(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,0>n)return mt(r.first,0,!0,-1);var o=no(r,n),a=r.first+r.size-1;if(o>a)return mt(r.first+r.size-1,Xr(r,a).text.length,!0,1);0>t&&(t=0);for(var i=Xr(r,o);;){var s=yt(e,i,o,t,n),u=_r(i),l=u&&u.find(0,!0);if(!u||!(s.ch>l.from.ch||s.ch==l.from.ch&&s.xRel>0))return s;o=to(i=l.to.line)}}function yt(e,t,n,r,o){function a(r){var o=pt(e,Ra(n,r),"line",t,l);return s=!0,i>o.bottom?o.left-u:i_)return mt(n,p,y,1);for(;;){if(c?p==f||p==fa(t,f,1):1>=p-f){for(var v=h>r||_-r>=r-h?f:p,g=r-(v==f?h:_);Uo(t.text.charAt(v));)++v;var b=mt(n,v,v==f?m:y,-1>g?-1:g>1?1:0);return b}var M=Math.ceil(d/2),L=f+M;if(c){L=f;for(var w=0;M>w;++w)L=fa(t,L,1)}var x=a(L);x>r?(p=L,_=x,(y=s)&&(_+=1e3),d=M):(f=L,h=x,m=s,d-=M)}}function vt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Fa){Fa=zo("pre");for(var t=0;49>t;++t)Fa.appendChild(document.createTextNode("x")),Fa.appendChild(zo("br"));Fa.appendChild(document.createTextNode("x"))}Vo(e.measure,Fa);var n=Fa.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Bo(e.measure),n||1}function gt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=zo("span","xxxxxxxxxx"),n=zo("pre",[t]);Vo(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function bt(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:++qa},Va?Va.ops.push(e.curOp):e.curOp.ownsGroup=Va={ops:[e.curOp],delayedCallbacks:[]}}function Mt(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new k(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function kt(e){e.updatedDisplay=e.mustUpdate&&S(e.cm,e.update)}function Tt(e){var t=e.cm,n=t.display;e.updatedDisplay&&O(t),e.barMeasure=h(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Qe(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+qe(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ge(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function St(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLefta;a=r){var i=new Et(e.doc,Xr(e.doc,a),a);r=a+i.size,o.push(i)}return o}function At(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&nt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Na&&br(e.doc,t)o.viewFrom?Nt(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Nt(e);else if(t<=o.viewFrom){var a=It(e,n,n+r,1);a?(o.view=o.view.slice(a.index),o.viewFrom=a.lineN,o.viewTo+=r):Nt(e)}else if(n>=o.viewTo){var a=It(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Nt(e)}else{var i=It(e,t,t,-1),s=It(e,n,n+r,1);i&&s?(o.view=o.view.slice(0,i.index).concat(jt(e,i.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):Nt(e)}var u=o.externalMeasured;u&&(n=o.lineN&&t=r.viewTo)){var a=r.view[Rt(e,t)];if(null!=a.node){var i=a.changes||(a.changes=[]);-1==jo(i,n)&&i.push(n)}}}function Nt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,0>t)return null;for(var n=e.display.view,r=0;rt)return r}function It(e,t,n,r){var o,a=Rt(e,t),i=e.display.view;if(!Na||n==e.doc.first+e.doc.size)return{index:a,lineN:n};for(var s=0,u=e.display.viewFrom;a>s;s++)u+=i[s].size;if(u!=t){if(r>0){if(a==i.length-1)return null;o=u+i[a].size-t,a++}else o=u-t;t+=o,n+=o}for(;br(e.doc,n)!=n;){if(a==(0>r?0:i.length-1))return null;n+=r*i[a-(0>r?1:0)].size,a+=r}return{index:a,lineN:n}}function Wt(e,t,n){var r=e.display,o=r.view;0==o.length||t>=r.viewTo||n<=r.viewFrom?(r.view=jt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=jt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Rt(e,n)))),r.viewTo=n}function Ft(e){for(var t=e.display.view,n=0,r=0;r400}var o=e.display;Ci(o.scroller,"mousedown",Ct(e,Gt)),ga&&11>ba?Ci(o.scroller,"dblclick",Ct(e,function(t){if(!So(e,t)){var n=qt(e,t);if(n&&!Qt(e,t)&&!Vt(e.display,t)){Si(t);var r=e.findWordAt(n);be(e.doc,r.anchor,r.head)}}})):Ci(o.scroller,"dblclick",function(t){So(e,t)||Si(t)}),Aa||Ci(o.scroller,"contextmenu",function(t){gn(e,t)});var a,i={end:0};Ci(o.scroller,"touchstart",function(t){if(!So(e,t)&&!n(t)){clearTimeout(a);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-i.end<=300?i:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),Ci(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Ci(o.scroller,"touchend",function(n){var a=o.activeTouch;if(a&&!Vt(o,n)&&null!=a.left&&!a.moved&&new Date-a.start<300){var i,s=e.coordsChar(o.activeTouch,"page");i=!a.prev||r(a,a.prev)?new de(s,s):!a.prev.prev||r(a,a.prev.prev)?e.findWordAt(s):new de(Ra(s.line,0),me(e.doc,Ra(s.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Si(n)}t()}),Ci(o.scroller,"touchcancel",t),Ci(o.scroller,"scroll",function(){o.scroller.clientHeight&&(rn(e,o.scroller.scrollTop),on(e,o.scroller.scrollLeft,!0),Ei(e,"scroll",e))}),Ci(o.scroller,"mousewheel",function(t){an(e,t)}),Ci(o.scroller,"DOMMouseScroll",function(t){an(e,t)}),Ci(o.wrapper,"scroll",function(){o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){So(e,t)||Pi(t)},over:function(t){So(e,t)||(tn(e,t),Pi(t))},start:function(t){en(e,t)},drop:Ct(e,Zt),leave:function(t){So(e,t)||nn(e)}};var s=o.input.getField();Ci(s,"keyup",function(t){hn.call(e,t)}),Ci(s,"keydown",Ct(e,fn)),Ci(s,"keypress",Ct(e,mn)),Ci(s,"focus",Io(yn,e)),Ci(s,"blur",Io(vn,e))}function zt(t,n,r){var o=r&&r!=e.Init;if(!n!=!o){var a=t.display.dragFunctions,i=n?Ci:Yi;i(t.display.scroller,"dragstart",a.start),i(t.display.scroller,"dragenter",a.enter),i(t.display.scroller,"dragover",a.over),i(t.display.scroller,"dragleave",a.leave),i(t.display.scroller,"drop",a.drop)}}function Bt(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Vt(e,t){for(var n=Lo(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function qt(e,t,n,r){var o=e.display;if(!n&&"true"==Lo(t).getAttribute("cm-not-content"))return null;var a,i,s=o.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,i=t.clientY-s.top}catch(t){return null}var u,l=_t(e,a,i);if(r&&1==l.xRel&&(u=Xr(e.doc,l.line).text).length==l.ch){var c=Wi(u,u.length,e.options.tabSize)-u.length;l=Ra(l.line,Math.max(0,Math.round((a-Ve(e.display).left)/gt(e.display))-c))}return l}function Gt(e){var t=this,n=t.display;if(!(So(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.shift=e.shiftKey,Vt(n,e))return void(Ma||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!Qt(t,e)){var r=qt(t,e);switch(window.focus(),wo(e)){case 1:t.state.selectingText?t.state.selectingText(e):r?Kt(t,e,r):Lo(e)==n.scroller&&Si(e);break;case 2:Ma&&(t.state.lastMiddleDown=+new Date),r&&be(t.doc,r),setTimeout(function(){n.input.focus()},20),Si(e);break;case 3:Aa?gn(t,e):_n(t)}}}}function Kt(e,t,n){ga?setTimeout(Io($,e),0):e.curOp.focus=qo();var r,o=+new Date;za&&za.time>o-400&&0==Ia(za.pos,n)?r="triple":Ua&&Ua.time>o-400&&0==Ia(Ua.pos,n)?(r="double",za={time:o,pos:n}):(r="single",Ua={time:o,pos:n});var a,i=e.doc.sel,s=Ca?t.metaKey:t.ctrlKey;e.options.dragDrop&&es&&!e.isReadOnly()&&"single"==r&&(a=i.contains(n))>-1&&(Ia((a=i.ranges[a]).from(),n)<0||n.xRel>0)&&(Ia(a.to(),n)>0||n.xRel<0)?Jt(e,t,n,s):$t(e,t,n,r,s)}function Jt(e,t,n,r){var o=e.display,a=+new Date,i=Ct(e,function(s){Ma&&(o.scroller.draggable=!1),e.state.draggingText=!1,Yi(document,"mouseup",i),Yi(o.scroller,"drop",i),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(Si(s),!r&&+new Date-200=h;h++){var y=Xr(l,h).text,v=Fi(y,u,a);u==p?o.push(new de(Ra(h,v),Ra(h,v))):y.length>v&&o.push(new de(Ra(h,v),Ra(h,Fi(y,p,a))))}o.length||o.push(new de(n,n)),Te(l,fe(f.ranges.slice(0,d).concat(o),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var g=c,b=g.anchor,M=t;if("single"!=r){if("double"==r)var L=e.findWordAt(t);else var L=new de(Ra(t.line,0),me(l,Ra(t.line+1,0)));Ia(L.anchor,b)>0?(M=L.head,b=J(g.from(),L.anchor)):(M=L.anchor,b=K(g.to(),L.head))}var o=f.ranges.slice(0);o[d]=new de(me(l,b),M),Te(l,fe(o,d),Ri)}}function i(t){var n=++v,o=qt(e,t,!0,"rect"==r);if(o)if(0!=Ia(o,_)){e.curOp.focus=qo(),a(o);var s=b(u,l);(o.line>=s.to||o.liney.bottom?20:0;c&&setTimeout(Ct(e,function(){v==n&&(u.scroller.scrollTop+=c,i(t))}),50)}}function s(t){e.state.selectingText=!1,v=1/0,Si(t),u.input.focus(),Yi(document,"mousemove",g),Yi(document,"mouseup",M),l.history.lastSelOrigin=null}var u=e.display,l=e.doc;Si(t);var c,d,f=l.sel,p=f.ranges;if(o&&!t.shiftKey?(d=l.sel.contains(n),c=d>-1?p[d]:new de(n,n)):(c=l.sel.primary(),d=l.sel.primIndex),Oa?t.shiftKey&&t.metaKey:t.altKey)r="rect",o||(c=new de(n,n)),n=qt(e,t,!0,!0),d=-1;else if("double"==r){var h=e.findWordAt(n);c=e.display.shift||l.extend?ge(l,c,h.anchor,h.head):h}else if("triple"==r){var m=new de(Ra(n.line,0),me(l,Ra(n.line+1,0)));c=e.display.shift||l.extend?ge(l,c,m.anchor,m.head):m}else c=ge(l,c,n);o?-1==d?(d=p.length,Te(l,fe(p.concat([c]),d),{scroll:!1,origin:"*mouse"})):p.length>1&&p[d].empty()&&"single"==r&&!t.shiftKey?(Te(l,fe(p.slice(0,d).concat(p.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),f=l.sel):Le(l,d,c,Ri):(d=0,Te(l,new ce([c],0),Ri),f=l.sel);var _=n,y=u.wrapper.getBoundingClientRect(),v=0,g=Ct(e,function(e){wo(e)?i(e):s(e)}),M=Ct(e,s);e.state.selectingText=M,Ci(document,"mousemove",g),Ci(document,"mouseup",M)}function Xt(e,t,n,r){try{var o=t.clientX,a=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Si(t);var i=e.display,s=i.lineDiv.getBoundingClientRect();if(a>s.bottom||!Po(e,n))return Mo(t);a-=s.top-i.viewOffset;for(var u=0;u=o){var c=no(e.doc,a),d=e.options.gutters[u];return Ei(e,n,e,c,d,t),Mo(t)}}}function Qt(e,t){return Xt(e,t,"gutterClick",!0)}function Zt(e){var t=this;if(nn(t),!So(t,e)&&!Vt(t.display,e)){Si(e),ga&&(Ga=+new Date);var n=qt(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,a=Array(o),i=0,s=function(e,r){if(!t.options.allowDropFileTypes||-1!=jo(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=Ct(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),a[r]=e,++i==o){n=me(t.doc,n);var u={from:n,to:n,text:t.doc.splitLines(a.join(t.doc.lineSeparator())),origin:"paste"};Tn(t.doc,u),ke(t.doc,pe(n,Za(u)))}}),s.readAsText(e)}},u=0;o>u;++u)s(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var a=e.dataTransfer.getData("Text");if(a){if(t.state.draggingText&&!(Ca?e.altKey:e.ctrlKey))var l=t.listSelections();if(Se(t.doc,pe(n,n)),l)for(var u=0;ui.clientWidth,u=i.scrollHeight>i.clientHeight;if(r&&s||o&&u){if(o&&Ca&&Ma)e:for(var l=t.target,c=a.view;l!=i;l=l.parentNode)for(var d=0;df?p=Math.max(0,p+f-50):h=Math.min(e.doc.height,h+f+50),P(e,{top:p,bottom:h})}20>Ka&&(null==a.wheelStartX?(a.wheelStartX=i.scrollLeft,a.wheelStartY=i.scrollTop,a.wheelDX=r,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=i.scrollLeft-a.wheelStartX,t=i.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Ja=(Ja*Ka+n)/(Ka+1),++Ka)}},200)):(a.wheelDX+=r,a.wheelDY+=o))}}function sn(e,t,n){if("string"==typeof t&&(t=ci[t],!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)!=Hi}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function un(e,t,n){for(var r=0;rba&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=cn(t,e);xa&&(Qa=r?n:null,!r&&88==n&&!rs&&(Ca?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||pn(t)}}function pn(e){function t(e){18!=e.keyCode&&e.altKey||(Xi(n,"CodeMirror-crosshair"),Yi(document,"keyup",t),Yi(document,"mouseover",t))}var n=e.display.lineDiv;Qi(n,"CodeMirror-crosshair"),Ci(document,"keyup",t),Ci(document,"mouseover",t)}function hn(e){16==e.keyCode&&(this.doc.sel.shift=!1),So(this,e)}function mn(e){var t=this;if(!(Vt(t.display,e)||So(t,e)||e.ctrlKey&&!e.altKey||Ca&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(xa&&n==Qa)return Qa=null,void Si(e);if(!xa||e.which&&!(e.which<10)||!cn(t,e)){var o=String.fromCharCode(null==r?n:r);dn(t,e,o)||t.display.input.onKeyPress(e)}}}function _n(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,vn(e))},100)}function yn(e){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ei(e,"focus",e),e.state.focused=!0,Qi(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),Ma&&setTimeout(function(){e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Re(e))}function vn(e){e.state.delayingBlurEvent||(e.state.focused&&(Ei(e,"blur",e),e.state.focused=!1,Xi(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function gn(e,t){Vt(e.display,t)||bn(e,t)||So(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function bn(e,t){return Po(e,"gutterContextMenu")?Xt(e,t,"gutterContextMenu",!1):!1}function Mn(e,t){if(Ia(e,t.from)<0)return e;if(Ia(e,t.to)<=0)return Za(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+=Za(t).ch-t.to.ch),Ra(n,r)}function Ln(e,t){for(var n=[],r=0;r=0;--o)Sn(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text});else Sn(e,t)}}function Sn(e,t){if(1!=t.text.length||""!=t.text[0]||0!=Ia(t.from,t.to)){var n=Ln(e,t);lo(e,t,n,e.cm?e.cm.curOp.id:NaN),Cn(e,t,n,ar(e,t));var r=[];Jr(e,function(e,n){n||-1!=jo(r,e.history)||(bo(e.history,t),r.push(e.history)),Cn(e,t,null,ar(e,t))})}}function Dn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits){for(var r,o=e.history,a=e.sel,i="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--u){var d=r.changes[u];if(d.origin=t,c&&!kn(e,d,!1))return void(i.length=0);l.push(io(e,d));var f=u?Ln(e,d):Eo(i);Cn(e,d,f,sr(e,d)),!u&&e.cm&&e.cm.scrollIntoView({from:d.from,to:Za(d)});var p=[];Jr(e,function(e,t){t||-1!=jo(p,e.history)||(bo(e.history,d),p.push(e.history)),Cn(e,d,null,sr(e,d))})}}}}function Pn(e,t){if(0!=t&&(e.first+=t,e.sel=new ce(Ao(e.sel.ranges,function(e){return new de(Ra(e.anchor.line+t,e.anchor.ch),Ra(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){At(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linea&&(t={from:t.from,to:Ra(a,Xr(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qr(e,t.from,t.to),n||(n=Ln(e,t)),e.cm?On(e.cm,t,r):qr(e,t,r),Se(e,n,Ni)}}function On(e,t,n){var r=e.doc,o=e.display,i=t.from,s=t.to,u=!1,l=i.line;e.options.lineWrapping||(l=to(vr(Xr(r,i.line))),r.iter(l,s.line+1,function(e){return e==o.maxLine?(u=!0,!0):void 0})),r.sel.contains(t.from,t.to)>-1&&Do(e),qr(r,t,n,a(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,function(e){var t=d(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,u=!1)}),u&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,i.line),Ie(e,400);var c=t.text.length-(s.line-i.line)-1;t.full?At(e):i.line!=s.line||1!=t.text.length||Vr(e.doc,t)?At(e,i.line,s.line+1,c):Ht(e,i.line,"text");var f=Po(e,"changes"),p=Po(e,"change");if(p||f){var h={from:i,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&ko(e,"change",e,h),f&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Yn(e,t,n,r,o){if(r||(r=n),Ia(r,n)<0){var a=r;r=n,n=a}"string"==typeof t&&(t=e.splitLines(t)),Tn(e,{from:n,to:r,text:t,origin:o})}function En(e,t){if(!So(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Sa){var a=zo("div","​",null,"position: absolute; top: "+(t.top-n.viewOffset-ze(e.display))+"px; height: "+(t.bottom-t.top+qe(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function jn(e,t,n,r){null==r&&(r=0);for(var o=0;5>o;o++){var a=!1,i=pt(e,t),s=n&&n!=t?pt(e,n):i,u=Hn(e,Math.min(i.left,s.left),Math.min(i.top,s.top)-r,Math.max(i.left,s.left),Math.max(i.bottom,s.bottom)+r),l=e.doc.scrollTop,c=e.doc.scrollLeft;if(null!=u.scrollTop&&(rn(e,u.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=u.scrollLeft&&(on(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(a=!0)),!a)break}return i}function An(e,t,n,r,o){var a=Hn(e,t,n,r,o);null!=a.scrollTop&&rn(e,a.scrollTop),null!=a.scrollLeft&&on(e,a.scrollLeft)}function Hn(e,t,n,r,o){var a=e.display,i=vt(e.display);0>n&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:a.scroller.scrollTop,u=Ke(e),l={};o-n>u&&(o=n+u);var c=e.doc.height+Be(a),d=i>n,f=o>c-i;if(s>n)l.scrollTop=d?0:n;else if(o>s+u){var p=Math.min(n,(f?c:o)-u);p!=s&&(l.scrollTop=p)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:a.scroller.scrollLeft,m=Ge(e)-(e.options.fixedGutter?a.gutters.offsetWidth:0),_=r-t>m;return _&&(r=t+m),10>t?l.scrollLeft=0:h>t?l.scrollLeft=Math.max(0,t-(_?0:10)):r>m+h-3&&(l.scrollLeft=r+(_?0:10)-m),l}function Nn(e,t,n){null==t&&null==n||In(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Rn(e){In(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?Ra(t.line,t.ch-1):t,r=Ra(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function In(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=ht(e,t.from),r=ht(e,t.to),o=Hn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(o.scrollLeft,o.scrollTop)}}function Wn(e,t,n,r){var o,a=e.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?o=Ue(e,t):n="prev");var i=e.options.tabSize,s=Xr(a,t),u=Wi(s.text,null,i);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(l=a.mode.indent(o,s.text.slice(c.length),s.text),l==Hi||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>a.first?Wi(Xr(a,t-1).text,null,i):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(l/i);p;--p)f+=i,d+=" ";if(l>f&&(d+=Yo(l-f)),d!=c)return Yn(a,d,Ra(t,0),Ra(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p=0;t--)Yn(e.doc,"",r[t].from,r[t].to,"+delete");Rn(e)})}function zn(e,t,n,r,o){function a(){var t=s+n;return t=e.first+e.size?!1:(s=t,c=Xr(e,t))}function i(e){var t=(o?fa:pa)(c,u,n,!0);if(null==t){if(e||!a())return!1;u=o?(0>n?aa:oa)(c):0>n?c.text.length:0}else u=t;return!0}var s=t.line,u=t.ch,l=n,c=Xr(e,s);if("char"==r)i();else if("column"==r)i(!0);else if("word"==r||"group"==r)for(var d=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(0>n)||i(!h);h=!1){var m=c.text.charAt(u)||"\n",_=Wo(m,p)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(!f||h||_||(_="s"),d&&d!=_){0>n&&(n=1,i());break}if(_&&(d=_),n>0&&!i(!h))break}var y=Ye(e,Ra(s,u),t,l,!0);return Ia(t,y)||(y.hitSide=!0),y}function Bn(e,t,n,r){var o,a=e.doc,i=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);o=t.top+n*(s-(0>n?1.5:.5)*vt(e.display))}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;;){var u=_t(e,i,o);if(!u.outside)break;if(0>n?0>=o:o>=a.height){u.hitSide=!0;break}o+=5*n}return u}function Vn(t,n,r,o){e.defaults[t]=n,r&&(ti[t]=o?function(e,t,n){n!=ni&&r(e,t,n)}:r)}function qn(e){for(var t,n,r,o,a=e.split(/-(?!$)/),e=a[a.length-1],i=0;i0||0==i&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=zo("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(yr(e,t.line,t,n,a)||t.line!=n.line&&yr(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Na=!0}a.addToHistory&&lo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,l=e.cm;if(e.iter(u,n.line+1,function(e){l&&a.collapsed&&!l.options.lineWrapping&&vr(e)==l.display.maxLine&&(s=!0),a.collapsed&&u!=t.line&&eo(e,0),nr(e,new Zn(a,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),a.collapsed&&e.iter(t.line,n.line+1,function(t){Lr(e,t)&&eo(t,0)}),a.clearOnEnter&&Ci(a,"beforeCursorEnter",function(){a.clear()}),a.readOnly&&(Ha=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++_i,a.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),a.collapsed)At(l,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var c=t.line;c<=n.line;c++)Ht(l,c,"text");a.atomic&&Pe(l.doc),ko(l,"markerAdded",l,a)}return a}function Jn(e,t,n,r,o){r=Ro(r),r.shared=!1;var a=[Kn(e,t,n,r,o)],i=a[0],s=r.widgetNode;return Jr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),a.push(Kn(e,me(e,t),me(e,n),r,o));for(var u=0;u=t:a.to>t);(r||(r=[])).push(new Zn(i,a.from,u?null:a.to))}}return r}function or(e,t,n){if(e)for(var r,o=0;o=t:a.to>t);if(s||a.from==t&&"bookmark"==i.type&&(!n||a.marker.insertLeft)){var u=null==a.from||(i.inclusiveLeft?a.from<=t:a.from0&&s)for(var d=0;dd;++d)h.push(m);h.push(u)}return h}function ir(e){for(var t=0;t0)){var c=[u,1],d=Ia(l.from,s.from),f=Ia(l.to,s.to);(0>d||!i.inclusiveLeft&&!d)&&c.push({from:l.from,to:s.from}),(f>0||!i.inclusiveRight&&!f)&&c.push({from:s.to,to:l.to}),o.splice.apply(o,c),u+=c.length-1}}return o}function lr(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&0>=d||0>=c&&d>=0)&&(0>=c&&(Ia(l.to,n)>0||u.marker.inclusiveRight&&o.inclusiveLeft)||c>=0&&(Ia(l.from,r)<0||u.marker.inclusiveLeft&&o.inclusiveRight)))return!0}}}function vr(e){for(var t;t=mr(e);)e=t.find(-1,!0).line;return e}function gr(e){for(var t,n;t=_r(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function br(e,t){var n=Xr(e,t),r=vr(n);return n==r?t:to(r)}function Mr(e,t){if(t>e.lastLine())return t;var n,r=Xr(e,t);if(!Lr(e,r))return t;for(;n=_r(r);)r=n.find(1,!0).line;return to(r)+1}function Lr(e,t){var n=Na&&t.markedSpans;if(n)for(var r,o=0;oa;a++){o&&(o[0]=e.innerMode(t,r).mode);var i=t.token(n,r);if(n.pos>n.start)return i}throw new Error("Mode "+t.name+" failed to advance stream.")}function Yr(e,t,n,r){function o(e){return{start:d.start,end:d.pos,string:d.current(),type:a||null,state:e?ui(i.mode,c):c}}var a,i=e.doc,s=i.mode;t=me(i,t);var u,l=Xr(i,t.line),c=Ue(e,t.line,n),d=new mi(l.text,e.options.tabSize);for(r&&(u=[]);(r||d.pose.options.maxHighlightLength?(s=!1,i&&Hr(e,t,r,d.pos),d.pos=t.length,u=null):u=Pr(Or(n,d,r,f),a),f){var p=f[0].name;p&&(u="m-"+(u?p+" "+u:p))}if(!s||c!=u){for(;ll;){var r=o[u];r>e&&o.splice(u,1,e,o[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,u-n,e,"cm-overlay "+t),u=n+2;else for(;u>n;n+=2){var a=o[n+1];o[n+1]=(a?a+" ":"")+"cm-overlay "+t}},a)}return{styles:o,classes:a.bgClass||a.textClass?a:null}}function Ar(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ue(e,to(t)),o=jr(e,t,t.text.length>e.options.maxHighlightLength?ui(e.doc.mode,r):r);t.stateAfter=r,t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function Hr(e,t,n,r){var o=e.doc.mode,a=new mi(t,e.options.tabSize);for(a.start=a.pos=r||0,""==t&&Cr(o,n);!a.eol();)Or(o,a,n),a.start=a.pos}function Nr(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Li:Mi;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Rr(e,t){var n=zo("span",null,null,Ma?"padding-right: .1px":null),r={pre:zo("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,splitSpaces:(ga||Ma)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a,i=o?t.rest[o-1]:t.line;r.pos=0,r.addToken=Wr,Zo(e.display.measure)&&(a=oo(i))&&(r.addToken=Ur(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&to(i);Br(i,r,Ar(e,i,s)),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=Ko(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=Ko(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Qo(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return Ma&&/\bcm-tab\b/.test(r.content.lastChild.className)&&(r.content.className="cm-tab-wrap-hack"),Ei(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Ko(r.pre.className,r.textClass||"")),r}function Ir(e){var t=zo("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Wr(e,t,n,r,o,a,i){if(t){var s=e.splitSpaces?t.replace(/ {3,}/g,Fr):t,u=e.cm.state.specialChars,l=!1;if(u.test(t))for(var c=document.createDocumentFragment(),d=0;;){u.lastIndex=d;var f=u.exec(t),p=f?f.index-d:t.length-d;if(p){var h=document.createTextNode(s.slice(d,d+p));ga&&9>ba?c.appendChild(zo("span",[h])):c.appendChild(h),e.map.push(e.pos,e.pos+p,h),e.col+=p,e.pos+=p}if(!f)break;if(d+=p+1," "==f[0]){var m=e.cm.options.tabSize,_=m-e.col%m,h=c.appendChild(zo("span",Yo(_),"cm-tab"));h.setAttribute("role","presentation"),h.setAttribute("cm-text"," "),e.col+=_}else if("\r"==f[0]||"\n"==f[0]){var h=c.appendChild(zo("span","\r"==f[0]?"␍":"␤","cm-invalidchar"));h.setAttribute("cm-text",f[0]),e.col+=1}else{var h=e.cm.options.specialCharPlaceholder(f[0]);h.setAttribute("cm-text",f[0]),ga&&9>ba?c.appendChild(zo("span",[h])):c.appendChild(h),e.col+=1}e.map.push(e.pos,e.pos+1,h),e.pos++}else{e.col+=t.length;var c=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,c),ga&&9>ba&&(l=!0),e.pos+=t.length}if(n||r||o||l||i){var y=n||"";r&&(y+=r),o&&(y+=o);var v=zo("span",[c],y,i);return a&&(v.title=a),e.content.appendChild(v)}e.content.appendChild(c)}}function Fr(e){for(var t=" ",n=0;nl&&f.from<=l)break}if(f.to>=c)return e(n,r,o,a,i,s,u);e(n,r.slice(0,f.to-l),o,a,null,s,u),a=null,r=r.slice(f.to-l),l=f.to}}}function zr(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t}function Br(e,t,n){var r=e.markedSpans,o=e.text,a=0;if(r)for(var i,s,u,l,c,d,f,p=o.length,h=0,m=1,_="",y=0;;){if(y==h){u=l=c=d=s="",f=null,y=1/0;for(var v,g=[],b=0;bh||L.collapsed&&M.to==h&&M.from==h)?(null!=M.to&&M.to!=h&&y>M.to&&(y=M.to,l=""),L.className&&(u+=" "+L.className),L.css&&(s=(s?s+";":"")+L.css),L.startStyle&&M.from==h&&(c+=" "+L.startStyle),L.endStyle&&M.to==y&&(v||(v=[])).push(L.endStyle,M.to),L.title&&!d&&(d=L.title),L.collapsed&&(!f||pr(f.marker,L)<0)&&(f=M)):M.from>h&&y>M.from&&(y=M.from)}if(v)for(var b=0;b=p)break;for(var w=Math.min(p,y);;){if(_){var x=h+_.length;if(!f){var k=x>w?_.slice(0,w-h):_;t.addToken(t,k,i?i+u:u,c,h+k.length==y?l:"",d,s)}if(x>=w){_=_.slice(w-h),h=w;break}h=x,c=""}_=o.slice(a,a=n[m++]),i=Nr(n[m++],t.cm.options)}}else for(var m=1;mn;++n)a.push(new bi(l[n],o(n),r));return a}var s=t.from,u=t.to,l=t.text,c=Xr(e,s.line),d=Xr(e,u.line),f=Eo(l),p=o(l.length-1),h=u.line-s.line;if(t.full)e.insert(0,i(0,l.length)),e.remove(l.length,e.size-l.length);else if(Vr(e,t)){var m=i(0,l.length-1);a(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==d)if(1==l.length)a(c,c.text.slice(0,s.ch)+f+c.text.slice(u.ch),p);else{var m=i(1,l.length-1);m.push(new bi(f+c.text.slice(u.ch),p,r)),a(c,c.text.slice(0,s.ch)+l[0],o(0)),e.insert(s.line+1,m)}else if(1==l.length)a(c,c.text.slice(0,s.ch)+l[0]+d.text.slice(u.ch),o(0)),e.remove(s.line+1,h);else{a(c,c.text.slice(0,s.ch)+l[0],o(0)),a(d,f+d.text.slice(u.ch),p);var m=i(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,m)}ko(e,"change",e,t)}function Gr(e){this.lines=e,this.parent=null;for(var t=0,n=0;tt||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],a=o.chunkSize();if(a>t){n=o;break}t-=a}return n.lines[t]}function Qr(e,t,n){var r=[],o=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;o==n.line&&(a=a.slice(0,n.ch)),o==t.line&&(a=a.slice(t.ch)),r.push(a),++o}),r}function Zr(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function eo(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function to(e){if(null==e.parent)return null;for(var t=e.parent,n=jo(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)n+=r.children[o].chunkSize();return n+t.first}function no(e,t){var n=e.first;e:do{for(var r=0;rt){e=o;continue e}t-=a,n+=o.chunkSize()}return n}while(!e.lines);for(var r=0;rt)break;t-=s}return n+r}function ro(e){e=vr(e);for(var t=0,n=e.parent,r=0;r1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Eo(e.done)):void 0}function lo(e,t,n,r){var o=e.history;o.undone.length=0;var a,i=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&o.lastModTime>i-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(a=uo(o,o.lastOp==r))){var s=Eo(a.changes);0==Ia(t.from,t.to)&&0==Ia(t.from,s.to)?s.to=Za(t):a.changes.push(io(e,t))}else{var u=Eo(o.done);for(u&&u.ranges||po(e.sel,o.done),a={changes:[io(e,t)],generation:o.generation},o.done.push(a);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=i,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,s||Ei(e,"historyAdded")}function co(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 fo(e,t,n,r){var o=e.history,a=r&&r.origin;n==o.lastSelOp||a&&o.lastSelOrigin==a&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==a||co(e,a,Eo(o.done),t))?o.done[o.done.length-1]=t:po(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=a,o.lastSelOp=n,r&&r.clearRedo!==!1&&so(o.undone)}function po(e,t){var n=Eo(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ho(e,t,n,r){var o=t["spans_"+e.id],a=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]={}))[a]=n.markedSpans),++a})}function mo(e){if(!e)return null;for(var t,n=0;n-1&&(Eo(s)[d]=c[d],delete c[d])}}}return o}function vo(e,t,n,r){n0?r.slice():Oi:r||Oi}function ko(e,t){function n(e){return function(){e.apply(null,a)}}var r=xo(e,t,!1);if(r.length){var o,a=Array.prototype.slice.call(arguments,2);Va?o=Va.delayedCallbacks:ji?o=ji:(o=ji=[],setTimeout(To,0));for(var i=0;i0}function Co(e){e.prototype.on=function(e,t){Ci(this,e,t)},e.prototype.off=function(e,t){Yi(this,e,t)}}function Oo(){this.id=null}function Yo(e){for(;Ui.length<=e;)Ui.push(Eo(Ui)+" ");return Ui[e]}function Eo(e){return e[e.length-1]}function jo(e,t){for(var n=0;n-1&&qi(e)?!0:t.test(e):qi(e)}function Fo(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function Uo(e){return e.charCodeAt(0)>=768&&Gi.test(e)}function zo(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var a=0;a0;--t)e.removeChild(e.firstChild);return e}function Vo(e,t){return Bo(e).appendChild(t)}function qo(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function Go(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Ko(e,t){for(var n=e.split(" "),r=0;r2&&!(ga&&8>ba))}var n=Ji?zo("span","​"):zo("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Zo(e){if(null!=$i)return $i;var t=Vo(e,document.createTextNode("AخA")),n=Bi(t,0,1).getBoundingClientRect();if(!n||n.left==n.right)return!1;var r=Bi(t,1,2).getBoundingClientRect();return $i=r.right-n.right<3}function ea(e){if(null!=os)return os;var t=Vo(e,zo("span","x")),n=t.getBoundingClientRect(),r=Bi(t,0,1).getBoundingClientRect();return os=Math.abs(n.left-r.left)>1}function ta(e,t,n,r){if(!e)return r(t,n,"ltr");for(var o=!1,a=0;at||t==n&&i.to==t)&&(r(Math.max(i.from,t),Math.min(i.to,n),1==i.level?"rtl":"ltr"),o=!0)}o||r(t,n,"ltr")}function na(e){return e.level%2?e.to:e.from}function ra(e){return e.level%2?e.from:e.to}function oa(e){var t=oo(e);return t?na(t[0]):0}function aa(e){var t=oo(e);return t?ra(Eo(t)):e.text.length}function ia(e,t){var n=Xr(e.doc,t),r=vr(n);r!=n&&(t=to(r));var o=oo(r),a=o?o[0].level%2?aa(r):oa(r):0;return Ra(t,a)}function sa(e,t){for(var n,r=Xr(e.doc,t);n=_r(r);)r=n.find(1,!0).line,t=null;var o=oo(r),a=o?o[0].level%2?oa(r):aa(r):r.text.length;return Ra(null==t?to(r):t,a)}function ua(e,t){var n=ia(e,t.line),r=Xr(e.doc,n.line),o=oo(r);if(!o||0==o[0].level){var a=Math.max(0,r.text.search(/\S/)),i=t.line==n.line&&t.ch<=a&&t.ch;return Ra(n.line,i?0:a)}return n}function la(e,t,n){var r=e[0].level;return t==r?!0:n==r?!1:n>t}function ca(e,t){is=null;for(var n,r=0;rt)return r;if(o.from==t||o.to==t){if(null!=n)return la(e,o.level,e[n].level)?(o.from!=o.to&&(is=n),r):(o.from!=o.to&&(is=r),n);n=r}}return n}function da(e,t,n,r){if(!r)return t+n;do t+=n;while(t>0&&Uo(e.text.charAt(t)));return t}function fa(e,t,n,r){var o=oo(e);if(!o)return pa(e,t,n,r);for(var a=ca(o,t),i=o[a],s=da(e,t,i.level%2?-n:n,r);;){if(s>i.from&&s0==i.level%2?i.to:i.from);if(i=o[a+=n],!i)return null;s=n>0==i.level%2?da(e,i.to,-1,r):da(e,i.from,1,r)}}function pa(e,t,n,r){var o=t+n;if(r)for(;o>0&&Uo(e.text.charAt(o));)o+=n;return 0>o||o>e.text.length?null:o}var ha=navigator.userAgent,ma=navigator.platform,_a=/gecko\/\d/i.test(ha),ya=/MSIE \d/.test(ha),va=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ha),ga=ya||va,ba=ga&&(ya?document.documentMode||6:va[1]),Ma=/WebKit\//.test(ha),La=Ma&&/Qt\/\d+\.\d+/.test(ha),wa=/Chrome\//.test(ha),xa=/Opera\//.test(ha),ka=/Apple Computer/.test(navigator.vendor),Ta=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ha),Sa=/PhantomJS/.test(ha),Da=/AppleWebKit/.test(ha)&&/Mobile\/\w+/.test(ha),Pa=Da||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ha),Ca=Da||/Mac/.test(ma),Oa=/\bCrOS\b/.test(ha),Ya=/win/i.test(ma),Ea=xa&&ha.match(/Version\/(\d*\.\d*)/);Ea&&(Ea=Number(Ea[1])),Ea&&Ea>=15&&(xa=!1,Ma=!0);var ja=Ca&&(La||xa&&(null==Ea||12.11>Ea)),Aa=_a||ga&&ba>=9,Ha=!1,Na=!1;m.prototype=Ro({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 a=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+a+"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}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=Ca&&!Ta?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Oo,this.disableVert=new Oo},enableZeroWidthBar:function(e,t){function n(){var r=e.getBoundingClientRect(),o=document.elementFromPoint(r.left+1,r.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},m.prototype),_.prototype=Ro({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},_.prototype),e.scrollbarModel={"native":m,"null":_},k.prototype.signal=function(e,t){Po(e,t)&&this.events.push(arguments)},k.prototype.finish=function(){for(var e=0;e=9&&n.hasSelection&&(n.hasSelection=null),n.poll()}),Ci(a,"paste",function(e){So(r,e)||Q(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),Ci(a,"cut",t),Ci(a,"copy",t),Ci(e.scroller,"paste",function(t){Vt(e,t)||So(r,t)||(r.state.pasteIncoming=!0,n.focus())}),Ci(e.lineSpace,"selectstart",function(t){Vt(e,t)||Si(t)}),Ci(a,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ci(a,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,r=Ae(e);if(e.options.moveInputWithCursor){var o=pt(e,n.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),i=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+i.top-a.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+i.left-a.left))}return r},showSelection:function(e){var t=this.cm,n=t.display;Vo(n.cursorDiv,e.cursors),Vo(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,r=this.cm,o=r.doc;if(r.somethingSelected()){this.prevInput="";var a=o.sel.primary();t=rs&&(a.to().line-a.from().line>100||(n=r.getSelection()).length>1e3);var i=t?"-":n||r.getSelection();this.textarea.value=i,r.state.focused&&zi(this.textarea),ga&&ba>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",ga&&ba>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!Pa||qo()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0; +},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},fastPoll:function(){function e(){var r=n.poll();r||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)},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||ns(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=t.value;if(r==n&&!e.somethingSelected())return!1;if(ga&&ba>=9&&this.hasSelection===r||Ca&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,i=Math.min(n.length,r.length);i>a&&n.charCodeAt(a)==r.charCodeAt(a);)++a;var s=this;return Pt(e,function(){X(e,r.slice(a),n.length-a,null,s.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?t.value=s.prevInput="":s.prevInput=r,s.composing&&(s.composing.range.clear(),s.composing.range=e.markText(s.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){ga&&ba>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){function t(){if(null!=i.selectionStart){var e=o.somethingSelected(),t="​"+(e?i.value:"");i.value="⇚",i.value=t,r.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=t.length,a.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=d,i.style.cssText=c,ga&&9>ba&&a.scrollbars.setScrollTop(a.scroller.scrollTop=u),null!=i.selectionStart){(!ga||ga&&9>ba)&&t();var e=0,n=function(){a.selForContextMenu==o.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==r.prevInput?Ct(o,ci.selectAll)(o):e++<10?a.detectingSelectAll=setTimeout(n,500):a.input.reset()};a.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,a=o.display,i=r.textarea,s=qt(o,e),u=a.scroller.scrollTop;if(s&&!xa){var l=o.options.resetSelectionOnContextMenu;l&&-1==o.doc.sel.contains(s)&&Ct(o,Te)(o.doc,pe(s),Ni);var c=i.style.cssText,d=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px; z-index: 1000; background: "+(ga?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",Ma)var p=window.scrollY;if(a.input.focus(),Ma&&window.scrollTo(null,p),a.input.reset(),o.somethingSelected()||(i.value=r.prevInput=" "),r.contextMenuPending=!0,a.selForContextMenu=o.doc.sel,clearTimeout(a.detectingSelectAll),ga&&ba>=9&&t(),Aa){Pi(e);var h=function(){Yi(window,"mouseup",h),setTimeout(n,20)};Ci(window,"mouseup",h)}else setTimeout(n,50)}},readOnlyChanged:function(e){e||this.reset()},setUneditable:Ho,needsContentAttribute:!1},ne.prototype),oe.prototype=Ro({init:function(e){function t(e){if(!So(r,e)){if(r.somethingSelected())Wa=r.getSelections(),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=ee(r);Wa=t.text,"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,Ni),r.replaceSelection("",null,"cut")})}if(e.clipboardData&&!Da)e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/plain",Wa.join("\n"));else{var n=re(),o=n.firstChild;r.display.lineSpace.insertBefore(n,r.display.lineSpace.firstChild),o.value=Wa.join("\n");var a=document.activeElement;zi(o),setTimeout(function(){r.display.lineSpace.removeChild(n),a.focus()},50)}}}var n=this,r=n.cm,o=n.div=e.lineDiv;te(o),Ci(o,"paste",function(e){So(r,e)||Q(e,r)}),Ci(o,"compositionstart",function(e){var t=e.data;if(n.composing={sel:r.doc.sel,data:t,startData:t},t){var o=r.doc.sel.primary(),a=r.getLine(o.head.line),i=a.indexOf(t,Math.max(0,o.head.ch-t.length));i>-1&&i<=o.head.ch&&(n.composing.sel=pe(Ra(o.head.line,i),Ra(o.head.line,i+t.length)))}}),Ci(o,"compositionupdate",function(e){n.composing.data=e.data}),Ci(o,"compositionend",function(e){var t=n.composing;t&&(e.data==t.startData||/\u200b/.test(e.data)||(t.data=e.data),setTimeout(function(){t.handled||n.applyComposition(t),n.composing==t&&(n.composing=null)},50))}),Ci(o,"touchstart",function(){n.forceCompositionEnd()}),Ci(o,"input",function(){n.composing||!r.isReadOnly()&&n.pollContent()||Pt(n.cm,function(){At(r)})}),Ci(o,"copy",t),Ci(o,"cut",t)},prepareSelection:function(){var e=Ae(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e){e&&this.cm.display.view.length&&(e.focus&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=se(this.cm,e.anchorNode,e.anchorOffset),r=se(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!r||r.bad||0!=Ia(J(n,r),t.from())||0!=Ia(K(n,r),t.to())){var o=ae(this.cm,t.from()),a=ae(this.cm,t.to());if(o||a){var i=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(o){if(!a){var u=i[i.length-1].measure,l=u.maps?u.maps[u.maps.length-1]:u.map;a={node:l[l.length-1],offset:l[l.length-2]-l[l.length-3]}}}else o={node:i[0].measure.map[2],offset:0};try{var c=Bi(o.node,o.offset,a.offset,a.node)}catch(d){}c&&(!_a&&this.cm.state.focused?(e.collapse(o.node,o.offset),c.collapsed||e.addRange(c)):(e.removeAllRanges(),e.addRange(c)),s&&null==e.anchorNode?e.addRange(s):_a&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){e.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(e){Vo(this.cm.display.cursorDiv,e.cursors),Vo(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ki(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():Pt(this.cm,function(){t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=se(t,e.anchorNode,e.anchorOffset),r=se(t,e.focusNode,e.focusOffset);n&&r&&Pt(t,function(){Te(t.doc,pe(n,r),Ni),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}},pollContent:function(){var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),o=n.to();if(r.linet.viewTo-1)return!1;var a;if(r.line==t.viewFrom||0==(a=Rt(e,r.line)))var i=to(t.view[0].line),s=t.view[0].node;else var i=to(t.view[a].line),s=t.view[a-1].node.nextSibling;var u=Rt(e,o.line);if(u==t.view.length-1)var l=t.viewTo-1,c=t.lineDiv.lastChild;else var l=to(t.view[u+1].line)-1,c=t.view[u+1].node.previousSibling;for(var d=e.doc.splitLines(le(e,s,c,i,l)),f=Qr(e.doc,Ra(i,0),Ra(l,Xr(e.doc,l).text.length));d.length>1&&f.length>1;)if(Eo(d)==Eo(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),i++}for(var p=0,h=0,m=d[0],_=f[0],y=Math.min(m.length,_.length);y>p&&m.charCodeAt(p)==_.charCodeAt(p);)++p;for(var v=Eo(d),g=Eo(f),b=Math.min(v.length-(1==d.length?p:0),g.length-(1==f.length?p:0));b>h&&v.charCodeAt(v.length-h-1)==g.charCodeAt(g.length-h-1);)++h;d[d.length-1]=v.slice(0,v.length-h),d[0]=d[0].slice(p);var M=Ra(i,p),L=Ra(l,f.length?Eo(f).length-h:0);return d.length>1||d[0]||Ia(M,L)?(Yn(e.doc,d,M,L,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?Ct(this.cm,At)(this.cm):e.data&&e.data!=e.startData&&Ct(this.cm,X)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||Ct(this.cm,X)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:Ho,resetPosition:Ho,needsContentAttribute:!0},oe.prototype),e.inputStyles={textarea:ne,contenteditable:oe},ce.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&&Ia(e,r.to())<=0)return n}return-1}},de.prototype={from:function(){return J(this.anchor,this.head)},to:function(){return K(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var Fa,Ua,za,Ba={left:0,right:0,top:0,bottom:0},Va=null,qa=0,Ga=0,Ka=0,Ja=null;ga?Ja=-.53:_a?Ja=15:wa?Ja=-.7:ka&&(Ja=-1/3);var $a=function(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}};e.wheelEventPixels=function(e){var t=$a(e);return t.x*=Ja,t.y*=Ja,t};var Xa=new Oo,Qa=null,Za=e.changeEnd=function(e){return e.text?Ra(e.from.line+e.text.length-1,Eo(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,ti.hasOwnProperty(e)&&Ct(this,ti[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Gn(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Wn(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Rn(this));else{var a=o.from(),i=o.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),i.line-(i.ch?0:1))+1;for(var u=s;n>u;++u)Wn(this,u,e);var l=this.doc.sel.ranges;0==a.ch&&t.length==l.length&&l[r].from().ch>0&&Le(this.doc,r,new de(a,l[r].to()),Ni)}}}),getTokenAt:function(e,t){return Yr(this,e,t)},getLineTokens:function(e,t){return Yr(this,Ra(e),t,!0)},getTokenTypeAt:function(e){e=me(this.doc,e);var t,n=Ar(this,Xr(this.doc,e.line)),r=0,o=(n.length-1)/2,a=e.ch;if(0==a)t=n[2];else for(;;){var i=r+o>>1;if((i?n[2*i-1]:0)>=a)o=i;else{if(!(n[2*i+1]s?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!si.hasOwnProperty(t))return n;var r=si[t],o=this.getModeAt(e);if("string"==typeof o[t])r[o[t]]&&n.push(r[o[t]]);else if(o[t])for(var a=0;ao&&(e=o,r=!0),n=Xr(this.doc,e)}else n=e;return ct(this,n,{top:0,left:0},t||"page").top+(r?this.doc.height-ro(n):0)},defaultTextHeight:function(){return vt(this.display)},defaultCharWidth:function(){return gt(this.display)},setGutterMarker:Ot(function(e,t,n){return Fn(this.doc,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&Fo(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Ot(function(e){var t=this,n=t.doc,r=n.first;n.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,Ht(t,r,"gutter"),Fo(n.gutterMarkers)&&(n.gutterMarkers=null)),++r})}),lineInfo:function(e){if("number"==typeof e){if(!ye(this.doc,e))return null;var t=e;if(e=Xr(this.doc,e),!e)return null}else{var t=to(e);if(null==t)return null}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var a=this.display;e=pt(this,me(this.doc,e));var i=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)i=e.top;else if("above"==r||"near"==r){var u=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?i=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(i=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=i+"px",t.style.left=t.style.right="","right"==o?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&An(this,s,i,s+t.offsetWidth,i+t.offsetHeight)},triggerOnKeyDown:Ot(fn),triggerOnKeyPress:Ot(mn),triggerOnKeyUp:hn,execCommand:function(e){return ci.hasOwnProperty(e)?ci[e].call(null,this):void 0},triggerElectric:Ot(function(e){Z(this,e)}),findPosH:function(e,t,n,r){var o=1;0>t&&(o=-1,t=-t);for(var a=0,i=me(this.doc,e);t>a&&(i=zn(this.doc,i,o,n,r),!i.hitSide);++a);return i},moveH:Ot(function(e,t){var n=this;n.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?zn(n.doc,r.head,e,t,n.options.rtlMoveVisually):0>e?r.from():r.to()},Ii)}),deleteH:Ot(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Un(this,function(n){var o=zn(r,n.head,e,t,!1);return 0>e?{from:o,to:n.head}:{from:n.head,to:o}})}),findPosV:function(e,t,n,r){var o=1,a=r;0>t&&(o=-1,t=-t);for(var i=0,s=me(this.doc,e);t>i;++i){var u=pt(this,s,"div");if(null==a?a=u.left:u.left=a,s=Bn(this,u,o,n),s.hitSide)break}return s},moveV:Ot(function(e,t){var n=this,r=this.doc,o=[],a=!n.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(i){if(a)return 0>e?i.from():i.to();var s=pt(n,i.head,"div");null!=i.goalColumn&&(s.left=i.goalColumn),o.push(s.left);var u=Bn(n,s,e,t);return"page"==t&&i==r.sel.primary()&&Nn(n,null,ft(n,u,"div").top-s.top),u},Ii),o.length)for(var i=0;i0&&s(n.charAt(r-1));)--r;for(;o.5)&&i(this),Ei(this,"refresh",this)}),swapDoc:Ot(function(e){var t=this.doc;return t.cm=null,$r(this,e),st(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ko(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}},Co(e);var ei=e.defaults={},ti=e.optionHandlers={},ni=e.Init={toString:function(){return"CodeMirror.Init"}};Vn("value","",function(e,t){e.setValue(t)},!0),Vn("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),Vn("indentUnit",2,n,!0),Vn("indentWithTabs",!1),Vn("smartIndent",!0),Vn("tabSize",4,function(e){r(e),st(e),At(e)},!0),Vn("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 a=e.text.indexOf(t,o);if(-1==a)break;o=a+t.length,n.push(Ra(r,a))}r++});for(var o=n.length-1;o>=0;o--)Yn(e.doc,t,n[o],Ra(n[o].line,n[o].ch+t.length))}}),Vn("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,n,r){t.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),r!=e.Init&&t.refresh()}),Vn("specialCharPlaceholder",Ir,function(e){e.refresh()},!0),Vn("electricChars",!0),Vn("inputStyle",Pa?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Vn("rtlMoveVisually",!Ya),Vn("wholeLineUpdateBefore",!0),Vn("theme","default",function(e){s(e),u(e)},!0),Vn("keyMap","default",function(t,n,r){var o=Gn(n),a=r!=e.Init&&Gn(r);a&&a.detach&&a.detach(t,o),o.attach&&o.attach(t,a||null)}),Vn("extraKeys",null),Vn("lineWrapping",!1,o,!0),Vn("gutters",[],function(e){p(e.options),u(e)},!0),Vn("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?x(e.display)+"px":"0",e.refresh()},!0),Vn("coverGutterNextToScrollbar",!1,function(e){v(e)},!0),Vn("scrollbarStyle","native",function(e){y(e),v(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),Vn("lineNumbers",!1,function(e){p(e.options),u(e)},!0),Vn("firstLineNumber",1,u,!0),Vn("lineNumberFormatter",function(e){return e},u,!0),Vn("showCursorWhenSelecting",!1,je,!0),Vn("resetSelectionOnContextMenu",!0),Vn("lineWiseCopyCut",!0),Vn("readOnly",!1,function(e,t){"nocursor"==t?(vn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),Vn("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),Vn("dragDrop",!0,zt),Vn("allowDropFileTypes",null),Vn("cursorBlinkRate",530),Vn("cursorScrollMargin",0),Vn("cursorHeight",1,je,!0),Vn("singleCursorHeightPerLine",!0,je,!0),Vn("workTime",100),Vn("workDelay",100),Vn("flattenSpans",!0,r,!0),Vn("addModeClass",!1,r,!0),Vn("pollInterval",100),Vn("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),Vn("historyEventDelay",1250),Vn("viewportMargin",10,function(e){e.refresh()},!0),Vn("maxHighlightLength",1e4,r,!0),Vn("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),Vn("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),Vn("autofocus",null);var ri=e.modes={},oi=e.mimeModes={};e.defineMode=function(t,n){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),ri[t]=n},e.defineMIME=function(e,t){oi[e]=t},e.resolveMode=function(t){if("string"==typeof t&&oi.hasOwnProperty(t))t=oi[t];else if(t&&"string"==typeof t.name&&oi.hasOwnProperty(t.name)){var n=oi[t.name];"string"==typeof n&&(n={name:n}),t=No(n,t),t.name=n.name}else if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return e.resolveMode("application/xml");return"string"==typeof t?{name:t}:t||{name:"null"}},e.getMode=function(t,n){var n=e.resolveMode(n),r=ri[n.name];if(!r)return e.getMode(t,"text/plain");var o=r(t,n);if(ai.hasOwnProperty(n.name)){var a=ai[n.name];for(var i in a)a.hasOwnProperty(i)&&(o.hasOwnProperty(i)&&(o["_"+i]=o[i]),o[i]=a[i])}if(o.name=n.name,n.helperType&&(o.helperType=n.helperType),n.modeProps)for(var i in n.modeProps)o[i]=n.modeProps[i];return o},e.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),e.defineMIME("text/plain","null");var ai=e.modeExtensions={};e.extendMode=function(e,t){var n=ai.hasOwnProperty(e)?ai[e]:ai[e]={};Ro(t,n)},e.defineExtension=function(t,n){e.prototype[t]=n},e.defineDocExtension=function(e,t){xi.prototype[e]=t},e.defineOption=Vn;var ii=[];e.defineInitHook=function(e){ii.push(e)};var si=e.helpers={};e.registerHelper=function(t,n,r){si.hasOwnProperty(t)||(si[t]=e[t]={_global:[]}),si[t][n]=r},e.registerGlobalHelper=function(t,n,r,o){e.registerHelper(t,n,o),si[t]._global.push({pred:r,val:o})};var ui=e.copyState=function(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n},li=e.startState=function(e,t,n){return e.startState?e.startState(t,n):!0};e.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var ci=e.commands={selectAll:function(e){e.setSelection(Ra(e.firstLine(),0),Ra(e.lastLine()),Ni)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ni)},killLine:function(e){Un(e,function(t){if(t.empty()){var n=Xr(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new Ra(o.line,o.ch+1),e.replaceRange(a.charAt(o.ch-1)+a.charAt(o.ch-2),Ra(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var i=Xr(e.doc,o.line-1).text;i&&e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+i.charAt(i.length-1),Ra(o.line-1,i.length-1),Ra(o.line,1),"+transpose")}n.push(new de(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){Pt(e,function(){for(var t=e.listSelections().length,n=0;t>n;n++){var r=e.listSelections()[n];e.replaceRange(e.doc.lineSeparator(),r.anchor,r.head,"+input"),e.indentLine(r.from().line+1,null,!0)}Rn(e)})},toggleOverwrite:function(e){e.toggleOverwrite()}},di=e.keyMap={};di.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},di.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},di.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"},di.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},di["default"]=Ca?di.macDefault:di.pcDefault,e.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var o=Ao(n.split(" "),qn),a=0;a=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){return this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);return t>-1?(this.pos=t,!0):void 0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e},a=this.string.substr(this.pos,e.length);return o(a)==o(e)?(t!==!1&&(this.pos+=e.length),!0):void 0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var _i=0,yi=e.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++_i};Co(yi),yi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&bt(e),Po(this,"clear")){var n=this.find();n&&ko(this,"clear",n.from,n.to)}for(var r=null,o=null,a=0;ae.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&At(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Pe(e.doc)),e&&ko(e,"markerCleared",e,this),t&&Lt(e),this.parent&&this.parent.clear()}},yi.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,o=0;on;++n){var o=this.lines[n];this.height-=o.height,Dr(o),ko(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;re;++e)if(n(this.lines[e]))return!0}},Kr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;ne){var a=Math.min(t,o-e),i=r.height;if(r.removeInner(e,a),this.height-=i-r.height,o==a&&(this.children.splice(n--,1),r.parent=null),0==(t-=a))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Gr))){var s=[];this.collapse(s),this.children=[new Gr(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t=e){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(;o.lines.length>50;){var i=o.lines.splice(o.lines.length-25,25),s=new Gr(i);o.height-=s.height,this.children.splice(r+1,0,s),s.parent=this}this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Kr(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=jo(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var o=new Kr(e.children);o.parent=e,e.children=[o,n],e=o}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re){var i=Math.min(t,a-e);if(o.iterN(e,i,n))return!0;if(0==(t-=i))break;e=0}else e-=a}}};var wi=0,xi=e.Doc=function(e,t,n,r){if(!(this instanceof xi))return new xi(e,t,n,r);null==n&&(n=0),Kr.call(this,[new Gr([new bi("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var o=Ra(n,0);this.sel=pe(o),this.history=new ao(null),this.id=++wi,this.modeOption=t,this.lineSep=r,this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),qr(this,{from:o,to:o,text:e}),Te(this,pe(o),Ni)};xi.prototype=No(Kr.prototype,{constructor:xi,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r=0;a--)Tn(this,r[a]);s?ke(this,s):this.cm&&Rn(this.cm)}),undo:Yt(function(){Dn(this,"undo")}),redo:Yt(function(){Dn(this,"redo")}),undoSelection:Yt(function(){Dn(this,"undo",!0)}),redoSelection:Yt(function(){Dn(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=me(this,e),t=me(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(a){var i=a.markedSpans;if(i)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?(t=e,!0):(e-=a,void++n)}),me(this,Ra(n,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.tos||s>=t)return i+(t-a);i+=s-a,i+=n-i%n,a=s+1}},Fi=e.findColumn=function(e,t,n){for(var r=0,o=0;;){var a=e.indexOf(" ",r);-1==a&&(a=e.length);var i=a-r;if(a==e.length||o+i>=t)return r+Math.min(i,t-o);if(o+=a-r,o+=n-o%n,r=a+1,o>=t)return r}},Ui=[""],zi=function(e){e.select()};Da?zi=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ga&&(zi=function(e){try{e.select()}catch(t){}});var Bi,Vi=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,qi=e.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Vi.test(e))},Gi=/[\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]/;Bi=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(o){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ki=e.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do if(11==t.nodeType&&(t=t.host),t==e)return!0;while(t=t.parentNode)};ga&&11>ba&&(qo=function(){try{return document.activeElement}catch(e){return document.body}});var Ji,$i,Xi=e.rmClass=function(e,t){var n=e.className,r=Go(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}},Qi=e.addClass=function(e,t){var n=e.className;Go(t).test(n)||(e.className+=(n?" ":"")+t)},Zi=!1,es=function(){if(ga&&9>ba)return!1;var e=zo("div");return"draggable"in e||"dragDrop"in e}(),ts=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;r>=t;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var a=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),i=a.indexOf("\r");-1!=i?(n.push(a.slice(0,i)),t+=i+1):(n.push(a),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ns=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(n){}return t&&t.parentElement()==e?0!=t.compareEndPoints("StartToEnd",t):!1},rs=function(){var e=zo("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),os=null,as=e.keyNames={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};!function(){for(var e=0;10>e;e++)as[e+48]=as[e+96]=String(e);for(var e=65;90>=e;e++)as[e]=String.fromCharCode(e);for(var e=1;12>=e;e++)as[e+111]=as[e+63235]="F"+e}();var is,ss=function(){function e(e){return 247>=e?n.charAt(e):e>=1424&&1524>=e?"R":e>=1536&&1773>=e?r.charAt(e-1536):e>=1774&&2220>=e?"r":e>=8192&&8203>=e?"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="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,i=/[LRr]/,s=/[Lb1n]/,u=/[1n]/,l="L";return function(n){if(!o.test(n))return!1;for(var r,c=n.length,d=[],f=0;c>f;++f)d.push(r=e(n.charCodeAt(f)));for(var f=0,p=l;c>f;++f){var r=d[f];"m"==r?d[f]=p:p=r}for(var f=0,h=l;c>f;++f){var r=d[f];"1"==r&&"r"==h?d[f]="n":i.test(r)&&(h=r,"r"==r&&(d[f]="R"))}for(var f=1,p=d[0];c-1>f;++f){var r=d[f];"+"==r&&"1"==p&&"1"==d[f+1]?d[f]="1":","!=r||p!=d[f+1]||"1"!=p&&"n"!=p||(d[f]=p),p=r}for(var f=0;c>f;++f){var r=d[f];if(","==r)d[f]="N";else if("%"==r){for(var m=f+1;c>m&&"%"==d[m];++m);for(var _=f&&"!"==d[f-1]||c>m&&"1"==d[m]?"1":"N",y=f;m>y;++y)d[y]=_;f=m-1}}for(var f=0,h=l;c>f;++f){var r=d[f];"L"==h&&"1"==r?d[f]="L":i.test(r)&&(h=r)}for(var f=0;c>f;++f)if(a.test(d[f])){for(var m=f+1;c>m&&a.test(d[m]);++m);for(var v="L"==(f?d[f-1]:l),g="L"==(c>m?d[m]:l),_=v||g?"L":"R",y=f;m>y;++y)d[y]=_;f=m-1}for(var b,M=[],f=0;c>f;)if(s.test(d[f])){var L=f;for(++f;c>f&&s.test(d[f]);++f);M.push(new t(0,L,f))}else{var w=f,x=M.length;for(++f;c>f&&"L"!=d[f];++f);for(var y=w;f>y;)if(u.test(d[y])){y>w&&M.splice(x,0,new t(1,w,y));var k=y;for(++y;f>y&&u.test(d[y]);++y);M.splice(x,0,new t(2,k,y)),w=y}else++y;f>w&&M.splice(x,0,new t(1,w,f))}return 1==M[0].level&&(b=n.match(/^\s+/))&&(M[0].from=b[0].length,M.unshift(new t(0,0,b[0].length))),1==Eo(M).level&&(b=n.match(/\s+$/))&&(Eo(M).to-=b[0].length,M.push(new t(0,c-b[0].length,c))),2==M[0].level&&M.unshift(new t(1,M[0].to,M[0].to)),M[0].level!=Eo(M).level&&M.push(new t(M[0].level,c,c)),M}}();return e.version="5.14.2",e})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=n(495),a=r(o),i=n(496),s=r(i);t.Provider=a["default"],t.connect=s["default"]},function(e,t,n){"use strict";var r=n(48),o=r({bubbled:null,captured:null}),a=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),i={topLevelTypes:a,PropagationPhases:o};e.exports=i},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var o=n(316),a=r(o),i=n(636),s=r(i),u=n(635),l=r(u),c=n(634),d=r(c),f=n(315),p=r(f),h=n(317);r(h);t.createStore=a["default"],t.combineReducers=s["default"],t.bindActionCreators=l["default"],t.applyMiddleware=d["default"],t.compose=p["default"]},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null==e||p["default"].isValidElement(e)}function a(e){return o(e)||Array.isArray(e)&&e.every(o)}function i(e,t,n){e=e||"UnknownComponent";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r](n,r,e);o instanceof Error}}function s(e,t){return d({},e,t)}function u(e){var t=e.type,n=s(t.defaultProps,e.props);if(t.propTypes&&i(t.displayName||t.name,t.propTypes,n),n.children){var r=l(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function l(e,t){var n=[];return p["default"].Children.forEach(e,function(e){if(p["default"].isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function c(e){return a(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var d=Object.assign||function(e){for(var t=1;t should not have a "'+t+'" prop'):void 0}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(1),a=o.PropTypes.func,i=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,l=o.PropTypes.element,c=o.PropTypes.shape,d=o.PropTypes.string,f=(t.history=c({listen:a.isRequired,push:a.isRequired,replace:a.isRequired,go:a.isRequired,goBack:a.isRequired,goForward:a.isRequired}),t.component=u([a,d])),p=(t.components=u([f,i]),t.route=u([i,l]));t.routes=u([p,s(p)])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function a(e){var t=o(e),n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substring(a),t=t.substring(0,a));var i=t.indexOf("?");return-1!==i&&(n=t.substring(i),t=t.substring(0,i)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0,t.extractPath=o,t.parsePath=a;var i=n(15);r(i)},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(553),a={mountComponent:function(e,t,n,o){var a=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),a},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=o.shouldUpdateRefs(i,t);s&&o.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];s?this[a]=s(n):"target"===a?this.target=r:this[a]=n[a]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var o=n(26),a=n(7),i=n(16),s=(n(6),{type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);a(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=200&&e.status<300)return e;401===e.status&&u["default"].logout();var n=void 0;try{n=JSON.parse(e)}catch(r){n={error:e.statusText}}n.statusCode=e.status,n.response=e,t(n)}).then(function(e){return e.json()}).then(function(t){e(t)})["catch"](function(){t({error:"Unknown error"})})})},this.post=function(e,n){return t.fetch(e,"POST",n)},this.constructQueryString=function(e){return(0,i["default"])(e,function(e,t){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&")},this.baseUrl=n.baseUrl||c["default"].API_BASE_URL,this.userAgent=n.userAgent||c["default"].API_USER_AGENT};t["default"]=d;var f=new d;t.client=f}).call(t,n(129))},function(e,t,n){var r=n(36),o=n(28),a=r(o,"Map");e.exports=a},function(e,t,n){function r(e,t){var n=e[t];return o(n)?n:void 0}var o=n(477);e.exports=r},function(e,t){function n(e){return!!e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var o=n(262);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return o.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return o.routerReducer}});var a=n(261);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return a.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return a.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return a.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return a.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return a.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return a.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return a.routerActions}});var i=n(500),s=r(i),u=n(499),l=r(u);t.syncHistoryWithStore=s["default"],t.routerMiddleware=l["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return 0===e.button}function i(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function u(e,t){var n=t.query,r=t.hash,o=t.state;return n||r||o?{pathname:e,query:n,hash:r,state:o}:e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;td;++d)u=r[d],"*"===u||"**"===u?(c=Array.isArray(t.splat)?t.splat[s++]:t.splat,null!=c||o>0?void 0:(0,f["default"])(!1),null!=c&&(a+=encodeURI(c))):"("===u?o+=1:")"===u?o-=1:":"===u.charAt(0)?(l=u.substring(1),c=t[l],null!=c||o>0?void 0:(0,f["default"])(!1),null!=c&&(a+=encodeURIComponent(c))):a+=u;return a.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=u,t.getParams=l,t.formatPattern=c;var d=n(11),f=r(d),p={}},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var o="POP";t.POP=o,t["default"]={PUSH:n,REPLACE:r,POP:o}},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(5),a={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var d in n){s.properties.hasOwnProperty(d)?o(!1):void 0;var f=d.toLowerCase(),p=n[d],h={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseAttribute:r(p,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasSideEffects:r(p,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.mustUseAttribute&&h.mustUseProperty?o(!1):void 0,!h.mustUseProperty&&h.hasSideEffects?o(!1):void 0,h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o(!1),u.hasOwnProperty(d)){var m=u[d];h.attributeName=m}i.hasOwnProperty(d)&&(h.attributeNamespace=i[d]),l.hasOwnProperty(d)&&(h.propertyName=l[d]),c.hasOwnProperty(d)&&(h.mutationMethod=c[d]),s.properties[d]=h}}},i={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t=i;i++)if(o(e,i)&&o(t,i))r=i;else if(e.charAt(i)!==t.charAt(i))break;var s=e.substr(0,r);return a(s)?void 0:f(!1),s}function c(e,t,n,r,o,a){e=e||"",t=t||"",e===t?f(!1):void 0;var l=i(t,e);l||i(e,t)?void 0:f(!1);for(var c=0,d=l?s:u,p=e;;p=d(p,t)){var h;if(o&&p===e||a&&p===t||(h=n(p,l,r)),h===!1||p===t)break;c++1){var t=e.indexOf(p,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var a=l(e,t);a!==e&&c(e,a,n,r,!1,!0),a!==t&&c(a,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:i,SEPARATOR:p};e.exports=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;t>o;o++)r[o]=arguments[o];var a={type:e};return n.forEach(function(e,t){a[n[t]]=r[t]}),a}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(121),a=r(o);t["default"]={setToken:function(e){localStorage.setItem(a["default"].JWT_STORE_KEY,e)},getToken:function(){return localStorage.getItem(a["default"].JWT_STORE_KEY)},logout:function(){localStorage.removeItem(a["default"].JWT_STORE_KEY)},loggedIn:function(){return!!localStorage.getItem(a["default"].JWT_STORE_KEY)}}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(5),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o},function(e,t,n){"use strict";var r=n(280),o=n(531),a=n(293),i=n(302),s=n(303),u=n(5),l=(n(6),{}),c=null,d=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},f=function(e){return d(e,!0)},p=function(e){return d(e,!1)},h=null,m={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){h=e},getInstanceHandle:function(){return h},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n?u(!1):void 0;var o=l[t]||(l[t]={});o[e]=n;var a=r.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t];return n&&n[e]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=l[t];o&&delete o[e]},deleteAllListeners:function(e){for(var t in l)if(l[t][e]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete l[t][e]}},extractEvents:function(e,t,n,o,a){for(var s,u=r.plugins,l=0;l-1&&e%1==0&&r>=e}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e){if(!i(e)||f.call(e)!=s||a(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}var o=n(146),a=n(86),i=n(37),s="[object Object]",u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,d=l.call(Object),f=u.toString;e.exports=r},function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&s.call(e)==a}var o=n(37),a="[object Symbol]",i=Object.prototype,s=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t1?r-1:0),a=1;r>a;a++)o[a-1]=arguments[a];var i=b.createLocation.apply(b,[n(e,e.query)].concat(o));return e.query&&(i.query=e.query),t(i)}function y(e,t,n){"string"==typeof t&&(t=d.parsePath(t)),s(i({state:e},t,{query:n}))}function v(e,t,n){"string"==typeof t&&(t=d.parsePath(t)),u(i({state:e},t,{query:n}))}var g=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=e(g),M=g.stringifyQuery,L=g.parseQueryString;return"function"!=typeof M&&(M=o),"function"!=typeof L&&(L=m),i({},b,{listenBefore:r,listen:a,push:s,replace:u,createPath:l,createHref:f,createLocation:_,pushState:p["default"](y,"pushState is deprecated; use push instead"),replaceState:p["default"](v,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";var r=n(9),o=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(i=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&a.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=i},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=t.Toolbar=t.Textarea=t.Text=t.Table=t.Switch=t.Stat=t.Space=t.Slider=t.SequenceMapStep=t.SequenceMap=t.Select=t.SectionHeader=t.Section=t.Rating=t.Radio=t.Progress=t.Pre=t.PanelHeader=t.PanelFooter=t.Panel=t.PageHeader=t.Overlay=t.NavItem=t.Message=t.Menu=t.Media=t.LinkBlock=t.Label=t.InlineForm=t.Input=t.HeadingLink=t.Heading=t.Footer=t.Fixed=t.Embed=t.DropdownMenu=t.Dropdown=t.Drawer=t.DotIndicator=t.Donut=t.Divider=t.Container=t.Close=t.Checkbox=t.CardImage=t.Card=t.ButtonOutline=t.ButtonCircle=t.Button=t.Breadcrumbs=t.Blockquote=t.Block=t.Banner=t.Badge=t.Avatar=t.Arrow=t.config=t.Base=void 0;var a=n(3);Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return o(a)["default"]}});var i=n(4);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return o(i)["default"]}});var s=n(306);Object.defineProperty(t,"Arrow",{enumerable:!0,get:function(){return o(s)["default"]}});var u=n(578);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return o(u)["default"]}});var l=n(579);Object.defineProperty(t,"Badge",{enumerable:!0,get:function(){return o(l)["default"]}});var c=n(580);Object.defineProperty(t,"Banner",{enumerable:!0,get:function(){return o(c)["default"]}});var d=n(581);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return o(d)["default"]}});var f=n(582);Object.defineProperty(t,"Blockquote",{enumerable:!0,get:function(){return o(f)["default"]}});var p=n(583);Object.defineProperty(t,"Breadcrumbs",{enumerable:!0,get:function(){return o(p)["default"]}});var h=n(115);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return o(h)["default"]}});var m=n(584);Object.defineProperty(t,"ButtonCircle",{enumerable:!0,get:function(){return o(m)["default"]}});var _=n(307);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return o(_)["default"]}});var y=n(585);Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return o(y)["default"]}});var v=n(586);Object.defineProperty(t,"CardImage",{enumerable:!0,get:function(){return o(v)["default"]}});var g=n(587);Object.defineProperty(t,"Checkbox",{enumerable:!0,get:function(){return o(g)["default"]}});var b=n(588);Object.defineProperty(t,"Close",{enumerable:!0,get:function(){return o(b)["default"]}});var M=n(589);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return o(M)["default"]}});var L=n(590);Object.defineProperty(t,"Divider",{enumerable:!0,get:function(){return o(L)["default"]}});var w=n(591);Object.defineProperty(t,"Donut",{enumerable:!0,get:function(){return o(w)["default"]}});var x=n(592);Object.defineProperty(t,"DotIndicator",{enumerable:!0,get:function(){return o(x)["default"]}});var k=n(593);Object.defineProperty(t,"Drawer",{enumerable:!0,get:function(){return o(k)["default"]}});var T=n(594);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return o(T)["default"]}});var S=n(595);Object.defineProperty(t,"DropdownMenu",{enumerable:!0,get:function(){return o(S)["default"]}});var D=n(596);Object.defineProperty(t,"Embed",{enumerable:!0,get:function(){return o(D)["default"]}});var P=n(597);Object.defineProperty(t,"Fixed",{enumerable:!0,get:function(){return o(P)["default"]}});var C=n(598);Object.defineProperty(t,"Footer",{enumerable:!0,get:function(){return o(C)["default"]}});var O=n(116);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return o(O)["default"]}});var Y=n(308);Object.defineProperty(t,"HeadingLink",{enumerable:!0,get:function(){return o(Y)["default"]}});var E=n(309);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return o(E)["default"]}});var j=n(599);Object.defineProperty(t,"InlineForm",{enumerable:!0,get:function(){return o(j)["default"]}});var A=n(33);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return o(A)["default"]}});var H=n(310);Object.defineProperty(t,"LinkBlock",{enumerable:!0,get:function(){return o(H)["default"]}});var N=n(600);Object.defineProperty(t,"Media",{enumerable:!0,get:function(){return o(N)["default"]}});var R=n(311);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return o(R)["default"]}});var I=n(601);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return o(I)["default"]}});var W=n(602);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return o(W)["default"]}});var F=n(603);Object.defineProperty(t,"Overlay",{enumerable:!0,get:function(){return o(F)["default"]}});var U=n(604);Object.defineProperty(t,"PageHeader",{enumerable:!0,get:function(){return o(U)["default"]}});var z=n(605);Object.defineProperty(t,"Panel",{enumerable:!0,get:function(){return o(z)["default"]}});var B=n(606);Object.defineProperty(t,"PanelFooter",{enumerable:!0,get:function(){return o(B)["default"]}});var V=n(607);Object.defineProperty(t,"PanelHeader",{enumerable:!0,get:function(){return o(V)["default"]}});var q=n(608);Object.defineProperty(t,"Pre",{enumerable:!0,get:function(){return o(q)["default"]}});var G=n(609);Object.defineProperty(t,"Progress",{enumerable:!0,get:function(){return o(G)["default"]}});var K=n(610);Object.defineProperty(t,"Radio",{enumerable:!0,get:function(){return o(K)["default"]}});var J=n(611);Object.defineProperty(t,"Rating",{enumerable:!0,get:function(){return o(J)["default"]}});var $=n(612);Object.defineProperty(t,"Section",{enumerable:!0,get:function(){return o($)["default"]}});var X=n(613);Object.defineProperty(t,"SectionHeader",{enumerable:!0,get:function(){return o(X)["default"]}});var Q=n(614);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return o(Q)["default"]}});var Z=n(615);Object.defineProperty(t,"SequenceMap",{enumerable:!0,get:function(){return o(Z)["default"]}});var ee=n(312);Object.defineProperty(t,"SequenceMapStep",{enumerable:!0,get:function(){return o(ee)["default"]}});var te=n(616);Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return o(te)["default"]}});var ne=n(617);Object.defineProperty(t,"Space",{enumerable:!0,get:function(){return o(ne)["default"]}});var re=n(618);Object.defineProperty(t,"Stat",{enumerable:!0,get:function(){return o(re)["default"]}});var oe=n(619);Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return o(oe)["default"]}});var ae=n(620);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return o(ae)["default"]}});var ie=n(44);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return o(ie)["default"]}});var se=n(621);Object.defineProperty(t,"Textarea",{enumerable:!0,get:function(){return o(se)["default"]}});var ue=n(622);Object.defineProperty(t,"Toolbar",{enumerable:!0,get:function(){return o(ue)["default"]}});var le=n(623);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return o(le)["default"]}});var ce=n(77),de=r(ce);t["default"]=de},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.keyPrefix="reduxPersist:",t.REHYDRATE="persist/REHYDRATE",t.REHYDRATE_ERROR="persist/REHYDRATE_ERROR"},function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var a=n(640).nextTick,i=Function.prototype.apply,s=Array.prototype.slice,u={},l=0;t.setTimeout=function(){return new o(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=l++,r=arguments.length<2?!1:s.call(arguments,1);return u[n]=!0,a(function(){u[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(t,n(79).setImmediate,n(79).clearImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(t){t(h()),u.client.post("/atlases.list",{teamId:e}).then(function(e){var n=(0,l.normalize)(e.data,(0,l.arrayOf)(c));t(m(n,e.pagination))})["catch"](function(e){t(_(e))})}}function a(e){return function(t){t(b()),u.client.post("/atlases.info",{id:e}).then(function(e){var n=(0,l.normalize)(e.data,c);t(M(n))})["catch"](function(e){t(L(e))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.FETCH_ATLAS_FAILURE=t.FETCH_ATLAS_SUCCESS=t.FETCH_ATLAS_PENDING=t.FETCH_ATLASES_FAILURE=t.FETCH_ATLASES_SUCCESS=t.FETCH_ATLASES_PENDING=void 0,t.fetchAtlasesAsync=o,t.fetchAtlasAsync=a;var i=n(45),s=r(i),u=n(34),l=n(491),c=new l.Schema("atlases"),d=t.FETCH_ATLASES_PENDING="FETCH_ATLASES_PENDING",f=t.FETCH_ATLASES_SUCCESS="FETCH_ATLASES_SUCCESS",p=t.FETCH_ATLASES_FAILURE="FETCH_ATLASES_FAILURE",h=(0,s["default"])(d),m=(0,s["default"])(f,"data","pagination"),_=(0,s["default"])(p,"error"),y=t.FETCH_ATLAS_PENDING="FETCH_ATLAS_PENDING",v=t.FETCH_ATLAS_SUCCESS="FETCH_ATLAS_SUCCESS",g=t.FETCH_ATLAS_FAILURE="FETCH_ATLAS_FAILURE",b=(0,s["default"])(y),M=(0,s["default"])(v,"data"),L=(0,s["default"])(g,"error")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(t){t(p()),l.client.post("/documents.info",{id:e}).then(function(e){t(h(e.data))})["catch"](function(e){t(m(e))})}}function a(e,t,n,r){return function(o){o(g());var a=void 0;a=t?"/documents.update":"/documents.create",l.client.post(a,{atlas:e,document:t,title:n,text:r}).then(function(e){o(b(e.data,e.pagination)),o((0,u.replace)("/documents/"+e.data.id))})["catch"](function(e){o(M(e))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.SAVE_DOCUMENT_FAILURE=t.SAVE_DOCUMENT_SUCCESS=t.SAVE_DOCUMENT_PENDING=t.FETCH_DOCUMENT_FAILURE=t.FETCH_DOCUMENT_SUCCESS=t.FETCH_DOCUMENT_PENDING=void 0,t.fetchDocumentAsync=o,t.saveDocumentAsync=a;var i=n(45),s=r(i),u=n(38),l=n(34),c=t.FETCH_DOCUMENT_PENDING="FETCH_DOCUMENT_PENDING",d=t.FETCH_DOCUMENT_SUCCESS="FETCH_DOCUMENT_SUCCESS",f=t.FETCH_DOCUMENT_FAILURE="FETCH_DOCUMENT_FAILURE",p=(0,s["default"])(c),h=(0,s["default"])(d,"data"),m=(0,s["default"])(f,"error"),_=t.SAVE_DOCUMENT_PENDING="SAVE_DOCUMENT_PENDING",y=t.SAVE_DOCUMENT_SUCCESS="SAVE_DOCUMENT_SUCCESS",v=t.SAVE_DOCUMENT_FAILURE="SAVE_DOCUMENT_FAILURE",g=(0,s["default"])(_),b=(0,s["default"])(y,"data"),M=(0,s["default"])(v,"error")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(t){t(h()),u.client.post("/auth.slack",{code:e}).then(function(e){c["default"].setToken(e.data.accessToken),t(m(e.data.user,e.data.team)),t((0,s.replace)("/dashboard"))})["catch"](function(e){t(push("/error"))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.SLACK_AUTH_FAILURE=t.SLACK_AUTH_SUCCESS=t.SLACK_AUTH_PENDING=void 0,t.slackAuthAsync=o;var a=n(45),i=r(a),s=n(38),u=n(34),l=n(46),c=r(l),d=t.SLACK_AUTH_PENDING="SLACK_AUTH_PENDING",f=t.SLACK_AUTH_SUCCESS="SLACK_AUTH_SUCCESS",p=t.SLACK_AUTH_FAILURE="SLACK_AUTH_FAILURE",h=(0,i["default"])(d),m=(0,i["default"])(f,"user","team");(0,i["default"])(p,"error")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(324),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(325),a=r(o);t["default"]=a["default"]},function(e,t,n){function r(e,t,n,s,u){return e===t?!0:null==e||null==t||!a(e)&&!i(t)?e!==e&&t!==t:o(e,t,r,n,s,u)}var o=n(431),a=n(17),i=n(37);e.exports=r},function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t,n){function r(e){var t=o(e)?u.call(e):"";return t==a||t==i}var o=n(17),a="[object Function]",i="[object GeneratorFunction]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t,n){function r(e){var t=l(e);if(!t&&!s(e))return a(e);var n=i(e),r=!!n,c=n||[],d=c.length;for(var f in e)!o(e,f)||r&&("length"==f||u(f,d))||t&&"constructor"==f||c.push(f);return c}var o=n(140),a=n(433),i=n(454),s=n(61),u=n(148),l=n(455);e.exports=r},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(a){return!1}}var o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,i,s=n(e),u=1;ua&&u;)u=!1,t.call(this,a++,o,r);return s=!1,i?void n.apply(this,l):void(a>=e&&u&&(i=!0,n()))}}var a=0,i=!1,s=!1,u=!1,l=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++s===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var a=n(1),i=n(66),s=(o(i),n(29)),u=r(s),l=n(8),c=(o(l),a.PropTypes.func),d=a.PropTypes.object,f=a.PropTypes.shape,p=a.PropTypes.string,h=t.routerShape=f({push:c.isRequired,replace:c.isRequired,go:c.isRequired,goBack:c.isRequired,goForward:c.isRequired,setRouteLeaveHook:c.isRequired,isActive:c.isRequired}),m=t.locationShape=f({pathname:p.isRequired,search:p.isRequired,state:d,action:p.isRequired,key:p}),_=t.falsy=u.falsy,y=t.history=u.history,v=t.location=m,g=t.component=u.component,b=t.components=u.components,M=t.route=u.route,L=(t.routes=u.routes,t.router=h),w={falsy:_,history:y,location:v,component:g,components:b,route:M,router:L};t["default"]=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function a(e,t){function n(t){var n=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=void 0;return n&&n!==!0||null!==r?(t={pathname:t,query:n},o=r||!1):(t=e.createLocation(t),o=n),(0,p["default"])(t,o,M.location,M.routes,M.params)}function r(t){return e.createLocation(t,u.REPLACE)}function a(e,n){L&&L.location===e?s(L,n):(0,y["default"])(t,e,function(t,r){t?n(t):r?s(i({},r,{location:e}),n):n()})}function s(e,t){function n(n,r){return n||r?o(n,r):void(0,m["default"])(e,function(n,r){n?t(n):t(null,null,M=i({},e,{components:r}))})}function o(e,n){e?t(e):t(null,r(n))}var a=(0,c["default"])(M,e),s=a.leaveRoutes,u=a.changeRoutes,l=a.enterRoutes;(0,d.runLeaveHooks)(s),s.filter(function(e){return-1===l.indexOf(e)}).forEach(v),(0,d.runChangeHooks)(u,M,e,function(t,r){return t||r?o(t,r):void(0,d.runEnterHooks)(l,e,n)})}function l(e){var t=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.__id__||t&&(e.__id__=w++)}function f(e){return e.reduce(function(e,t){return e.push.apply(e,x[l(t)]),e},[])}function h(e,n){(0,y["default"])(t,e,function(t,r){if(null==r)return void n();L=i({},r,{location:e});for(var o=f((0,c["default"])(M,L).leaveRoutes),a=void 0,s=0,u=o.length;null==a&&u>s;++s)a=o[s](e);n(a)})}function _(){if(M.routes){for(var e=f(M.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&r>n;++n)t=e[n]();return t}}function v(e){var t=l(e,!1);t&&(delete x[t],o(x)||(k&&(k(),k=null),T&&(T(),T=null)))}function g(t,n){var r=l(t),a=x[r];if(a)-1===a.indexOf(n)&&a.push(n);else{var i=!o(x);x[r]=[n],i&&(k=e.listenBefore(h),e.listenBeforeUnload&&(T=e.listenBeforeUnload(_)))}return function(){var e=x[r];if(e){var o=e.filter(function(e){return e!==n});0===o.length?v(t):x[r]=o}}}function b(t){return e.listen(function(n){M.location===n?t(null,M):a(n,function(n,r,o){n?t(n):r?e.transitionTo(r):o&&t(null,o)})})}var M={},L=void 0,w=1,x=Object.create(null),k=void 0,T=void 0;return{isActive:n,match:a,listenBeforeLeavingRoute:g,listen:b}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;tt||e.hasOverloadedBooleanValue&&t===!1}var a=n(42),i=n(13),s=n(576),u=(n(6),/^[a-zA-Z_][\w\.\-]*$/),l={},c={},d={createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(a.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=a.properties.hasOwnProperty(e)?a.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return a.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(r){var i=r.mutationMethod;if(i)i(e,n);else if(o(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var l=r.propertyName;r.hasSideEffects&&""+e[l]==""+n||(e[l]=n)}}else a.isCustomAttribute(t)&&d.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n.propertyName,i=a.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===i||(e[o]=i)}}else a.isCustomAttribute(t)&&e.removeAttribute(t)}};i.measureMethods(d,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=d},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?l(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?l(!1):void 0}function a(e){r(e),null!=e.checked||null!=e.onChange?l(!1):void 0}function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(299),u=n(71),l=n(5),c=(n(6),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},f={},p={checkPropTypes:function(e,t,n){for(var r in d){if(d.hasOwnProperty(r))var o=d[r](t,r,e,u.prop);if(o instanceof Error&&!(o.message in f)){f[o.message]=!0;i(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(a(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(a(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=p},function(e,t,n){"use strict";var r=n(101),o=n(10),a={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=a},function(e,t,n){"use strict";var r=n(5),o=!1,a={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,a.unmountIDFromEnvironment=e.unmountIDFromEnvironment,a.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,a.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=a},function(e,t,n){"use strict";var r=n(279),o=n(97),a=n(10),i=n(13),s=n(5),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},l={updatePropertyByID:function(e,t,n){var r=a.getNode(e);u.hasOwnProperty(t)?s(!1):void 0,null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=new i(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?l(!1):void 0,t="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new c}else"string"==typeof e||"number"==typeof e?t=s.createInstanceForText(e):l(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var a=n(537),i=n(291),s=n(297),u=n(7),l=n(5),c=(n(6),function(){});u(c.prototype,a.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t,n){"use strict";/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -18,35 +29,21 @@ t.canUseDOM=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ -function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(6);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(6),o=n(50),i=n(51),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.exports=a},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";function r(e){return m[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(v,r)}function a(e){return"$"+i(e)}function s(e,t,n,r){var i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||l.isValidElement(e))return n(r,e,""===t?p+o(e,0):t),1;var u,c,m=0,v=""===t?p:t+h;if(Array.isArray(e))for(var g=0;g":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var o=n(6),i=n(1),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],f=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(e){d[e]=f,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=r.bind(t),a=0;a-1&&e%1==0&&c>=e}function u(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function l(e){return!!e&&"object"==typeof e}var c=9007199254740991,f="[object Arguments]",d="[object Function]",p="[object GeneratorFunction]",h=Object.prototype,m=h.hasOwnProperty,v=h.toString,g=h.propertyIsEnumerable,y=n("length");e.exports=r},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){var r;(function(e,o){(function(){function i(e,t){return e.set(t[0],t[1]),e}function a(e,t){return e.add(t),e}function s(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function u(e,t,n,r){for(var o=-1,i=e.length;++o-1}function m(e,t,n){for(var r=-1,o=e.length;++r-1;);return n}function D(e,t){for(var n=e.length;n--&&P(t,e[n],0)>-1;);return n}function I(e){return e&&e.Object===Object?e:null}function z(e,t){if(e!==t){var n=null===e,r=e===te,o=e===e,i=null===t,a=t===te,s=t===t;if(e>t&&!i||!o||n&&!a&&s||r&&s)return 1;if(t>e&&!n||!s||i&&!r&&o||a&&o)return-1}return 0}function H(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}function W(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function F(e){return function(t,n){var r;return t===te&&n===te?0:(t!==te&&(r=t),n!==te&&(r=r===te?n:e(r,n)),r)}}function q(e){return Ln[e]}function U(e){return jn[e]}function X(e){return"\\"+In[e]}function V(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o-1&&e%1==0&&t>e}function G(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function J(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function K(e,t){for(var n=-1,r=e.length,o=0,i=[];++nt,o=n?e.length:0,i=So(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=Hl(u,this.__takeCount__);if(!n||re>o||o==u&&p==u)return Or(e,this.__actions__);var h=[];e:for(;u--&&p>d;){l+=t;for(var m=-1,v=e[l];++mn)return!1;var r=e.length-1;return n==r?e.pop():Sl.call(e,n,1),!0}function sn(e,t){var n=ln(e,t);return 0>n?te:e[n][1]}function un(e,t){return ln(e,t)>-1}function ln(e,t){for(var n=e.length;n--;)if(qa(e[n][0],t))return n;return-1}function cn(e,t,n){var r=ln(e,t);0>r?e.push([t,n]):e[r][1]=n}function fn(e,t,n,r){return e===te||qa(e,cl[n])&&!pl.call(r,n)?t:e}function dn(e,t,n){(n===te||qa(e[t],n))&&("number"!=typeof t||n!==te||t in e)||(e[t]=n)}function pn(e,t,n){var r=e[t];pl.call(e,t)&&qa(r,n)&&(n!==te||t in e)||(e[t]=n)}function hn(e,t,n,r){return sc(e,function(e,o,i){t(r,e,n(e),i)}),r}function mn(e,t){return e&&Kr(t,Zs(t),e)}function vn(e,t){for(var n=-1,r=null==e,o=t.length,i=Array(o);++n=e?e:n),t!==te&&(e=e>=t?e:t)),e}function yn(e,t,n,r,o,i,a){var s;if(r&&(s=i?r(e,o,i,a):r(e)),s!==te)return s;if(!is(e))return e;var u=Qc(e);if(u){if(s=Lo(e),!t)return Jr(e,s)}else{var l=Mo(e),f=l==He||l==We;if(_c(e))return Hr(e,t);if(l==Ue||l==je||f&&!i){if(B(e))return i?e:{};if(s=jo(f?{}:e),!t)return Yr(e,mn(s,e))}else{if(!On[l])return i?e:{};s=Ro(e,l,yn,t)}}a||(a=new $t);var d=a.get(e);if(d)return d;if(a.set(e,s),!u)var p=n?xo(e):Zs(e);return c(p||e,function(o,i){p&&(i=o,o=e[i]),pn(s,i,yn(o,t,n,r,i,e,a))}),s}function bn(e){var t=Zs(e),n=t.length;return function(r){if(null==r)return!n;for(var o=n;o--;){var i=t[o],a=e[i],s=r[i];if(s===te&&!(i in Object(r))||!a(s))return!1}return!0}}function xn(e){return is(e)?El(e):{}}function An(e,t,n){if("function"!=typeof e)throw new ul(oe);return Ml(function(){e.apply(te,n)},t)}function Pn(e,t,n,r){var o=-1,i=h,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=v(t,L(n))),r?(i=m,a=!1):t.length>=re&&(i=Qt,a=!1,t=new Yt(t));e:for(;++on&&(n=-n>o?0:o+n),r=r===te||r>o?o:Ns(r),0>r&&(r+=o),r=n>r?0:Ms(r);r>n;)e[n++]=t;return e}function Rn(e,t){var n=[];return sc(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Dn(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Io),o||(o=[]);++i0&&n(s)?t>1?Dn(s,t-1,n,r,o):g(o,s):r||(o[o.length]=s)}return o}function In(e,t){return e&&lc(e,t,Zs)}function Wn(e,t){return e&&cc(e,t,Zs)}function Fn(e,t){return p(t,function(t){return ns(e[t])})}function Un(e,t){t=Wo(t,e)?[t]:Ir(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[t[n++]];return n&&n==r?e:te}function Xn(e,t,n){var r=t(e);return Qc(e)?r:g(r,n(e))}function Vn(e,t){return pl.call(e,t)||"object"==typeof e&&t in e&&null===Eo(e)}function Bn(e,t){return t in Object(e)}function Jn(e,t,n){return e>=Hl(t,n)&&e=120&&c.length>=120)?new Yt(a&&c):te}c=e[0];var f=-1,d=s[0];e:for(;++ft?n:0,Z(t,n)?e[t]:te}function cr(e,t,n){var r=-1;t=v(t.length?t:[zu],L(ko()));var o=or(e,function(e,n,o){var i=v(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return N(o,function(e,t){return H(e,t,n)})}function fr(e,t){return e=Object(e),y(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}function dr(e,t){for(var n=-1,r=Ao(e),o=r.length,i={};++n-1;)s!==e&&Sl.call(s,u,1),Sl.call(e,u,1);return e}function vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(r==n||o!=i){var i=o;if(Z(o))Sl.call(e,o,1);else if(Wo(o,e))delete e[o];else{var a=Ir(o),s=Go(e,a);null!=s&&delete s[vi(a)]}}}return e}function gr(e,t){return e+Ll(Fl()*(t-e+1))}function yr(e,t,n,r){for(var o=-1,i=zl(Ol((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}function br(e,t){var n="";if(!e||1>t||t>Ee)return n;do t%2&&(n+=e),t=Ll(t/2),t&&(e+=e);while(t);return n}function xr(e,t,n,r){t=Wo(t,e)?[t]:Ir(t);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++ot&&(t=-t>o?0:o+t),n=n>o?o:n,0>n&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=o){for(;o>r;){var i=r+o>>>1,a=e[i];(n?t>=a:t>a)&&null!==a?r=i+1:o=i}return o}return Pr(e,t,zu,n)}function Pr(e,t,n,r){t=n(t);for(var o=0,i=e?e.length:0,a=t!==t,s=null===t,u=t===te;i>o;){var l=Ll((o+i)/2),c=n(e[l]),f=c!==te,d=c===c;if(a)var p=d||r;else p=s?d&&f&&(r||null!=c):u?d&&(r||f):null==c?!1:r?t>=c:t>c;p?o=l+1:i=l}return Hl(i,Oe)}function Cr(e){return Tr(e)}function Tr(e,t){for(var n=0,r=e.length,o=e[0],i=t?t(o):o,a=i,s=1,u=[o];++n=re){var l=t?null:dc(e);if(l)return Y(l);a=!1,o=Qt,u=new Yt}else u=t?[]:s;e:for(;++rr?t[r]:te;n(a,e[r],s)}return a}function Rr(e){return Ga(e)?e:[]}function Dr(e){return"function"==typeof e?e:zu}function Ir(e){return Qc(e)?e:gc(e)}function zr(e,t,n){var r=e.length;return n=n===te?r:n,!t&&n>=r?e:Ar(e,t,n)}function Hr(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Wr(e){var t=new e.constructor(e.byteLength);return new wl(t).set(new wl(e)),t}function Fr(e,t){var n=t?Wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function qr(e,t,n){var r=t?n(J(e),!0):J(e);return y(r,i,new e.constructor)}function Ur(e){var t=new e.constructor(e.source,Nt.exec(e));return t.lastIndex=e.lastIndex,t}function Xr(e,t,n){var r=t?n(Y(e),!0):Y(e);return y(r,a,new e.constructor)}function Vr(e){return ic?Object(ic.call(e)):{}}function Br(e,t){var n=t?Wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Zr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,l=zl(i-a,0),c=Array(u+l),f=!r;++so)&&(c[n[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function Gr(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,u=-1,l=t.length,c=zl(i-s,0),f=Array(c+l),d=!r;++oo)&&(f[p+n[a]]=e[o++]);return f}function Jr(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:te,a=o>2?n[2]:te;for(i="function"==typeof i?(o--,i):te,a&&Ho(n[0],n[1],a)&&(i=3>o?te:i,o=1),t=Object(t);++ri&&a[0]!==l&&a[i-1]!==l?[]:K(a,l);if(i-=c.length,n>i)return ho(e,t,so,r.placeholder,te,a,c,te,te,n-i);var f=this&&this!==Zn&&this instanceof r?o:e;return s(f,this,a)}var o=oo(e);return r}function ao(e){return Oa(function(t){t=Dn(t,1);var n=t.length,o=n,i=r.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new ul(oe);if(i&&!s&&"wrapper"==wo(a))var s=new r([],!0)}for(o=s?o:n;++o=re)return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++og){var w=K(b,x);return ho(e,t,so,c.placeholder,n,b,w,s,u,l-g)}var k=d?n:this,P=p?k[e]:e;return g=b.length,s?b=Jo(b,s):m&&g>1&&b.reverse(),f&&g>u&&(b.length=u),this&&this!==Zn&&this instanceof c&&(P=v||oo(P)),P.apply(k,b)}var f=t&he,d=t&se,p=t&ue,h=t&(ce|fe),m=t&ve,v=p?te:oo(e);return c}function uo(e,t){return function(n,r){return Yn(n,e,t(r),{})}}function lo(e){return Oa(function(t){return t=1==t.length&&Qc(t[0])?v(t[0],L(ko())):v(Dn(t,1,zo),L(ko())),Oa(function(n){var r=this;return e(t,function(e){return s(e,r,n)})})})}function co(e,t){t=t===te?" ":t+"";var n=t.length;if(2>n)return n?br(t,e):t;var r=br(t,Ol(e/Q(t)));return Tn.test(t)?zr(_(r),0,e).join(""):r.slice(0,e)}function fo(e,t,n,r){function o(){for(var t=-1,u=arguments.length,l=-1,c=r.length,f=Array(c+u),d=this&&this!==Zn&&this instanceof o?a:e;++lt?1:-1:Ss(r)||0,yr(t,n,r,e)}}function ho(e,t,n,r,o,i,a,s,u,l){var c=t&ce,f=c?a:te,d=c?te:a,p=c?i:te,h=c?te:i;t|=c?de:pe,t&=~(c?pe:de),t&le||(t&=~(se|ue));var m=[e,t,o,p,f,h,d,s,u,l],v=n.apply(te,m);return qo(e)&&vc(v,m),v.placeholder=r,v}function mo(e){var t=al[e];return function(e,n){if(e=Ss(e),n=Ns(n)){var r=(js(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(js(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}function vo(e,t,n,r,o,i,a,s){var u=t&ue;if(!u&&"function"!=typeof e)throw new ul(oe);var l=r?r.length:0;if(l||(t&=~(de|pe),r=o=te),a=a===te?a:zl(Ns(a),0),s=s===te?s:Ns(s),l-=o?o.length:0,t&pe){var c=r,f=o;r=o=te}var d=u?te:pc(e),p=[e,t,n,r,o,c,f,i,a,s];if(d&&Bo(p,d),e=p[0],t=p[1],n=p[2],r=p[3],o=p[4],s=p[9]=null==p[9]?u?0:e.length:zl(p[9]-l,0),!s&&t&(ce|fe)&&(t&=~(ce|fe)),t&&t!=se)h=t==ce||t==fe?io(e,t,s):t!=de&&t!=(se|de)||o.length?so.apply(te,p):fo(e,t,n,r);else var h=to(e,t,n);var m=d?fc:vc;return m(h,p)}function go(e,t,n,r,o,i){var a=-1,s=o&ye,u=o&ge,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var f=i.get(e);if(f)return f==t;var d=!0;for(i.set(e,t);++ao,a=r==he&&n==ce||r==he&&n==me&&e[7].length<=t[8]||r==(he|me)&&t[7].length<=t[8]&&n==ce;if(!i&&!a)return e;r&se&&(e[2]=t[2],o|=n&se?0:le);var s=t[3];if(s){var u=e[3];e[3]=u?Zr(u,s,t[4]):s,e[4]=u?K(e[3],ae):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?Gr(u,s,t[6]):s,e[6]=u?K(e[5],ae):t[6]),s=t[7],s&&(e[7]=s),r&he&&(e[8]=null==e[8]?t[8]:Hl(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function Zo(e,t,n,r,o,i){return is(e)&&is(t)&&sr(e,t,te,Zo,i.set(t,e)),e}function Go(e,t){return 1==t.length?e:Un(e,Ar(t,0,-1))}function Jo(e,t){for(var n=e.length,r=Hl(t.length,n),o=Jr(e);r--;){var i=t[r];e[r]=Z(i,n)?o[i]:te}return e}function Ko(e){return"string"==typeof e||xs(e)?e:e+""; -}function Yo(e){if(null!=e){try{return dl.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Qo(e){if(e instanceof o)return e.clone();var t=new r(e.__wrapped__,e.__chain__);return t.__actions__=Jr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function _o(e,t,n){t=(n?Ho(e,t,n):t===te)?1:zl(Ns(t),0);var r=e?e.length:0;if(!r||1>t)return[];for(var o=0,i=0,a=Array(Ol(r/t));r>o;)a[i++]=Ar(e,o,o+=t);return a}function $o(e){for(var t=-1,n=e?e.length:0,r=0,o=[];++te)return e?Jr(t):[];for(var n=Array(e-1);e--;)n[e-1]=arguments[e];return l(t,Dn(n,1))}function ti(e,t,n){var r=e?e.length:0;return r?(t=n||t===te?1:Ns(t),Ar(e,0>t?0:t,r)):[]}function ni(e,t,n){var r=e?e.length:0;return r?(t=n||t===te?1:Ns(t),t=r-t,Ar(e,0,0>t?0:t)):[]}function ri(e,t){return e&&e.length?Sr(e,ko(t,3),!0,!0):[]}function oi(e,t){return e&&e.length?Sr(e,ko(t,3),!0):[]}function ii(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&Ho(e,t,n)&&(n=0,r=o),jn(e,t,n,r)):[]}function ai(e,t){return e&&e.length?k(e,ko(t,3)):-1}function si(e,t){return e&&e.length?k(e,ko(t,3),!0):-1}function ui(e){var t=e?e.length:0;return t?Dn(e,1):[]}function li(e){var t=e?e.length:0;return t?Dn(e,Te):[]}function ci(e,t){var n=e?e.length:0;return n?(t=t===te?1:Ns(t),Dn(e,t)):[]}function fi(e){for(var t=-1,n=e?e.length:0,r={};++tn&&(n=zl(r+n,0)),P(e,t,n)):-1}function hi(e){return ni(e,1)}function mi(e,t){return e?Dl.call(e,t):""}function vi(e){var t=e?e.length:0;return t?e[t-1]:te}function gi(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if(n!==te&&(o=Ns(n),o=(0>o?zl(r+o,0):Hl(o,r-1))+1),t!==t)return V(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function yi(e,t){return e&&e.length?lr(e,Ns(t)):te}function bi(e,t){return e&&e.length&&t&&t.length?mr(e,t):e}function xi(e,t,n){return e&&e.length&&t&&t.length?mr(e,t,ko(n)):e}function Ai(e,t,n){return e&&e.length&&t&&t.length?mr(e,t,te,n):e}function wi(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ko(t,3);++rr&&qa(e[r],t))return r}return-1}function Ni(e,t){return kr(e,t,!0)}function Mi(e,t,n){return Pr(e,t,ko(n),!0)}function Si(e,t){var n=e?e.length:0;if(n){var r=kr(e,t,!0)-1;if(qa(e[r],t))return r}return-1}function Oi(e){return e&&e.length?Cr(e):[]}function Li(e,t){return e&&e.length?Tr(e,ko(t)):[]}function ji(e){return ti(e,1)}function Ri(e,t,n){return e&&e.length?(t=n||t===te?1:Ns(t),Ar(e,0,0>t?0:t)):[]}function Di(e,t,n){var r=e?e.length:0;return r?(t=n||t===te?1:Ns(t),t=r-t,Ar(e,0>t?0:t,r)):[]}function Ii(e,t){return e&&e.length?Sr(e,ko(t,3),!1,!0):[]}function zi(e,t){return e&&e.length?Sr(e,ko(t,3)):[]}function Hi(e){return e&&e.length?Er(e):[]}function Wi(e,t){return e&&e.length?Er(e,ko(t)):[]}function Fi(e,t){return e&&e.length?Er(e,te,t):[]}function qi(e){if(!e||!e.length)return[];var t=0;return e=p(e,function(e){return Ga(e)?(t=zl(e.length,t),!0):void 0}),S(t,function(t){return v(e,pr(t))})}function Ui(e,t){if(!e||!e.length)return[];var n=qi(e);return null==t?n:v(n,function(e){return s(t,te,e)})}function Xi(e,t){return jr(e||[],t||[],pn)}function Vi(e,t){return jr(e||[],t||[],xr)}function Bi(e){var n=t(e);return n.__chain__=!0,n}function Zi(e,t){return t(e),e}function Gi(e,t){return t(e)}function Ji(){return Bi(this)}function Ki(){return new r(this.value(),this.__chain__)}function Yi(){this.__values__===te&&(this.__values__=Es(this.value()));var e=this.__index__>=this.__values__.length,t=e?te:this.__values__[this.__index__++];return{done:e,value:t}}function Qi(){return this}function _i(e){for(var t,r=this;r instanceof n;){var o=Qo(r);o.__index__=0,o.__values__=te,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t}function $i(){var e=this.__wrapped__;if(e instanceof o){var t=e;return this.__actions__.length&&(t=new o(this)),t=t.reverse(),t.__actions__.push({func:Gi,args:[ki],thisArg:te}),new r(t,this.__chain__)}return this.thru(ki)}function ea(){return Or(this.__wrapped__,this.__actions__)}function ta(e,t,n){var r=Qc(e)?d:Ln;return n&&Ho(e,t,n)&&(t=te),r(e,ko(t,3))}function na(e,t){var n=Qc(e)?p:Rn;return n(e,ko(t,3))}function ra(e,t){if(t=ko(t,3),Qc(e)){var n=k(e,t);return n>-1?e[n]:te}return w(e,t,sc)}function oa(e,t){if(t=ko(t,3),Qc(e)){var n=k(e,t,!0);return n>-1?e[n]:te}return w(e,t,uc)}function ia(e,t){return Dn(fa(e,t),1)}function aa(e,t){return Dn(fa(e,t),Te)}function sa(e,t,n){return n=n===te?1:Ns(n),Dn(fa(e,t),n)}function ua(e,t){return"function"==typeof t&&Qc(e)?c(e,t):sc(e,ko(t))}function la(e,t){return"function"==typeof t&&Qc(e)?f(e,t):uc(e,ko(t))}function ca(e,t,n,r){e=Za(e)?e:su(e),n=n&&!r?Ns(n):0;var o=e.length;return 0>n&&(n=zl(o+n,0)),bs(e)?o>=n&&e.indexOf(t,n)>-1:!!o&&P(e,t,n)>-1}function fa(e,t){var n=Qc(e)?v:or;return n(e,ko(t,3))}function da(e,t,n,r){return null==e?[]:(Qc(t)||(t=null==t?[]:[t]),n=r?te:n,Qc(n)||(n=null==n?[]:[n]),cr(e,t,n))}function pa(e,t,n){var r=Qc(e)?y:E,o=arguments.length<3;return r(e,ko(t,4),n,o,sc)}function ha(e,t,n){var r=Qc(e)?b:E,o=arguments.length<3;return r(e,ko(t,4),n,o,uc)}function ma(e,t){var n=Qc(e)?p:Rn;return t=ko(t,3),n(e,function(e,n,r){return!t(e,n,r)})}function va(e){var t=Za(e)?e:su(e),n=t.length;return n>0?t[gr(0,n-1)]:te}function ga(e,t,n){var r=-1,o=Es(e),i=o.length,a=i-1;for(t=(n?Ho(e,t,n):t===te)?1:gn(Ns(t),0,i);++r0&&(n=t.apply(this,arguments)),1>=e&&(t=te),n}}function Pa(e,t,n){t=n?te:t;var r=vo(e,ce,te,te,te,te,te,t);return r.placeholder=Pa.placeholder,r}function Ca(e,t,n){t=n?te:t;var r=vo(e,fe,te,te,te,te,te,t);return r.placeholder=Ca.placeholder,r}function Ta(e,t,n){function r(t){var n=d,r=p;return d=p=te,y=t,m=e.apply(r,n)}function o(e){return y=e,v=Ml(s,t),b?r(e):m}function i(e){var n=e-g,r=e-y,o=t-n;return x?Hl(o,h-r):o}function a(e){var n=e-g,r=e-y;return!g||n>=t||0>n||x&&r>=h}function s(){var e=Uc();return a(e)?u(e):void(v=Ml(s,i(e)))}function u(e){return kl(v),v=te,A&&d?r(e):(d=p=te,m)}function l(){v!==te&&kl(v),g=y=0,d=p=v=te}function c(){return v===te?m:u(Uc())}function f(){var e=Uc(),n=a(e);if(d=arguments,p=this,g=e,n){if(v===te)return o(g);if(x)return kl(v),v=Ml(s,t),r(g)}return v===te&&(v=Ml(s,t)),m}var d,p,h,m,v,g=0,y=0,b=!1,x=!1,A=!0;if("function"!=typeof e)throw new ul(oe);return t=Ss(t)||0,is(n)&&(b=!!n.leading,x="maxWait"in n,h=x?zl(Ss(n.maxWait)||0,t):h,A="trailing"in n?!!n.trailing:A),f.cancel=l,f.flush=c,f}function Ea(e){return vo(e,ve)}function Na(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new ul(oe);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),a};return n.cache=new(Na.Cache||Vt),n}function Ma(e){if("function"!=typeof e)throw new ul(oe);return function(){return!e.apply(this,arguments)}}function Sa(e){return ka(2,e)}function Oa(e,t){if("function"!=typeof e)throw new ul(oe);return t=zl(t===te?e.length-1:Ns(t),0),function(){for(var n=arguments,r=-1,o=zl(n.length-t,0),i=Array(o);++rt}function Xa(e,t){return e>=t}function Va(e){return Ga(e)&&pl.call(e,"callee")&&(!Nl.call(e,"callee")||vl.call(e)==je)}function Ba(e){return as(e)&&vl.call(e)==Ye}function Za(e){return null!=e&&os(hc(e))&&!ns(e)}function Ga(e){return as(e)&&Za(e)}function Ja(e){return e===!0||e===!1||as(e)&&vl.call(e)==De}function Ka(e){return as(e)&&vl.call(e)==Ie}function Ya(e){return!!e&&1===e.nodeType&&as(e)&&!ms(e)}function Qa(e){if(Za(e)&&(Qc(e)||bs(e)||ns(e.splice)||Va(e)||_c(e)))return!e.length;if(as(e)){var t=Mo(e);if(t==Fe||t==Be)return!e.size}for(var n in e)if(pl.call(e,n))return!1;return!(Ql&&Zs(e).length)}function _a(e,t){return _n(e,t)}function $a(e,t,n){n="function"==typeof n?n:te;var r=n?n(e,t):te;return r===te?_n(e,t,n):!!r}function es(e){return as(e)?vl.call(e)==ze||"string"==typeof e.message&&"string"==typeof e.name:!1}function ts(e){return"number"==typeof e&&Rl(e)}function ns(e){var t=is(e)?vl.call(e):"";return t==He||t==We}function rs(e){return"number"==typeof e&&e==Ns(e)}function os(e){return"number"==typeof e&&e>-1&&e%1==0&&Ee>=e}function is(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function as(e){return!!e&&"object"==typeof e}function ss(e){return as(e)&&Mo(e)==Fe}function us(e,t){return e===t||er(e,t,Po(t))}function ls(e,t,n){return n="function"==typeof n?n:te,er(e,t,Po(t),n)}function cs(e){return hs(e)&&e!=+e}function fs(e){if(!is(e))return!1;var t=ns(e)||B(e)?yl:Lt;return t.test(Yo(e))}function ds(e){return null===e}function ps(e){return null==e}function hs(e){return"number"==typeof e||as(e)&&vl.call(e)==qe}function ms(e){if(!as(e)||vl.call(e)!=Ue||B(e))return!1;var t=Eo(e);if(null===t)return!0;var n=pl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dl.call(n)==ml}function vs(e){return is(e)&&vl.call(e)==Ve}function gs(e){return rs(e)&&e>=-Ee&&Ee>=e}function ys(e){return as(e)&&Mo(e)==Be}function bs(e){return"string"==typeof e||!Qc(e)&&as(e)&&vl.call(e)==Ze}function xs(e){return"symbol"==typeof e||as(e)&&vl.call(e)==Ge}function As(e){return as(e)&&os(e.length)&&!!Sn[vl.call(e)]}function ws(e){return e===te}function ks(e){return as(e)&&Mo(e)==Je}function Ps(e){return as(e)&&vl.call(e)==Ke}function Cs(e,t){return t>e}function Ts(e,t){return t>=e}function Es(e){if(!e)return[];if(Za(e))return bs(e)?_(e):Jr(e);if(Tl&&e[Tl])return G(e[Tl]());var t=Mo(e),n=t==Fe?J:t==Be?Y:su;return n(e)}function Ns(e){if(!e)return 0===e?e:0;if(e=Ss(e),e===Te||e===-Te){var t=0>e?-1:1;return t*Ne}var n=e%1;return e===e?n?e-n:e:0}function Ms(e){return e?gn(Ns(e),0,Se):0}function Ss(e){if("number"==typeof e)return e;if(xs(e))return Me;if(is(e)){var t=ns(e.valueOf)?e.valueOf():e;e=is(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(wt,"");var n=Ot.test(e);return n||jt.test(e)?Hn(e.slice(2),n?2:8):St.test(e)?Me:+e}function Os(e){return Kr(e,Gs(e))}function Ls(e){return gn(Ns(e),-Ee,Ee)}function js(e){if("string"==typeof e)return e;if(null==e)return"";if(xs(e))return ac?ac.call(e):"";var t=e+"";return"0"==t&&1/e==-Te?"-0":t}function Rs(e,t){var n=xn(e);return t?mn(n,t):n}function Ds(e,t){return w(e,ko(t,3),In,!0)}function Is(e,t){return w(e,ko(t,3),Wn,!0)}function zs(e,t){return null==e?e:lc(e,ko(t),Gs)}function Hs(e,t){return null==e?e:cc(e,ko(t),Gs)}function Ws(e,t){return e&&In(e,ko(t))}function Fs(e,t){return e&&Wn(e,ko(t))}function qs(e){return null==e?[]:Fn(e,Zs(e))}function Us(e){return null==e?[]:Fn(e,Gs(e))}function Xs(e,t,n){var r=null==e?te:Un(e,t);return r===te?n:r}function Vs(e,t){return null!=e&&Oo(e,t,Vn)}function Bs(e,t){return null!=e&&Oo(e,t,Bn)}function Zs(e){var t=Uo(e);if(!t&&!Za(e))return nr(e);var n=Do(e),r=!!n,o=n||[],i=o.length;for(var a in e)!Vn(e,a)||r&&("length"==a||Z(a,i))||t&&"constructor"==a||o.push(a);return o}function Gs(e){for(var t=-1,n=Uo(e),r=rr(e),o=r.length,i=Do(e),a=!!i,s=i||[],u=s.length;++tt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Fl();return Hl(e+o*(t-e+zn("1e-"+((o+"").length-1))),t)}return gr(e,t)}function du(e){return Af(js(e).toLowerCase())}function pu(e){return e=js(e),e&&e.replace(Dt,q).replace(kn,"")}function hu(e,t,n){e=js(e),t="string"==typeof t?t:t+"";var r=e.length;return n=n===te?r:gn(Ns(n),0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function mu(e){return e=js(e),e&&pt.test(e)?e.replace(ft,U):e}function vu(e){return e=js(e),e&&At.test(e)?e.replace(xt,"\\$&"):e}function gu(e,t,n){e=js(e),t=Ns(t);var r=t?Q(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return co(Ll(o),n)+e+co(Ol(o),n)}function yu(e,t,n){e=js(e),t=Ns(t);var r=t?Q(e):0;return t&&t>r?e+co(t-r,n):e}function bu(e,t,n){e=js(e),t=Ns(t);var r=t?Q(e):0;return t&&t>r?co(t-r,n)+e:e}function xu(e,t,n){return n||null==t?t=0:t&&(t=+t),e=js(e).replace(wt,""),Wl(e,t||(Mt.test(e)?16:10))}function Au(e,t,n){return t=(n?Ho(e,t,n):t===te)?1:Ns(t),br(js(e),t)}function wu(){var e=arguments,t=js(e[0]);return e.length<3?t:ql.call(t,e[1],e[2])}function ku(e,t,n){return n&&"number"!=typeof n&&Ho(e,t,n)&&(t=n=te),(n=n===te?Se:n>>>0)?(e=js(e),e&&("string"==typeof t||null!=t&&!vs(t))&&(t+="",""==t&&Tn.test(e))?zr(_(e),0,n):Xl.call(e,t,n)):[]}function Pu(e,t,n){return e=js(e),n=gn(Ns(n),0,e.length),e.lastIndexOf(t,n)==n}function Cu(e,n,r){var o=t.templateSettings;r&&Ho(e,n,r)&&(n=te),e=js(e),n=tf({},n,o,fn);var i,a,s=tf({},n.imports,o.imports,fn),u=Zs(s),l=j(s,u),c=0,f=n.interpolate||It,d="__p += '",p=sl((n.escape||It).source+"|"+f.source+"|"+(f===vt?Et:It).source+"|"+(n.evaluate||It).source+"|$","g"),h="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Mn+"]")+"\n";e.replace(p,function(t,n,r,o,s,u){return r||(r=o),d+=e.slice(c,u).replace(zt,X),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),d+="';\n";var m=n.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(st,""):d).replace(ut,"$1").replace(lt,"$1;"),d="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")+d+"return __p\n}";var v=wf(function(){return Function(u,h+"return "+d).apply(te,l)});if(v.source=d,es(v))throw v;return v}function Tu(e){return js(e).toLowerCase()}function Eu(e){return js(e).toUpperCase()}function Nu(e,t,n){if(e=js(e),!e)return e;if(n||t===te)return e.replace(wt,"");if(!(t+=""))return e;var r=_(e),o=_(t),i=R(r,o),a=D(r,o)+1;return zr(r,i,a).join("")}function Mu(e,t,n){if(e=js(e),!e)return e;if(n||t===te)return e.replace(Pt,"");if(!(t+=""))return e;var r=_(e),o=D(r,_(t))+1;return zr(r,0,o).join("")}function Su(e,t,n){if(e=js(e),!e)return e;if(n||t===te)return e.replace(kt,"");if(!(t+=""))return e;var r=_(e),o=R(r,_(t));return zr(r,o).join("")}function Ou(e,t){var n=be,r=xe;if(is(t)){var o="separator"in t?t.separator:o;n="length"in t?Ns(t.length):n,r="omission"in t?js(t.omission):r}e=js(e);var i=e.length;if(Tn.test(e)){var a=_(e);i=a.length}if(n>=i)return e;var s=n-Q(r);if(1>s)return r;var u=a?zr(a,0,s).join(""):e.slice(0,s);if(o===te)return u+r;if(a&&(s+=u.length-s),vs(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=sl(o.source,js(Nt.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,f===te?s:f)}}else if(e.indexOf(o,s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r}function Lu(e){return e=js(e),e&&dt.test(e)?e.replace(ct,$):e}function ju(e,t,n){return e=js(e),t=n?te:t,t===te&&(t=En.test(e)?Cn:Ct),e.match(t)||[]}function Ru(e){var t=e?e.length:0,n=ko();return e=t?v(e,function(e){if("function"!=typeof e[1])throw new ul(oe);return[n(e[0]),e[1]]}):[],Oa(function(n){for(var r=-1;++re||e>Ee)return[];var n=Se,r=Hl(e,Se);t=ko(t),e-=Se;for(var o=S(r,t);++n0){if(++e>=Ae)return n}else e=0;return fc(n,r)}}(),gc=Na(function(e){var t=[];return js(e).replace(bt,function(e,n,r,o){t.push(r?o.replace(Tt,"$1"):n||e)}),t}),yc=Oa(function(e,t){return Ga(e)?Pn(e,Dn(t,1,Ga,!0)):[]}),bc=Oa(function(e,t){var n=vi(t);return Ga(n)&&(n=te),Ga(e)?Pn(e,Dn(t,1,Ga,!0),ko(n)):[]}),xc=Oa(function(e,t){var n=vi(t);return Ga(n)&&(n=te),Ga(e)?Pn(e,Dn(t,1,Ga,!0),te,n):[]}),Ac=Oa(function(e){var t=v(e,Rr);return t.length&&t[0]===e[0]?Kn(t):[]}),wc=Oa(function(e){var t=vi(e),n=v(e,Rr);return t===vi(n)?t=te:n.pop(),n.length&&n[0]===e[0]?Kn(n,ko(t)):[]}),kc=Oa(function(e){var t=vi(e),n=v(e,Rr);return t===vi(n)?t=te:n.pop(),n.length&&n[0]===e[0]?Kn(n,te,t):[]}),Pc=Oa(bi),Cc=Oa(function(e,t){t=v(Dn(t,1),String);var n=vn(e,t);return vr(e,t.sort(z)),n}),Tc=Oa(function(e){return Er(Dn(e,1,Ga,!0))}),Ec=Oa(function(e){var t=vi(e);return Ga(t)&&(t=te),Er(Dn(e,1,Ga,!0),ko(t))}),Nc=Oa(function(e){var t=vi(e);return Ga(t)&&(t=te),Er(Dn(e,1,Ga,!0),te,t)}),Mc=Oa(function(e,t){return Ga(e)?Pn(e,t):[]}),Sc=Oa(function(e){return Lr(p(e,Ga))}),Oc=Oa(function(e){var t=vi(e);return Ga(t)&&(t=te),Lr(p(e,Ga),ko(t))}),Lc=Oa(function(e){var t=vi(e);return Ga(t)&&(t=te),Lr(p(e,Ga),te,t)}),jc=Oa(qi),Rc=Oa(function(e){var t=e.length,n=t>1?e[t-1]:te;return n="function"==typeof n?(e.pop(),n):te,Ui(e,n)}),Dc=Oa(function(e){e=Dn(e,1);var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return vn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof o&&Z(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Gi,args:[a],thisArg:te}),new r(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(te),e})):this.thru(a)}),Ic=Qr(function(e,t,n){pl.call(e,n)?++e[n]:e[n]=1}),zc=Qr(function(e,t,n){pl.call(e,n)?e[n].push(t):e[n]=[t]}),Hc=Oa(function(e,t,n){var r=-1,o="function"==typeof t,i=Wo(t),a=Za(e)?Array(e.length):[];return sc(e,function(e){var u=o?t:i&&null!=e?e[t]:te;a[++r]=u?s(u,e,n):Qn(e,t,n)}),a}),Wc=Qr(function(e,t,n){e[n]=t}),Fc=Qr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),qc=Oa(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ho(e,t[0],t[1])?t=[]:n>2&&Ho(t[0],t[1],t[2])&&(t=[t[0]]),t=1==t.length&&Qc(t[0])?t[0]:Dn(t,1,zo),cr(e,t,[])}),Uc=ol.now,Xc=Oa(function(e,t,n){var r=se;if(n.length){var o=K(n,To(Xc));r|=de}return vo(e,r,t,n,o)}),Vc=Oa(function(e,t,n){var r=se|ue;if(n.length){var o=K(n,To(Vc));r|=de}return vo(t,r,e,n,o)}),Bc=Oa(function(e,t){return An(e,1,t)}),Zc=Oa(function(e,t,n){return An(e,Ss(t)||0,n)});Na.Cache=Vt;var Gc=Oa(function(e,t){t=1==t.length&&Qc(t[0])?v(t[0],L(ko())):v(Dn(t,1,zo),L(ko()));var n=t.length;return Oa(function(r){for(var o=-1,i=Hl(r.length,n);++o0||0>t)?new o(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==te&&(t=Ns(t),n=0>t?n.dropRight(-t):n.take(t-e)),n)},o.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},o.prototype.toArray=function(){return this.take(Se)},In(o.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),s=t[a?"take"+("last"==n?"Right":""):n],u=a||/^find/.test(n);s&&(t.prototype[n]=function(){var n=this.__wrapped__,l=a?[1]:arguments,c=n instanceof o,f=l[0],d=c||Qc(n),p=function(e){var n=s.apply(t,g([e],l));return a&&h?n[0]:n};d&&i&&"function"==typeof f&&1!=f.length&&(c=d=!1);var h=this.__chain__,m=!!this.__actions__.length,v=u&&!h,y=c&&!m;if(!u&&d){n=y?n:new o(this);var b=e.apply(n,l);return b.__actions__.push({func:Gi,args:[p],thisArg:te}),new r(b,h)}return v&&y?e.apply(this,l):(b=this.thru(p),v?a?b.value()[0]:b.value():b)})}),c(["pop","push","shift","sort","splice","unshift"],function(e){var n=ll[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var t=this.value();return n.apply(Qc(t)?t:[],e)}return this[r](function(t){return n.apply(Qc(t)?t:[],e)})}}),In(o.prototype,function(e,n){var r=t[n];if(r){var o=r.name+"",i=_l[o]||(_l[o]=[]);i.push({name:n,func:r})}}),_l[so(te,ue).name]=[{name:"wrapper",func:te}],o.prototype.clone=I,o.prototype.reverse=Rt,o.prototype.value=Ht,t.prototype.at=Dc,t.prototype.chain=Ji,t.prototype.commit=Ki,t.prototype.next=Yi,t.prototype.plant=_i,t.prototype.reverse=$i,t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=ea,Tl&&(t.prototype[Tl]=Qi),t}var te,ne="4.11.1",re=200,oe="Expected a function",ie="__lodash_hash_undefined__",ae="__lodash_placeholder__",se=1,ue=2,le=4,ce=8,fe=16,de=32,pe=64,he=128,me=256,ve=512,ge=1,ye=2,be=30,xe="...",Ae=150,we=16,ke=1,Pe=2,Ce=3,Te=1/0,Ee=9007199254740991,Ne=1.7976931348623157e308,Me=NaN,Se=4294967295,Oe=Se-1,Le=Se>>>1,je="[object Arguments]",Re="[object Array]",De="[object Boolean]",Ie="[object Date]",ze="[object Error]",He="[object Function]",We="[object GeneratorFunction]",Fe="[object Map]",qe="[object Number]",Ue="[object Object]",Xe="[object Promise]",Ve="[object RegExp]",Be="[object Set]",Ze="[object String]",Ge="[object Symbol]",Je="[object WeakMap]",Ke="[object WeakSet]",Ye="[object ArrayBuffer]",Qe="[object DataView]",_e="[object Float32Array]",$e="[object Float64Array]",et="[object Int8Array]",tt="[object Int16Array]",nt="[object Int32Array]",rt="[object Uint8Array]",ot="[object Uint8ClampedArray]",it="[object Uint16Array]",at="[object Uint32Array]",st=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,lt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ct=/&(?:amp|lt|gt|quot|#39|#96);/g,ft=/[&<>"'`]/g,dt=RegExp(ct.source),pt=RegExp(ft.source),ht=/<%-([\s\S]+?)%>/g,mt=/<%([\s\S]+?)%>/g,vt=/<%=([\s\S]+?)%>/g,gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yt=/^\w*$/,bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,xt=/[\\^$.*+?()[\]{}|]/g,At=RegExp(xt.source),wt=/^\s+|\s+$/g,kt=/^\s+/,Pt=/\s+$/,Ct=/[a-zA-Z0-9]+/g,Tt=/\\(\\)?/g,Et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Mt=/^0x/i,St=/^[-+]0x[0-9a-f]+$/i,Ot=/^0b[01]+$/i,Lt=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,Dt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,It=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",Wt="\\u0300-\\u036f\\ufe20-\\ufe23",Ft="\\u20d0-\\u20f0",qt="\\u2700-\\u27bf",Ut="a-z\\xdf-\\xf6\\xf8-\\xff",Xt="\\xac\\xb1\\xd7\\xf7",Vt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bt="\\u2018\\u2019\\u201c\\u201d",Zt=" \\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",Gt="A-Z\\xc0-\\xd6\\xd8-\\xde",Jt="\\ufe0e\\ufe0f",Kt=Xt+Vt+Bt+Zt,Yt="['’]",Qt="["+Ht+"]",_t="["+Kt+"]",$t="["+Wt+Ft+"]",en="\\d+",tn="["+qt+"]",nn="["+Ut+"]",rn="[^"+Ht+Kt+en+qt+Ut+Gt+"]",on="\\ud83c[\\udffb-\\udfff]",an="(?:"+$t+"|"+on+")",sn="[^"+Ht+"]",un="(?:\\ud83c[\\udde6-\\uddff]){2}",ln="[\\ud800-\\udbff][\\udc00-\\udfff]",cn="["+Gt+"]",fn="\\u200d",dn="(?:"+nn+"|"+rn+")",pn="(?:"+cn+"|"+rn+")",hn="(?:"+Yt+"(?:d|ll|m|re|s|t|ve))?",mn="(?:"+Yt+"(?:D|LL|M|RE|S|T|VE))?",vn=an+"?",gn="["+Jt+"]?",yn="(?:"+fn+"(?:"+[sn,un,ln].join("|")+")"+gn+vn+")*",bn=gn+vn+yn,xn="(?:"+[tn,un,ln].join("|")+")"+bn,An="(?:"+[sn+$t+"?",$t,un,ln,Qt].join("|")+")",wn=RegExp(Yt,"g"),kn=RegExp($t,"g"),Pn=RegExp(on+"(?="+on+")|"+An+bn,"g"),Cn=RegExp([cn+"?"+nn+"+"+hn+"(?="+[_t,cn,"$"].join("|")+")",pn+"+"+mn+"(?="+[_t,cn+dn,"$"].join("|")+")",cn+"?"+dn+"+"+hn,cn+"+"+mn,en,xn].join("|"),"g"),Tn=RegExp("["+fn+Ht+Wt+Ft+Jt+"]"),En=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mn=-1,Sn={};Sn[_e]=Sn[$e]=Sn[et]=Sn[tt]=Sn[nt]=Sn[rt]=Sn[ot]=Sn[it]=Sn[at]=!0,Sn[je]=Sn[Re]=Sn[Ye]=Sn[De]=Sn[Qe]=Sn[Ie]=Sn[ze]=Sn[He]=Sn[Fe]=Sn[qe]=Sn[Ue]=Sn[Ve]=Sn[Be]=Sn[Ze]=Sn[Je]=!1;var On={};On[je]=On[Re]=On[Ye]=On[Qe]=On[De]=On[Ie]=On[_e]=On[$e]=On[et]=On[tt]=On[nt]=On[Fe]=On[qe]=On[Ue]=On[Ve]=On[Be]=On[Ze]=On[Ge]=On[rt]=On[ot]=On[it]=On[at]=!0,On[ze]=On[He]=On[Je]=!1;var Ln={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},jn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Rn={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Dn={"function":!0,object:!0},In={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zn=parseFloat,Hn=parseInt,Wn=Dn[typeof t]&&t&&!t.nodeType?t:te,Fn=Dn[typeof e]&&e&&!e.nodeType?e:te,qn=Fn&&Fn.exports===Wn?Wn:te,Un=I(Wn&&Fn&&"object"==typeof o&&o),Xn=I(Dn[typeof self]&&self),Vn=I(Dn[typeof window]&&window),Bn=I(Dn[typeof this]&&this),Zn=Un||Vn!==(Bn&&Bn.window)&&Vn||Xn||Bn||Function("return this")(),Gn=ee();(Vn||Xn||{})._=Gn,r=function(){return Gn}.call(t,n,t,e),!(r!==te&&(e.exports=r))}).call(this)}).call(t,n(52)(e),function(){return this}())},function(e,t,n){"use strict";e.exports=n(116)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(232);Object.defineProperty(t,"Keyframes",{enumerable:!0,get:function(){return r(o)["default"]}});var i=n(231);Object.defineProperty(t,"Frame",{enumerable:!0,get:function(){return r(i)["default"]}})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2);t["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function a(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function u(e,t){var n=t.query,r=t.hash,o=t.state;return n||r||o?{pathname:e,query:n,hash:r,state:o}:e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t=0;r--){var o=e[r],i=o.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:p,state:p,onEnter:c.falsy,children:c.falsy},render:function(){s["default"](!1)}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return a({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive})}function i(e,t){return e=a({},e,t)}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t=0&&0===window.sessionStorage.length)return;throw n}}function a(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(n.name===c)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=i,t.readState=a;var s=n(14),u=(r(s),"@@History/"),l=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],c="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return u.canUseDOM?void 0:s["default"](!1),n.listen(e)}var n=f["default"](i({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return i({},n,{listen:t})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t1?r-1:0),i=1;r>i;i++)o[i-1]=arguments[i];return t(y.createLocation.apply(y,[n(e)].concat(o)))}function m(e,t){"string"==typeof t&&(t=u.parsePath(t)),a(i({state:e},t))}function v(e,t){"string"==typeof t&&(t=u.parsePath(t)),l(i({state:e},t))}var g=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=e(g),b=g.basename;if(null==b&&s.canUseDOM){var x=document.getElementsByTagName("base")[0];x&&(b=x.getAttribute("href"))}return i({},y,{listenBefore:r,listen:o,push:a,replace:l,createPath:f,createHref:p,createLocation:h,pushState:d["default"](m,"pushState is deprecated; use push instead"),replaceState:d["default"](v,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=n(268),i=n(128),a=n(12),s=n(51),u=n(76),l=n(1),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(e,t){for(var n,a=null,c=null,f=0;f-1?void 0:a(!1),!l.plugins[n]){t.extractEvents?void 0:a(!1),l.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a(!1)}}}function o(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return e.registrationName?(i(e.registrationName,t,n),!0):!1}function i(e,t,n){l.registrationNameModules[e]?a(!1):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(1),s=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?a(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?a(!1):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=l},function(e,t,n){"use strict";function r(e){return(""+e).replace(x,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);g(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?l(u,o,n,v.thatReturnsArgument):null!=u&&(m.isValidElement(u)&&(u=m.cloneAndReplaceKey(u,i+(u!==t?r(u.key||"")+"/":"")+n)),o.push(u))}function l(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var l=s.getPooled(t,a,o,i);g(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var r=[];return l(e,r,null,t,n),r}function f(e,t,n){return null}function d(e,t){return g(e,f,null)}function p(e){var t=[];return l(e,t,null,v.thatReturnsArgument),t}var h=n(21),m=n(11),v=n(15),g=n(78),y=h.twoArgumentPooler,b=h.fourArgumentPooler,x=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,b);var A={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:d,toArray:p};e.exports=A},function(e,t,n){"use strict";function r(e,t){var n=w.hasOwnProperty(t)?w[t]:null;P.hasOwnProperty(t)&&(n!==x.OVERRIDE_BASE?v(!1):void 0),e.hasOwnProperty(t)&&(n!==x.DEFINE_MANY&&n!==x.DEFINE_MANY_MERGED?v(!1):void 0)}function o(e,t){if(t){"function"==typeof t?v(!1):void 0,d.isValidElement(t)?v(!1):void 0;var n=e.prototype;t.hasOwnProperty(b)&&k.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==b){var i=t[o];if(r(n,o),k.hasOwnProperty(o))k[o](e,i);else{var a=w.hasOwnProperty(o),l=n.hasOwnProperty(o),c="function"==typeof i,f=c&&!a&&!l&&t.autobind!==!1;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=i,n[o]=i;else if(l){var p=w[o];!a||p!==x.DEFINE_MANY_MERGED&&p!==x.DEFINE_MANY?v(!1):void 0,p===x.DEFINE_MANY_MERGED?n[o]=s(n[o],i):p===x.DEFINE_MANY&&(n[o]=u(n[o],i))}else n[o]=i}}}}function i(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in k;o?v(!1):void 0;var i=n in e;i?v(!1):void 0,e[n]=r}}}function a(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:v(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?v(!1):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,n)}}var f=n(115),d=n(11),p=(n(46),n(45),n(130)),h=n(4),m=n(31),v=n(1),g=n(26),y=n(19),b=(n(3),y({mixins:null})),x=g({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),A=[],w={mixins:x.DEFINE_MANY,statics:x.DEFINE_MANY,propTypes:x.DEFINE_MANY,contextTypes:x.DEFINE_MANY,childContextTypes:x.DEFINE_MANY,getDefaultProps:x.DEFINE_MANY_MERGED,getInitialState:x.DEFINE_MANY_MERGED,getChildContext:x.DEFINE_MANY_MERGED,render:x.DEFINE_ONCE,componentWillMount:x.DEFINE_MANY,componentDidMount:x.DEFINE_MANY,componentWillReceiveProps:x.DEFINE_MANY,shouldComponentUpdate:x.DEFINE_ONCE,componentWillUpdate:x.DEFINE_MANY,componentDidUpdate:x.DEFINE_MANY,componentWillUnmount:x.DEFINE_MANY,updateComponent:x.OVERRIDE_BASE},k={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n"+s+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(13),i=n(48),a=n(4),s=n(15),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[l,u];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=d.isBatchingUpdates;d.isBatchingUpdates=!0,a?e(t,n,r,o,i):f.perform(e,null,t,n,r,o,i)}};e.exports=d},function(e,t,n){"use strict";function r(){if(!C){C=!0,g.EventEmitter.injectReactEventListener(v),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginHub.injectInstanceHandle(y),g.EventPluginHub.injectMount(b),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:k,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,SelectEventPlugin:A,BeforeInputEventPlugin:o}),g.NativeComponent.injectGenericComponentClass(h),g.NativeComponent.injectTextComponentClass(m),g.Class.injectMixin(f),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(P),g.EmptyComponent.injectEmptyComponent("noscript"),g.Updates.injectReconcileTransaction(x),g.Updates.injectBatchingStrategy(p),g.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:w.createReactRootIndex),g.Component.injectEnvironment(d)}}var o=n(264),i=n(266),a=n(267),s=n(269),u=n(270),l=n(6),c=n(273),f=n(275),d=n(64),p=n(120),h=n(279),m=n(119),v=n(287),g=n(288),y=n(30),b=n(8),x=n(292),A=n(298),w=n(299),k=n(300),P=n(297),C=!1;e.exports={inject:r}},function(e,t,n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;i("uniqueKey",e,t)}}function i(e,t,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=h[e]||(h[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=i},function(e,t,n){"use strict";var r=n(26),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=f[t];return null==n&&(f[t]=n=l(t)),n}function o(e){return c?void 0:u(!1),new c(e.type,e.props)}function i(e){return new d(e)}function a(e){return e instanceof d}var s=n(4),u=n(1),l=null,c=null,f={},d=null,p={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){d=e},injectComponentClasses:function(e){s(f,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:p};e.exports=h},function(e,t,n){"use strict";function r(e,t){}var o=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){if(o=o||w,a=a||r,null==n[r]){var s=b[i];return t?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,i){var a=t[n],s=m(a);if(s!==e){var u=b[o],l=v(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function i(){return r(x.thatReturns(null))}function a(e){function t(t,n,r,o,i){var a=t[n];if(!Array.isArray(a)){var s=b[o],u=m(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l>"}var y=n(11),b=n(45),x=n(15),A=n(73),w="<>",k={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:s(),instanceOf:u,node:d(),objectOf:c,oneOf:l,oneOfType:f,shape:p};e.exports=k},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(1);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(6),i=null;e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e}function o(e,t){return function(n,o){if(o.type!==e)return n;var a=i.isError(o)?"throw":"next";r(t)&&(t.next=t["throw"]=t);var s=t[a];return r(s)?s(n,o):n}}t.__esModule=!0,t["default"]=o;var i=n(211);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.save=t.load=void 0;var o=n(321),i=n(36),a=r(i);t.load=(0,o.createAction)(a.LOAD),t.save=(0,o.createAction)(a.SAVE)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(139);t["default"]=function(e){return function(t){var n=function(e){return t.dispatch((0,r.load)(e))};return e.load().then(function(e){return n(e),e})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tn;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};var r=function(){var e=t[t.length-1],n=t.slice(0,-1);return{v:function(){return n.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"==typeof r?r.v:void 0}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(){g===v&&(g=v.slice())}function i(){return m}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),g.push(e),function(){if(t){t=!1,r();var n=g.indexOf(e);g.splice(n,1)}}}function c(e){if(!(0,a["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,m=h(m,e)}finally{y=!1}for(var t=v=g,n=0;np;p++)f[p]=arguments[p];return r=a=i(this,(t=Object.getPrototypeOf(n)).call.apply(t,[this].concat(f))),a.getEditorInstance=function(){return a.refs.editor.getCodeMirror()},a.onChange=function(e){e!==a.props.text&&a.props.onChange(e)},a.componentDidMount=function(){console.log(a.props)},a.onDropAccepted=function(t){var n=t[0],r=a.getEditorInstance(),o=r.getCursor(),i=0!==o.ch,s=void 0,u="!["+n.name+"](Uploading...)";i?(r.replaceSelection("\n"+u+"\n"),s=o.line+3):(r.replaceSelection(u+"\n"),s=o.line+2),r.setCursor(s,0),m.client.post("/v0/user/s3",{kind:n.type,size:n.size,filename:n.name}).then(function(t){var o=new FormData;for(var i in t.form)o.append(i,t.form[i]);n.blob?o.append("file",n.file):o.append("file",n),e(t.upload_url,{method:"post",body:o}).then(function(e){a.props.replaceText(u,"!["+n.name+"]("+t.asset.url+")"),r.setCursor(s,0)})["catch"](function(e){a.props.replaceText(u,""),r.setCursor(s,0)})})},a.render=function(){var e={readOnly:!1,lineNumbers:!1,mode:"gfm",matchBrackets:!0,lineWrapping:!0,viewportMargin:1/0,theme:"atlas",extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"}};return u["default"].createElement("div",null,u["default"].createElement(d["default"],{onDropAccepted:a.onDropAccepted,disableClick:!0,multiple:!1,accept:"image/*",className:h["default"].container},u["default"].createElement(c["default"],{value:a.props.text,onChange:a.onChange,options:e,ref:"editor"})))},s=r,i(a,s)}return a(n,t),n}(u["default"].Component);v.propTypes={text:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func,replaceText:u["default"].PropTypes.func},t["default"]=v}).call(t,n(89))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(153),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={oauthState:Math.random().toString(36).substring(7)},r.componentDidMount=function(){localStorage.oauthState=r.state.oauthState},r.slackUrl=function(){var e="https://slack.com/oauth/authorize",t={client_id:"30086650419.30130733398",scope:r.props.scopes.join(" "),redirect_uri:"http://localhost:3000/auth/slack/",state:r.state.oauthState},n=Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&");return e+"?"+n},a=n,i(r,a)}return a(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("a",{href:this.slackUrl(),className:f["default"].link},"Authorize /w Slack")}}]),t}(l["default"].Component);d.propTypes={scopes:l["default"].PropTypes.arrayOf(l["default"].PropTypes.string)},d.defaultProps={scopes:["identify"]},t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(155),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 s=n(2),u=r(s),l=n(234),c=r(l),f=n(225),d=r(f),p=n(344),h=r(p);n(336),n(337);var m=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),f=0;s>f;f++)l[f]=arguments[f];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.onChange=function(e){e!==r.props.text&&r.props.onChange(e)},r.render=function(){return u["default"].createElement("div",{className:h["default"].container},u["default"].createElement("div",null),u["default"].createElement(c["default"],{options:{toolbar:{buttons:["bold","italic","underline","anchor","unorderedlist","orderedlist","h1","h2","h3","quote"]},placeholder:!1},text:(0,d["default"])(r.props.text),onChange:r.onChange,className:h["default"].editor}))},a=n,i(r,a)}return a(t,e),t}(u["default"].Component);m.propTypes={text:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func},t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(157),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?n:s["default"].xor([l.ActiveEditors.MARKDOWN,l.ActiveEditors.TEXT],[t.toggledEditor]);default:return e}},f=function(){var e=arguments.length<=0||void 0===arguments[0]?{visible:!1}:arguments[0],t=arguments[1];switch(t.type){case l.TOGGLE_HISTORY_SIDEBAR:return i({},e,{visible:!e.visible});default:return e}},d="# Welcome to Beautiful Atlas\n\nThis is just a small preview here's what you can do:\n\n- Write markdown or rich text, you choose\n- Dont' worry about saving\n- One document for now\n- More to come\n",p={text:d,revisions:[],unsavedChanges:!1},h=function(){var e=arguments.length<=0||void 0===arguments[0]?p:arguments[0],t=arguments[1],n=s["default"].last(e.revisions);switch(t.type){case l.UPDATE_TEXT:var r=!1;return n&&n.text!==e.text&&(r=!0),i({},e,{unsavedChanges:r,text:t.text});case l.ADD_REVISION:if(n&&n.text===e.text)return e;var a=n?n.id:0;return i({},e,{revisions:[].concat(o(e.revisions),[{id:a+1,text:e.text,created_at:t.createdAt}]),unsavedChanges:!1});case l.REPLACE_TEXT:var u=e.text.replace(t.originalText,t.replacedText);return i({},e,{text:u});default:return e}};t["default"]=(0,u.combineReducers)({activeEditors:c,historySidebar:f,text:h})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=(0,a["default"])(e,{gfm:!0,converters:[s,u]});return t}Object.defineProperty(t,"__esModule",{value:!0}),t.toMarkdown=o;var i=n(352),a=r(i),s={filter:"li",replacement:function(e,t){e=e.replace(/^\s+/,"").replace(/\n/gm,"\n ");var n="- ",r=t.parentNode,o=Array.prototype.indexOf.call(r.children,t)+1;return n=/ol/i.test(r.nodeName)?o+". ":"- ",n+e}},u={filter:["ul","ol"],replacement:function(e,t){for(var n=[],r=0;r1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;t>o;o++)r[o]=arguments[o];var i={type:e};return n.forEach(function(e,t){i[n[t]]=r[t]}),i}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={loggedIn:b["default"].loggedIn()},r.componentWillMount=function(){b["default"].onChange=r.updateAuth},r.updateAuth=function(e){r.setState({loggedIn:e})},r.logout=function(){b["default"].logout()},a=n,i(r,a)}return a(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("div",{className:d["default"].container},l["default"].createElement(m["default"],{activeEditors:this.props.activeEditors,toggleEditors:this.props.toggleEditors,addRevision:this.props.addRevision,unsavedChanges:this.props.unsavedChanges}),l["default"].createElement("div",{className:d["default"].content},l["default"].createElement(g["default"],null)))}}]),t}(u.Component);x.propTypes={children:l["default"].PropTypes.element,activeEditors:l["default"].PropTypes.array.isRequired,toggleEditors:l["default"].PropTypes.func.isRequired,addRevision:l["default"].PropTypes.func.isRequired,unsavedChanges:l["default"].PropTypes.bool.isRequired};var A=function(e){return{activeEditors:e.activeEditors,unsavedChanges:e.text.unsavedChanges}},w=function(e){return{toggleEditors:function(t){e((0,p.toggleEditors)(t))},addRevision:function(){e((0,p.addRevision)())}}};x=(0,c.connect)(A,w)(x),t["default"]=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(162),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 s=function(){function e(e,t){for(var n=0;n1?b["default"].panel:b["default"].fullscreen)+" "+b["default"].markdown},l["default"].createElement(d["default"],{onChange:this.props.editMarkdown,text:this.props.text,replaceText:this.props.replaceText})):null,e.includes("TEXT")?l["default"].createElement("div",{className:(e.length>1?b["default"].panel:b["default"].fullscreen)+" "+b["default"].text},l["default"].createElement(h["default"],{onChange:this.props.editText,text:this.props.text})):null)}}]),t}(u.Component);x.propTypes={editMarkdown:l["default"].PropTypes.func.isRequired,editText:l["default"].PropTypes.func.isRequired,text:l["default"].PropTypes.string,replaceText:l["default"].PropTypes.func.isRequired,activeEditors:l["default"].PropTypes.arrayOf(l["default"].PropTypes.string),showHistorySidebar:l["default"].PropTypes.bool.isRequired};var A=function(e){return{text:e.text.text,editor:e.editor,activeEditors:e.activeEditors,showHistorySidebar:e.historySidebar.visible,revisions:e.text.revisions}},w=function(e){return{editMarkdown:function(t){e((0,v.updateText)(t,"markdown"))},editText:function(t){var n=(0,m.toMarkdown)(t);e((0,v.updateText)(n,"text"))},replaceText:function(t,n){e((0,v.replaceText)(t,n))}}};x=(0,c.connect)(A,w)(x),t["default"]=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){var e=r.props.location.query;localStorage.oauthState==e.state&&r.props.slackAuth(e.code)},a=n,i(r,a)}return a(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("div",null,"Done")}}]),t}(l["default"].Component));d.contextTypes={router:l["default"].PropTypes.object.isRequired};var p=function(e){return{slackAuth:function(t){return e((0,f.slackAuthAsync)(t))}}};t["default"]=(0,c.connect)(null,p)(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(168),i=r(o);t["default"]=i["default"]},function(e,t){e.exports=function(e){var t={},n=arguments[1];if("string"==typeof n){n={};for(var r=1;r[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var i=o.listSelections(),a=[],s=0;s")>=0?p[2]:parseInt(p[3],10)+1+p[4];a[s]="\n"+h+v+m}}o.replaceSelections(a)}})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,o){return(e!=o.streamSeen||Math.min(o.basePos,o.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){function o(e){return e.code=!1,null}var i=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,r.gitHubSpice!==!1)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var u in r)s[u]=r[u];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(e,t,n){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",function(n,r){function o(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function i(e,t,n){return xe=e,Ae=n,t}function a(e,n){var r=e.next();if('"'==r||"'"==r)return n.tokenize=s(r),n.tokenize(e,n);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==r&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return i(r);if("="==r&&e.eat(">"))return i("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if("0"==r&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),i("number","number");if("0"==r&&e.eat(/b/i))return e.eatWhile(/[01]/i),i("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==r)return e.eat("*")?(n.tokenize=u,u(e,n)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):t(e,n,1)?(o(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),i("regexp","string-2")):(e.eatWhile(Me),i("operator","operator",e.current()));if("`"==r)return n.tokenize=l,l(e,n);if("#"==r)return e.skipToEnd(),i("error","error");if(Me.test(r))return e.eatWhile(Me),i("operator","operator",e.current());if(Ee.test(r)){e.eatWhile(Ee);var a=e.current(),c=Ne.propertyIsEnumerable(a)&&Ne[a];return c&&"."!=n.lastType?i(c.type,c.style,a):i("variable","variable",a)}}function s(e){return function(t,n){var r,o=!1;if(Pe&&"@"==t.peek()&&t.match(Se))return n.tokenize=a,i("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||o);)o=!o&&"\\"==r;return o||(n.tokenize=a),i("string","string")}}function u(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return i("comment","comment")}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=a;break}r=!r&&"\\"==n}return i("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(0>n)){for(var r=0,o=!1,i=n-1;i>=0;--i){var a=e.string.charAt(i),s=Oe.indexOf(a);if(s>=0&&3>s){if(!r){++i;break}if(0==--r)break}else if(s>=3&&6>s)++r;else if(Ee.test(a))o=!0;else{if(/["'\/]/.test(a))return;if(o&&!r){++i;break}}}o&&!r&&(t.fatArrowAt=i)}}function f(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function d(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function p(e,t,n,r,o){var i=e.cc;for(je.state=e,je.stream=o,je.marked=null,je.cc=i,je.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=i.length?i.pop():Ce?k:w;if(a(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return je.marked?je.marked:"variable"==n&&d(e,r)?"variable-2":t}}}function h(){for(var e=arguments.length-1;e>=0;e--)je.cc.push(arguments[e])}function m(){return h.apply(null,arguments),!0}function v(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=je.state;if(je.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function g(){je.state.context={prev:je.state.context,vars:je.state.localVars},je.state.localVars=Re}function y(){je.state.localVars=je.state.context.vars,je.state.context=je.state.context.prev}function b(e,t){var n=function(){var n=je.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new f(r,je.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function x(){var e=je.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function A(e){function t(n){return n==e?m():";"==e?h():m(t)}return t}function w(e,t){return"var"==e?m(b("vardef",t.length),J,A(";"),x):"keyword a"==e?m(b("form"),k,w,x):"keyword b"==e?m(b("form"),w,x):"{"==e?m(b("}"),V,x):";"==e?m():"if"==e?("else"==je.state.lexical.info&&je.state.cc[je.state.cc.length-1]==x&&je.state.cc.pop()(),m(b("form"),k,w,x,$)):"function"==e?m(ie):"for"==e?m(b("form"),ee,w,x):"variable"==e?m(b("stat"),z):"switch"==e?m(b("form"),k,b("}","switch"),A("{"),V,x,x):"case"==e?m(k,A(":")):"default"==e?m(A(":")):"catch"==e?m(b("form"),g,A("("),ae,A(")"),w,x,y):"class"==e?m(b("form"),se,x):"export"==e?m(b("stat"),fe,x):"import"==e?m(b("stat"),de,x):"module"==e?m(b("form"),K,b("}"),A("{"),V,x,x):h(b("stat"),k,A(";"),x)}function k(e){return C(e,!1)}function P(e){return C(e,!0)}function C(e,t){if(je.state.fatArrowAt==je.stream.start){var n=t?j:L;if("("==e)return m(g,b(")"),U(K,")"),x,A("=>"),n,y);if("variable"==e)return h(g,K,A("=>"),n,y)}var r=t?M:N;return Le.hasOwnProperty(e)?m(r):"function"==e?m(ie,r):"keyword c"==e?m(t?E:T):"("==e?m(b(")"),T,ye,A(")"),x,r):"operator"==e||"spread"==e?m(t?P:k):"["==e?m(b("]"),ve,x,r):"{"==e?X(W,"}",null,r):"quasi"==e?h(S,r):"new"==e?m(R(t)):m()}function T(e){return e.match(/[;\}\)\],]/)?h():h(k)}function E(e){return e.match(/[;\}\)\],]/)?h():h(P)}function N(e,t){return","==e?m(k):M(e,t,!1)}function M(e,t,n){var r=0==n?N:M,o=0==n?k:P;return"=>"==e?m(g,n?j:L,y):"operator"==e?/\+\+|--/.test(t)?m(r):"?"==t?m(k,A(":"),o):m(o):"quasi"==e?h(S,r):";"!=e?"("==e?X(P,")","call",r):"."==e?m(H,r):"["==e?m(b("]"),T,A("]"),x,r):void 0:void 0}function S(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?m(S):m(k,O)}function O(e){return"}"==e?(je.marked="string-2",je.state.tokenize=l,m(S)):void 0}function L(e){return c(je.stream,je.state),h("{"==e?w:k)}function j(e){return c(je.stream,je.state),h("{"==e?w:P)}function R(e){return function(t){return"."==t?m(e?I:D):h(e?P:k)}}function D(e,t){return"target"==t?(je.marked="keyword",m(N)):void 0}function I(e,t){return"target"==t?(je.marked="keyword",m(M)):void 0}function z(e){return":"==e?m(x,w):h(N,A(";"),x)}function H(e){return"variable"==e?(je.marked="property",m()):void 0}function W(e,t){return"variable"==e||"keyword"==je.style?(je.marked="property",m("get"==t||"set"==t?F:q)):"number"==e||"string"==e?(je.marked=Pe?"property":je.style+" property",m(q)):"jsonld-keyword"==e?m(q):"modifier"==e?m(W):"["==e?m(k,A("]"),q):"spread"==e?m(k):void 0}function F(e){return"variable"!=e?h(q):(je.marked="property",m(ie))}function q(e){return":"==e?m(P):"("==e?h(ie):void 0}function U(e,t){function n(r){if(","==r){var o=je.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),m(e,n)}return r==t?m():m(A(t))}return function(r){return r==t?m():h(e,n)}}function X(e,t,n){for(var r=3;r!?|~^]/,Se=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Oe="([{}])",Le={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},je={state:null,column:null,marked:null,cc:null},Re={name:"this",next:{name:"arguments"}};return x.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new f((e||0)-we,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=u&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==xe?n:(t.lastType="operator"!=xe||"++"!=Ae&&"--"!=Ae?xe:"incdec",p(t,n,xe,Ae,e))},indent:function(t,n){if(t.tokenize==u)return e.Pass;if(t.tokenize!=a)return 0;var o=n&&n.charAt(0),i=t.lexical;if(!/^\s*else\b/.test(n))for(var s=t.cc.length-1;s>=0;--s){var l=t.cc[s];if(l==x)i=i.prev;else if(l!=$)break}"stat"==i.type&&"}"==o&&(i=i.prev),ke&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var c=i.type,f=o==c;return"vardef"==c?i.indented+("operator"==t.lastType||","==t.lastType?i.info+1:0):"form"==c&&"{"==o?i.indented:"form"==c?i.indented+we:"stat"==c?i.indented+(be(t,n)?ke||we:0):"switch"!=i.info||f||0==r.doubleIndentSwitch?i.align?i.column+(f?0:1):i.indented+(f?0:we):i.indented+(/^(?:case|default)\b/.test(n)?we:2*we)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Ce?null:"/*",blockCommentEnd:Ce?null:"*/",lineComment:Ce?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Ce?"json":"javascript",jsonldMode:Pe,jsonMode:Ce,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=k&&t!=P||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},function(e,t,n){!function(e){e(n(18),n(180),n(179))}(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.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,k&&e.f==l&&(e.f=h,e.block=u),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine=null,null}function u(e,t){var i=e.sol(),s=t.list!==!1,u=t.indentedCode;t.indentedCode=!1,s&&(t.indentationDiff>=0?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):t.indentation>0?t.list=null:t.list=!1);var l=null;if(t.indentationDiff>=4)return e.skipToEnd(),u||a(t.prevLine)?(t.indentation-=4,t.indentedCode=!0,P.code):null;if(e.eatSpace())return null;if((l=e.match(S))&&l[1].length<=6)return t.header=l[1].length,n.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(!(a(t.prevLine)||t.quote||s||u)&&(l=e.match(O)))return t.header="="==l[0].charAt(0)?1:2,n.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(e.eat(">"))return t.quote=i?1:t.quote+1,n.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),d(t);if("["===e.peek())return o(e,t,y);if(e.match(T,!0))return t.hr=!0,P.hr;if((a(t.prevLine)||s)&&(e.match(E,!1)||e.match(N,!1))){var f=null;for(e.match(E,!0)?f="ul":(e.match(N,!0),f="ol"),t.indentation=e.column()+e.current().length,t.list=!0;t.listStack&&e.column()")>-1)&&(n.f=h,n.block=u,n.htmlState=null)}return r}function c(e,t){return t.fencedChars&&e.match(t.fencedChars,!1)?(t.localMode=t.localState=null,t.f=t.block=f,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),P.code)}function f(e,t){e.match(t.fencedChars),t.block=u,t.f=h,t.fencedChars=null,n.highlightFormatting&&(t.formatting="code-block"),t.code=1;var r=d(t);return t.code=0,r}function d(e){var t=[];if(e.formatting){t.push(P.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r=e.quote?t.push(P.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(P.linkHref,"url"):(e.strong&&t.push(P.strong),e.em&&t.push(P.em),e.strikethrough&&t.push(P.strikethrough),e.linkText&&t.push(P.linkText),e.code&&t.push(P.code)),e.header&&t.push(P.header,P.header+"-"+e.header),e.quote&&(t.push(P.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(P.quote+"-"+e.quote):t.push(P.quote+"-"+n.maxBlockquoteDepth)),e.list!==!1){var o=(e.listStack.length-1)%3;o?1===o?t.push(P.list2):t.push(P.list3):t.push(P.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 p(e,t){return e.match(L,!0)?d(t):void 0}function h(t,r){var o=r.text(t,r);if("undefined"!=typeof o)return o;if(r.list)return r.list=null,d(r);if(r.taskList){var a="x"!==t.match(M,!0)[1];return a?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,d(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),d(r);var s=t.sol(),u=t.next();if(r.linkTitle){r.linkTitle=!1;var c=u;"("===u&&(c=")"),c=(c+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");var f="^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(f),!0))return P.linkHref}if("`"===u){var p=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0==r.code)return r.code=h,d(r);if(h==r.code){var g=d(r);return r.code=0,g}return r.formatting=p,d(r)}if(r.code)return d(r);if("\\"===u&&(t.next(),n.highlightFormatting)){var y=d(r),b=P.formatting+"-escape";return y?y+" "+b:b}if("!"===u&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.match(/\[[^\]]*\]/),r.inline=r.f=v,P.image;if("["===u&&t.match(/.*\](\(.*\)| ?\[.*\])/,!1))return r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),d(r);if("]"===u&&r.linkText&&t.match(/\(.*\)| ?\[.*\]/,!1)){n.highlightFormatting&&(r.formatting="link");var y=d(r);return r.linkText=!1,r.inline=r.f=v,y}if("<"===u&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=m,n.highlightFormatting&&(r.formatting="link");var y=d(r);return y?y+=" ":y="",y+P.linkInline}if("<"===u&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=m,n.highlightFormatting&&(r.formatting="link");var y=d(r);return y?y+=" ":y="",y+P.linkEmail}if("<"===u&&t.match(/^(!--|\w)/,!1)){var x=t.string.indexOf(">",t.pos);if(-1!=x){var A=t.string.substring(t.start,x);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(A)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(w),i(t,r,l)}if("<"===u&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";var k=!1;if(!n.underscoresBreakWords&&"_"===u&&"_"!==t.peek()&&t.match(/(\w)/,!1)){var C=t.pos-2;if(C>=0){var T=t.string.charAt(C);"_"!==T&&T.match(/(\w)/,!1)&&(k=!0)}}if("*"===u||"_"===u&&!k)if(s&&" "===t.peek());else{if(r.strong===u&&t.eat(u)){n.highlightFormatting&&(r.formatting="strong");var g=d(r);return r.strong=!1,g}if(!r.strong&&t.eat(u))return r.strong=u,n.highlightFormatting&&(r.formatting="strong"),d(r);if(r.em===u){n.highlightFormatting&&(r.formatting="em");var g=d(r);return r.em=!1,g}if(!r.em)return r.em=u,n.highlightFormatting&&(r.formatting="em"),d(r)}else if(" "===u&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(r);t.backUp(1)}if(n.strikethrough)if("~"===u&&t.eatWhile(u)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var g=d(r);return r.strikethrough=!1,g}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),d(r)}else if(" "===u&&t.match(/^~~/,!0)){if(" "===t.peek())return d(r);t.backUp(2)}return" "===u&&(t.match(/ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),d(r)}function m(e,t){var r=e.next();if(">"===r){t.f=t.inline=h,n.highlightFormatting&&(t.formatting="link");var o=d(t);return o?o+=" ":o="",o+P.linkInline}return e.match(/^[^>]+/,!0),P.linkInline}function v(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=g("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function g(e){return function(t,r){var o=t.next();if(o===e){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link-string");var i=d(r);return r.linkHref=!1,i}return t.match(A(e),!0)&&t.backUp(1),r.linkHref=!0,d(r)}}function y(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=b,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):o(e,t,h)}function b(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=x,n.highlightFormatting&&(t.formatting="link");var r=d(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),P.linkText}function x(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=h,P.linkHref+" url")}function A(e){return R[e]||(e=(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),R[e]=new RegExp("^(?:[^\\\\]|\\\\.)*?("+e+")")),R[e]}var w=e.getMode(t,"text/html"),k="null"==w.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.underscoresBreakWords&&(n.underscoresBreakWords=!0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var P={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"tag",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough"};for(var C in P)P.hasOwnProperty(C)&&n.tokenTypeOverrides[C]&&(P[C]=n.tokenTypeOverrides[C]);var T=/^([*\-_])(?:\s*\1){2,}\s*$/,E=/^[*\-+]\s+/,N=/^[0-9]+([.)])\s+/,M=/^\[(x| )\](?=\s)/,S=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,O=/^ *(?:\={1,}|-{1,})\s*$/,L=/^[^#!\[\]*_\\<>` "'(~]+/,j=new RegExp("^("+(n.fencedCodeBlocks===!0?"~~~+|```+":n.fencedCodeBlocks)+")[ \\t]*([\\w+#-]*)"),R=[],D={startState:function(){return{f:u,prevLine:null,thisLine:null,block:u,htmlState:null,indentation:0,inline:h,text:p,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,fencedChars:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(w,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,linkTitle:t.linkTitle,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,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,fencedChars:t.fencedChars}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine){var n=t.header||t.hr;if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0)||n){if(s(t),!n)return null;t.prevLine=null}t.prevLine=t.thisLine,t.thisLine=e,t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var r=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentationDiff=Math.min(r-t.indentation,4),t.indentation=t.indentation+t.indentationDiff,r>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:w}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:D}},blankLine:s,getType:d,fold:"markdown"};return D},"xml"),e.defineMIME("text/x-markdown","markdown")})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"]},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell", -mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Jade",mime:"text/x-jade",mode:"jade",ext:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mime:"text/x-yaml",mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t-1&&t.substring(o+1,t.length);return i?e.findModeByExtension(i):void 0},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n")):null:e.match("--")?n(u("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(l(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=u("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){t.tokenize=i,t.state=p,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function u(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function l(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=l(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=l(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(k.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function d(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!k.contextGrabbers.hasOwnProperty(n)||!k.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function p(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?m:p}function h(e,t,n){return"word"==e?(n.tagName=t.current(),E="tag",y):(E="error",h)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&k.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||k.matchClosing===!1?(E="tag",v):(E="tag error",g)}return E="error",g}function v(e,t,n){return"endTag"!=e?(E="error",v):(f(n),p)}function g(e,t,n){return E="error",v(e,t,n)}function y(e,t,n){if("word"==e)return E="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||k.autoSelfClosers.hasOwnProperty(r)?d(n,r):(d(n,r),n.context=new c(n,r,o==n.indented)),p}return E="error",y}function b(e,t,n){return"equals"==e?x:(k.allowMissing||(E="error"),y(e,t,n))}function x(e,t,n){return"string"==e?A:"word"==e&&k.allowUnquoted?(E="string",y):(E="error",y(e,t,n))}function A(e,t,n){return"string"==e?A:y(e,t,n)}var w=r.indentUnit,k={},P=o.htmlMode?t:n;for(var C in P)k[C]=P[C];for(var C in o)k[C]=o[C];var T,E;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var n=t.tokenize(e,t);return(n||T)&&"comment"!=n&&(E=null,t.state=t.state(T||n,e,t),E&&(n="error"==E?n+" error":E)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+w;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return k.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+w*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){"use strict";function r(e){return!(!e||!l[e.nodeName])}function o(e){return!(!e||!u[e.nodeName])}function i(e,t){if(e.firstChild&&"PRE"!==e.nodeName){"function"!=typeof t&&(t=r);for(var n=null,i=!1,u=null,l=s(u,e);l!==e;){if(3===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(n&&!/ $/.test(n.data)||i||" "!==c[0]||(c=c.substr(1)),!c){l=a(l);continue}l.data=c,n=l}else{if(1!==l.nodeType){l=a(l);continue}t(l)||"BR"===l.nodeName?(n&&(n.data=n.data.replace(/ $/,"")),n=null,i=!1):o(l)&&(n=null,i=!0)}var f=s(u,l);u=l,l=f}n&&(n.data=n.data.replace(/ $/,""),n.data||a(n))}}function a(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function s(e,t){return e&&e.parentNode===t||"PRE"===t.nodeName?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var u=n(362);Object.keys(u).forEach(function(e){u[e.toUpperCase()]=1});var l={};n(171).forEach(function(e){l[e.toUpperCase()]=1}),e.exports=i},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"@-webkit-keyframes medium-editor__medium-editor-image-loading___aVZNE{0%{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes medium-editor__medium-editor-image-loading___aVZNE{0%{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes medium-editor__medium-editor-pop-upwards___nG1K8{0%{opacity:0;-webkit-transform:matrix(.97,0,0,1,0,12);transform:matrix(.97,0,0,1,0,12)}20%{opacity:.7;-webkit-transform:matrix(.99,0,0,1,0,2);transform:matrix(.99,0,0,1,0,2)}40%{opacity:1;-webkit-transform:matrix(1,0,0,1,0,-1);transform:matrix(1,0,0,1,0,-1)}to{-webkit-transform:matrix(1,0,0,1,0,0);transform:matrix(1,0,0,1,0,0)}}@keyframes medium-editor__medium-editor-pop-upwards___nG1K8{0%{opacity:0;-webkit-transform:matrix(.97,0,0,1,0,12);transform:matrix(.97,0,0,1,0,12)}20%{opacity:.7;-webkit-transform:matrix(.99,0,0,1,0,2);transform:matrix(.99,0,0,1,0,2)}40%{opacity:1;-webkit-transform:matrix(1,0,0,1,0,-1);transform:matrix(1,0,0,1,0,-1)}to{-webkit-transform:matrix(1,0,0,1,0,0);transform:matrix(1,0,0,1,0,0)}}.medium-editor__medium-editor-anchor-preview___1oMBD{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;left:0;line-height:1.4;max-width:280px;position:absolute;text-align:center;top:0;word-break:break-all;word-wrap:break-word;visibility:hidden;z-index:2000}.medium-editor__medium-editor-anchor-preview___1oMBD a{color:#fff;display:inline-block;margin:5px 5px 10px}.medium-editor__medium-editor-anchor-preview-active___3_7ST{visibility:visible}.medium-editor__medium-editor-dragover___3JRUt{background:#ddd}.medium-editor__medium-editor-image-loading___aVZNE{-webkit-animation:medium-editor__medium-editor-image-loading___aVZNE 1s infinite ease-in-out;animation:medium-editor__medium-editor-image-loading___aVZNE 1s infinite ease-in-out;background-color:#333;border-radius:100%;display:inline-block;height:40px;width:40px}.medium-editor__medium-editor-placeholder___24O32{position:relative}.medium-editor__medium-editor-placeholder___24O32:after{content:attr(data-placeholder)!important;font-style:italic;left:0;position:absolute;top:0;white-space:pre;padding:inherit;margin:inherit}.medium-editor__medium-toolbar-arrow-over___PcakZ:before,.medium-editor__medium-toolbar-arrow-under___3XUUU:after{border-style:solid;content:'';display:block;height:0;left:50%;margin-left:-8px;position:absolute;width:0}.medium-editor__medium-toolbar-arrow-under___3XUUU:after{border-width:8px 8px 0}.medium-editor__medium-toolbar-arrow-over___PcakZ:before{border-width:0 8px 8px;top:-8px}.medium-editor__medium-editor-toolbar___1dmfO{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;left:0;position:absolute;top:0;visibility:hidden;z-index:2000}.medium-editor__medium-editor-toolbar___1dmfO ul{margin:0;padding:0}.medium-editor__medium-editor-toolbar___1dmfO li{float:left;list-style:none;margin:0;padding:0}.medium-editor__medium-editor-toolbar___1dmfO li button{box-sizing:border-box;cursor:pointer;display:block;font-size:14px;line-height:1.33;margin:0;padding:15px;text-decoration:none}.medium-editor__medium-editor-toolbar___1dmfO li button:focus{outline:none}.medium-editor__medium-editor-toolbar___1dmfO li .medium-editor__medium-editor-action-underline___1sXx3{text-decoration:underline}.medium-editor__medium-editor-toolbar___1dmfO li .medium-editor__medium-editor-action-pre___lK_dd{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:12px;font-weight:100;padding:15px 0}.medium-editor__medium-editor-toolbar-active___3NHAk{visibility:visible}.medium-editor__medium-editor-sticky-toolbar___FbUM8{position:fixed;top:1px}.medium-editor__medium-editor-relative-toolbar___1O7Tq{position:relative}.medium-editor__medium-editor-toolbar-active___3NHAk.medium-editor__medium-editor-stalker-toolbar___1MMOL{-webkit-animation:medium-editor__medium-editor-pop-upwards___nG1K8 .16s forwards linear;animation:medium-editor__medium-editor-pop-upwards___nG1K8 .16s forwards linear}.medium-editor__medium-editor-action-bold___Qw1bz{font-weight:bolder}.medium-editor__medium-editor-action-italic___3amyJ{font-style:italic}.medium-editor__medium-editor-toolbar-form___D9mSQ{display:none}.medium-editor__medium-editor-toolbar-form___D9mSQ a,.medium-editor__medium-editor-toolbar-form___D9mSQ input{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.medium-editor__medium-editor-toolbar-form___D9mSQ .medium-editor__medium-editor-toolbar-form-row___1BYOS{line-height:14px;margin-left:5px;padding-bottom:5px}.medium-editor__medium-editor-toolbar-form___D9mSQ .medium-editor__medium-editor-toolbar-input___2qAlq,.medium-editor__medium-editor-toolbar-form___D9mSQ label{border:none;box-sizing:border-box;font-size:14px;margin:0;padding:6px;width:316px;display:inline-block}.medium-editor__medium-editor-toolbar-form___D9mSQ .medium-editor__medium-editor-toolbar-input___2qAlq:focus,.medium-editor__medium-editor-toolbar-form___D9mSQ label:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;outline:0}.medium-editor__medium-editor-toolbar-form___D9mSQ a{display:inline-block;font-size:24px;font-weight:bolder;margin:0 10px;text-decoration:none}.medium-editor__medium-editor-toolbar-form-active___3gu9e{display:block}.medium-editor__medium-editor-toolbar-actions___2dh50:after{clear:both;content:\"\";display:table}[data-medium-editor-element]{word-wrap:break-word;min-height:30px}[data-medium-editor-element] img{max-width:100%}[data-medium-editor-element] sub{vertical-align:sub}[data-medium-editor-element] sup{vertical-align:super}.medium-editor__medium-editor-hidden___3ZJi5{display:none}",""]),t.locals={"medium-editor-anchor-preview":"medium-editor__medium-editor-anchor-preview___1oMBD","medium-editor-anchor-preview-active":"medium-editor__medium-editor-anchor-preview-active___3_7ST","medium-editor-dragover":"medium-editor__medium-editor-dragover___3JRUt","medium-editor-image-loading":"medium-editor__medium-editor-image-loading___aVZNE","medium-editor-placeholder":"medium-editor__medium-editor-placeholder___24O32","medium-toolbar-arrow-under":"medium-editor__medium-toolbar-arrow-under___3XUUU","medium-toolbar-arrow-over":"medium-editor__medium-toolbar-arrow-over___PcakZ","medium-editor-toolbar":"medium-editor__medium-editor-toolbar___1dmfO","medium-editor-action-underline":"medium-editor__medium-editor-action-underline___1sXx3","medium-editor-action-pre":"medium-editor__medium-editor-action-pre___lK_dd","medium-editor-toolbar-active":"medium-editor__medium-editor-toolbar-active___3NHAk","medium-editor-sticky-toolbar":"medium-editor__medium-editor-sticky-toolbar___FbUM8","medium-editor-relative-toolbar":"medium-editor__medium-editor-relative-toolbar___1O7Tq","medium-editor-stalker-toolbar":"medium-editor__medium-editor-stalker-toolbar___1MMOL","medium-editor-pop-upwards":"medium-editor__medium-editor-pop-upwards___nG1K8","medium-editor-action-bold":"medium-editor__medium-editor-action-bold___Qw1bz","medium-editor-action-italic":"medium-editor__medium-editor-action-italic___3amyJ","medium-editor-toolbar-form":"medium-editor__medium-editor-toolbar-form___D9mSQ","medium-editor-toolbar-form-row":"medium-editor__medium-editor-toolbar-form-row___1BYOS","medium-editor-toolbar-input":"medium-editor__medium-editor-toolbar-input___2qAlq","medium-editor-toolbar-form-active":"medium-editor__medium-editor-toolbar-form-active___3gu9e","medium-editor-toolbar-actions":"medium-editor__medium-editor-toolbar-actions___2dh50","medium-editor-hidden":"medium-editor__medium-editor-hidden___3ZJi5"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".default__medium-toolbar-arrow-under___2L7yE:after{border-color:#242424 transparent transparent;top:50px}.default__medium-toolbar-arrow-over___1WSgX:before{border-color:transparent transparent #242424;top:-8px}.default__medium-editor-toolbar___scL6V{background-color:#242424;background:-webkit-linear-gradient(top,#242424,rgba(36,36,36,.75));background:linear-gradient(180deg,#242424,rgba(36,36,36,.75));border:1px solid #000;border-radius:5px;box-shadow:0 0 3px #000}.default__medium-editor-toolbar___scL6V li button{background-color:#242424;background:-webkit-linear-gradient(top,#242424,rgba(36,36,36,.89));background:linear-gradient(180deg,#242424,rgba(36,36,36,.89));border:0;border-right:1px solid #000;border-left:1px solid #333;border-left:1px solid hsla(0,0%,100%,.1);box-shadow:0 2px 2px rgba(0,0,0,.3);color:#fff;height:50px;min-width:50px;-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.default__medium-editor-toolbar___scL6V li button:hover{background-color:#000;color:#ff0}.default__medium-editor-toolbar___scL6V li .default__medium-editor-button-first___3t5dl{border-bottom-left-radius:5px;border-top-left-radius:5px}.default__medium-editor-toolbar___scL6V li .default__medium-editor-button-last___1egI-{border-bottom-right-radius:5px;border-top-right-radius:5px}.default__medium-editor-toolbar___scL6V li .default__medium-editor-button-active___1NCzT{background-color:#000;background:-webkit-linear-gradient(top,#242424,rgba(0,0,0,.89));background:linear-gradient(180deg,#242424,rgba(0,0,0,.89));color:#fff}.default__medium-editor-toolbar-form___ExXvR{background:#242424;border-radius:5px;color:#999}.default__medium-editor-toolbar-form___ExXvR .default__medium-editor-toolbar-input___25G4j{background:#242424;box-sizing:border-box;color:#ccc;height:50px}.default__medium-editor-toolbar-form___ExXvR a{color:#fff}.default__medium-editor-toolbar-anchor-preview___NeF_n{background:#242424;border-radius:5px;color:#fff}.default__medium-editor-placeholder___2hKYy:after{color:#b3b3b1}",""]),t.locals={"medium-toolbar-arrow-under":"default__medium-toolbar-arrow-under___2L7yE","medium-toolbar-arrow-over":"default__medium-toolbar-arrow-over___1WSgX","medium-editor-toolbar":"default__medium-editor-toolbar___scL6V","medium-editor-button-first":"default__medium-editor-button-first___3t5dl","medium-editor-button-last":"default__medium-editor-button-last___1egI-","medium-editor-button-active":"default__medium-editor-button-active___1NCzT","medium-editor-toolbar-form":"default__medium-editor-toolbar-form___ExXvR","medium-editor-toolbar-input":"default__medium-editor-toolbar-input___25G4j","medium-editor-toolbar-anchor-preview":"default__medium-editor-toolbar-anchor-preview___NeF_n","medium-editor-placeholder":"default__medium-editor-placeholder___2hKYy"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}",""])},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".Header__header___3bMN6{display:flex;width:100%;height:42px;position:fixed;z-index:9999;justify-content:space-between;background-color:#111;color:#fff}.Header__header___3bMN6 i{color:#fff;font-family:serif}.Header__header___3bMN6 .Header__headerItem___dQ02F{width:150px;padding:12px 22px;font-size:13px;font-weight:300;font-family:Atlas Grotesk,Helvetica Neue,sans-serif;text-align:center}.Header__header___3bMN6 .Header__headerItem___dQ02F:first-child{text-align:left}.Header__header___3bMN6 .Header__headerItem___dQ02F:last-child{text-align:right}.Header__header___3bMN6 .Header__editorToggle___3NjHu div{margin-right:12px;cursor:pointer;opacity:.4;color:#fff}.Header__header___3bMN6 .Header__editorToggle___3NjHu div.Header__active___1Z5Aq{opacity:1}.Header__header___3bMN6 .Header__editorToggle___3NjHu div:first-child{margin-top:2px;margin-right:15px}.Header__header___3bMN6 .Header__editorToggle___3NjHu div:last-child{margin-top:-2px}.Header__header___3bMN6 .Header__textIcon___1gnLg{font-family:Times,serif;font-size:20px}",""]),t.locals={header:"Header__header___3bMN6",headerItem:"Header__headerItem___dQ02F",editorToggle:"Header__editorToggle___3NjHu",active:"Header__active___1Z5Aq",textIcon:"Header__textIcon___1gnLg"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".Layout__container___hBWrc{display:flex;flex:1}",""]),t.locals={container:"Layout__container___hBWrc"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".MarkdownEditor__container___1K_hC{font-weight:400;font-size:1em;line-height:1.5em;margin:0 auto;padding:2em 3em;max-width:50em}@media all and (max-width:2000px) and (min-width:960px){.MarkdownEditor__container___1K_hC{font-size:1.1em}}",""]),t.locals={container:"MarkdownEditor__container___1K_hC"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Cousine:400,700,700italic,400italic);",""]),t.push([e.id,".codemirror__cm-s-atlas___1NP9A.codemirror__CodeMirror___2_BuR{background:#fff;color:#202020;font-family:Atlas Typewriter,Cousine,Monaco,monospace;font-weight:300;height:auto}.codemirror__cm-s-atlas___1NP9A div.codemirror__CodeMirror-selected___2kHzs{background:#90caf9}.codemirror__cm-s-atlas___1NP9A div.codemirror__CodeMirror-dragcursors___1Rl_D{visibility:hidden}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-line___2NQc6::selection,.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-line___2NQc6>span::selection,.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-line___2NQc6>span>span::selection{background:#90caf9}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-line___2NQc6::-moz-selection,.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-line___2NQc6>span::-moz-selection,.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-line___2NQc6>span>span::-moz-selection{background:#e0e0e0}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-gutters___3PnXl{background:#f5f5f5;border-right:0}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-guttermarker___ySZZo{color:#ac4142}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-guttermarker-subtle___25KgZ,.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-linenumber___2sEnv{color:#b0b0b0}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-cursor___3T1aR{border-left:2px solid #2196f3}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-quote___22NzZ{font-style:italic}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-comment___1RAg8{color:#8f5536}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-atom___365qu,.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-number___foy66{color:#aa759f}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-attribute___3lxVY,.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-property___2Mu3O{color:#90a959}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-keyword___3VPOV{color:#ac4142}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-string___Jx0MN{color:#f4bf75}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-variable___1tltC{color:#90a959}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-variable-2___2QINx{color:#788696}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-def___-g73U{color:#d28445}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-bracket___24-h3{color:#202020}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-tag___3U76b{color:#ac4142}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-link___17tjQ{color:#aa759f}.codemirror__cm-s-atlas___1NP9A span.codemirror__cm-error___Kt66U{background:#ac4142;color:#505050}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-activeline-background___3VLwy{background:#dddcdc}.codemirror__cm-s-atlas___1NP9A .codemirror__CodeMirror-matchingbracket___1cO6v{text-decoration:underline;color:#fff!important}",""]),t.locals={"cm-s-atlas":"codemirror__cm-s-atlas___1NP9A",CodeMirror:"codemirror__CodeMirror___2_BuR","CodeMirror-selected":"codemirror__CodeMirror-selected___2kHzs","CodeMirror-dragcursors":"codemirror__CodeMirror-dragcursors___1Rl_D","CodeMirror-line":"codemirror__CodeMirror-line___2NQc6", -"CodeMirror-gutters":"codemirror__CodeMirror-gutters___3PnXl","CodeMirror-guttermarker":"codemirror__CodeMirror-guttermarker___ySZZo","CodeMirror-guttermarker-subtle":"codemirror__CodeMirror-guttermarker-subtle___25KgZ","CodeMirror-linenumber":"codemirror__CodeMirror-linenumber___2sEnv","CodeMirror-cursor":"codemirror__CodeMirror-cursor___3T1aR","cm-quote":"codemirror__cm-quote___22NzZ","cm-comment":"codemirror__cm-comment___1RAg8","cm-atom":"codemirror__cm-atom___365qu","cm-number":"codemirror__cm-number___foy66","cm-property":"codemirror__cm-property___2Mu3O","cm-attribute":"codemirror__cm-attribute___3lxVY","cm-keyword":"codemirror__cm-keyword___3VPOV","cm-string":"codemirror__cm-string___Jx0MN","cm-variable":"codemirror__cm-variable___1tltC","cm-variable-2":"codemirror__cm-variable-2___2QINx","cm-def":"codemirror__cm-def___-g73U","cm-bracket":"codemirror__cm-bracket___24-h3","cm-tag":"codemirror__cm-tag___3U76b","cm-link":"codemirror__cm-link___17tjQ","cm-error":"codemirror__cm-error___Kt66U","CodeMirror-activeline-background":"codemirror__CodeMirror-activeline-background___3VLwy","CodeMirror-matchingbracket":"codemirror__CodeMirror-matchingbracket___1cO6v"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".SlackAuthLink__link___3nyFN{text-decoration:none;background:no-repeat 0/10% url("+n(356)+");padding:5px 0 4px 36px;font-size:1.4em}",""]),t.locals={link:"SlackAuthLink__link___3nyFN"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".TextEditor__container___2jegm{font-weight:400;font-size:1em;line-height:1.5em;margin:0 auto;padding:2em 3em;max-width:50em}.TextEditor__editor___1hL6L{outline:none;font-family:Atlas Grotesk,Helvetica Neue,sans-serif}@media all and (max-width:2000px) and (min-width:960px){.TextEditor__container___2jegm{font-size:1.1em}}",""]),t.locals={container:"TextEditor__container___2jegm",editor:"TextEditor__editor___1hL6L"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"@font-face{font-family:Atlas Grotesk;src:url("+n(358)+') format("woff");font-weight:400;font-style:normal}@font-face{font-family:Atlas Grotesk;src:url('+n(359)+') format("woff");font-weight:400;font-style:italic}@font-face{font-family:Atlas Grotesk;src:url('+n(357)+') format("woff");font-weight:700;font-style:normal}@font-face{font-family:Atlas Grotesk;src:url('+n(146)+') format("woff");font-weight:700;font-style:italic}@font-face{font-family:Atlas Grotesk;src:url('+n(146)+') format("woff");font-weight:700;font-style:italic}@font-face{font-family:Atlas Typewriter;src:url('+n(361)+') format("woff");font-weight:400;font-style:normal}@font-face{font-family:Atlas Typewriter;src:url('+n(360)+') format("woff");font-weight:700;font-style:normal}',""])},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"*{box-sizing:border-box}.base-styles__viewport___1HuSA,body,html{width:100%;height:100%;margin:0}body,html{font-family:Atlas Grotesk,Helvetica Neue,sans-serif}a{color:#0c77f8}.base-styles__Codemirror___TnUxh{height:auto}",""]),t.locals={viewport:"base-styles__viewport___1HuSA",Codemirror:"base-styles__Codemirror___TnUxh"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".App__container___1X2l7{display:flex;flex-flow:column;width:100%;height:100%;background-color:#fff;font-family:-apple-system,Helvetica Neue,Lucida Grande;color:#222}",""]),t.locals={container:"App__container___1X2l7"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".Dashboard__container___1r_9d{display:flex;padding-top:48px}.Dashboard__panel___1rfVU{width:50%}.Dashboard__fullscreen___2QaJq{width:100%}.Dashboard__markdown___16wFz{background-color:#fff}",""]),t.locals={container:"Dashboard__container___1r_9d",panel:"Dashboard__panel___1rfVU",fullscreen:"Dashboard__fullscreen___2QaJq",markdown:"Dashboard__markdown___16wFz"}},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,".Home__container___AmDCt{display:flex;flex:1;justify-content:space-around}.Home__content___-n8bV{margin:40px;min-width:640px}.Home__intro___3Rvnm{font-family:Atlas Typewriter,Monaco,monospace;font-size:1.4em;margin-bottom:40px}",""]),t.locals={container:"Home__container___AmDCt",content:"Home__content___-n8bV",intro:"Home__intro___3Rvnm"}},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:!(e.length>0&&"number"!=typeof e[0]):!1}function i(e,t,n){var i,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(u(e))return u(t)?(e=a.call(e),t=a.call(t),l(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i=0;i--)if(f[i]!=d[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!l(e[c],t[c],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,s=n(198),u=n(197),l=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(199),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=n(210);e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=l;l?void 0:u(!1);var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t?void 0:u(!1),a(f).forEach(t));for(var d=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=n(6),a=n(201),s=n(87),u=n(1),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(204),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(206);e.exports=r},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),i=0;t>i;i++)r[i]=e[i];return r}var o=n(1);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return l.indexOf(e)>-1}function i(e){return u["default"](e)&&"undefined"!=typeof e.type&&Object.keys(e).every(o)}function a(e){return e.error===!0}t.__esModule=!0,t.isFSA=i,t.isError=a;var s=n(219),u=r(s),l=["type","payload","error","meta"]},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};e.exports=function(e,t){for(var o=Object.getOwnPropertyNames(t),i=0;in)return!1;var r=e.length-1;return n==r?e.pop():ee.call(e,n,1),!0}function k(e,t){var n=C(e,t);return 0>n?void 0:e[n][1]}function P(e,t){return C(e,t)>-1}function C(e,t){for(var n=e.length;n--;)if(S(e[n][0],t))return n;return-1}function T(e,t,n){var r=C(e,t);0>r?e.push([t,n]):e[r][1]=n}function E(e,t){var n=e[t];return j(n)?n:void 0}function N(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function M(e){if(null!=e){try{return Y.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function S(e,t){return e===t||e!==e&&t!==t}function O(e){var t=L(e)?_.call(e):"";return t==I||t==z}function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function j(e){if(!L(e))return!1;var t=O(e)||o(e)?$:W;return t.test(M(e))}var R=200,D="__lodash_hash_undefined__",I="[object Function]",z="[object GeneratorFunction]",H=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,F={"function":!0,object:!0},q=F[typeof t]&&t&&!t.nodeType?t:void 0,U=F[typeof e]&&e&&!e.nodeType?e:void 0,X=r(q&&U&&"object"==typeof n&&n),V=r(F[typeof self]&&self),B=r(F[typeof window]&&window),Z=r(F[typeof this]&&this),G=X||B!==(Z&&Z.window)&&B||V||Z||Function("return this")(),J=Array.prototype,K=Object.prototype,Y=Function.prototype.toString,Q=K.hasOwnProperty,_=K.toString,$=RegExp("^"+Y.call(Q).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=J.splice,te=E(G,"Map"),ne=E(Object,"create");i.prototype=ne?ne(null):K,c.prototype.clear=f,c.prototype["delete"]=d,c.prototype.get=p,c.prototype.has=h,c.prototype.set=m,v.prototype.clear=g,v.prototype["delete"]=y,v.prototype.get=b,v.prototype.has=x,v.prototype.set=A,e.exports=v}).call(t,n(52)(e),function(){return this}())},function(e,t){function n(e,t,n){function r(t){var n=m,r=v;return m=v=void 0,P=t,y=e.apply(r,n)}function i(e){return P=e,b=setTimeout(c,t),C?r(e):y}function a(e){var n=e-k,r=e-P,o=t-n;return T?A(o,g-r):o}function l(e){var n=e-k,r=e-P;return!k||n>=t||0>n||T&&r>=g}function c(){var e=w();return l(e)?f(e):void(b=setTimeout(c,a(e)))}function f(e){return clearTimeout(b),b=void 0,E&&m?r(e):(m=v=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=P=0,m=v=b=void 0}function p(){return void 0===b?y:f(w())}function h(){var e=w(),n=l(e);if(m=arguments,v=this,k=e,n){if(void 0===b)return i(k);if(T)return clearTimeout(b),b=setTimeout(c,t),r(k)}return void 0===b&&(b=setTimeout(c,t)),y}var m,v,g,y,b,k=0,P=0,C=!1,T=!1,E=!0;if("function"!=typeof e)throw new TypeError(u);return t=s(t)||0,o(n)&&(C=!!n.leading,T="maxWait"in n,g=T?x(s(n.maxWait)||0,t):g,E="trailing"in n?!!n.trailing:E),h.cancel=d,h.flush=p,h}function r(e){var t=o(e)?b.call(e):"";return t==c||t==f}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||i(e)&&b.call(e)==d}function s(e){if("number"==typeof e)return e;if(a(e))return l;if(o(e)){var t=r(e.valueOf)?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(p,"");var n=m.test(e);return n||v.test(e)?g(e.slice(2),n?2:8):h.test(e)?l:+e}var u="Expected a function",l=NaN,c="[object Function]",f="[object GeneratorFunction]",d="[object Symbol]",p=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,v=/^0o[0-7]+$/i,g=parseInt,y=Object.prototype,b=y.toString,x=Math.max,A=Math.min,w=Date.now;e.exports=n},function(e,t){function n(e){return!!e&&"object"==typeof e}function r(e,t){var n=null==e?void 0:e[t];return s(n)?n:void 0}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&g>=e}function i(e){return a(e)&&h.call(e)==l}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function s(e){return null==e?!1:i(e)?m.test(d.call(e)):n(e)&&c.test(e)}var u="[object Array]",l="[object Function]",c=/^\[object .+?Constructor\]$/,f=Object.prototype,d=Function.prototype.toString,p=f.hasOwnProperty,h=f.toString,m=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=r(Array,"isArray"),g=9007199254740991,y=v||function(e){return n(e)&&o(e.length)&&h.call(e)==u};e.exports=y},function(e,t){function n(e){var t=r(e)?s.call(e):"";return t==o||t==i}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var o="[object Function]",i="[object GeneratorFunction]",a=Object.prototype,s=a.toString;e.exports=n},function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){return a(e,t,u)}function i(e){var t;if(!r(e)||d.call(e)!=l||s(e)||!f.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return o(e,function(e,t){n=t}),void 0===n||f.call(e,n)}var a=n(214),s=n(90),u=n(220),l="[object Object]",c=Object.prototype,f=c.hasOwnProperty,d=c.toString;e.exports=i},function(e,t,n){function r(e,t){return e="number"==typeof e||l.test(e)?+e:-1,t=null==t?d:t,e>-1&&e%1==0&&t>e}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function a(e){if(null==e)return[];i(e)||(e=Object(e));var t=e.length;t=t&&o(t)&&(u(e)||s(e))&&t||0;for(var n=e.constructor,a=-1,l="function"==typeof n&&n.prototype===e,c=Array(t),d=t>0;++ae?-1:1;return t*d}var n=e%1;return e===e?n?e-n:e:0}function l(e){if("number"==typeof e)return e;if(s(e))return p;if(i(e)){var t=o(e.valueOf)?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(g,"");var n=b.test(e);return n||x.test(e)?A(e.slice(2),n?2:8):y.test(e)?p:+e}var c="Expected a function",f=1/0,d=1.7976931348623157e308,p=NaN,h="[object Function]",m="[object GeneratorFunction]",v="[object Symbol]",g=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,x=/^0o[0-7]+$/i,A=parseInt,w=Object.prototype,k=w.toString,P=Math.max;e.exports=r},function(e,t){function n(e){return r(Object(e))}var r=Object.getPrototypeOf;e.exports=n},function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t){function n(e){return!!e&&"object"==typeof e}e.exports=n},function(e,t,n){(function(t){(function(){function t(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=f.normal,this.options.gfm&&(this.options.tables?this.rules=f.tables:this.rules=f.gfm)}function n(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=d.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function r(e){this.options=e||{}}function o(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options}function i(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function a(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function s(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,o=o.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}function u(){}function l(e){for(var t,n,r=1;rAn error occured:

"+i(d.message+"",!0)+"
";throw d}}var f={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:u,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:u,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:u,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};f.bullet=/(?:[*+-]|\d+\.)/,f.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,f.item=s(f.item,"gm")(/bull/g,f.bullet)(),f.list=s(f.list)(/bull/g,f.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+f.def.source+")")(),f.blockquote=s(f.blockquote)("def",f.def)(),f._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",f.html=s(f.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,f._tag)(),f.paragraph=s(f.paragraph)("hr",f.hr)("heading",f.heading)("lheading",f.lheading)("blockquote",f.blockquote)("tag","<"+f._tag)("def",f.def)(),f.normal=l({},f),f.gfm=l({},f.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),f.gfm.paragraph=s(f.paragraph)("(?!","(?!"+f.gfm.fences.source.replace("\\1","\\2")+"|"+f.list.source.replace("\\1","\\3")+"|")(),f.tables=l({},f.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=f,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,o,i,a,s,u,l,c,d,e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(t&&(i=this.rules.nptable.exec(e))){for(e=e.substring(i[0].length),u={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),i=i[0].match(this.rules.item),r=!1,d=i.length,c=0;d>c;c++)u=i[c],l=u.length,u=u.replace(/^ *([*+-]|\d+\.) +/,""),~u.indexOf("\n ")&&(l-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+l+"}","gm"),"")),this.options.smartLists&&c!==d-1&&(s=f.bullet.exec(i[c+1])[0],a===s||a.length>1&&s.length>1||(e=i.slice(c+1).join("\n")+e,c=d-1)),o=r||/\n\n(?!\s*$)/.test(u),c!==d-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]});else if(!n&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.table.exec(e))){for(e=e.substring(i[0].length),u={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:u,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:u,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(d.text)("]|","~]|")("|","|https?://|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),n.rules=d,n.output=function(e,t,r){var o=new n(t,r);return o.output(e)},n.prototype.output=function(e){for(var t,n,r,o,a="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),a+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),r=this.mangle("mailto:")+n):(n=i(o[1]),r=n),a+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),a+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):i(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,a+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){a+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,a+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),a+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),a+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),a+=this.renderer.codespan(i(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),a+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),a+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),a+=this.renderer.text(i(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=i(o[1]),r=n,a+=this.renderer.link(r,null,n);return a},n.prototype.outputLink=function(e,t){var n=i(t.href),r=t.title?i(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,i(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;r>o;o++)t=e.charCodeAt(o),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
'+(n?e:i(e,!0))+"\n
\n":"
"+(n?e:i(e,!0))+"\n
"},r.prototype.blockquote=function(e){return"
\n"+e+"
\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"; -},r.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var i='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o,i="",a="";for(n="",e=0;et;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},u=function(e,t){if(""===t)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},l=function(e){for(var t=i.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,o=n.length;o>r;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(s[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return e+="",-1!==u(this,e)},c.add=function(){var e,t=arguments,n=0,r=t.length,o=!1;do e=t[n]+"",-1===u(this,e)&&(this.push(e),o=!0);while(++nu;u++)o+=String.fromCharCode(i[u]);n.push(o)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(e))}else e instanceof r?"base64"===e.encoding&&m?n.push(m(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},o.getBlob=function(e){return arguments.length||(e=null),new r(this.data.join(""),e,"raw")},o.toString=function(){return"[object BlobBuilder]"},i.slice=function(e,t,n){var o=arguments.length;return 3>o&&(n=null),new r(this.data.slice(e,o>1?t:this.data.length),n,this.encoding)},i.toString=function(){return"[object Blob]"},i.close=function(){this.size=0,delete this.data},n}(e);e.Blob=function(e,t){var r=t?t.type||"":"",o=new n;if(e)for(var i=0,a=e.length;a>i;i++)Uint8Array&&e[i]instanceof Uint8Array?o.append(e[i].buffer):o.append(e[i]);var s=o.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var r=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=r(new e.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(t,n){"use strict";e.exports=n}(this,function(){"use strict";function e(e,t){return this.init(e,t)}return e.extensions={},function(t){function n(e,t){var n,r=Array.prototype.slice.call(arguments,2);t=t||{};for(var o=0;o-1,isMac:t.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77},isMetaCtrlKey:function(e){return!!(s.isMac&&e.metaKey||!s.isMac&&e.ctrlKey)},isKey:function(e,t){var n=s.getKeyCode(e);return!1===Array.isArray(t)?n===t:-1!==t.indexOf(n)},getKeyCode:function(e){var t=e.which;return null===t&&(t=null!==e.charCode?e.charCode:e.keyCode),t},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var e=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},defaults:function(){var e=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},createLink:function(e,t,n,r){var o=e.createElement("a");return s.moveTextRangeIntoElement(t[0],t[t.length-1],o),o.setAttribute("href",n),r&&o.setAttribute("target",r),o},findOrCreateMatchingTextNodes:function(e,t,n){for(var r=e.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1),o=[],i=0,a=!1,u=null,l=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!a&&n.startn.end+1)throw new Error("PerformLinking overshot the target!");a&&o.push(l||u),i+=u.nodeValue.length,null!==l&&(i+=l.nodeValue.length,r.nextNode()),l=null}else"img"===u.tagName.toLowerCase()&&(!a&&n.start<=i&&(a=!0),a&&o.push(u));return o},splitStartNodeIfNeeded:function(e,t,n){return t!==n?e.splitText(t-n):null},splitEndNodeIfNeeded:function(e,t,n,r){var o,i;o=r+(t||e).nodeValue.length+(t?e.nodeValue.length:0)-1,i=(t||e).nodeValue.length-(o+1-n),o>=n&&r!==o&&0!==i&&(t||e).splitText(i)},splitByBlockElements:function(t){if(3!==t.nodeType&&1!==t.nodeType)return[];var n=[],r=e.util.blockContainerElementNames.join(",");if(3===t.nodeType||0===t.querySelectorAll(r).length)return[t];for(var o=0;o0)break;r=i.nextNode()}return r},findPreviousSibling:function(e){if(!e||s.isMediumEditorElement(e))return!1;for(var t=e.previousSibling;!t&&!s.isMediumEditorElement(e.parentNode);)e=e.parentNode,t=e.previousSibling;return t},isDescendant:function(e,t,n){if(!e||!t)return!1;if(e===t)return!!n;if(1!==e.nodeType)return!1;if(r||3!==t.nodeType)return e.contains(t);for(var o=t.parentNode;null!==o;){if(o===e)return!0;o=o.parentNode}return!1},isElement:function(e){return!(!e||1!==e.nodeType)},throttle:function(e,t){var n,r,o,i=50,a=null,s=0,u=function(){s=Date.now(),a=null,o=e.apply(n,r),a||(n=r=null)};return t||0===t||(t=i),function(){var i=Date.now(),l=t-(i-s);return n=this,r=arguments,0>=l||l>t?(a&&(clearTimeout(a),a=null),s=i,o=e.apply(n,r),a||(n=r=null)):a||(a=setTimeout(u,l)),o}},traverseUp:function(e,t){if(!e)return!1;do{if(1===e.nodeType){if(t(e))return e;if(s.isMediumEditorElement(e))return!1}e=e.parentNode}while(e);return!1},htmlEntities:function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")},insertHTMLCommand:function(t,n){var r,o,i,a,u,l,c,f=!1,d=["insertHTML",!1,n];if(!e.util.isEdge&&t.queryCommandSupported("insertHTML"))try{return t.execCommand.apply(t,d)}catch(p){}if(r=t.getSelection(),r.rangeCount){if(o=r.getRangeAt(0),c=o.commonAncestorContainer,s.isMediumEditorElement(c)&&!c.firstChild)o.selectNode(c.appendChild(t.createTextNode("")));else if(3===c.nodeType&&0===o.startOffset&&o.endOffset===c.nodeValue.length||3!==c.nodeType&&c.innerHTML===o.toString()){for(;!s.isMediumEditorElement(c)&&c.parentNode&&1===c.parentNode.childNodes.length&&!s.isMediumEditorElement(c.parentNode);)c=c.parentNode;o.selectNode(c)}for(o.deleteContents(),i=t.createElement("div"),i.innerHTML=n,a=t.createDocumentFragment();i.firstChild;)u=i.firstChild,l=a.appendChild(u);o.insertNode(a),l&&(o=o.cloneRange(),o.setStartAfter(l),o.collapse(!0),r.removeAllRanges(),r.addRange(o)),f=!0}return t.execCommand.callListeners&&t.execCommand.callListeners(d,f),f},execFormatBlock:function(t,n){var r,o=s.getTopBlockContainer(e.selection.getSelectionStart(t));if("blockquote"===n){if(o&&(r=Array.prototype.slice.call(o.childNodes),r.some(function(e){return s.isBlockContainer(e)})))return t.execCommand("outdent",!1,null);if(s.isIE)return t.execCommand("indent",!1,n)}if(o&&n===o.nodeName.toLowerCase()&&(n="p"),s.isIE&&(n="<"+n+">"),o&&"blockquote"===o.nodeName.toLowerCase()){if(s.isIE&&"

    "===n)return t.execCommand("outdent",!1,n);if((s.isFF||s.isEdge)&&"p"===n)return r=Array.prototype.slice.call(o.childNodes),r.some(function(e){return!s.isBlockContainer(e)})&&t.execCommand("formatBlock",!1,n),t.execCommand("outdent",!1,n)}return t.execCommand("formatBlock",!1,n)},setTargetBlank:function(e,t){var n,r=t||!1;if("a"===e.nodeName.toLowerCase())e.target="_blank";else for(e=e.getElementsByTagName("a"),n=0;nr?(o=o.parentNode,n-=1):(i=i.parentNode,r-=1);for(;o!==i;)o=o.parentNode,i=i.parentNode;return o},isElementAtBeginningOfBlock:function(e){for(var t,n;!s.isBlockContainer(e)&&!s.isMediumEditorElement(e);){for(n=e;n=n.previousSibling;)if(t=3===n.nodeType?n.nodeValue:n.textContent,t.length>0)return!1;e=e.parentNode}return!0},isMediumEditorElement:function(e){return e&&e.getAttribute&&!!e.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(e){return s.traverseUp(e,function(e){return s.isMediumEditorElement(e)})},isBlockContainer:function(e){return e&&3!==e.nodeType&&-1!==s.blockContainerElementNames.indexOf(e.nodeName.toLowerCase())},getClosestBlockContainer:function(e){return s.traverseUp(e,function(e){return s.isBlockContainer(e)||s.isMediumEditorElement(e)})},getTopBlockContainer:function(e){var t=s.isBlockContainer(e)?e:!1;return s.traverseUp(e,function(e){return s.isBlockContainer(e)&&(t=e),!t&&s.isMediumEditorElement(e)?(t=e,!0):!1}),t},getFirstSelectableLeafNode:function(e){for(;e&&e.firstChild;)e=e.firstChild;if(e=s.traverseUp(e,function(e){return-1===s.emptyElementNames.indexOf(e.nodeName.toLowerCase())}),"table"===e.nodeName.toLowerCase()){var t=e.querySelector("th, td");t&&(e=t)}return e},getFirstTextNode:function(e){return s.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),s._getFirstTextNode(e)},_getFirstTextNode:function(e){if(3===e.nodeType)return e;for(var t=0;t0){var o,i=r.getRangeAt(0),a=i.cloneRange();a.selectNodeContents(e),a.setEnd(i.startContainer,i.startOffset),o=a.toString().length,n={start:o,end:o+i.toString().length},this.doesRangeStartWithImages(i,t)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(e,n,i.endContainer,i.endOffset);if(s&&(n.trailingImageCount=s),0!==o){var u=this.getIndexRelativeToAdjacentEmptyBlocks(t,e,i.startContainer,i.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(e,t,n,r){if(e&&t){var o=n.createRange();o.setStart(t,0),o.collapse(!0);var i,a=t,s=[],u=0,l=!1,c=!1,f=0,d=!1,p=!1,h=null;for((r||e.startsWithImage||"undefined"!=typeof e.emptyBlocksIndex)&&(p=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(e.trailingImageCount&&c&&("img"===a.nodeName.toLowerCase()&&f++,f===e.trailingImageCount)){for(var m=0;a.parentNode.childNodes[m]!==a;)m++;o.setEnd(a.parentNode,m+1),d=!0}if(!d&&1===a.nodeType)for(var v=a.childNodes.length-1;v>=0;)s.push(a.childNodes[v]),v-=1}else i=u+a.length,!l&&e.start>=u&&e.start<=i&&(p||e.start=u&&e.end<=i&&(e.trailingImageCount?c=!0:(o.setEnd(a,e.end-u),d=!0)),u=i;d||(a=s.pop())}!l&&h&&(o.setStart(h,h.length),o.setEnd(h,h.length)),"undefined"!=typeof e.emptyBlocksIndex&&(o=this.importSelectionMoveCursorPastBlocks(n,t,e.emptyBlocksIndex,o)),r&&(o=this.importSelectionMoveCursorPastAnchor(e,o));var g=n.getSelection();g.removeAllRanges(),g.addRange(o)}},importSelectionMoveCursorPastAnchor:function(t,n){var r=function(e){return"a"===e.nodeName.toLowerCase()};if(t.start===t.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&e.util.traverseUp(n.startContainer,r)){for(var o=n.startContainer,i=n.startContainer.parentNode;null!==i&&"a"!==i.nodeName.toLowerCase();)i.childNodes[i.childNodes.length-1]!==o?i=null:(o=i,i=i.parentNode);if(null!==i&&"a"===i.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),i.setStart(e.util.getFirstSelectableLeafNode(s),0),i},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,o,i){if(o.textContent.length>0&&i>0)return-1;var a=o;if(3!==a.nodeType&&(a=o.childNodes[i]),a){if(!e.util.isElementAtBeginningOfBlock(a))return-1;var s=e.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=e.util.getClosestBlockContainer(o),l=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,t,!1),c=0;l.nextNode();){var f=""===l.currentNode.textContent;if((f||c>0)&&(c+=1),l.currentNode===u)return c;f||(c=0)}return c},doesRangeStartWithImages:function(e,t){if(0!==e.startOffset||1!==e.startContainer.nodeType)return!1;if("img"===e.startContainer.nodeName.toLowerCase())return!0;var n=e.startContainer.querySelector("img");if(!n)return!1;for(var r=t.createTreeWalker(e.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var o=r.currentNode;if(o===n)break;if(o.nodeValue)return!1}return!0},getTrailingImageCount:function(e,t,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var o=n.childNodes[r-1];o.hasChildNodes();)o=o.lastChild;for(var i,a=e,s=[],u=0,l=!1,c=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if("img"===a.nodeName.toLowerCase()&&d++,a===o)f=!0;else if(1===a.nodeType)for(var p=a.childNodes.length-1;p>=0;)s.push(a.childNodes[p]),p-=1}else d=0,i=u+a.length,!l&&t.start>=u&&t.start<=i&&(l=!0),l&&t.end>=u&&t.end<=i&&(c=!0),u=i;f||(a=s.pop())}return d},selectionContainsContent:function(e){var t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;if(""!==t.toString().trim())return!0;var n=this.getSelectedParentElement(t.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(e){var t,n=this.findMatchingSelectionParent(function(e){var n=e&&e.getAttribute("contenteditable");return"true"===n&&(t=!0),"#text"!==e.nodeName&&"false"===n},e);return!t&&n},getSelectionHtml:function(e){var t,n,r,o="",i=e.getSelection();if(i.rangeCount){for(r=e.createElement("div"),t=0,n=i.rangeCount;n>t;t+=1)r.appendChild(i.getRangeAt(t).cloneContents());o=r.innerHTML}return o},getCaretOffsets:function(e,t){var n,r;return t||(t=window.getSelection().getRangeAt(0)),n=t.cloneRange(),r=t.cloneRange(),n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),r.selectNodeContents(e),r.setStart(t.endContainer,t.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(e){var t=e.startContainer;return t===e.endContainer&&t.hasChildNodes()&&e.endOffset===e.startOffset+1},getSelectedParentElement:function(e){return e?this.rangeSelectsSingleNode(e)&&3!==e.startContainer.childNodes[e.startOffset].nodeType?e.startContainer.childNodes[e.startOffset]:3===e.startContainer.nodeType?e.startContainer.parentNode:e.startContainer:null},getSelectedElements:function(e){var t,n,r,o=e.getSelection();if(!o.rangeCount||o.isCollapsed||!o.getRangeAt(0).commonAncestorContainer)return[];if(t=o.getRangeAt(0),3===t.commonAncestorContainer.nodeType){for(n=[],r=t.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(t.commonAncestorContainer.getElementsByTagName("*"),function(e){return"function"==typeof o.containsNode?o.containsNode(e,!0):!0})},selectNode:function(e,t){var n=t.createRange(),r=t.getSelection();n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n)},select:function(e,t,n,r,o){e.getSelection().removeAllRanges();var i=e.createRange();return i.setStart(t,n),r?i.setEnd(r,o):i.collapse(!0),e.getSelection().addRange(i),i},clearSelection:function(e,t){t?e.getSelection().collapseToStart():e.getSelection().collapseToEnd()},moveCursor:function(e,t,n){this.select(e,t,n)},getSelectionRange:function(e){var t=e.getSelection();return 0===t.rangeCount?null:t.getRangeAt(0)},getSelectionStart:function(e){var t=e.getSelection().anchorNode,n=t&&3===t.nodeType?t.parentNode:t;return n}};e.selection=n}(),function(){var t=function(e){this.base=e,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};t.prototype={InputEventOnContenteditableSupported:!e.util.isIE&&!e.util.isEdge,attachDOMEvent:function(t,n,r,o){t=e.util.isElement(t)||[window,document].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){e.addEventListener(n,r,o),this.events.push([e,n,r,o])}.bind(this))},detachDOMEvent:function(t,n,r,o){var i,a;t=e.util.isElement(t)||[window,document].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){i=this.indexOfListener(e,n,r,o),-1!==i&&(a=this.events.splice(i,1)[0],a[0].removeEventListener(a[1],a[2],a[3]))}.bind(this))},indexOfListener:function(e,t,n,r){var o,i,a;for(o=0,i=this.events.length;i>o;o+=1)if(a=this.events[o],a[0]===e&&a[1]===t&&a[2]===n&&a[3]===r)return o;return-1},detachAllDOMEvents:function(){for(var e=this.events.pop();e;)e[0].removeEventListener(e[1],e[2],e[3]),e=this.events.pop()},enableCustomEvent:function(e){void 0!==this.disabledEvents[e]&&delete this.disabledEvents[e]},disableCustomEvent:function(e){this.disabledEvents[e]=!0},attachCustomEvent:function(e,t){this.setupListener(e),this.customEvents[e]||(this.customEvents[e]=[]),this.customEvents[e].push(t)},detachCustomEvent:function(e,t){var n=this.indexOfCustomListener(e,t);-1!==n&&this.customEvents[e].splice(n,1)},indexOfCustomListener:function(e,t){return this.customEvents[e]&&this.customEvents[e].length?this.customEvents[e].indexOf(t):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(e,t,n){this.customEvents[e]&&!this.disabledEvents[e]&&this.customEvents[e].forEach(function(e){e(t,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(e){e.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(e){this.handleDocumentExecCommand(e)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var e=this.options.ownerDocument;if(this.execCommandListener&&e.execCommand.listeners){var t=e.execCommand.listeners.indexOf(this.execCommandListener);-1!==t&&e.execCommand.listeners.splice(t,1),e.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var e=this.options.ownerDocument;if(!e.execCommand.listeners){var t=function(t,n){e.execCommand.listeners&&e.execCommand.listeners.forEach(function(e){e({command:t[0],value:t[2],args:t,result:n})})},n=function(){var n=e.execCommand.orig.apply(this,arguments);if(!e.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return t(r,n),n};n.orig=e.execCommand,n.listeners=[],n.callListeners=t,e.execCommand=n}},unwrapExecCommand:function(){var e=this.options.ownerDocument;e.execCommand.orig&&(e.execCommand=e.execCommand.orig)},setupListener:function(e){if(!this.listeners[e]){switch(e){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":this.setupListener("externalInteraction");break;case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache=[],this.base.elements.forEach(function(e){this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML,this.InputEventOnContenteditableSupported&&this.attachDOMEvent(e,"input",this.handleInput.bind(this))}.bind(this)),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":this.setupListener("editableKeydown");break;case"editableKeydownEnter":this.setupListener("editableKeydown");break;case"editableKeydownTab":this.setupListener("editableKeydown");break;case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[e]=!0}},attachToEachElement:function(e,t){this.base.elements.forEach(function(n){this.attachDOMEvent(n,e,t.bind(this))},this)},focusElement:function(e){e.focus(),this.updateFocus(e,{target:e,type:"focus"})},updateFocus:function(t,n){var r,o=this.base.getExtensionByName("toolbar"),i=o?o.getToolbarElement():null,a=this.base.getExtensionByName("anchor-preview"),s=a&&a.getPreviewElement?a.getPreviewElement():null,u=this.base.getFocusedElement();u&&"click"===n.type&&this.lastMousedownTarget&&(e.util.isDescendant(u,this.lastMousedownTarget,!0)||e.util.isDescendant(i,this.lastMousedownTarget,!0)||e.util.isDescendant(s,this.lastMousedownTarget,!0))&&(r=u),r||this.base.elements.some(function(n){return!r&&e.util.isDescendant(n,t,!0)&&(r=n),!!r},this);var l=!e.util.isDescendant(u,t,!0)&&!e.util.isDescendant(i,t,!0)&&!e.util.isDescendant(s,t,!0);r!==u&&(u&&l&&(u.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",n,u)),r&&(r.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",n,r))),l&&this.triggerCustomEvent("externalInteraction",n)},updateInput:function(e,t){if(this.contentCache){var n=e.getAttribute("medium-editor-index"),r=e.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",t,e),this.contentCache[n]=r}},handleDocumentSelectionChange:function(t){if(t.currentTarget&&t.currentTarget.activeElement){var n,r=t.currentTarget.activeElement;this.base.elements.some(function(t){return e.util.isDescendant(t,r,!0)?(n=t,!0):!1},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var e=this.base.getFocusedElement();e&&this.updateInput(e,{target:e,currentTarget:e})},handleBodyClick:function(e){this.updateFocus(e.target,e)},handleBodyFocus:function(e){this.updateFocus(e.target,e)},handleBodyMousedown:function(e){this.lastMousedownTarget=e.target},handleInput:function(e){this.updateInput(e.currentTarget,e)},handleClick:function(e){this.triggerCustomEvent("editableClick",e,e.currentTarget)},handleBlur:function(e){this.triggerCustomEvent("editableBlur",e,e.currentTarget)},handleKeypress:function(e){if(this.triggerCustomEvent("editableKeypress",e,e.currentTarget),this.keypressUpdateInput){var t={target:e.target,currentTarget:e.currentTarget};setTimeout(function(){this.updateInput(t.currentTarget,t)}.bind(this),0)}},handleKeyup:function(e){this.triggerCustomEvent("editableKeyup",e,e.currentTarget)},handleMouseover:function(e){this.triggerCustomEvent("editableMouseover",e,e.currentTarget)},handleDragging:function(e){this.triggerCustomEvent("editableDrag",e,e.currentTarget)},handleDrop:function(e){this.triggerCustomEvent("editableDrop",e,e.currentTarget)},handlePaste:function(e){this.triggerCustomEvent("editablePaste",e,e.currentTarget)},handleKeydown:function(t){return this.triggerCustomEvent("editableKeydown",t,t.currentTarget),e.util.isKey(t,e.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.ENTER)||t.ctrlKey&&e.util.isKey(t,e.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",t,t.currentTarget):e.util.isKey(t,[e.util.keyCode.DELETE,e.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",t,t.currentTarget):void 0}},e.Events=t}(),function(){var t=e.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){t.isBuiltInButton(n)?e.Extension.call(this,this.defaults[n]):e.Extension.call(this,n)},init:function(){e.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var e=this.document.createElement("button"),t=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return e.classList.add("medium-editor-action"),e.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(t){e.classList.add(t)}),e.setAttribute("data-action",this.getAction()),n&&(e.setAttribute("title",n),e.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(t){e.setAttribute(t,this.attrs[t])},this),"fontawesome"===r&&this.contentFA&&(t=this.contentFA),e.innerHTML=t,e},handleClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.getAction();t&&this.execAction(t)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")), -delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var e=null;return this.useQueryState&&(e=this.base.queryCommandState(this.getAction())),e},isAlreadyApplied:function(e){var t,n,r=!1,o=this.getTagNames();return this.knownState===!1||this.knownState===!0?this.knownState:(o&&o.length>0&&(r=-1!==o.indexOf(e.nodeName.toLowerCase())),!r&&this.style&&(t=this.style.value.split("|"),n=this.window.getComputedStyle(e,null).getPropertyValue(this.style.prop),t.forEach(function(e){this.knownState||(r=-1!==n.indexOf(e),(r||"text-decoration"!==this.style.prop)&&(this.knownState=r))},this)),r)}});t.isBuiltInButton=function(t){return"string"==typeof t&&e.extensions.button.prototype.defaults.hasOwnProperty(t)},e.extensions.button=t}(),function(){e.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"B",contentFA:''},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"I",contentFA:''},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"U",contentFA:''},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"A",contentFA:''},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"x1",contentFA:''},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"x1",contentFA:''},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"image",contentFA:''},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"1.",contentFA:''},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"",contentFA:''},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"",contentFA:''},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"",contentFA:''},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"C",contentFA:''},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"J",contentFA:''},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"L",contentFA:''},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"R",contentFA:''},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"X",contentFA:''},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"",contentFA:''},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"0101",contentFA:''},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"H1",contentFA:'1'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"H2",contentFA:'2'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"H3",contentFA:'3'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"H4",contentFA:'4'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"H5",contentFA:'5'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"H6",contentFA:'6'}}}(),function(){var t=e.extensions.button.extend({init:function(){e.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return this.hasForm?this.getForm().classList.contains(this.activeClass):!1},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.hideToolbarDefaultActions()},setToolbarPosition:function(){var e=this.base.getExtensionByName("toolbar");e&&e.setToolbarPosition()}});e.extensions.form=t}(),function(){var t=e.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"#",contentFA:'',init:function(){e.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(t){t.preventDefault(),t.stopPropagation();var n=e.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||e.util.getClosestTag(e.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(t){e.util.isKey(t,e.util.keyCode.K)&&e.util.isMetaCtrlKey(t)&&!t.shiftKey&&this.handleClick(t)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var e=[''];return e.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formSaveLabel,""),e.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formCloseLabel,""),this.targetCheckbox&&e.push('

    ','',"","
    "),this.customClassOption&&e.push('
    ','',"","
    "),e.join("")},isDisplayed:function(){return e.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){e.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(t){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),o=this.getAnchorButtonCheckbox();if(t=t||{url:""},"string"==typeof t&&(t={url:t}),this.base.saveSelection(),this.hideToolbarDefaultActions(),e.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=t.url,n.focus(),r&&(r.checked="_blank"===t.target),o){var i=t.buttonClass?t.buttonClass.split(" "):[];o.checked=-1!==i.indexOf(this.customClassOption)}},destroy:function(){return this.form?(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form):!1},getFormOpts:function(){var e=this.getAnchorTargetCheckbox(),t=this.getAnchorButtonCheckbox(),n={url:this.getInput().value.trim()};return this.linkValidation&&(n.url=this.checkLinkFormat(n.url)),n.target="_self",e&&e.checked&&(n.target="_blank"),t&&t.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var e=this.getFormOpts();this.completeFormSave(e)},completeFormSave:function(e){this.base.restoreSelection(),this.execAction(this.action,e),this.base.checkSelection()},checkLinkFormat:function(e){var t=/^([a-z]+:)?\/\/|^(mailto|tel|maps):/i,n=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/;return n.test(e)?"tel:"+e:(t.test(e)?"":"http://")+encodeURI(e)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(e){var t=e.querySelector(".medium-editor-toolbar-close"),n=e.querySelector(".medium-editor-toolbar-save"),r=e.querySelector(".medium-editor-toolbar-input");this.on(e,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(t,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var e=this.document,t=e.createElement("div");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),t.innerHTML=this.getTemplate(),this.attachFormEvents(t),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(t){return t.keyCode===e.util.keyCode.ENTER?(t.preventDefault(),void this.doFormSave()):void(t.keyCode===e.util.keyCode.ESCAPE&&(t.preventDefault(),this.doFormCancel()))},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.anchor=t}(),function(){var t=e.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var e=this.document.createElement("div");return e.id="medium-editor-anchor-preview-"+this.getEditorId(),e.className="medium-editor-anchor-preview",e.innerHTML=this.getTemplate(),this.on(e,"click",this.handleClick.bind(this)),e},getTemplate:function(){return'
    '},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(e){return this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||e.getAttribute("data-disable-preview")?!0:(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=e.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=e.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=e,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(e){e=e||this.activeAnchor;var t,n,r=this.anchorPreview.offsetHeight,o=e.getBoundingClientRect(),i=(o.left+o.right)/2,a=this.diffLeft,s=this.diffTop;t=this.anchorPreview.offsetWidth/2;var u=this.base.getExtensionByName("toolbar");u&&(a=u.diffLeft,s=u.diffTop),n=a-t,this.anchorPreview.style.top=Math.round(r+o.bottom-s+this.window.pageYOffset-this.anchorPreview.offsetHeight)+"px",this.anchorPreview.style.right="initial",t>i?(this.anchorPreview.style.left=n+t+"px",this.anchorPreview.style.right="initial"):this.window.innerWidth-ithis.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});e.extensions.anchorPreview=t}(),function(){function t(t){return!e.util.getClosestTag(t,"a")}var n,r,o,i;n=[" "," ","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",o="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",i=new RegExp("^("+r+")$","i");var a=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var e=0,t=0;t0&&null!==a;)o=n.currentNode,i=o.nodeValue,i.length>t?(a=o.splitText(i.length-t),t=0):(a=n.previousNode(),t-=i.length);return a},performLinkingWithinElement:function(t){for(var n=this.findLinkableText(t),r=!1,o=0;o1;)o.appendChild(r.childNodes[1])}});e.extensions.autoLink=a}(),function(){function t(t){var r=e.util.getContainerEditorElement(t),o=Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n));o.forEach(function(e){e.classList.remove(n)})}var n="medium-editor-dragover",r=e.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy";var r=e.target.classList?e.target:e.target.parentElement;t(r),"dragover"===e.type&&r.classList.add(n)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),this.base.selectElement(e.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files).forEach(function(e){this.isAllowedFile(e)&&e.type.match("image")&&this.insertImageFile(e)},this),t(e.target)},isAllowedFile:function(e){return this.allowedTypes.some(function(t){return!!e.type.match(t)})},insertImageFile:function(t){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(t),n.addEventListener("load",function(t){var n=this.document.createElement("img");n.src=t.target.result,e.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});e.extensions.fileDragging=r}(),function(){var t=e.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(e){var t=e.key.charCodeAt(0);this.keys[t]||(this.keys[t]=[]),this.keys[t].push(e)},this)},handleKeydown:function(t){var n=e.util.getKeyCode(t);if(this.keys[n]){var r=e.util.isMetaCtrlKey(t),o=!!t.shiftKey,i=!!t.altKey;this.keys[n].forEach(function(e){e.meta!==r||e.shift!==o||e.alt!==i&&void 0!==e.alt||(t.preventDefault(),t.stopPropagation(),"function"==typeof e.command?e.command.apply(this):!1!==e.command&&this.execAction(e.command))},this)}}});e.extensions.keyboardCommands=t}(),function(){var t=e.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'',fonts:["","Arial","Verdana","Times New Roman"],init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontName")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(e){var t=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){return this.form?(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form):!1},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var e,t=this.document,n=t.createElement("div"),r=t.createElement("select"),o=t.createElement("a"),i=t.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a
    ':"✓",n.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),o.setAttribute("href","#"),o.className="medium-editor-toobar-close",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",n.appendChild(o),this.on(o,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("face")&&e.removeAttribute("face")})},handleFontChange:function(){var e=this.getSelect().value;""===e?this.clearFontName():this.execAction("fontName",{name:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontName=t}(),function(){var t=e.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'',init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontSize")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(e){var t=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){return this.form?(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form):!1},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var e=this.document,t=e.createElement("div"),n=e.createElement("input"),r=e.createElement("a"),o=e.createElement("a");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(t,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",t.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"✓",t.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",t.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("size")&&e.removeAttribute("size")})},handleSliderChange:function(){var e=this.getInput().value;"4"===e?this.clearFontSize():this.execAction("fontSize",{size:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontSize=t}(),function(){function t(){return[[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(]*>)?$/gi),""],[new RegExp(/\s+<\/span>/g)," "],[new RegExp(/
    /g),"
    "],[new RegExp(/]*(font-style:italic;font-weight:bold|font-weight:bold;font-style:italic)[^>]*>/gi),''],[new RegExp(/]*font-style:italic[^>]*>/gi),''],[new RegExp(/]*font-weight:bold[^>]*>/gi),''],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),''],[new RegExp(/<\/p>\n+/gi),"

    "],[new RegExp(/\n+

    /gi),""],["",""],["",""]]}var n=e.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],init:function(){e.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&this.subscribe("editablePaste",this.handlePaste.bind(this))},handlePaste:function(t,n){var r,o,i,a,s="",u="text/html",l="text/plain";if(this.window.clipboardData&&void 0===t.clipboardData&&(t.clipboardData=this.window.clipboardData,u="Text",l="Text"),t.clipboardData&&t.clipboardData.getData&&!t.defaultPrevented){if(t.preventDefault(),i=t.clipboardData.getData(u),a=t.clipboardData.getData(l),this.cleanPastedHTML&&i)return this.cleanPaste(i);if(this.getEditorOption("disableReturn")||n.getAttribute("data-disable-return"))s=e.util.htmlEntities(a);else if(r=a.split(/[\r\n]+/g),r.length>1)for(o=0;o"+e.util.htmlEntities(r[o])+"

    ");else s=e.util.htmlEntities(r[0]);e.util.insertHTMLCommand(this.document,s)}},cleanPaste:function(e){var n,r,o,i,a=/"+e.split("

    ").join("

    ")+"

    ",r=o.querySelectorAll("a,p,div,br"),n=0;n"+r.innerHTML+"
    ":o.innerHTML=r.innerHTML,r.parentNode.replaceChild(o,r);for(i=t.querySelectorAll("span"),n=0;n0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=e.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this["static"]&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(t){return t&&t.target&&e.util.isDescendant(this.getToolbarElement(),t.target)?!1:void this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(e){e.hasForm&&e.isDisplayed()&&e.hideForm()})},multipleBlockElementsSelected:function(){var t=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+e.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=e.selection.getSelectionHtml(this.document).replace(t,""),o=r.match(n);return!!o&&o.length>1},modifySelection:function(){var t=this.window.getSelection(),n=t.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=e.util.findAdjacentTextNodeWithContent(e.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var o=0;0===r.nodeValue.substr(o,1).trim().length;)o+=1;n=e.selection.select(this.document,r,o,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||e.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var t=e.selection.getSelectionElement(this.window);return!t||-1===this.getEditorElements().indexOf(t)||t.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this["static"]?this.showAndUpdateToolbar():!e.selection.selectionContainsContent(this.document)||this.allowMultiParagraphSelection===!1&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(e){"function"==typeof e.isActive&&"function"==typeof e.setInactive&&e.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var t,n=[],r=null,o=e.selection.getSelectionRange(this.document),i=function(e){"function"==typeof e.checkState?e.checkState(t):"function"==typeof e.isActive&&"function"==typeof e.isAlreadyApplied&&"function"==typeof e.setActive&&!e.isActive()&&e.isAlreadyApplied(t)&&e.setActive()};if(o&&(this.forEachExtension(function(e){return"function"==typeof e.queryCommandState&&(r=e.queryCommandState(),null!==r)?void(r&&"function"==typeof e.setActive&&e.setActive()):void n.push(e)}),t=e.selection.getSelectedParentElement(o),this.getEditorElements().some(function(n){return e.util.isDescendant(n,t,!0)})))for(;t&&(n.forEach(i),!e.util.isMediumEditorElement(t));)t=t.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var e=this.base.getFocusedElement(),t=this.window.getSelection();return e?void(!this["static"]&&t.isCollapsed||(this.showToolbar(),this.relativeContainer||(this["static"]?this.positionStaticToolbar(e):this.positionToolbar(t)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))):this},positionStaticToolbar:function(e){this.getToolbarElement().style.left="0";var t,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,o=this.getToolbarElement(),i=e.getBoundingClientRect(),a=i.top+n,s=i.left+i.width/2,u=o.offsetHeight,l=o.offsetWidth,c=l/2;switch(this.sticky?n>a+e.offsetHeight-u-this.stickyTopOffset?(o.style.top=a+e.offsetHeight-u+"px",o.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(o.classList.add("medium-editor-sticky-toolbar"),o.style.top=this.stickyTopOffset+"px"):(o.classList.remove("medium-editor-sticky-toolbar"),o.style.top=a-u+"px"):o.style.top=a-u+"px",this.align){case"left":t=i.left;break;case"right":t=i.right-l;break;case"center":t=s-c}0>t?t=0:t+l>r&&(t=r-Math.ceil(l)-1),o.style.left=t+"px"},positionToolbar:function(e){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var t=e.getRangeAt(0),n=t.getBoundingClientRect();(!n||0===n.height&&0===n.width&&t.startContainer===t.endContainer)&&(n=1===t.startContainer.nodeType&&t.startContainer.querySelector("img")?t.startContainer.querySelector("img").getBoundingClientRect():t.startContainer.getBoundingClientRect());var r=this.window.innerWidth,o=(n.left+n.right)/2,i=this.getToolbarElement(),a=i.offsetHeight,s=i.offsetWidth,u=s/2,l=50,c=this.diffLeft-u;n.topo?(i.style.left=c+u+"px",i.style.right="initial"):u>r-o?(i.style.left="auto",i.style.right=0):(i.style.left=c+o+"px",i.style.right="initial")}});e.extensions.toolbar=t}(),function(){var t=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){var t="medium-editor-dragover";e.preventDefault(),e.dataTransfer.dropEffect="copy","dragover"===e.type?e.target.classList.add(t):"dragleave"===e.type&&e.target.classList.remove(t)},handleDrop:function(t){var n,r="medium-editor-dragover";t.preventDefault(),t.stopPropagation(),t.dataTransfer.files&&(n=Array.prototype.slice.call(t.dataTransfer.files,0),n.some(function(t){if(t.type.match("image")){var n,r;n=new FileReader,n.readAsDataURL(t),r="medium-img-"+ +new Date,e.util.insertHTMLCommand(this.document,''),n.onload=function(){var e=this.document.getElementById(r);e&&(e.removeAttribute("id"),e.removeAttribute("class"),e.src=n.result)}.bind(this)}}.bind(this))),t.target.classList.remove(r)}});e.extensions.imageDragging=t}(),function(){function t(t){var n=e.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,o=e.selection.getCaretOffsets(n);(void 0===r[o.left-1]||""===r[o.left-1].trim()||void 0!==r[o.left]&&""===r[o.left].trim())&&t.preventDefault()}function n(t,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))t.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=e.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&t.preventDefault()}}function r(t){var n=e.selection.getSelectionStart(this.options.ownerDocument),r=n&&n.nodeName.toLowerCase();"pre"===r&&(t.preventDefault(),e.util.insertHTMLCommand(this.options.ownerDocument," ")),e.util.isListItem(n)&&(t.preventDefault(),t.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function o(t){var n,r=e.selection.getSelectionStart(this.options.ownerDocument),o=r.nodeName.toLowerCase(),i=/^(\s+|)?$/i,a=/h\d/i;e.util.isKey(t,[e.util.keyCode.BACKSPACE,e.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(o)&&0===e.selection.getCaretOffsets(r).left?e.util.isKey(t,e.util.keyCode.BACKSPACE)&&i.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),t.preventDefault()):!this.options.disableDoubleReturn&&e.util.isKey(t,e.util.keyCode.ENTER)&&(n=this.options.ownerDocument.createElement("p"),n.innerHTML="
    ",r.previousElementSibling.parentNode.insertBefore(n,r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(o)&&i.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(e.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&"li"===o&&i.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="
    ",r.parentElement.parentElement.insertBefore(n,r.parentElement),e.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.getClosestTag(r,"blockquote")!==!1&&0===e.selection.getCaretOffsets(r).left&&(t.preventDefault(),e.util.execFormatBlock(this.options.ownerDocument,"p"))}function i(t){var n,r=e.selection.getSelectionStart(this.options.ownerDocument);r&&(e.util.isMediumEditorElement(r)&&0===r.children.length&&!e.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!e.util.isKey(t,e.util.keyCode.ENTER)||e.util.isListItem(r)||e.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?this.options.ownerDocument.execCommand("unlink",!1,null):t.shiftKey||t.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(e){e._mediumEditors||(e._mediumEditors=[null]),this.id||(this.id=e._mediumEditors.length),e._mediumEditors[this.id]=this}function s(e){e._mediumEditors&&e._mediumEditors[this.id]&&(e._mediumEditors[this.id]=null)}function u(t){t||(t=[]),"string"==typeof t&&(t=this.options.ownerDocument.querySelectorAll(t)),e.util.isElement(t)&&(t=[t]);var n=Array.prototype.slice.apply(t);this.elements=[],n.forEach(function(e,t){"textarea"===e.nodeName.toLowerCase()?this.elements.push(y.call(this,e,t)):this.elements.push(e)},this)}function l(e,t){return Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])}),e}function c(e,t,n){var r={window:n.options.contentWindow,document:n.options.ownerDocument,base:n};return e=l(e,r),"function"==typeof e.init&&e.init(),e.name||(e.name=t),e}function f(){return this.elements.every(function(e){return!!e.getAttribute("data-disable-toolbar")})?!1:this.options.toolbar!==!1}function d(){return f.call(this)?this.options.anchorPreview!==!1:!1}function p(){return this.options.placeholder!==!1}function h(){return this.options.autoLink!==!1}function m(){return this.options.imageDragging!==!1}function v(){return this.options.keyboardCommands!==!1}function g(){return!this.options.extensions.imageDragging}function y(e,t){for(var n=this.options.ownerDocument.createElement("div"),r=Date.now(),o="medium-editor-"+r+"-"+t,i=e.attributes;this.options.ownerDocument.getElementById(o);)r++,o="medium-editor-"+r+"-"+t;n.className=e.className,n.id=o,n.innerHTML=e.value,e.setAttribute("medium-editor-textarea-id",o);for(var a=0,s=i.length;s>a;a++)n.hasAttribute(i[a].nodeName)||n.setAttribute(i[a].nodeName,i[a].nodeValue);return e.classList.add("medium-editor-hidden"),e.parentNode.insertBefore(n,e),n}function b(){var e=!1;this.elements.forEach(function(t,n){this.options.disableEditing||t.getAttribute("data-disable-editing")||(t.setAttribute("contentEditable",!0),t.setAttribute("spellcheck",this.options.spellcheck)),t.setAttribute("data-medium-editor-element",!0),t.setAttribute("role","textbox"),t.setAttribute("aria-multiline",!0),t.setAttribute("medium-editor-index",n),t.hasAttribute("medium-editor-textarea-id")&&(e=!0)},this),e&&this.subscribe("editableInput",function(e,t){var n=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=this.serialize()[t.id].value)}.bind(this))}function x(){var e;if(this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",o.bind(this)),this.subscribe("editableKeydownEnter",o.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",t.bind(this)),this.options.disableReturn||this.options.disableDoubleReturn)this.subscribe("editableKeydownEnter",n.bind(this));else for(e=0;e=0&&(r=e.selection.exportSelection(t,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(t,n){if(t){var r=this.elements[t.editableElementIndex||0];e.selection.importSelection(t,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(t){var n=e.selection.getSelectionElement(this.options.contentWindow),r={};if(-1!==this.elements.indexOf(n)){try{if(this.events.disableCustomEvent("editableInput"),t.url&&t.url.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var i,a,s,u,l=o.getRangeAt(0),c=l.commonAncestorContainer;if(3===l.endContainer.nodeType&&3!==l.startContainer.nodeType&&0===l.startOffset&&l.startContainer.firstChild===l.endContainer&&(c=l.endContainer),a=e.util.getClosestBlockContainer(l.startContainer),s=e.util.getClosestBlockContainer(l.endContainer),3!==c.nodeType&&0!==c.textContent.length&&a===s){var f=a||n,d=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),i=this.exportSelection(),d.appendChild(f.cloneNode(!0)),n===f?e.selection.select(this.options.ownerDocument,f.firstChild,0,f.lastChild,3===f.lastChild.nodeType?f.lastChild.nodeValue.length:f.lastChild.childNodes.length):e.selection.select(this.options.ownerDocument,f,0,f,f.childNodes.length);var p=this.exportSelection();u=e.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,d,{start:i.start-p.start,end:i.end-p.start,editableElementIndex:i.editableElementIndex}),0===u.length&&(d=this.options.ownerDocument.createDocumentFragment(),d.appendChild(c.cloneNode(!0)),u=[d.firstChild.firstChild,d.firstChild.lastChild]),e.util.createLink(this.options.ownerDocument,u,t.url.trim());var h=(d.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;e.util.insertHTMLCommand(this.options.ownerDocument,d.firstChild.innerHTML.replace(/^\s+/,"")),i.start-=h,i.end-=h,this.importSelection(i)}else this.options.ownerDocument.execCommand("createLink",!1,t.url);this.options.targetBlank||"_blank"===t.target?e.util.setTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),t.url):e.util.removeTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),t.url),t.buttonClass&&e.util.addClassToAnchors(e.selection.getSelectionStart(this.options.ownerDocument),t.buttonClass)}}if(this.options.targetBlank||"_blank"===t.target||t.buttonClass){r=this.options.ownerDocument.createEvent("HTMLEvents"),r.initEvent("input",!0,!0,this.options.contentWindow);for(var m=0;m1?t[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},e.version=e.parseVersionString.call(this,{version:"5.16.1"}.version),e}())},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=Object.assign||function(e,t){for(var i,a,s=n(e),u=1;u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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 u=Object.assign||function(e){for(var t=1;t0||(this.setState({isDragActive:!1,isDragReject:!1}),this.props.onDragLeave&&this.props.onDragLeave.call(this,e))}},{key:"onDrop",value:function(e){e.preventDefault(),this.enterCounter=0,this.setState({isDragActive:!1,isDragReject:!1});for(var t=e.dataTransfer?e.dataTransfer.files:e.target.files,n=this.props.multiple?t.length:Math.min(t.length,1),r=[],o=0;n>o;o++){var i=t[o];this.props.disablePreview||(i.preview=window.URL.createObjectURL(i)),r.push(i)}this.props.onDrop&&this.props.onDrop.call(this,r,e),this.allFilesAccepted(r)?this.props.onDropAccepted&&this.props.onDropAccepted.call(this,r,e):this.props.onDropRejected&&this.props.onDropRejected.call(this,r,e)}},{key:"onClick",value:function(){this.props.disableClick||this.open()}},{key:"allFilesAccepted",value:function(e){var t=this;return e.every(function(e){return(0,f["default"])(e,t.props.accept)})}},{key:"open",value:function(){this.fileInputEl.value=null,this.fileInputEl.click()}},{key:"render",value:function(){var e=this,t=this.props,n=t.accept,r=t.activeClassName,i=t.inputProps,a=t.multiple,s=t.name,l=t.rejectClassName,c=o(t,["accept","activeClassName","inputProps","multiple","name","rejectClassName"]),f=c.activeStyle,d=c.className,m=c.rejectStyle,v=c.style,g=o(c,["activeStyle","className","rejectStyle","style"]),y=this.state,b=y.isDragActive,x=y.isDragReject;d=d||"",b&&r&&(d+=" "+r),x&&l&&(d+=" "+l),d||v||f||m||(v={width:200,height:200,borderWidth:2,borderColor:"#666",borderStyle:"dashed",borderRadius:5},f={borderStyle:"solid",backgroundColor:"#eee"},m={borderStyle:"solid",backgroundColor:"#ffdddd"});var A=void 0;A=f&&b?u({},v,f):m&&x?u({},v,m):u({},v);var w={accept:n,type:"file",style:{display:"none"},multiple:h&&a,ref:function(t){return e.fileInputEl=t},onChange:this.onDrop};return s&&s.length&&(w.name=s),p["default"].createElement("div",u({className:d,style:A},g,{onClick:this.onClick,onDragEnter:this.onDragEnter,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop}),this.props.children,p["default"].createElement("input",u({},i,w)))}}]),t}(p["default"].Component);m.defaultProps={disablePreview:!1,disableClick:!1,multiple:!0},m.propTypes={onDrop:p["default"].PropTypes.func,onDropAccepted:p["default"].PropTypes.func,onDropRejected:p["default"].PropTypes.func,onDragEnter:p["default"].PropTypes.func,onDragLeave:p["default"].PropTypes.func,children:p["default"].PropTypes.node,style:p["default"].PropTypes.object,activeStyle:p["default"].PropTypes.object,rejectStyle:p["default"].PropTypes.object,className:p["default"].PropTypes.string,activeClassName:p["default"].PropTypes.string,rejectClassName:p["default"].PropTypes.string,disablePreview:p["default"].PropTypes.bool,disableClick:p["default"].PropTypes.bool,inputProps:p["default"].PropTypes.object,multiple:p["default"].PropTypes.bool,accept:p["default"].PropTypes.string,name:p["default"].PropTypes.string},t["default"]=m,e.exports=t["default"]},function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";t.__esModule=!0,n(8),n(9),t["default"]=function(e,t){if(e&&t){var n=function(){var n=t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return{v:n.some(function(e){var t=e.trim();return"."===t.charAt(0)?r.toLowerCase().endsWith(t.toLowerCase()):/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t})}}();if("object"==typeof n)return n.v}return!0},e.exports=t["default"]},function(e,t){var n=e.exports={version:"1.2.2"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(2),o=n(1),i=n(4),a=n(19),s="prototype",u=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t,n){var c,f,d,p,h=e&l.G,m=e&l.P,v=h?r:e&l.S?r[t]||(r[t]={}):(r[t]||{})[s],g=h?o:o[t]||(o[t]={});h&&(n=t);for(c in n)f=!(e&l.F)&&v&&c in v,d=(f?v:n)[c],p=e&l.B&&f?u(d,r):m&&"function"==typeof d?u(Function.call,d):d,v&&!f&&a(v,c,d),g[c]!=d&&i(g,c,p),m&&((g[s]||(g[s]={}))[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,e.exports=l},function(e,t,n){var r=n(5),o=n(18);e.exports=n(22)?function(e,t,n){return r.setDesc(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20)("wks"),o=n(2).Symbol;e.exports=function(e){return r[e]||(r[e]=o&&o[e]||(o||n(6))("Symbol."+e))}},function(e,t,n){n(26),e.exports=n(1).Array.some},function(e,t,n){n(25),e.exports=n(1).String.endsWith},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n(7)("match")]=!1,!"/./"[e](t)}catch(o){}}return!0}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(16),o=n(11),i=n(7)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(2),o=n(4),i=n(6)("src"),a="toString",s=Function[a],u=(""+s).split(a);n(1).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,a){"function"==typeof n&&(o(n,i,e[t]?""+e[t]:u.join(String(t))),"name"in n||(n.name=t)),e===r?e[t]=n:(a||delete e[t],o(e,t,n))})(Function.prototype,a,function(){return"function"==typeof this&&this[i]||s.call(this)})},function(e,t,n){var r=n(2),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var r=n(17),o=n(13);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){e.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(3),o=n(24),i=n(21),a="endsWith",s=""[a];r(r.P+r.F*n(14)(a),"String",{endsWith:function(e){var t=i(this,e,a),n=arguments,r=n.length>1?n[1]:void 0,u=o(t.length),l=void 0===r?u:Math.min(o(r),u),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,n){var r=n(5),o=n(3),i=n(1).Array||Array,a={},s=function(e,t){r.each.call(e.split(","),function(e){void 0==t&&e in i?a[e]=i[e]:e in[]&&(a[e]=n(12)(Function.call,[][e],t))})};s("pop,reverse,shift,keys,values,entries",1),s("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),s("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),o(o.S,"Array",a)}])},function(t,n){t.exports=e}])})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r=0&&n, "+('or explicitly pass "store" as a prop to "'+n+'".'));var u=a.store.getState();return a.state={storeState:u},a.clearCache(),a}return a(s,r),s.prototype.shouldComponentUpdate=function(){return!b||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function(e,t){var n=d(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return this.stateProps&&(0,m["default"])(e,this.stateProps)?!1:(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&(0,m["default"])(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&M&&(0,m["default"])(e,this.mergedProps)?!1:(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){l&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){b&&(0,m["default"])(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!b||t!==e){if(b&&!this.doStatePropsDependOnOwnProps){var n=u(this.updateStatePropsIfNeeded,this);if(!n)return;n===E&&(this.statePropsPrecalculationError=E.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,k["default"])(w,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;b&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var u=!1,l=!1;r?u=!0:a&&(u=this.updateStatePropsIfNeeded()),s&&(l=this.updateDispatchPropsIfNeeded());var d=!0;return d=u||l||t?this.updateMergedPropsIfNeeded():!1,!d&&i?i:(w?this.renderedElement=(0,f.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,f.createElement)(e,this.mergedProps),this.renderedElement)},s}(f.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:p["default"]},r.propTypes={store:p["default"]},(0,A["default"])(r,e)}}var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return!e||!e.__v2_compatible__}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;ti;i++)o[i]=arguments[i];if(e.apply(t,o),e.lengtht;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}t.__esModule=!0,t.runEnterHooks=u,t.runChangeHooks=l,t.runLeaveHooks=c;var f=n(56),d=n(5);r(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;tn;n++)t[n]=arguments[n];var r=t.map(function(e){return e.renderRouterContext}).filter(function(e){return e}),s=t.map(function(e){return e.renderRouteComponent}).filter(function(e){return e}),l=function(){var e=arguments.length<=0||void 0===arguments[0]?i.createElement:arguments[0];return function(t,n){return s.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return r.reduceRight(function(t,n){return n(t,e)},a["default"].createElement(u["default"],o({},e,{createElement:l(e.createElement)})))}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(260),i=r(o),a=n(102),s=r(a);t["default"]=s["default"](i["default"]),e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=i.getParamNames(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,i=void 0,a=void 0,s=void 0;return n?!function(){var u=!1;i=n.filter(function(n){if(u)return!0;var i=-1===o.indexOf(n)||r(n,e,t);return i&&(u=!0),i}),i.reverse(),s=[],a=[],o.forEach(function(e){var t=-1===n.indexOf(e),r=-1!==i.indexOf(e);t||r?s.push(e):a.push(e)})}():(i=[],a=[],s=o),{leaveRoutes:i,changeRoutes:a,enterRoutes:s}}t.__esModule=!0;var i=n(27);t["default"]=o, -e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(!r)return void n();var o=e.location,i=void 0;i=a({},e,o),r.call(t,i,n)}function i(e,t){s.mapAsync(e.routes,function(t,n,r){o(e,t,r)},t)}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;ta;++a){var l=t[a],c=l.path||"";if("/"===c.charAt(0)&&(r=e,o=[],i=[]),null!==r&&c){var f=u.matchPattern(c,r);if(r=f.remainingPathname,o=[].concat(o,f.paramNames),i=[].concat(i,f.paramValues),""===r)return o.every(function(e,t){return String(i[t])===String(n[e])})}}return!1}function a(e,t){return null==t?null==e:null==e?!0:r(e,t)}function s(e,t,n,r,s){var u=e.pathname,l=e.query;return null==n?!1:("/"!==u.charAt(0)&&(u="/"+u),o(u,n.pathname)||!t&&i(u,r,s)?a(l,n.query):!1)}t.__esModule=!0,t["default"]=s;var u=n(27);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,r=e.routes,i=e.location,s=o(e,["history","routes","location"]);n||i?void 0:u["default"](!1),n=n?n:c["default"](s);var l=d["default"](n,p.createRoutes(r)),f=void 0;i?i=n.createLocation(i):f=n.listen(function(e){i=e});var m=h.createRouterObject(n,l);n=h.createRoutingHistory(n,l),l.match(i,function(e,r,o){t(e,r,o&&a({},o,{history:n,router:m,matchContext:{history:n,transitionManager:l,router:m}})),f&&f()})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.routes,r=o(t,["routes"]),i=u["default"](e)(r),s=c["default"](i,n);return a({},i,s)}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;ta&&l;)l=!1,t.call(this,a++,i,o);return u=!1,s?void n.apply(this,c):void(a>=e&&l&&(s=!0,n()))}}var a=0,s=!1,u=!1,l=!1,c=void 0;i()}t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e=e||window.history.state||{};var t=f.getWindowPath(),n=e,r=n.key,o=void 0;r?o=d.readState(r):(o=null,r=b.createKey(),g&&window.history.replaceState(i({},e,{key:r}),null));var a=l.parsePath(t);return b.createLocation(i({},a,{state:o}),void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return f.addEventListener(window,"popstate",n),function(){f.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=e.state,a=e.action,s=e.key;if(a!==u.POP){d.saveState(s,i);var l=(t||"")+n+r+o,c={key:s};if(a===u.PUSH){if(y)return window.location.href=l,!1;window.history.pushState(c,null,l)}else{if(y)return window.location.replace(l),!1;window.history.replaceState(c,null,l)}}}function r(e){1===++x&&(A=t(b));var n=b.listenBefore(e);return function(){n(),0===--x&&A()}}function o(e){1===++x&&(A=t(b));var n=b.listen(e);return function(){n(),0===--x&&A()}}function a(e){1===++x&&(A=t(b)),b.registerTransitionHook(e)}function p(e){b.unregisterTransitionHook(e),0===--x&&A()}var m=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:s["default"](!1);var v=m.forceRefresh,g=f.supportsHistory(),y=!g||v,b=h["default"](i({},m,{getCurrentLocation:e,finishTransition:n,saveState:d.saveState})),x=0,A=void 0;return i({},b,{listenBefore:r,listen:o,registerTransitionHook:a,unregisterTransitionHook:p})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=0&&t=0&&v8&&11>=k),T=32,E=String.fromCharCode(T),N=p.topLevelTypes,M={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[N.topCompositionEnd,N.topKeyPress,N.topTextInput,N.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[N.topBlur,N.topCompositionEnd,N.topKeyDown,N.topKeyPress,N.topKeyUp,N.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[N.topBlur,N.topCompositionStart,N.topKeyDown,N.topKeyPress,N.topKeyUp,N.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[N.topBlur,N.topCompositionUpdate,N.topKeyDown,N.topKeyPress,N.topKeyUp,N.topMouseDown]}},S=!1,O=null,L={eventTypes:M,extractEvents:function(e,t,n,r,o){return[l(e,t,n,r,o),d(e,t,n,r,o)]}};e.exports=L},function(e,t,n){"use strict";var r=n(110),o=n(6),i=n(12),a=(n(200),n(310)),s=n(205),u=n(209),l=(n(3),u(function(e){return s(e)})),c=!1,f="cssFloat";if(o.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(p){c=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}var h={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=l(n)+":",t+=a(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var i=a(o,t[o]);if("float"===o&&(o=f),i)n[o]=i;else{var s=c&&r.shorthandPropertyExpansions[o];if(s)for(var u in s)n[u]="";else n[o]=""}}}};i.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=h},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=k.getPooled(M.change,O,e,P(e));x.accumulateTwoPhaseDispatches(t),w.batchedUpdates(i,t)}function i(e){b.enqueueEvents(e),b.processEventQueue(!1)}function a(e,t){S=e,O=t,S.attachEvent("onchange",o)}function s(){S&&(S.detachEvent("onchange",o),S=null,O=null)}function u(e,t,n){return e===N.topChange?n:void 0}function l(e,t,n){e===N.topFocus?(s(),a(t,n)):e===N.topBlur&&s()}function c(e,t){S=e,O=t,L=e.value,j=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(S,"value",I),S.attachEvent("onpropertychange",d)}function f(){S&&(delete S.value,S.detachEvent("onpropertychange",d),S=null,O=null,L=null,j=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==L&&(L=t,o(e))}}function p(e,t,n){return e===N.topInput?n:void 0}function h(e,t,n){e===N.topFocus?(f(),c(t,n)):e===N.topBlur&&f()}function m(e,t,n){return e!==N.topSelectionChange&&e!==N.topKeyUp&&e!==N.topKeyDown||!S||S.value===L?void 0:(L=S.value,O)}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){return e===N.topClick?n:void 0}var y=n(16),b=n(32),x=n(33),A=n(6),w=n(13),k=n(25),P=n(72),C=n(75),T=n(137),E=n(19),N=y.topLevelTypes,M={change:{phasedRegistrationNames:{bubbled:E({onChange:null}),captured:E({onChangeCapture:null})},dependencies:[N.topBlur,N.topChange,N.topClick,N.topFocus,N.topInput,N.topKeyDown,N.topKeyUp,N.topSelectionChange]}},S=null,O=null,L=null,j=null,R=!1;A.canUseDOM&&(R=C("change")&&(!("documentMode"in document)||document.documentMode>8));var D=!1;A.canUseDOM&&(D=C("input")&&(!("documentMode"in document)||document.documentMode>9));var I={get:function(){return j.get.call(this)},set:function(e){L=""+e,j.set.call(this,e)}},z={eventTypes:M,extractEvents:function(e,t,n,o,i){var a,s;if(r(t)?R?a=u:s=l:T(t)?D?a=p:(a=m,s=h):v(t)&&(a=g),a){var c=a(e,t,n);if(c){var f=k.getPooled(M.change,c,o,i);return f.type="change",x.accumulateTwoPhaseDispatches(f),f}}s&&s(e,t,n)}};e.exports=z},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(6),i=n(202),a=n(15),s=n(87),u=n(1),l=/^(<[^ \/>]+)/,c="data-danger-index",f={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:u(!1);for(var t,n={},f=0;fe&&n[e]===o[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(29),i=n(6),a=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,l=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,f=o.injection.HAS_POSITIVE_NUMERIC_VALUE,d=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var p=document.implementation;r=p&&p.hasFeature&&p.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|f,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,"default":u,defer:u,dir:null,disabled:a|u,download:d,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|f,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|f,sizes:a,span:f,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|l,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,"typeof":a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=h},function(e,t,n){"use strict";var r=n(116),o=n(284),i=n(289),a=n(4),s=n(311),u={};a(u,i),a(u,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),u.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,u.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,e.exports=u},function(e,t,n){"use strict";var r=(n(34),n(69)),o=(n(3),"_getDOMNodeDidWarn"),i={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,null))}var o=n(24),i=n(74),a=n(77),s=n(78),u=(n(3),{instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var u=e&&e[s],l=u&&u._currentElement,c=t[s];if(null!=u&&a(l,c))o.receiveComponent(u,c,n,r),t[s]=u;else{u&&o.unmountComponent(u,s);var f=i(c,null);t[s]=f}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}});e.exports=u},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var i=n(65),a=n(17),s=n(11),u=n(34),l=n(12),c=n(46),f=(n(45),n(24)),d=n(67),p=n(4),h=n(31),m=n(1),v=n(77);n(3);o.prototype.render=function(){var e=u.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var g=1,y={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=g++,this._rootNodeID=e;var r,i,a=this._processProps(this._currentElement.props),l=this._processContext(n),c=this._currentElement.type,p="prototype"in c;p&&(r=new c(a,l,d)),p&&null!==r&&r!==!1&&!s.isValidElement(r)||(i=r,r=new o(c)),r.props=a,r.context=l,r.refs=h,r.updater=d,this._instance=r,u.set(r,this);var v=r.state;void 0===v&&(r.state=v=null),"object"!=typeof v||Array.isArray(v)?m(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===i&&(i=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(i);var y=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return r.componentDidMount&&t.getReactMountReady().enqueue(r.componentDidMount,r),y},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,u.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return h;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?m(!1):void 0;for(var o in r)o in t.childContextTypes?void 0:m(!1);return p({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var i in e)if(e.hasOwnProperty(i)){var a;try{"function"!=typeof e[i]?m(!1):void 0,a=e[i](t,i,o,n)}catch(s){a=s}if(a instanceof Error){r(this);n===c.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,o){var i,a=this._instance,s=this._context===o?a.context:this._processContext(o);t===n?i=n.props:(i=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(i,s));var u=this._processPendingState(i,s),l=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(i,u,s);l?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,i,u,s,e,o)):(this._currentElement=n,this._context=o,a.props=i,a.state=u,a.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=p({},o?r[0]:n.state),a=o?1:0;a=0||null!=t.is}function v(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var g=n(263),y=n(265),b=n(29),x=n(62),A=n(16),w=n(44),k=n(64),P=n(278),C=n(281),T=n(282),E=n(118),N=n(285),M=n(8),S=n(290),O=n(12),L=n(67),j=n(4),R=n(49),D=n(50),I=n(1),z=(n(75),n(19)),H=n(51),W=n(76),F=(n(88),n(79),n(3),w.deleteListener),q=w.listenTo,U=w.registrationNameModules,X={string:!0,number:!0},V=z({children:null}),B=z({style:null}),Z=z({__html:null}),G=1,J={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},K={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Y={listing:!0,pre:!0,textarea:!0},Q=(j({menuitem:!0},K),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),_={},$={}.hasOwnProperty;v.displayName="ReactDOMComponent",v.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"button":r=P.getNativeProps(this,r,n);break;case"input":C.mountWrapper(this,r,n),r=C.getNativeProps(this,r,n);break;case"option":T.mountWrapper(this,r,n),r=T.getNativeProps(this,r,n);break;case"select":E.mountWrapper(this,r,n),r=E.getNativeProps(this,r,n),n=E.processChildContext(this,r,n);break;case"textarea":N.mountWrapper(this,r,n),r=N.getNativeProps(this,r,n)}u(this,r);var o;if(t.useCreateElement){var i=n[M.ownerDocumentContextKey],a=i.createElement(this._currentElement.type);x.setAttributeForID(a,this._rootNodeID),M.getID(a),this._updateDOMProperties({},r,t,a),this._createInitialChildren(t,r,n,a),o=a}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),l=this._createContentMarkup(t,r,n);o=!l&&K[this._tag]?s+"/>":s+">"+l+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(d,this);case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(U.hasOwnProperty(r))o&&l(this._rootNodeID,r,o,e);else{r===B&&(o&&(o=this._previousStyleCopy=j({},t.style)),o=y.createMarkupForStyles(o));var i=null;null!=this._tag&&m(this._tag,t)?r!==V&&(i=x.createMarkupForCustomAttribute(r,o)):i=x.createMarkupForProperty(r,o),i&&(n+=" "+i)}}if(e.renderToStaticMarkup)return n;var a=x.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=X[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=D(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return Y[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&H(r,o.__html);else{var i=X[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)W(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;ut.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=l(e,o),u=l(e,i);if(s&&u){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(u.node,u.offset)):(f.setEnd(u.node,u.offset),n.addRange(f))}}}var u=n(6),l=n(314),c=n(136),f=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:f?o:i,setOffsets:f?a:s};e.exports=d},function(e,t,n){"use strict";var r=n(121),o=n(295),i=n(68);r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};e.exports=a},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);return s.asap(r,this),n}var i=n(63),a=n(66),s=n(13),u=n(4),l=n(1),c=(n(3),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML?l(!1):void 0;var r=u({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?l(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:l(!1),r=r[0]),n=""+r),null==n&&(n="");var a=i.getValue(t);e._wrapperState={initialValue:""+(null!=a?a:n),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=i.getValue(t);null!=n&&a.updatePropertyByID(e._rootNodeID,"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(32),i={handleTopLevel:function(e,t,n,i,a){var s=o.extractEvents(e,t,n,i,a);r(s)}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=d.getID(e),n=f.getReactRootIDFromNodeID(t),r=d.findReactContainerForID(n),o=d.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){a(e)}function a(e){for(var t=d.getFirstReactDOM(m(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;oo;){for(;oo;o++)n+=t+=e.charCodeAt(o);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(110),i=o.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o){return o}n(4),n(3);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=n(78);n(3);e.exports=o},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(70),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,t>=i&&a>=t)return{node:o,offset:t-i};i=a}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:i(!1),e}var o=n(11),i=n(1);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(50);e.exports=r},function(e,t,n){"use strict";var r=n(8);e.exports=r.renderSubtreeIntoContainer},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e,n){return t.reduce(function(e,t){return t(e,n)},e)}}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e){return e}function r(e,t,r){var o="function"==typeof t?t:n;return function(){for(var t=arguments.length,n=Array(t),i=0;t>i;i++)n[i]=arguments[i];var a={type:e,payload:o.apply(void 0,n)};return 1===n.length&&n[0]instanceof Error&&(a.error=!0),"function"==typeof r&&(a.meta=r.apply(void 0,n)),a}}t.__esModule=!0,t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=u["default"](e).map(function(t){return a["default"](t,e[t])});return"undefined"!=typeof t?function(e,r){return void 0===e&&(e=t),c["default"].apply(void 0,n)(e,r)}:c["default"].apply(void 0,n)}t.__esModule=!0,t["default"]=o;var i=n(138),a=r(i),s=n(322),u=r(s),l=n(318),c=r(l);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(319),i=r(o),a=n(138),s=r(a),u=n(320),l=r(u);t.createAction=i["default"],t.handleAction=s["default"],t.handleActions=l["default"]},function(e,t){"use strict";function n(e){if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e){return Promise.reject(e.message)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,r){return{load:function(){return new Promise(function(t){var n=localStorage.getItem(e);t(JSON.parse(n,r)||{})})["catch"](n)},save:function(r){return new Promise(function(n){var o=JSON.stringify(r,t);localStorage.setItem(e,o),n()})["catch"](n)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t-1&&e%1==0&&t>e}function d(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function p(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function h(){}function m(e,t){return g(e,t)&&delete e[t]}function v(e,t){if(Dt){var n=e[t];return n===Te?void 0:n}return yt.call(e,t)?e[t]:void 0}function g(e,t){return Dt?void 0!==e[t]:yt.call(e,t)}function y(e,t,n){e[t]=Dt&&void 0===n?Te:n}function b(e){var t=-1,n=e?e.length:0;for(this.clear();++tn)return!1;var r=e.length-1;return n==r?e.pop():Et.call(e,n,1),!0}function L(e,t){var n=R(e,t);return 0>n?void 0:e[n][1]}function j(e,t){return R(e,t)>-1}function R(e,t){for(var n=e.length;n--;)if(pe(e[n][0],t))return n;return-1}function D(e,t,n){var r=R(e,t);0>r?e.push([t,n]):e[r][1]=n}function I(e,t,n){var r=e[t];yt.call(e,t)&&pe(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function z(e,t){return e&&$(t,ke(t),e)}function H(e,t,n,r,o,a,s){var u;if(r&&(u=a?r(e,o,a,s):r(e)),void 0!==u)return u;if(!be(e))return e;var l=Vt(e);if(l){if(u=ae(e),!t)return _(e,u)}else{var f=ie(e),d=f==je||f==Re;if(Bt(e))return V(e,t);if(f==ze||f==Ne||d&&!a){if(c(e))return a?e:{};if(u=se(d?{}:e),!t)return ee(e,z(u,e))}else{if(!it[f])return a?e:{};u=ue(e,f,H,t)}}s||(s=new C);var p=s.get(e);if(p)return p;if(s.set(e,u),!l)var h=n?te(e):ke(e);return i(h||e,function(o,i){h&&(i=o,o=e[i]),I(u,i,H(o,t,n,r,i,e,s))}),u}function W(e){return be(e)?Ct(e):{}}function F(e,t,n){var r=t(e);return Vt(e)?r:a(r,n(e))}function q(e,t){return yt.call(e,t)||"object"==typeof e&&t in e&&null===re(e)}function U(e){return Mt(Object(e))}function X(e){return function(t){return null==t?void 0:t[e]}}function V(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function B(e){var t=new e.constructor(e.byteLength);return new kt(t).set(new kt(e)),t}function Z(e,t){var n=t?B(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G(e,t,n){var o=t?n(d(e),!0):d(e);return s(o,r,new e.constructor)}function J(e){var t=new e.constructor(e.source,nt.exec(e));return t.lastIndex=e.lastIndex,t}function K(e,t,n){var r=t?n(p(e),!0):p(e);return s(r,o,new e.constructor)}function Y(e){return Ut?Object(Ut.call(e)):{}}function Q(e,t){var n=t?B(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&Ee>=e}function be(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function xe(e){return!!e&&"object"==typeof e}function Ae(e){if(!be(e))return!1;var t=ge(e)||c(e)?xt:rt;return t.test(de(e))}function we(e){return"string"==typeof e||!Vt(e)&&xe(e)&&bt.call(e)==qe}function ke(e){var t=fe(e);if(!t&&!me(e))return U(e);var n=le(e),r=!!n,o=n||[],i=o.length;for(var a in e)!q(e,a)||r&&("length"==a||f(a,i))||t&&"constructor"==a||o.push(a);return o}function Pe(e){return function(){return e}}var Ce=200,Te="__lodash_hash_undefined__",Ee=9007199254740991,Ne="[object Arguments]",Me="[object Array]",Se="[object Boolean]",Oe="[object Date]",Le="[object Error]",je="[object Function]",Re="[object GeneratorFunction]",De="[object Map]",Ie="[object Number]",ze="[object Object]",He="[object Promise]",We="[object RegExp]",Fe="[object Set]",qe="[object String]",Ue="[object Symbol]",Xe="[object WeakMap]",Ve="[object ArrayBuffer]",Be="[object DataView]",Ze="[object Float32Array]",Ge="[object Float64Array]",Je="[object Int8Array]",Ke="[object Int16Array]",Ye="[object Int32Array]",Qe="[object Uint8Array]",_e="[object Uint8ClampedArray]",$e="[object Uint16Array]",et="[object Uint32Array]",tt=/[\\^$.*+?()[\]{}|]/g,nt=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,it={};it[Ne]=it[Me]=it[Ve]=it[Be]=it[Se]=it[Oe]=it[Ze]=it[Ge]=it[Je]=it[Ke]=it[Ye]=it[De]=it[Ie]=it[ze]=it[We]=it[Fe]=it[qe]=it[Ue]=it[Qe]=it[_e]=it[$e]=it[et]=!0,it[Le]=it[je]=it[Xe]=!1;var at={"function":!0,object:!0},st=at[typeof t]&&t&&!t.nodeType?t:void 0,ut=at[typeof e]&&e&&!e.nodeType?e:void 0,lt=ut&&ut.exports===st?st:void 0,ct=l(st&&ut&&"object"==typeof n&&n),ft=l(at[typeof self]&&self),dt=l(at[typeof window]&&window),pt=l(at[typeof this]&&this),ht=ct||dt!==(pt&&pt.window)&&dt||ft||pt||Function("return this")(),mt=Array.prototype,vt=Object.prototype,gt=Function.prototype.toString,yt=vt.hasOwnProperty,bt=vt.toString,xt=RegExp("^"+gt.call(yt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=lt?ht.Buffer:void 0,wt=ht.Symbol,kt=ht.Uint8Array,Pt=Object.getOwnPropertySymbols,Ct=Object.create,Tt=vt.propertyIsEnumerable,Et=mt.splice,Nt=Object.getPrototypeOf,Mt=Object.keys,St=ne(ht,"DataView"),Ot=ne(ht,"Map"),Lt=ne(ht,"Promise"),jt=ne(ht,"Set"),Rt=ne(ht,"WeakMap"),Dt=ne(Object,"create"),It=de(St),zt=de(Ot),Ht=de(Lt),Wt=de(jt),Ft=de(Rt),qt=wt?wt.prototype:void 0,Ut=qt?qt.valueOf:void 0;h.prototype=Dt?Dt(null):vt,b.prototype.clear=x,b.prototype["delete"]=A,b.prototype.get=w,b.prototype.has=k,b.prototype.set=P,C.prototype.clear=T,C.prototype["delete"]=E,C.prototype.get=N,C.prototype.has=M,C.prototype.set=S;var Xt=X("length");Pt||(oe=function(){return[]}),(St&&ie(new St(new ArrayBuffer(1)))!=Be||Ot&&ie(new Ot)!=De||Lt&&ie(Lt.resolve())!=He||jt&&ie(new jt)!=Fe||Rt&&ie(new Rt)!=Xe)&&(ie=function(e){var t=bt.call(e),n=t==ze?e.constructor:void 0,r=n?de(n):void 0;if(r)switch(r){case It:return Be;case zt:return De;case Ht:return He;case Wt:return Fe;case Ft:return Xe}return t});var Vt=Array.isArray,Bt=At?function(e){return e instanceof At}:Pe(!1);e.exports=H}).call(t,n(52)(e),function(){return this}())},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function r(e){return d(Object(e))}function o(e){return!!e&&"object"==typeof e}function i(e){if(!o(e)||f.call(e)!=a||n(e))return!1;var t=r(e);if(null===t)return!0;var i=l.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&u.call(i)==c}var a="[object Object]",s=Object.prototype,u=Function.prototype.toString,l=s.hasOwnProperty,c=u.call(Object),f=s.toString,d=Object.getPrototypeOf;e.exports=i},function(e,t,n){(function(e,n){function r(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&t>e}function a(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function s(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function u(e){return function(t){return null==t?void 0:t[e]}}function l(e){var t=e?e.length:void 0;return m(t)&&(q(e)||y(e)||f(e))?r(t,String):null}function c(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||R;return e===n}function f(e){return p(e)&&D.call(e,"callee")&&(!W.call(e,"callee")||I.call(e)==A)}function d(e){return null!=e&&m(F(e))&&!h(e)}function p(e){return g(e)&&d(e)}function h(e){var t=v(e)?I.call(e):"";return t==w||t==k}function m(e){return"number"==typeof e&&e>-1&&e%1==0&&x>=e}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function y(e){return"string"==typeof e||!q(e)&&g(e)&&I.call(e)==P}function b(e){for(var t=-1,n=c(e),r=s(e),o=r.length,a=l(e),u=!!a,f=a||[],d=f.length;++t-1&&e%1==0&&t>e}function i(e,t,n){(void 0===n||h(e[t],n))&&("number"!=typeof t||void 0!==n||t in e)||(e[t]=n)}function a(e,t,n){var r=e[t];oe.call(e,t)&&h(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function s(e,t,n,o,a){if(e!==t){if(!ue(t)&&!w(t))var l=E(t);r(l||t,function(r,c){if(l&&(c=r,r=t[c]),x(r))a||(a=new P),u(e,t,c,n,s,o,a);else{var f=o?o(e[c],r,c+"",e,t,a):void 0;void 0===f&&(f=r),i(e,c,f)}})}}function u(e,t,n,r,o,a,s){var u=e[n],l=t[n],f=s.get(l);if(f)return void i(e,n,f);var d=a?a(u,l,n+"",e,t,s):void 0,p=void 0===d;p&&(d=l,ue(l)||w(l)?ue(u)?d=u:g(u)?d=c(u):(p=!1,d=C(l,!0)):T(l)||m(l)?m(u)?d=k(u):!x(u)||r&&y(u)?(p=!1,d=C(l,!0)):d=u:p=!1),s.set(l,d),p&&o(d,l,r,a,s),s["delete"](l),i(e,n,d)}function l(e){return function(t){return null==t?void 0:t[e]}}function c(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i="function"==typeof i?(o--,i):void 0,a&&p(n[0],n[1],a)&&(i=3>o?void 0:i,o=1),t=Object(t);++r-1&&e%1==0&&M>=e}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function A(e){return!!e&&"object"==typeof e}function w(e){return A(e)&&b(e.length)&&!!ne[ie.call(e)]}function k(e){return f(e,E(e))}var P=n(215),C=n(325),T=n(327),E=n(328),N=n(221),M=9007199254740991,S="[object Arguments]",O="[object Array]",L="[object Boolean]",j="[object Date]",R="[object Error]",D="[object Function]",I="[object GeneratorFunction]",z="[object Map]",H="[object Number]",W="[object Object]",F="[object RegExp]",q="[object Set]",U="[object String]",X="[object WeakMap]",V="[object ArrayBuffer]",B="[object DataView]",Z="[object Float32Array]",G="[object Float64Array]",J="[object Int8Array]",K="[object Int16Array]",Y="[object Int32Array]",Q="[object Uint8Array]",_="[object Uint8ClampedArray]",$="[object Uint16Array]",ee="[object Uint32Array]",te=/^(?:0|[1-9]\d*)$/,ne={};ne[Z]=ne[G]=ne[J]=ne[K]=ne[Y]=ne[Q]=ne[_]=ne[$]=ne[ee]=!0,ne[S]=ne[O]=ne[V]=ne[L]=ne[B]=ne[j]=ne[R]=ne[D]=ne[z]=ne[H]=ne[W]=ne[F]=ne[q]=ne[U]=ne[X]=!1;var re=Object.prototype,oe=re.hasOwnProperty,ie=re.toString,ae=re.propertyIsEnumerable,se=l("length"),ue=Array.isArray,le=d(function(e,t,n){s(e,t,n)});e.exports=le},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tn;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),u=a.dispatch,l=[],c={getState:a.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=s["default"].apply(void 0,l)(a.dispatch),i({},a,{dispatch:u})}}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t0;)for(t=o.shift(),i.push(t),n=t.childNodes,r=0;r<",">"+t+"<")}function c(e,t){if("string"==typeof t)return t===e.nodeName.toLowerCase();if(Array.isArray(t))return-1!==t.indexOf(e.nodeName.toLowerCase());if("function"==typeof t)return t.call(h,e);throw new TypeError("`filter` needs to be a string, array, or function")}function f(e,t){var n,r,i;return"left"===e?(n=t.previousSibling,r=/ $/):(n=t.nextSibling,r=/^ /),n&&(3===n.nodeType?i=r.test(n.nodeValue):1!==n.nodeType||o(n)||(i=r.test(n.textContent))),i}function d(e){var t="",n="";if(!o(e)){var r=/^[ \r\n\t]/.test(e.innerHTML),i=/[ \r\n\t]$/.test(e.innerHTML);r&&!f("left",e)&&(t=" "),i&&!f("right",e)&&(n=" ")}return{leading:t,trailing:n}}function p(e){var t,n=u(e);if(!i(e)&&!/A|TH|TD/.test(e.nodeName)&&/^\s*$/i.test(n))return void(e._replacement=""); -for(var o=0;o=0;i--)p(o[i]);return n=u(r),n.replace(/^[\t\r\n]+|[\t\r\n\s]+$/g,"").replace(/\n\s+\n/g,"\n\n").replace(/\n{3,}/g,"\n\n")},h.isBlock=o,h.isVoid=i,h.trim=r,h.outer=l,e.exports=h},function(e,t){"use strict";function n(e,t){var n=Array.prototype.indexOf.call(t.parentNode.childNodes,t),r=" ";return 0===n&&(r="| "),r+e+" |"}var r=/highlight highlight-(\S+)/;e.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}},{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:function(e,t){return n(e,t)}},{filter:"tr",replacement:function(e,t){var r="",o={left:":--",right:"--:",center:":-:"};if("THEAD"===t.parentNode.nodeName)for(var i=0;io;o++)r+="#";return"\n\n"+r+" "+e+"\n\n"}},{filter:"hr",replacement:function(){return"\n\n* * *\n\n"}},{filter:["em","i"],replacement:function(e){return"_"+e+"_"}},{filter:["strong","b"],replacement:function(e){return"**"+e+"**"}},{filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){return"`"+e+"`"}},{filter:function(e){return"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.title?' "'+t.title+'"':"";return"["+e+"]("+t.getAttribute("href")+n+")"}},{filter:"img",replacement:function(e,t){var n=t.alt||"",r=t.getAttribute("src")||"",o=t.title||"",i=o?' "'+o+'"':"";return r?"!["+n+"]("+r+i+")":""}},{filter:function(e){return"PRE"===e.nodeName&&"CODE"===e.firstChild.nodeName},replacement:function(e,t){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},{filter:"blockquote",replacement:function(e){return e=this.trim(e),e=e.replace(/\n{3,}/g,"\n\n"),e=e.replace(/^/gm,"> "),"\n\n"+e+"\n\n"}},{filter:"li",replacement:function(e,t){e=e.replace(/^\s+/,"").replace(/\n/gm,"\n ");var n="* ",r=t.parentNode,o=Array.prototype.indexOf.call(r.children,t)+1;return n=/ol/i.test(r.nodeName)?o+". ":"* ",n+e}},{filter:["ul","ol"],replacement:function(e,t){for(var n=[],r=0;r-1?t:e}function c(e,t){t=t||{};var n=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=l(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 f(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 d(e){var t=new r,n=e.getAllResponseHeaders().trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}function p(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof r?t.headers:new r(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){r.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(r)},r.prototype["delete"]=function(e){delete this.map[t(e)]},r.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},r.prototype.getAll=function(e){return this.map[t(e)]||[]},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},r.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)};var h={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},m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},u.call(c.prototype),u.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},p.error=function(){var e=new p(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];p.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new p(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=c,e.Response=p,e.fetch=function(e,t){return new Promise(function(n,r){function o(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var i;i=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(100>e||e>599)return void r(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:d(a),url:o()},i="response"in a?a.response:a.responseText;n(new p(i,t))},a.onerror=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&h.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t){}]); +function r(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,a=n(9);a.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(9),o=n(75),a=n(76),i=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){a(e,o(t))})),e.exports=i},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,a=typeof t;return"string"===o||"number"===o?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";function r(e){return m[e]}function o(e,t){return e&&null!=e.key?i(e.key):t.toString(36)}function a(e){return(""+e).replace(_,r)}function i(e){return"$"+a(e)}function s(e,t,n,r){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||l.isValidElement(e))return n(r,e,""===t?p+o(e,0):t),1;var u,c,m=0,_=""===t?p:t+h;if(Array.isArray(e))for(var y=0;y=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t":i.innerHTML="<"+e+">",s[e]=!i.firstChild),s[e]?f[e]:null}var o=n(9),a=n(5),i=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
    "],c=[3,"","
    "],d=[1,'',""],f={"*":[1,"?
    ","
    "],area:[1,"",""],col:[2,"","
    "],legend:[1,"
    ","
    "],param:[1,"",""],tr:[2,"","
    "],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(e){f[e]=d,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=r.bind(t),i=0;in)return!1;var r=e.length-1;return n==r?e.pop():i.call(e,n,1),!0}var o=n(56),a=Array.prototype,i=a.splice;e.exports=r},function(e,t,n){function r(e,t){var n=o(e,t);return 0>n?void 0:e[n][1]}var o=n(56);e.exports=r},function(e,t,n){function r(e,t){return o(e,t)>-1}var o=n(56);e.exports=r},function(e,t,n){function r(e,t,n){var r=o(e,t);0>r?e.push([t,n]):e[r][1]=n}var o=n(56);e.exports=r},function(e,t,n){var r=n(429),o=n(443),a=o(r);e.exports=a},function(e,t,n){function r(e,t){t=a(t,e)?[t]:o(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[i(t[n++])];return n&&n==r?e:void 0}var o=n(144),a=n(57),i=n(60);e.exports=r},function(e,t,n){function r(e,t){return i.call(e,t)||"object"==typeof e&&t in e&&null===o(e)}var o=n(146),a=Object.prototype,i=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?a(e[0],e[1]):o(e):u(e)}var o=n(435),a=n(436),i=n(474),s=n(19),u=n(482);e.exports=r},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){function r(e){if("string"==typeof e)return e;if(a(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=n(132),a=n(64),i=1/0,s=o?o.prototype:void 0,u=s?s.toString:void 0;e.exports=r},function(e,t,n){function r(e){return o(e)?e:a(e)}var o=n(19),a=n(470);e.exports=r},function(e,t,n){function r(e,t,n,r,s,u){var l=-1,c=s&i,d=s&a,f=e.length,p=t.length;if(f!=p&&!(c&&p>f))return!1;var h=u.get(e);if(h)return h==t;var m=!0;for(u.set(e,t);++l-1&&e%1==0&&t>e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){function r(e){return e===e&&!o(e)}var o=n(17);e.exports=r},function(e,t){function n(e,t){return function(n){return null==n?!1:n[e]===t&&(void 0!==t||e in Object(n))}}e.exports=n},function(e,t){var n="\\ud800-\\udfff",r="\\u0300-\\u036f\\ufe20-\\ufe23",o="\\u20d0-\\u20f0",a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+n+r+o+a+"]");e.exports=s},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var r=Function.prototype.toString;e.exports=n},function(e,t,n){function r(e,t){return"function"==typeof t&&s(e)?o(e,t):a(e,i(t))}var o=n(426),a=n(138),i=n(141),s=n(19);e.exports=r},function(e,t,n){function r(e){return o(e)&&s.call(e,"callee")&&(!l.call(e,"callee")||u.call(e)==a)}var o=n(475),a="[object Arguments]",i=Object.prototype,s=i.hasOwnProperty,u=i.toString,l=i.propertyIsEnumerable;e.exports=r},function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&a(e)&&u.call(e)==i}var o=n(19),a=n(37),i="[object String]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t,n){function r(e){return null==e?"":o(e)}var o=n(143);e.exports=r},function(e,t,n){(function(t){(function(){function t(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=d.normal,this.options.gfm&&(this.options.tables?this.rules=d.tables:this.rules=d.gfm)}function n(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=f.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=f.breaks:this.rules=f.gfm:this.options.pedantic&&(this.rules=f.pedantic)}function r(e){this.options=e||{}}function o(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function s(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,o=o.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}function u(){}function l(e){for(var t,n,r=1;rAn error occured:

    "+a(f.message+"",!0)+"
    ";throw f}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:u,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:u,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:u,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=s(d.item,"gm")(/bull/g,d.bullet)(),d.list=s(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=s(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=s(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=s(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=l({},d),d.gfm=l({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=s(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=l({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,o,a,i,s,u,l,c,f,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),u={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),i=a[2],this.tokens.push({type:"list_start",ordered:i.length>1}),a=a[0].match(this.rules.item),r=!1,f=a.length,c=0;f>c;c++)u=a[c],l=u.length,u=u.replace(/^ *([*+-]|\d+\.) +/,""),~u.indexOf("\n ")&&(l-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+l+"}","gm"),"")),this.options.smartLists&&c!==f-1&&(s=d.bullet.exec(a[c+1])[0],i===s||i.length>1&&s.length>1||(e=a.slice(c+1).join("\n")+e,c=f-1)),o=r||/\n\n(?!\s*$)/.test(u),c!==f-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),u={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:u,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:u,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,f.link=s(f.link)("inside",f._inside)("href",f._href)(),f.reflink=s(f.reflink)("inside",f._inside)(),f.normal=l({},f),f.pedantic=l({},f.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),f.gfm=l({},f.normal,{escape:s(f.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(f.text)("]|","~]|")("|","|https?://|")()}),f.breaks=l({},f.gfm,{br:s(f.br)("{2,}","*")(),text:s(f.gfm.text)("{2,}","*")()}),n.rules=f,n.output=function(e,t,r){var o=new n(t,r);return o.output(e)},n.prototype.output=function(e){for(var t,n,r,o,i="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),i+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),r=this.mangle("mailto:")+n):(n=a(o[1]),r=n),i+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^
    /i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,i+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){i+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),i+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),i+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),i+=this.renderer.codespan(a(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),i+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),i+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),i+=this.renderer.text(a(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=a(o[1]),r=n,i+=this.renderer.link(r,null,n);return i},n.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;r>o;o++)t=e.charCodeAt(o),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(i(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var a='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o,a="",i="";for(n="",e=0;ee?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm" +},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,i){var s=r(t),u=o[e][r(t)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,t)}},i=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],s=e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});return s})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return 4>e?"gecə":12>e?"səhər":17>e?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(o[r],+e)}var r=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночы":12>e?"раніцы":17>e?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=e.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&5>e||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return 4>e?"রাত":10>e?"সকাল":17>e?"দুপুর":20>e?"বিকাল":"রাত"},week:{dow:0,doy:6}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},r=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&5>e||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return 4>e?"མཚན་མོ":10>e?"ཞོགས་ཀས":17>e?"ཉིན་གུང":20>e?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+o(r[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function o(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var i=e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4}});return i})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e){return e>1&&5>e&&1!==~~(e/10)}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"pár sekund":"pár sekundami";case"m":return n?"minuta":o?"minutu":"minutou";case"mm":return n||o?a+(t(e)?"minuty":"minut"):a+"minutami";case"h":return n?"hodina":o?"hodinu":"hodinou";case"hh":return n||o?a+(t(e)?"hodiny":"hodin"):a+"hodinami";case"d":return n||o?"den":"dnem";case"dd":return n||o?a+(t(e)?"dny":"dní"):a+"dny";case"M":return n||o?"měsíc":"měsícem";case"MM":return n||o?a+(t(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return n||o?"rok":"rokem";case"yy":return n||o?a+(t(e)?"roky":"let"):a+"lety"}}var r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),o="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),a=e.defineLocale("cs",{months:r,monthsShort:o,monthsParse:function(e,t){var n,r=[];for(n=0;12>n;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(r,o),shortMonthsParse:function(e){var t,n=[];for(t=0;12>t;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(o),longMonthsParse:function(e){var t,n=[];for(t=0;12>t;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=r[t]),e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return 12>e?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var n=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],o=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",o%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT", +lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},r=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return 12>e?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,r,o){var a="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":a=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return a=n(e,o)+" "+a}function n(e,t){return 10>e?t?o[e]:r[e]:e}var r="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),o=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",r[7],r[8],r[9]],a=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),r=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],o=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],i=e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return i})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),monthsParseExact:!0,weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return 5>e?"לפנות בוקר":10>e?"בבוקר":12>e?n?'לפנה"צ':"לפני הצהריים":18>e?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?4>e?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return 4>e?"रात":10>e?"सुबह":17>e?"दोपहर":20>e?"शाम":"रात"},week:{dow:0,doy:6}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}var n=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+r[this.day()]+"] LT[-kor]"}var r="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" "),o=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return 12>e?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return o})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return 4>e?"գիշերվա":12>e?"առավոտվա":17>e?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"siang":19>e?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e){return e%100===11?!0:e%10!==1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}var r=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd" +},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return 12>e?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"enjing":15>e?"siyang":19>e?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":20>e||100>=e&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return 12>e?"오전":"오후"}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(0>e)return!0;if(10>e)return e>=4&&7>=e;if(100>e){var t=e%10,n=e/10;return o(0===t?n:t)}if(1e4>e){for(;e>=10;)e/=10;return o(e)}return e/=1e3,o(e)}var a=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return 12>e?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10===0||e>10&&20>e}function o(e){return i[e].split("_")}function a(e,t,a,i){var s=e+" ";return 1===e?s+n(e,t,a[0],i):t?s+(r(e)?o(a)[1]:o(a)[0]):i?s+o(a)[1]:s+(r(e)?o(a)[1]:o(a)[2])}var i={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_")},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:t,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n){return n?t%10===1&&11!==t?e[2]:e[3]:t%10===1&&11!==t?e[0]:e[1]}function n(e,n,r){return e+" "+t(a[r],e,n)}function r(e,n,r){return t(a[r],e,n)}function o(e,t){return t?"dažas sekundes":"dažām sekundēm"}var a={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")},i=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:o,m:r,mm:n,h:r,hh:n,d:r,dd:n,M:r,MM:n,y:r,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return 4>e?"രാത്രി":12>e?"രാവിലെ":17>e?"ഉച്ച കഴിഞ്ഞ്":20>e?"വൈകുന്നേരം":"രാത്രി"}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}var n={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},o=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return r[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return n[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?4>e?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return 4>e?"रात्री":10>e?"सकाळी":17>e?"दुपारी":20>e?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return o})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"tengahari":19>e?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"tengahari":19>e?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},r=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?4>e?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return 3>e?"राति":12>e?"बिहान":16>e?"दिउँसो":20>e?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},monthsParseExact:!0,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},r=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?4>e?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return 4>e?"ਰਾਤ":10>e?"ਸਵੇਰ":17>e?"ਦੁਪਹਿਰ":20>e?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e){return 5>e%10&&e%10>1&&~~(e/10)%10!==1}function n(e,n,r){var o=e+" ";switch(r){case"m":return n?"minuta":"minutę";case"mm":return o+(t(e)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return o+(t(e)?"godziny":"godzin");case"MM":return o+(t(e)?"miesiące":"miesięcy");case"yy":return o+(t(e)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a=e.defineLocale("pl",{ +months:function(e,t){return""===t?"("+o[e.month()]+"|"+r[e.month()]+")":/D MMMM/.test(t)?o[e.month()]:r[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n){var r={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},o=" ";return(e%100>=20||e>=100&&e%100===0)&&(o=" de "),e+o+r[n]}var n=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(o[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|сент\.|февр\.|нояб\.|июнь|янв.|июль|дек.|авг.|апр.|марта|мар[.т]|окт.|июн[яь]|июл[яь]|ма[яй])/i,monthsShortRegex:/^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|сент\.|февр\.|нояб\.|июнь|янв.|июль|дек.|авг.|апр.|марта|мар[.т]|окт.|июн[яь]|июл[яь]|ма[яй])/i,monthsStrictRegex:/^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|марта?|июн[яь]|июл[яь]|ма[яй])/i,monthsShortStrictRegex:/^(нояб\.|февр\.|сент\.|июль|янв\.|июн[яь]|мар[.т]|авг\.|апр\.|окт\.|дек\.|ма[яй])/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}});return o})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e){return e>1&&5>e}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"pár sekúnd":"pár sekundami";case"m":return n?"minúta":o?"minútu":"minútou";case"mm":return n||o?a+(t(e)?"minúty":"minút"):a+"minútami";case"h":return n?"hodina":o?"hodinu":"hodinou";case"hh":return n||o?a+(t(e)?"hodiny":"hodín"):a+"hodinami";case"d":return n||o?"deň":"dňom";case"dd":return n||o?a+(t(e)?"dni":"dní"):a+"dňami";case"M":return n||o?"mesiac":"mesiacom";case"MM":return n||o?a+(t(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return n||o?"rok":"rokom";case"yy":return n||o?a+(t(e)?"roky":"rokov"):a+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),o="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),a=e.defineLocale("sk",{months:r,monthsShort:o,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":5>e?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":5>e?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":5>e?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":5>e?t||r?"leta":"leti":t||r?"let":"leti"}}var n=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return 12>e?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return 11>e?"ekuseni":15>e?"emini":19>e?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},ordinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"e":1===t?"a":2===t?"a":"e";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},r=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return 2>e?" யாமம்":6>e?" வைகறை":10>e?" காலை":14>e?" நண்பகல்":18>e?" எற்பாடு":22>e?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?2>e?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return r})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?4>e?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return 4>e?"రాత్రి":10>e?"ఉదయం":17>e?"మధ్యాహ్నం":20>e?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return 12>e?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function r(e,t,n,r){var a=o(e);switch(n){case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}function o(e){var t=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,o="";return t>0&&(o+=a[t]+"vatlh"),n>0&&(o+=(""!==o?" ":"")+a[n]+"maH"),r>0&&(o+=(""!==o?" ":"")+a[r]),""===o?"pagh":o}var a="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),i=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:t,past:n,s:"puS lup",m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",""+e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",""+e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",""+e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",""+e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",""+e+" ars"]};return r?o[n][0]:t?o[n][0]:o[n][1]}var n=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"), +longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(o[r],+e)}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[r][e.day()]}function o(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночі":12>e?"ранку":17>e?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return a})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return 12>e?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return 600>r?"凌晨":900>r?"早上":1130>r?"上午":1230>r?"中午":1800>r?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.diff(t,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return 900>r?"早上":1130>r?"上午":1230>r?"中午":1800>r?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1分鐘",mm:"%d分鐘",h:"1小時",hh:"%d小時",d:"1天",dd:"%d天",M:"1個月",MM:"%d個月",y:"1年",yy:"%d年"}});return t})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(17),i=r(a),s=function(){function e(t,n){if(o(this,e),!i["default"](t))throw new Error("UnionSchema requires item schema to be an object.");if(!n||!n.schemaAttribute)throw new Error("UnionSchema requires schemaAttribute option.");this._itemSchema=t;var r=n.schemaAttribute;this._getSchema="function"==typeof r?r:function(e){return e[r]}}return e.prototype.getItemSchema=function(){return this._itemSchema},e.prototype.getSchemaKey=function(e){return this._getSchema(e)},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(1);t["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t){"use strict";function n(e){return function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return{type:r,payload:{method:e,args:n}}}}Object.defineProperty(t,"__esModule",{value:!0});var r=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD",o=t.push=n("push"),a=t.replace=n("replace"),i=t.go=n("go"),s=t.goBack=n("goBack"),u=t.goForward=n("goForward");t.routerActions={push:o,replace:a,go:i,goBack:s,goForward:u}},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?a:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.type,i=t.payload;return n===o?r({},e,{locationBeforeTransitions:i}):e}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:f,from:f,to:f.isRequired,query:p,state:p,onEnter:c.falsy,children:c.falsy},render:function(){(0,s["default"])(!1)}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),a=r(o),i=n(11),s=r(i),u=n(25),l=n(29),c=a["default"].PropTypes,d=c.string,f=c.func,p=a["default"].createClass({displayName:"Route",statics:{createRouteFromReactElement:u.createRouteFromReactElement},propTypes:{path:d,component:l.component,components:l.components,getComponent:f,getComponents:f},render:function(){(0,s["default"])(!1)}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return!e||!e.__v2_compatible__}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=0&&0===window.sessionStorage.length)return;throw n}}function i(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(n.name===c)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=a,t.readState=i;var s=n(15),u=(r(s),"@@History/"),l=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],c="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return u.canUseDOM?void 0:s["default"](!1),n.listen(e)}var n=d["default"](a({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return a({},n,{listen:t})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t1?t-1:0),a=1;t>a;a++)o[a-1]=arguments[a];return n(g.createLocation.apply(g,[r(e)].concat(o)))}function _(e,t){"string"==typeof t&&(t=u.parsePath(t)),l(a({state:e},t))}function y(e,t){"string"==typeof t&&(t=u.parsePath(t)),d(a({state:e},t))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],g=e(v),b=v.basename,M=!1;return a({},g,{listenBefore:o,listen:i,push:l,replace:d,createPath:p,createHref:h,createLocation:m,pushState:f["default"](_,"pushState is deprecated; use push instead"),replaceState:f["default"](y,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=n(528),a=n(296),i=n(13),s=n(76),u=n(111),l=n(5),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(e,t){for(var n,i=null,c=null,d=0;d-1?void 0:i(!1),!l.plugins[n]){t.extractEvents?void 0:i(!1),l.plugins[n]=t;var r=t.eventTypes;for(var a in r)o(r[a],t,a)?void 0:i(!1)}}}function o(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?i(!1):void 0,l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a(s,t,n)}return!0}return e.registrationName?(a(e.registrationName,t,n),!0):!1}function a(e,t,n){l.registrationNameModules[e]?i(!1):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=n(5),s=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?i(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?i(!1):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=l},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function a(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function i(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);y(e,a,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,a=e.keyPrefix,i=e.func,s=e.context,u=i.call(s,t,e.count++);Array.isArray(u)?l(u,o,n,_.thatReturnsArgument):null!=u&&(m.isValidElement(u)&&(u=m.cloneAndReplaceKey(u,a+(u!==t?r(u.key||"")+"/":"")+n)),o.push(u))}function l(e,t,n,o,a){var i="";null!=n&&(i=r(n)+"/");var l=s.getPooled(t,i,o,a);y(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var r=[];return l(e,r,null,t,n),r}function d(e,t,n){return null}function f(e,t){return y(e,d,null)}function p(e){var t=[];return l(e,t,null,_.thatReturnsArgument),t}var h=n(26),m=n(12),_=n(16),y=n(113),v=h.twoArgumentPooler,g=h.fourArgumentPooler,b=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,v),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,g);var M={forEach:i,map:c,mapIntoWithKeyPrefixInternal:l,count:f,toArray:p};e.exports=M},function(e,t,n){"use strict";function r(e,t){var n=L.hasOwnProperty(t)?L[t]:null;x.hasOwnProperty(t)&&(n!==b.OVERRIDE_BASE?_(!1):void 0),e.hasOwnProperty(t)&&(n!==b.DEFINE_MANY&&n!==b.DEFINE_MANY_MERGED?_(!1):void 0)}function o(e,t){if(t){"function"==typeof t?_(!1):void 0,f.isValidElement(t)?_(!1):void 0;var n=e.prototype;t.hasOwnProperty(g)&&w.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==g){var a=t[o];if(r(n,o),w.hasOwnProperty(o))w[o](e,a);else{var i=L.hasOwnProperty(o),l=n.hasOwnProperty(o),c="function"==typeof a,d=c&&!i&&!l&&t.autobind!==!1;if(d)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=a,n[o]=a;else if(l){var p=L[o];!i||p!==b.DEFINE_MANY_MERGED&&p!==b.DEFINE_MANY?_(!1):void 0,p===b.DEFINE_MANY_MERGED?n[o]=s(n[o],a):p===b.DEFINE_MANY&&(n[o]=u(n[o],a))}else n[o]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in w;o?_(!1):void 0;var a=n in e;a?_(!1):void 0,e[n]=r}}}function i(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:_(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?_(!1):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return i(o,n),i(o,r),o}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,n)}}var d=n(283),f=n(12),p=(n(71),n(70),n(298)),h=n(7),m=n(47),_=n(5),y=n(48),v=n(24),g=(n(6),v({mixins:null})),b=y({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),M=[],L={mixins:b.DEFINE_MANY,statics:b.DEFINE_MANY,propTypes:b.DEFINE_MANY,contextTypes:b.DEFINE_MANY,childContextTypes:b.DEFINE_MANY,getDefaultProps:b.DEFINE_MANY_MERGED,getInitialState:b.DEFINE_MANY_MERGED,getChildContext:b.DEFINE_MANY_MERGED,render:b.DEFINE_ONCE,componentWillMount:b.DEFINE_MANY,componentDidMount:b.DEFINE_MANY,componentWillReceiveProps:b.DEFINE_MANY,shouldComponentUpdate:b.DEFINE_ONCE,componentWillUpdate:b.DEFINE_MANY,componentDidUpdate:b.DEFINE_MANY,componentWillUnmount:b.DEFINE_MANY,updateComponent:b.OVERRIDE_BASE},w={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n"+s+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=i.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){a.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(14),a=n(73),i=n(7),s=n(16),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},l={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[l,u];i(r.prototype,a.Mixin,{getTransactionWrappers:function(){return c}});var d=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,a){var i=f.isBatchingUpdates;f.isBatchingUpdates=!0,i?e(t,n,r,o,a):d.perform(e,null,t,n,r,o,a)}};e.exports=f},function(e,t,n){"use strict";function r(){if(!k){k=!0,y.EventEmitter.injectReactEventListener(_),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginHub.injectInstanceHandle(v),y.EventPluginHub.injectMount(g),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:M,BeforeInputEventPlugin:o}),y.NativeComponent.injectGenericComponentClass(h),y.NativeComponent.injectTextComponentClass(m),y.Class.injectMixin(d),y.DOMProperty.injectDOMPropertyConfig(c),y.DOMProperty.injectDOMPropertyConfig(x),y.EmptyComponent.injectEmptyComponent("noscript"),y.Updates.injectReconcileTransaction(b),y.Updates.injectBatchingStrategy(p),y.RootIndex.injectCreateReactRootIndex(l.canUseDOM?i.createReactRootIndex:L.createReactRootIndex),y.Component.injectEnvironment(f)}}var o=n(524),a=n(526),i=n(527),s=n(529),u=n(530),l=n(9),c=n(533),d=n(535),f=n(99),p=n(288),h=n(539),m=n(287),_=n(547),y=n(548),v=n(43),g=n(10),b=n(552),M=n(558),L=n(559),w=n(560),x=n(557),k=!1;e.exports={inject:r}},function(e,t,n){"use strict";function r(){if(d.current){var e=d.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;a("uniqueKey",e,t)}}function a(e,t,n){var o=r();if(!o){var a="string"==typeof n?n:n.displayName||n.name;a&&(o=" Check the top-level render call using <"+a+">.")}var i=h[e]||(h[e]={});if(i[o])return null;i[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==d.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function i(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t,n){"use strict";var r=n(48),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=d[t];return null==n&&(d[t]=n=l(t)),n}function o(e){return c?void 0:u(!1),new c(e.type,e.props)}function a(e){return new f(e)}function i(e){return e instanceof f}var s=n(7),u=n(5),l=null,c=null,d={},f=null,p={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){s(d,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:a,isTextComponent:i,injection:p};e.exports=h},function(e,t,n){"use strict";function r(e,t){}var o=(n(6),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,a,i){if(o=o||L,i=i||r,null==n[r]){var s=g[a];return t?new Error("Required "+s+" `"+i+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,a,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,a){var i=t[n],s=m(i);if(s!==e){var u=g[o],l=_(i);return new Error("Invalid "+u+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function a(){return r(b.thatReturns(null))}function i(e){function t(t,n,r,o,a){var i=t[n];if(!Array.isArray(i)){var s=g[o],u=m(i);return new Error("Invalid "+s+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l>"}var v=n(12),g=n(70),b=n(16),M=n(108),L="<>",w={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:a(),arrayOf:i,element:s(),instanceOf:u,node:f(),objectOf:c,oneOf:l,oneOfType:d,shape:p};e.exports=w},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(5);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(){return!a&&o.canUseDOM&&(a="textContent"in document.documentElement?"textContent":"innerText"),a}var o=n(9),a=null;e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;tn;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};var r=function(){var e=t[t.length-1],n=t.slice(0,-1);return{v:function(){return n.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"==typeof r?r.v:void 0}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(){y===_&&(y=_.slice())}function a(){return m}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),y.push(e),function(){if(t){t=!1,r();var n=y.indexOf(e);y.splice(n,1)}}}function c(e){if(!(0,i["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,m=h(m,e)}finally{v=!1}for(var t=_=y,n=0;n0?e.recentDocuments.map(function(e){return l["default"].createElement(p["default"],{document:e,key:e.id})}):l["default"].createElement("div",{className:m["default"].description},"No documents. Why not ",l["default"].createElement(d["default"],{to:"/atlas/"+e.id+"/new"},"create one"),"?"))}}]),t}(l["default"].Component));v.propTypes={data:l["default"].PropTypes.object.isRequired},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(2),s=r(i),u=n(39),l=r(u),c=n(383),d=r(c),f=function(e){return a["default"].createElement(l["default"],{to:"/documents/"+e.document.id,className:d["default"].link},a["default"].createElement("h3",{className:d["default"].title},e.document.title),a["default"].createElement("span",{className:d["default"].timestamp},(0,s["default"])(e.document.updatedAt).fromNow()))};t["default"]=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(321),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(320),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(384),s=r(i),u=n(55),l=r(u),c=n(367),d=l["default"].bind(s["default"]);t["default"]=function(e){return a["default"].createElement("div",{className:d(s["default"].container,s["default"].animated)},a["default"].createElement("div",{className:d(s["default"].mask,s["default"].header),style:{width:(0,c.randomInteger)(65,80)+"%"}}," "),a["default"].createElement("div",{className:d(s["default"].mask,s["default"].bodyText),style:{width:(0,c.randomInteger)(85,100)+"%"}}," "),a["default"].createElement("div",{className:d(s["default"].mask,s["default"].bodyText),style:{width:(0,c.randomInteger)(85,100)+"%"}}," "),a["default"].createElement("div",{className:d(s["default"].mask,s["default"].bodyText),style:{width:(0,c.randomInteger)(85,100)+"%"}}," "))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={menuVisible:!1},r.onMouseEnter=function(){r.setState({menuVisible:!0})},r.onMouseLeave=function(){r.setState({menuVisible:!1})},r.logout=function(e){e.preventDefault(),r.props.logout()},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("div",{className:p["default"].menu,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},l["default"].createElement("div",{className:p["default"].content},this.props.children),this.state.menuVisible?l["default"].createElement("div",{className:p["default"].menu},l["default"].createElement("ul",null,l["default"].createElement("li",null,l["default"].createElement("a",{href:"/",onClick:this.logout},"Logout")))):null)}}]),t}(l["default"].Component);h.propTypes={children:l["default"].PropTypes.node.isRequired};var m=function(e){return{logout:function(){e((0,d.logoutUser)())}}};t["default"]=(0,c.connect)(null,m)(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(334),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(486),s=r(i),u=n(392),l=r(u),c=n(55),d=r(c),f=d["default"].bind(l["default"]),p=function(e){var t=void 0;t=e.truncate?(0,s["default"])(e.children,e.truncate):e.children;var n=void 0;return null===e.children&&e.placeholder&&(t=e.placeholder,n=!0),a["default"].createElement("span",{title:e.children,className:f(l["default"].title,{untitled:n})},t)};p.propTypes={children:a["default"].PropTypes.string,truncate:a["default"].PropTypes.number,placeholder:a["default"].PropTypes.string},t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(336),a=r(o);t["default"]=a["default"]},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=n(1),u=r(s),l=n(492),c=r(l);n(371),n(372),n(369),n(368);var d=n(494),f=r(d),p=n(340),h=r(p),m=n(393),_=r(m);n(394);var y=n(34),v=function(t){function n(){var t,r,i,s;o(this,n);for(var l=arguments.length,d=Array(l),p=0;l>p;p++)d[p]=arguments[p];return r=i=a(this,(t=Object.getPrototypeOf(n)).call.apply(t,[this].concat(d))),i.getEditorInstance=function(){return i.refs.editor.getCodeMirror()},i.onChange=function(e){e!==i.props.text&&i.props.onChange(e)},i.componentDidMount=function(){console.log(i.props)},i.onDropAccepted=function(t){var n=t[0],r=i.getEditorInstance(),o=r.getCursor(),a=0!==o.ch,s=void 0,u="!["+n.name+"](Uploading...)";a?(r.replaceSelection("\n"+u+"\n"),s=o.line+3):(r.replaceSelection(u+"\n"),s=o.line+2),r.setCursor(s,0),y.client.post("/user.s3Upload",{kind:n.type,size:n.size,filename:n.name}).then(function(t){var o=t.data,a=new FormData;for(var l in o.form)a.append(l,o.form[l]);n.blob?a.append("file",n.file):a.append("file",n),e(o.upload_url,{method:"post",body:a}).then(function(e){i.props.replaceText(u,"!["+n.name+"]("+o.asset.url+")"),r.setCursor(s,0)})["catch"](function(e){i.props.replaceText(u,""),r.setCursor(s,0)})})},i.onPaddingTopClick=function(){var e=i.getEditorInstance();console.log(e),e.setCursor(0,0),e.focus()},i.onPaddingBottomClick=function(){var e=i.getEditorInstance();e.setCursor(e.lineCount(),0),e.focus()},i.render=function(){var e={readOnly:!1,lineNumbers:!1,mode:"gfm",matchBrackets:!0,lineWrapping:!0,viewportMargin:1/0,theme:"atlas",extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},placeholder:"# Start with a title..."};return u["default"].createElement(f["default"],{onDropAccepted:i.onDropAccepted,disableClick:!0,multiple:!1,accept:"image/*",className:_["default"].container},u["default"].createElement(h["default"],{onClick:i.onPaddingTopClick}),u["default"].createElement(c["default"],{value:i.props.text,onChange:i.onChange,options:e,ref:"editor",className:_["default"].codeMirrorContainer}),u["default"].createElement(h["default"],{onClick:i.onPaddingBottomClick}))},s=r,a(i,s)}return i(n,t),n}(u["default"].Component);v.propTypes={text:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func,replaceText:u["default"].PropTypes.func},t["default"]=v}).call(t,n(129))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(395),s=r(i),u=function(e){return a["default"].createElement("div",{className:s["default"].container,onClick:e.onClick}," ")};u.propTypes={onClick:a["default"].PropTypes.func},t["default"]=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(339),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(338),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(2),s=r(i),u=n(77),l=n(53),c=r(l),d=n(396),f=r(d),p=function(e){return a["default"].createElement(c["default"],{align:"center",className:f["default"].user},a["default"].createElement(u.Avatar,{src:e.avatarUrl,size:24}),a["default"].createElement("span",{className:f["default"].userName},e.name," published ",(0,s["default"])(e.timestamp).fromNow()))};p.propTypes={avatarUrl:a["default"].PropTypes.string.isRequired,name:a["default"].PropTypes.string.isRequired,timestamp:a["default"].PropTypes.string.isRequired},t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={oauthState:Math.random().toString(36).substring(7)},r.componentDidMount=function(){localStorage.oauthState=r.state.oauthState},r.slackUrl=function(){var e="https://slack.com/oauth/authorize",t={client_id:"30086650419.30130733398",scope:r.props.scopes.join(" "),redirect_uri:"http://localhost:3000/auth/slack/",state:r.state.oauthState},n=Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&");return e+"?"+n},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("a",{href:this.slackUrl(),className:d["default"].link},"Authorize /w Slack")}}]),t}(l["default"].Component);f.propTypes={scopes:l["default"].PropTypes.arrayOf(l["default"].PropTypes.string)},f.defaultProps={scopes:["identify"]},t["default"]=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(343),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){k["default"].loggedIn()||t({pathname:"/",state:{nextPathname:e.location.pathname}})}var a=n(1),i=r(a),s=n(493),u=n(20),l=n(266),c=r(l),d=n(265),f=r(d),p=n(263),h=r(p),m=n(23),_=n(38),y=n(631),v=n(633),g=r(v),b=n(628),M=r(b),L=n(366),w=r(L),x=n(46),k=r(x),T=n(349),S=r(T);n(379),n(404),n(398),n(381);var D=n(363),P=r(D),C=n(361),O=r(C),Y=n(355),E=r(Y),j=n(353),A=r(j),H=n(357),N=r(H),R=n(365),I=r(R),W=(0,M["default"])(),F=(0,_.routerMiddleware)(w["default"]),U=(0,m.createStore)(S["default"],(0,m.applyMiddleware)(g["default"],F,W),(0,y.autoRehydrate)());(0,y.persistStore)(U,{whitelist:["user","team"]},function(){(0,s.render)(i["default"].createElement(u.Provider,{store:U},i["default"].createElement(c["default"],{history:w["default"]},i["default"].createElement(f["default"],{path:"/"},i["default"].createElement(h["default"],{component:P["default"]}),i["default"].createElement(f["default"],{path:"/dashboard",component:E["default"],onEnter:o}),i["default"].createElement(f["default"],{path:"/atlas/:id",component:A["default"],onEnter:o}),i["default"].createElement(f["default"],{path:"/atlas/:id/new",component:O["default"],onEnter:o}),i["default"].createElement(f["default"],{path:"/documents/:id",component:N["default"],onEnter:o}),i["default"].createElement(f["default"],{path:"/auth/slack",component:I["default"]})))),document.getElementById("root"))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){var e=r.props.params.id;r.props.fetchAtlasAsync(e)},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){var e=this.props.atlas,t=void 0,n=void 0;return this.props.isLoading===!1&&(t=l["default"].createElement(d["default"],{to:"/atlas/"+e.id+"/new"},"New document"),n=l["default"].createElement(_.Title,null,e.name)),l["default"].createElement(y["default"],{actions:t,title:n},l["default"].createElement(M["default"],null,this.props.isLoading?l["default"].createElement(g["default"],null):l["default"].createElement("div",{className:S["default"].container},l["default"].createElement("div",{className:S["default"].atlasDetails},l["default"].createElement("h2",null,e.name),l["default"].createElement("blockquote",null,e.description)),l["default"].createElement(k["default"],null),l["default"].createElement(w["default"],{documents:e.recentDocuments,preview:!0}))))}}]),t}(l["default"].Component);D.propTypes={isLoading:l["default"].PropTypes.bool,atlas:l["default"].PropTypes.object};var P=function(e,t){var n=t.params.id;return{isLoading:e.atlases.isLoading,atlas:e.atlases.entities?e.atlases.entities.atlases[n]:null}},C=function(e){return(0,p.bindActionCreators)({replace:h.replace,fetchAtlasAsync:m.fetchAtlasAsync},e)};t["default"]=(0,f.connect)(P,C)(D)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(352),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){r.props.fetchAtlasesAsync(r.props.teamId)},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement(_["default"],null,l["default"].createElement(L["default"],null,l["default"].createElement(h["default"],{direction:"column",flex:!0},this.props.isLoading?l["default"].createElement(b["default"],null):this.props.items.map(function(e){return l["default"].createElement(v["default"],{key:e.id,data:e})}))))}}]),t}(l["default"].Component));x.propTypes={};var k=function(e){return{teamId:e.team?e.team.id:null,isLoading:e.atlases.isLoading,items:Array.isArray(e.atlases.result)?e.atlases.result.map(function(t){return e.atlases.entities.atlases[t]}):[]}},T=function(e){return(0,d.bindActionCreators)({fetchAtlasesAsync:f.fetchAtlasesAsync},e)};t["default"]=(0,c.connect)(k,T)(x)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(354),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){var e=r.props.routeParams.id;r.props.fetchDocumentAsync(e)},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){var e=this.props.document,t=void 0;return e&&(t=e.atlas.name+" - "+e.title),l["default"].createElement(h["default"],{title:t},l["default"].createElement(v["default"],null,this.props.isLoading||!e?l["default"].createElement(_["default"],null):l["default"].createElement(b["default"],{document:e})))}}]),t}(l["default"].Component)),w=function(e){return{isLoading:e.document.isLoading,document:e.document.data}},x=function(e){return(0,d.bindActionCreators)({fetchDocumentAsync:f.fetchDocumentAsync},e)};t["default"]=(0,c.connect)(w,x)(L)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(356),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){var e=r.props.routeParams.id;r.setState({atlasId:e})},r.onSave=function(){return 0===r.props.title.length?void alert("Please add a title before saving (hint: Write a markdown header)"):void r.props.saveDocumentAsync(r.state.atlasId,null,r.props.title,r.props.text)},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){var e=l["default"].createElement(m.Title,{truncate:60,placeholder:"Untitle document"},this.props.title);return l["default"].createElement(_["default"],{actions:l["default"].createElement(v["default"],{direction:"row",align:"center"},l["default"].createElement(L["default"],{onClick:this.onSave})),title:e,fixed:!0},l["default"].createElement(b["default"],{onChange:this.props.updateText,text:this.props.text,replaceText:this.props.replaceText}))}}]),t}(u.Component));x.propTypes={updateText:l["default"].PropTypes.func.isRequired,replaceText:l["default"].PropTypes.func.isRequired,saveDocumentAsync:l["default"].PropTypes.func.isRequired,text:l["default"].PropTypes.string,title:l["default"].PropTypes.string};var k=function(e){return{text:e.editor.text,title:e.editor.title,isSaving:e.document.isLoading}},T=function(e){return(0,d.bindActionCreators)({updateText:f.updateText,replaceText:f.replaceText,saveDocumentAsync:p.saveDocumentAsync},e)};x=(0,c.connect)(k,T)(x),t["default"]=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(77),s=function(e){return a["default"].createElement("div",null,a["default"].createElement("button",null,"More ",a["default"].createElement(i.Arrow,null)))};t["default"]=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nc;c++)u[c]=arguments[c];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.propTypes={onClick:l["default"].PropTypes.func.isRequired},r.onClick=function(e){e.preventDefault(),r.props.onClick()},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("div",null,l["default"].createElement("a",{href:!0,onClick:this.onClick},"Save"))}}]),t}(l["default"].Component));t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(358),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){h["default"].loggedIn()&&r.props.replace("/dashboard")},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("div",{className:v["default"].container},l["default"].createElement("div",{className:v["default"].content},l["default"].createElement("div",{className:v["default"].intro},l["default"].createElement("p",null,"Hi there,"),l["default"].createElement("p",null,"We're building the best place for engineers, designers and teams to share ideas, tell stories and build knowledge."),l["default"].createElement("p",null,l["default"].createElement("strong",null,"**Atlas**")," can start as a wiki, but it's really up to you what you want to make of it:"),l["default"].createElement("p",null,"- Write documentation in ",l["default"].createElement("i",null,"_markdown_"),l["default"].createElement("br",null),"- Build a blog around the API",l["default"].createElement("br",null),"- Hack the frontend for your needs (coming!)",l["default"].createElement("br",null)),l["default"].createElement("p",null,"We're just getting started.")),l["default"].createElement("div",{className:v["default"].action},l["default"].createElement(_["default"],null))))}}]),t}(l["default"].Component);g.propTypes={replace:l["default"].PropTypes.func.isRequired};var b=function(e){return(0,d.bindActionCreators)({replace:f.replace},e)};t["default"]=(0,c.connect)(null,b)(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(362),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s=function(){function e(e,t){for(var n=0;nl;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.componentDidMount=function(){var e=r.props.location.query;localStorage.oauthState==e.state&&r.props.slackAuthAsync(e.code)},i=n,a(r,i)}return i(t,e),s(t,[{key:"render",value:function(){return l["default"].createElement("div",null)}}]),t}(l["default"].Component)),h=function(e){return(0,d.bindActionCreators)({slackAuthAsync:f.slackAuthAsync},e)};t["default"]=(0,c.connect)(null,h)(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(364),a=r(o);t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(268),a=r(o);t["default"]=a["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)};t.randomInteger=n},function(e,t,n){!function(e){e(n(18))}(function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.className="CodeMirror-placeholder";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),o=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,a,i){var s=i&&i!=e.Init;if(a&&!s)n.on("blur",r),n.on("change",o),n.on("swapDoc",o),o(n);else if(!a&&s){n.off("blur",r),n.off("change",o),n.off("swapDoc",o),t(n);var u=n.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&r(n)})})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";var t=/^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),i=[],s=0;s")>=0?p[2]:parseInt(p[3],10)+1+p[4];i[s]="\n"+h+_+m}}o.replaceSelections(i)}})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,o){return(e!=o.streamSeen||Math.min(o.basePos,o.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){function o(e){return e.code=!1,null}var a=0,i={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var i=1+e.pos-o;return n.code?i===a&&(n.code=!1):(a=i,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,r.gitHubSpice!==!1)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var u in r)s[u]=r[u];return s.name="markdown",e.overlayMode(e.getMode(n,s),i)},"markdown"),e.defineMIME("text/x-gfm","gfm")})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(e,t,n){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",function(n,r){function o(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function a(e,t,n){return be=e,Me=n,t}function i(e,n){var r=e.next();if('"'==r||"'"==r)return n.tokenize=s(r),n.tokenize(e,n);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),a("number","number");if("0"==r&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),a("number","number");if("0"==r&&e.eat(/b/i))return e.eatWhile(/[01]/i),a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),a("number","number");if("/"==r)return e.eat("*")?(n.tokenize=u,u(e,n)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):t(e,n,1)?(o(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),a("regexp","string-2")):(e.eatWhile(Pe),a("operator","operator",e.current()));if("`"==r)return n.tokenize=l,l(e,n);if("#"==r)return e.skipToEnd(),a("error","error");if(Pe.test(r))return e.eatWhile(Pe),a("operator","operator",e.current());if(Se.test(r)){e.eatWhile(Se);var i=e.current(),c=De.propertyIsEnumerable(i)&&De[i];return c&&"."!=n.lastType?a(c.type,c.style,i):a("variable","variable",i)}}function s(e){return function(t,n){var r,o=!1;if(xe&&"@"==t.peek()&&t.match(Ce))return n.tokenize=i,a("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||o);)o=!o&&"\\"==r;return o||(n.tokenize=i),a("string","string")}}function u(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=i;break}r="*"==n}return a("comment","comment")}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=i;break}r=!r&&"\\"==n}return a("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(0>n)){for(var r=0,o=!1,a=n-1;a>=0;--a){var i=e.string.charAt(a),s=Oe.indexOf(i);if(s>=0&&3>s){if(!r){++a;break}if(0==--r)break}else if(s>=3&&6>s)++r;else if(Se.test(i))o=!0;else{if(/["'\/]/.test(i))return;if(o&&!r){++a;break}}}o&&!r&&(t.fatArrowAt=a)}}function d(e,t,n,r,o,a){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=a,null!=r&&(this.align=r)}function f(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function p(e,t,n,r,o){var a=e.cc;for(Ee.state=e,Ee.stream=o,Ee.marked=null,Ee.cc=a,Ee.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var i=a.length?a.pop():ke?w:L;if(i(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return Ee.marked?Ee.marked:"variable"==n&&f(e,r)?"variable-2":t}}}function h(){for(var e=arguments.length-1;e>=0;e--)Ee.cc.push(arguments[e])}function m(){return h.apply(null,arguments),!0}function _(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=Ee.state;if(Ee.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function y(){Ee.state.context={prev:Ee.state.context,vars:Ee.state.localVars},Ee.state.localVars=je}function v(){Ee.state.localVars=Ee.state.context.vars,Ee.state.context=Ee.state.context.prev}function g(e,t){var n=function(){var n=Ee.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new d(r,Ee.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function b(){var e=Ee.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function M(e){function t(n){return n==e?m():";"==e?h():m(t)}return t}function L(e,t){return"var"==e?m(g("vardef",t.length),K,M(";"),b):"keyword a"==e?m(g("form"),w,L,b):"keyword b"==e?m(g("form"),L,b):"{"==e?m(g("}"),B,b):";"==e?m():"if"==e?("else"==Ee.state.lexical.info&&Ee.state.cc[Ee.state.cc.length-1]==b&&Ee.state.cc.pop()(),m(g("form"),w,L,b,Z)):"function"==e?m(ae):"for"==e?m(g("form"),ee,L,b):"variable"==e?m(g("stat"),N):"switch"==e?m(g("form"),w,g("}","switch"),M("{"),B,b,b):"case"==e?m(w,M(":")):"default"==e?m(M(":")):"catch"==e?m(g("form"),y,M("("),ie,M(")"),L,b,v):"class"==e?m(g("form"),se,b):"export"==e?m(g("stat"),de,b):"import"==e?m(g("stat"),fe,b):"module"==e?m(g("form"),J,g("}"),M("{"),B,b,b):h(g("stat"),w,M(";"),b)}function w(e){return k(e,!1)}function x(e){return k(e,!0)}function k(e,t){if(Ee.state.fatArrowAt==Ee.stream.start){var n=t?E:Y;if("("==e)return m(y,g(")"),U(J,")"),b,M("=>"),n,v);if("variable"==e)return h(y,J,M("=>"),n,v)}var r=t?P:D;return Ye.hasOwnProperty(e)?m(r):"function"==e?m(ae,r):"keyword c"==e?m(t?S:T):"("==e?m(g(")"),T,ve,M(")"),b,r):"operator"==e||"spread"==e?m(t?x:w):"["==e?m(g("]"),_e,b,r):"{"==e?z(I,"}",null,r):"quasi"==e?h(C,r):"new"==e?m(j(t)):m()}function T(e){return e.match(/[;\}\)\],]/)?h():h(w)}function S(e){return e.match(/[;\}\)\],]/)?h():h(x)}function D(e,t){return","==e?m(w):P(e,t,!1)}function P(e,t,n){var r=0==n?D:P,o=0==n?w:x;return"=>"==e?m(y,n?E:Y,v):"operator"==e?/\+\+|--/.test(t)?m(r):"?"==t?m(w,M(":"),o):m(o):"quasi"==e?h(C,r):";"!=e?"("==e?z(x,")","call",r):"."==e?m(R,r):"["==e?m(g("]"),T,M("]"),b,r):void 0:void 0}function C(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?m(C):m(w,O)}function O(e){return"}"==e?(Ee.marked="string-2",Ee.state.tokenize=l,m(C)):void 0}function Y(e){return c(Ee.stream,Ee.state),h("{"==e?L:w)}function E(e){return c(Ee.stream,Ee.state),h("{"==e?L:x)}function j(e){return function(t){return"."==t?m(e?H:A):h(e?x:w)}}function A(e,t){return"target"==t?(Ee.marked="keyword",m(D)):void 0}function H(e,t){return"target"==t?(Ee.marked="keyword",m(P)):void 0}function N(e){return":"==e?m(b,L):h(D,M(";"),b)}function R(e){return"variable"==e?(Ee.marked="property",m()):void 0}function I(e,t){return"variable"==e||"keyword"==Ee.style?(Ee.marked="property",m("get"==t||"set"==t?W:F)):"number"==e||"string"==e?(Ee.marked=xe?"property":Ee.style+" property",m(F)):"jsonld-keyword"==e?m(F):"modifier"==e?m(I):"["==e?m(w,M("]"),F):"spread"==e?m(w):void 0}function W(e){return"variable"!=e?h(F):(Ee.marked="property",m(ae))}function F(e){return":"==e?m(x):"("==e?h(ae):void 0}function U(e,t){function n(r){if(","==r){var o=Ee.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),m(e,n)}return r==t?m():m(M(t))}return function(r){return r==t?m():h(e,n)}}function z(e,t,n){for(var r=3;r!?|~^]/,Ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Oe="([{}])",Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},Ee={state:null,column:null,marked:null,cc:null},je={name:"this",next:{name:"arguments"}};return b.lex=!0,{startState:function(e){var t={tokenize:i,lastType:"sof",cc:[],lexical:new d((e||0)-Le,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=u&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==be?n:(t.lastType="operator"!=be||"++"!=Me&&"--"!=Me?be:"incdec",p(t,n,be,Me,e))},indent:function(t,n){if(t.tokenize==u)return e.Pass;if(t.tokenize!=i)return 0;var o=n&&n.charAt(0),a=t.lexical;if(!/^\s*else\b/.test(n))for(var s=t.cc.length-1;s>=0;--s){var l=t.cc[s];if(l==b)a=a.prev;else if(l!=Z)break}"stat"==a.type&&"}"==o&&(a=a.prev),we&&")"==a.type&&"stat"==a.prev.type&&(a=a.prev);var c=a.type,d=o==c;return"vardef"==c?a.indented+("operator"==t.lastType||","==t.lastType?a.info+1:0):"form"==c&&"{"==o?a.indented:"form"==c?a.indented+Le:"stat"==c?a.indented+(ge(t,n)?we||Le:0):"switch"!=a.info||d||0==r.doubleIndentSwitch?a.align?a.column+(d?0:1):a.indented+(d?0:Le):a.indented+(/^(?:case|default)\b/.test(n)?Le:2*Le)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:ke?null:"/*",blockCommentEnd:ke?null:"*/",lineComment:ke?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:ke?"json":"javascript",jsonldMode:xe,jsonMode:ke,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=w&&t!=x||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},function(e,t,n){!function(e){e(n(18),n(375),n(374))}(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 a(e,t,n){return t.f=t.block=n,n(e,t)}function i(e){return!e||!/\S/.test(e.string)}function s(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,w&&e.f==l&&(e.f=h,e.block=u),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine=null,null}function u(e,t){var a=e.sol(),s=t.list!==!1,u=t.indentedCode;t.indentedCode=!1,s&&(t.indentationDiff>=0?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):t.indentation>0?t.list=null:t.list=!1);var l=null;if(t.indentationDiff>=4)return e.skipToEnd(),u||i(t.prevLine)?(t.indentation-=4,t.indentedCode=!0,x.code):null;if(e.eatSpace())return null;if((l=e.match(C))&&l[1].length<=6)return t.header=l[1].length,n.highlightFormatting&&(t.formatting="header"),t.f=t.inline,f(t);if(!(i(t.prevLine)||t.quote||s||u)&&(l=e.match(O)))return t.header="="==l[0].charAt(0)?1:2,n.highlightFormatting&&(t.formatting="header"),t.f=t.inline,f(t);if(e.eat(">"))return t.quote=a?1:t.quote+1,n.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),f(t);if("["===e.peek())return o(e,t,v);if(e.match(T,!0))return t.hr=!0,x.hr;if((i(t.prevLine)||s)&&(e.match(S,!1)||e.match(D,!1))){var d=null;for(e.match(S,!0)?d="ul":(e.match(D,!0),d="ol"),t.indentation=e.column()+e.current().length,t.list=!0;t.listStack&&e.column()")>-1)&&(n.f=h,n.block=u,n.htmlState=null)}return r}function c(e,t){return t.fencedChars&&e.match(t.fencedChars,!1)?(t.localMode=t.localState=null,t.f=t.block=d,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),x.code)}function d(e,t){e.match(t.fencedChars),t.block=u,t.f=h,t.fencedChars=null,n.highlightFormatting&&(t.formatting="code-block"),t.code=1;var r=f(t);return t.code=0,r}function f(e){var t=[];if(e.formatting){t.push(x.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r=e.quote?t.push(x.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(x.linkHref,"url"):(e.strong&&t.push(x.strong),e.em&&t.push(x.em),e.strikethrough&&t.push(x.strikethrough),e.linkText&&t.push(x.linkText),e.code&&t.push(x.code)),e.header&&t.push(x.header,x.header+"-"+e.header),e.quote&&(t.push(x.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(x.quote+"-"+e.quote):t.push(x.quote+"-"+n.maxBlockquoteDepth)),e.list!==!1){var o=(e.listStack.length-1)%3;o?1===o?t.push(x.list2):t.push(x.list3):t.push(x.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 p(e,t){return e.match(Y,!0)?f(t):void 0}function h(t,r){var o=r.text(t,r);if("undefined"!=typeof o)return o;if(r.list)return r.list=null,f(r);if(r.taskList){var i="x"!==t.match(P,!0)[1];return i?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,f(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),f(r);var s=t.sol(),u=t.next();if(r.linkTitle){r.linkTitle=!1;var c=u;"("===u&&(c=")"),c=(c+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");var d="^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(d),!0))return x.linkHref}if("`"===u){var p=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0==r.code)return r.code=h,f(r);if(h==r.code){var y=f(r);return r.code=0,y}return r.formatting=p,f(r)}if(r.code)return f(r);if("\\"===u&&(t.next(),n.highlightFormatting)){var v=f(r),g=x.formatting+"-escape";return v?v+" "+g:g}if("!"===u&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.match(/\[[^\]]*\]/),r.inline=r.f=_,x.image;if("["===u&&t.match(/.*\](\(.*\)| ?\[.*\])/,!1))return r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),f(r);if("]"===u&&r.linkText&&t.match(/\(.*\)| ?\[.*\]/,!1)){n.highlightFormatting&&(r.formatting="link");var v=f(r);return r.linkText=!1,r.inline=r.f=_,v}if("<"===u&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=m,n.highlightFormatting&&(r.formatting="link");var v=f(r);return v?v+=" ":v="",v+x.linkInline}if("<"===u&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=m,n.highlightFormatting&&(r.formatting="link");var v=f(r);return v?v+=" ":v="",v+x.linkEmail}if("<"===u&&t.match(/^(!--|\w)/,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){var M=t.string.substring(t.start,b);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(M)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(L),a(t,r,l)}if("<"===u&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";var w=!1;if(!n.underscoresBreakWords&&"_"===u&&"_"!==t.peek()&&t.match(/(\w)/,!1)){var k=t.pos-2;if(k>=0){var T=t.string.charAt(k);"_"!==T&&T.match(/(\w)/,!1)&&(w=!0)}}if("*"===u||"_"===u&&!w)if(s&&" "===t.peek());else{if(r.strong===u&&t.eat(u)){n.highlightFormatting&&(r.formatting="strong");var y=f(r);return r.strong=!1,y}if(!r.strong&&t.eat(u))return r.strong=u,n.highlightFormatting&&(r.formatting="strong"),f(r);if(r.em===u){n.highlightFormatting&&(r.formatting="em");var y=f(r);return r.em=!1,y}if(!r.em)return r.em=u,n.highlightFormatting&&(r.formatting="em"),f(r)}else if(" "===u&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return f(r);t.backUp(1)}if(n.strikethrough)if("~"===u&&t.eatWhile(u)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var y=f(r);return r.strikethrough=!1,y}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),f(r)}else if(" "===u&&t.match(/^~~/,!0)){if(" "===t.peek())return f(r);t.backUp(2)}return" "===u&&(t.match(/ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),f(r)}function m(e,t){var r=e.next();if(">"===r){t.f=t.inline=h,n.highlightFormatting&&(t.formatting="link");var o=f(t);return o?o+=" ":o="",o+x.linkInline}return e.match(/^[^>]+/,!0),x.linkInline}function _(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=y("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,f(t)):"error"}function y(e){return function(t,r){var o=t.next();if(o===e){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link-string");var a=f(r);return r.linkHref=!1,a}return t.match(M(e),!0)&&t.backUp(1),r.linkHref=!0,f(r)}}function v(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=g,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,f(t)):o(e,t,h)}function g(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=b,n.highlightFormatting&&(t.formatting="link");var r=f(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),x.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=h,x.linkHref+" url")}function M(e){return j[e]||(e=(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),j[e]=new RegExp("^(?:[^\\\\]|\\\\.)*?("+e+")")),j[e]}var L=e.getMode(t,"text/html"),w="null"==L.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.underscoresBreakWords&&(n.underscoresBreakWords=!0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var x={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"tag",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough"};for(var k in x)x.hasOwnProperty(k)&&n.tokenTypeOverrides[k]&&(x[k]=n.tokenTypeOverrides[k]);var T=/^([*\-_])(?:\s*\1){2,}\s*$/,S=/^[*\-+]\s+/,D=/^[0-9]+([.)])\s+/,P=/^\[(x| )\](?=\s)/,C=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,O=/^ *(?:\={1,}|-{1,})\s*$/,Y=/^[^#!\[\]*_\\<>` "'(~]+/,E=new RegExp("^("+(n.fencedCodeBlocks===!0?"~~~+|```+":n.fencedCodeBlocks)+")[ \\t]*([\\w+#-]*)"),j=[],A={startState:function(){return{f:u,prevLine:null,thisLine:null,block:u,htmlState:null,indentation:0,inline:h,text:p,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,fencedChars:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(L,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,linkTitle:t.linkTitle,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,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,fencedChars:t.fencedChars}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine){var n=t.header||t.hr;if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0)||n){if(s(t),!n)return null;t.prevLine=null}t.prevLine=t.thisLine,t.thisLine=e,t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var r=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentationDiff=Math.min(r-t.indentation,4),t.indentation=t.indentation+t.indentationDiff,r>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:L}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:A}},blankLine:s,getType:f,fold:"markdown"};return A},"xml"),e.defineMIME("text/x-markdown","markdown")})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"]},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Jade",mime:"text/x-jade",mode:"jade",ext:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mime:"text/x-yaml",mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t-1&&t.substring(o+1,t.length);return a?e.findModeByExtension(a):void 0},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n")):null:e.match("--")?n(u("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(l(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=u("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=a,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){t.tokenize=a,t.state=p,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function u(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=a;break}n.next()}return e}}function l(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=l(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=a;break}return n.tokenize=l(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(w.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!w.contextGrabbers.hasOwnProperty(n)||!w.contextGrabbers[n].hasOwnProperty(t))return;d(e)}}function p(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?m:p}function h(e,t,n){return"word"==e?(n.tagName=t.current(),S="tag",v):(S="error",h)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&w.implicitlyClosed.hasOwnProperty(n.context.tagName)&&d(n),n.context&&n.context.tagName==r||w.matchClosing===!1?(S="tag",_):(S="tag error",y)}return S="error",y}function _(e,t,n){return"endTag"!=e?(S="error",_):(d(n),p)}function y(e,t,n){return S="error",_(e,t,n)}function v(e,t,n){if("word"==e)return S="attribute",g;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||w.autoSelfClosers.hasOwnProperty(r)?f(n,r):(f(n,r),n.context=new c(n,r,o==n.indented)),p}return S="error",v}function g(e,t,n){return"equals"==e?b:(w.allowMissing||(S="error"),v(e,t,n))}function b(e,t,n){return"string"==e?M:"word"==e&&w.allowUnquoted?(S="string",v):(S="error",v(e,t,n))}function M(e,t,n){return"string"==e?M:v(e,t,n)}var L=r.indentUnit,w={},x=o.htmlMode?t:n;for(var k in x)w[k]=x[k];for(var k in o)w[k]=o[k];var T,S;return a.isInText=!0,{startState:function(e){var t={tokenize:a,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var n=t.tokenize(e,t);return(n||T)&&"comment"!=n&&(S=null,t.state=t.state(T||n,e,t),S&&(n="error"==S?n+" error":S)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+L;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=a)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return w.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+L*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/$/,blockCommentStart:"",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(e){e.state==b&&(e.state=v)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{ +name:"xml",htmlMode:!0})})},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:!(e.length>0&&"number"!=typeof e[0]):!1}function a(e,t,n){var a,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(u(e))return u(t)?(e=i.call(e),t=i.call(t),l(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(a=0;a=0;a--)if(d[a]!=f[a])return!1;for(a=d.length-1;a>=0;a--)if(c=d[a],!l(e[c],t[c],n))return!1;return typeof e==typeof t}var i=Array.prototype.slice,s=n(378),u=n(377),l=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:a(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){},function(e,t){e.exports={blink:"codemirror__blink___XFHEb"}},function(e,t){},function(e,t){e.exports={textColor:"#171B35",container:"AtlasPreview__container___18CgP",atlasLink:"AtlasPreview__atlasLink___2fvty",description:"AtlasPreview__description___157gi"}},function(e,t){e.exports={textColor:"#171B35",link:"DocumentLink__link___1WjN2",title:"DocumentLink__title___20hTU",timestamp:"DocumentLink__timestamp___1O5OV"}},function(e,t){e.exports={mask:"AtlasPreviewLoading__mask___348Oc",header:"AtlasPreviewLoading__header___wCcYE",bodyText:"AtlasPreviewLoading__bodyText___3wON1",animated:"AtlasPreviewLoading__animated___HdPjF",PULSATE:"AtlasPreviewLoading__PULSATE___lnz8N"}},function(e,t){e.exports={content:"CenteredContent__content___1Fl2s"}},function(e,t){e.exports={divider:"Divider__divider___30JKu"}},function(e,t){e.exports={container:"Document__container___3yfuB"}},function(e,t){},function(e,t){e.exports={textColor:"#171B35",container:"DocumentPreview__container___1mDuB",title:"DocumentPreview__title___lQt5r",continueLink:"DocumentPreview__continueLink___uCZTQ"}},function(e,t){e.exports={textColor:"#171B35",container:"Layout__container___hBWrc",fixed:"Layout__fixed___1d3TK",header:"Layout__header___1ehqB",teamName:"Layout__teamName___104KJ",content:"Layout__content___sp2cJ",actions:"Layout__actions___3xSI6"}},function(e,t){e.exports={textColor:"#171B35",content:"HeaderMenu__content___1V_BK",menu:"HeaderMenu__menu___3416P"}},function(e,t){e.exports={title:"Title__title___3x1PD",untitled:"Title__untitled___1M1jI"}},function(e,t){e.exports={container:"MarkdownEditor__container___1K_hC",codeMirrorContainer:"MarkdownEditor__codeMirrorContainer___39iND"}},function(e,t){},function(e,t){e.exports={container:"ClickablePadding__container___3QFRH"}},function(e,t){e.exports={user:"PublishingInfo__user___3y6cb",userName:"PublishingInfo__userName___YKMGY"}},function(e,t){e.exports={link:"SlackAuthLink__link___3nyFN"}},function(e,t){},function(e,t){e.exports={container:"Atlas__container___1kwEz",atlasDetails:"Atlas__atlasDetails___Q6M1g"}},function(e,t){},function(e,t){},function(e,t){e.exports={container:"Editor__container___RjXgv"}},function(e,t){e.exports={container:"Home__container___3EcvN",content:"Home__content___2JL2y",intro:"Home__intro___2qh2V"}},function(e,t){e.exports={textColor:"#171B35",viewport:"base-styles__viewport___1HuSA"}},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(a,"ms-"))}var o=n(405),a=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():a(e):[e]}var a=n(416);e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=l;l?void 0:u(!1);var o=r(e),a=o&&s(o);if(a){n.innerHTML=a[1]+e+a[2];for(var c=a[0];c--;)n=n.lastChild}else n.innerHTML=e;var d=n.getElementsByTagName("script");d.length&&(t?void 0:u(!1),i(d).forEach(t));for(var f=i(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var a=n(9),i=n(407),s=n(126),u=n(5),l=a.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(a,"-ms-")}var o=n(410),a=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(412);e.exports=r},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var a in e)r.call(e,a)&&(o[a]=t.call(n,e[a],a,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;t>a;a++)r[a]=e[a];return r}var o=n(5);e.exports=r},function(e,t){e.exports={name:"BeautifulAtlas",version:"0.0.1",description:"For writing",main:"index.js",scripts:{clean:"rimraf dist","build:webpack":"cross-env NODE_ENV=production webpack --config webpack.config.prod.js --progress","build:analyze":"cross-env NODE_ENV=production webpack --config webpack.config.prod.js --json | webpack-bundle-size-analyzer",build:"npm run clean && npm run build:webpack","heroku-postbuild":"npm build",start:"cross-env NODE_ENV=development DEBUG=1 ./node_modules/.bin/nodemon --watch server index.js",lint:"eslint src"},repository:{type:"git",url:"git+ssh://git@github.com/jorilallo/atlas.git"},author:"Jori Lallo",license:"ISC",bugs:{url:"https://github.com/jorilallo/atlas/issues"},homepage:"https://github.com/jorilallo/atlas#readme",dependencies:{"babel-core":"^6.4.5","babel-eslint":"^4.1.8","babel-loader":"^6.2.1","babel-polyfill":"^6.7.4","babel-preset-es2015":"^6.3.13","babel-preset-react":"^6.3.13","babel-preset-react-hmre":"^1.0.1","babel-preset-stage-0":"^6.5.0",crypto:"0.0.3",debug:"^2.2.0","extract-text-webpack-plugin":"^1.0.1","html-webpack-plugin":"^2.16.1","http-errors":"^1.4.0","isomorphic-fetch":"^2.2.1",jsonwebtoken:"^5.7.0",koa:"^2.0.0","koa-bodyparser":"^2.0.1","koa-compress":"^2.0.0","koa-connect":"^1.0.0","koa-helmet":"^1.0.0","koa-jwt":"^1.2.0","koa-logger":"^2.0.0","koa-mount":"^2.0.0","koa-router":"^7.0.1","koa-sendfile":"^2.0.0",localenv:"^0.2.2",moment:"^2.13.0",pg:"^4.5.3","pg-hstore":"^2.3.2",querystring:"^0.2.0",react:"^0.14.7","react-dom":"^0.14.7","react-keyframes":"^0.1.4",safestart:"^0.8.0",sequelize:"^3.21.0","sequelize-cli":"^2.3.1","sequelize-encrypted":"^0.1.0","truncate-html":"0.0.6",uuid:"^2.0.2",validator:"^5.2.0"},devDependencies:{classnames:"^2.2.3",codemirror:"^5.11.0","cross-env":"^1.0.7","css-loader":"^0.23.1",dotenv:"^2.0.0",eslint:"^1.10.3","eslint-config-airbnb":"^5.0.0","eslint-plugin-react":"^3.16.1","exports-loader":"^0.6.3","file-loader":"^0.8.5",fsevents:"^1.0.11","highlight.js":"^9.4.0",history:"^1.17.0","imports-loader":"^0.6.5","json-loader":"^0.5.4","koa-convert":"^1.2.0","koa-webpack-dev-middleware":"^1.2.0","koa-webpack-hot-middleware":"^1.0.3",lodash:"^4.3.0",marked:"^0.3.5","node-dev":"^3.1.0","node-sass":"^3.4.2",nodemon:"^1.9.1","normalize.css":"^3.0.3",normalizr:"^2.0.1",react:"^0.14.7","react-codemirror":"^0.2.5","react-dropzone":"^3.3.2","react-medium-editor":"^1.6.2","react-redux":"^4.4.0","react-router":"^2.0.0","react-router-redux":"^4.0.4",rebass:"^0.2.6",redux:"^3.3.1","redux-logger":"^2.6.1","redux-persist":"3.0.3","redux-thunk":"^2.0.1","sass-loader":"^3.2.0","style-loader":"^0.13.0","sw-toolbox":"^3.1.1","to-markdown":"^2.0.1","url-loader":"^0.5.7",webpack:"^1.12.12"}}},function(e,t){function n(e,t,n,o){return JSON.stringify(e,r(t,o),n)}function r(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?r.splice(i,1/0,o):r.push(o),~n.indexOf(a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a:e.call(this,o,a)}}t=e.exports=n,t.getSerialize=r},function(e,t){function n(e,t,n){function r(t){var n=m,r=_;return m=_=void 0,x=t,v=e.apply(r,n)}function a(e){return x=e,g=setTimeout(c,t),k?r(e):v}function i(e){var n=e-w,r=e-x,o=t-n;return T?M(o,y-r):o}function l(e){var n=e-w,r=e-x;return!w||n>=t||0>n||T&&r>=y}function c(){var e=L();return l(e)?d(e):void(g=setTimeout(c,i(e)))}function d(e){return clearTimeout(g),g=void 0,S&&m?r(e):(m=_=void 0,v)}function f(){void 0!==g&&clearTimeout(g),w=x=0,m=_=g=void 0}function p(){return void 0===g?v:d(L())}function h(){var e=L(),n=l(e);if(m=arguments,_=this,w=e,n){if(void 0===g)return a(w);if(T)return clearTimeout(g),g=setTimeout(c,t),r(w)}return void 0===g&&(g=setTimeout(c,t)),v}var m,_,y,v,g,w=0,x=0,k=!1,T=!1,S=!0;if("function"!=typeof e)throw new TypeError(u);return t=s(t)||0,o(n)&&(k=!!n.leading,T="maxWait"in n,y=T?b(s(n.maxWait)||0,t):y,S="trailing"in n?!!n.trailing:S),h.cancel=f,h.flush=p,h}function r(e){var t=o(e)?g.call(e):"";return t==c||t==d}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function a(e){return!!e&&"object"==typeof e}function i(e){return"symbol"==typeof e||a(e)&&g.call(e)==f}function s(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t=r(e.valueOf)?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(p,"");var n=m.test(e);return n||_.test(e)?y(e.slice(2),n?2:8):h.test(e)?l:+e}var u="Expected a function",l=NaN,c="[object Function]",d="[object GeneratorFunction]",f="[object Symbol]",p=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,_=/^0o[0-7]+$/i,y=parseInt,v=Object.prototype,g=v.toString,b=Math.max,M=Math.min,L=Date.now;e.exports=n},function(e,t,n){var r=n(36),o=n(28),a=r(o,"DataView");e.exports=a},function(e,t,n){function r(){}var o=n(59),a=Object.prototype;r.prototype=o?o(null):a,e.exports=r},function(e,t,n){var r=n(36),o=n(28),a=r(o,"Promise");e.exports=a},function(e,t,n){var r=n(36),o=n(28),a=r(o,"Set");e.exports=a},function(e,t,n){var r=n(28),o=r.Uint8Array;e.exports=o},function(e,t,n){var r=n(36),o=n(28),a=r(o,"WeakMap");e.exports=a},function(e,t){function n(e,t){for(var n=-1,r=e.length;++nt&&(t=-t>o?0:o+t),n=n>o?o:n,0>n&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:o(e,t,n)}var o=n(438);e.exports=r},function(e,t){function n(e){return e&&e.Object===Object?e:null}e.exports=n},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++ie?-1:1;return t*i}var n=e%1;return e===e?n?e-n:e:0}var o=n(484),a=1/0,i=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return s;if(a(e)){var t=o(e.valueOf)?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=c.test(e);return n||d.test(e)?f(e.slice(2),n?2:8):l.test(e)?s:+e}var o=n(87),a=n(17),i=n(64),s=NaN,u=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){function r(e){return o(e,a(e))}var o=n(440),a=n(88);e.exports=r},function(e,t,n){function r(e,t){var n=p,r=h;if(i(t)){var _="separator"in t?t.separator:_;n="length"in t?d(t.length):n,r="omission"in t?o(t.omission):r}e=f(e);var y=e.length;if(u.test(e)){var v=c(e);y=v.length}if(n>=y)return e;var g=n-l(r);if(1>g)return r;var b=v?a(v,0,g).join(""):e.slice(0,g);if(void 0===_)return b+r;if(v&&(g+=b.length-g),s(_)){if(e.slice(g).search(_)){var M,L=b;for(_.global||(_=RegExp(_.source,f(m.exec(_))+"g")),_.lastIndex=0;M=_.exec(L);)var w=M.index;b=b.slice(0,void 0===w?g:w)}}else if(e.indexOf(o(_),g)!=g){var x=b.lastIndexOf(_);x>-1&&(b=b.slice(0,x))}return b+r}var o=n(143),a=n(441),i=n(17),s=n(478),u=n(151),l=n(468),c=n(469),d=n(483),f=n(156),p=30,h="...",m=/\w*$/;e.exports=r},function(e,t,n){function r(e){return n(o(e))}function o(e){return a[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var a={"./af":158,"./af.js":158,"./ar":162,"./ar-ma":159,"./ar-ma.js":159,"./ar-sa":160,"./ar-sa.js":160,"./ar-tn":161,"./ar-tn.js":161,"./ar.js":162,"./az":163,"./az.js":163,"./be":164,"./be.js":164,"./bg":165,"./bg.js":165,"./bn":166,"./bn.js":166,"./bo":167,"./bo.js":167,"./br":168,"./br.js":168,"./bs":169,"./bs.js":169,"./ca":170,"./ca.js":170,"./cs":171,"./cs.js":171,"./cv":172,"./cv.js":172,"./cy":173,"./cy.js":173,"./da":174,"./da.js":174,"./de":176,"./de-at":175,"./de-at.js":175,"./de.js":176,"./dv":177,"./dv.js":177,"./el":178,"./el.js":178,"./en-au":179,"./en-au.js":179,"./en-ca":180,"./en-ca.js":180,"./en-gb":181,"./en-gb.js":181,"./en-ie":182,"./en-ie.js":182,"./en-nz":183,"./en-nz.js":183,"./eo":184,"./eo.js":184,"./es":185,"./es.js":185,"./et":186,"./et.js":186,"./eu":187,"./eu.js":187,"./fa":188,"./fa.js":188,"./fi":189,"./fi.js":189,"./fo":190,"./fo.js":190,"./fr":193,"./fr-ca":191,"./fr-ca.js":191,"./fr-ch":192,"./fr-ch.js":192,"./fr.js":193,"./fy":194,"./fy.js":194,"./gd":195,"./gd.js":195,"./gl":196,"./gl.js":196,"./he":197,"./he.js":197,"./hi":198,"./hi.js":198,"./hr":199,"./hr.js":199,"./hu":200,"./hu.js":200,"./hy-am":201,"./hy-am.js":201,"./id":202,"./id.js":202,"./is":203,"./is.js":203,"./it":204,"./it.js":204,"./ja":205,"./ja.js":205,"./jv":206,"./jv.js":206,"./ka":207,"./ka.js":207,"./kk":208,"./kk.js":208,"./km":209,"./km.js":209,"./ko":210,"./ko.js":210,"./ky":211,"./ky.js":211,"./lb":212,"./lb.js":212,"./lo":213,"./lo.js":213,"./lt":214,"./lt.js":214,"./lv":215,"./lv.js":215,"./me":216,"./me.js":216,"./mk":217,"./mk.js":217,"./ml":218,"./ml.js":218,"./mr":219,"./mr.js":219,"./ms":221,"./ms-my":220,"./ms-my.js":220,"./ms.js":221,"./my":222,"./my.js":222,"./nb":223,"./nb.js":223,"./ne":224,"./ne.js":224,"./nl":225,"./nl.js":225,"./nn":226,"./nn.js":226,"./pa-in":227,"./pa-in.js":227,"./pl":228,"./pl.js":228,"./pt":230,"./pt-br":229,"./pt-br.js":229,"./pt.js":230,"./ro":231,"./ro.js":231,"./ru":232,"./ru.js":232,"./se":233,"./se.js":233,"./si":234,"./si.js":234,"./sk":235,"./sk.js":235,"./sl":236,"./sl.js":236,"./sq":237,"./sq.js":237,"./sr":239,"./sr-cyrl":238,"./sr-cyrl.js":238,"./sr.js":239,"./ss":240,"./ss.js":240,"./sv":241,"./sv.js":241,"./sw":242,"./sw.js":242,"./ta":243,"./ta.js":243,"./te":244,"./te.js":244,"./th":245,"./th.js":245,"./tl-ph":246,"./tl-ph.js":246,"./tlh":247,"./tlh.js":247,"./tr":248,"./tr.js":248,"./tzl":249,"./tzl.js":249,"./tzm":251,"./tzm-latn":250,"./tzm-latn.js":250,"./tzm.js":251,"./uk":252,"./uk.js":252,"./uz":253,"./uz.js":253,"./vi":254,"./vi.js":254,"./x-pseudo":255,"./x-pseudo.js":255,"./zh-cn":256,"./zh-cn.js":256,"./zh-tw":257,"./zh-tw.js":257};r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id=487},function(e,t){function n(){l=!1,i.length?u=i.concat(u):c=-1,u.length&&r()}function r(){if(!l){var e=setTimeout(n);l=!0;for(var t=u.length;t;){for(i=u,u=[];++c1)for(var n=1;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 s(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 u=Object.assign||function(e){for(var t=1;t0||(this.setState({isDragActive:!1,isDragReject:!1}),this.props.onDragLeave&&this.props.onDragLeave.call(this,e))}},{key:"onDrop",value:function(e){e.preventDefault(),this.enterCounter=0,this.setState({isDragActive:!1,isDragReject:!1});for(var t=e.dataTransfer?e.dataTransfer.files:e.target.files,n=this.props.multiple?t.length:Math.min(t.length,1),r=[],o=0;n>o;o++){var a=t[o];this.props.disablePreview||(a.preview=window.URL.createObjectURL(a)),r.push(a)}this.props.onDrop&&this.props.onDrop.call(this,r,e),this.allFilesAccepted(r)?this.props.onDropAccepted&&this.props.onDropAccepted.call(this,r,e):this.props.onDropRejected&&this.props.onDropRejected.call(this,r,e)}},{key:"onClick",value:function(){this.props.disableClick||this.open()}},{key:"allFilesAccepted",value:function(e){var t=this;return e.every(function(e){return(0,d["default"])(e,t.props.accept)})}},{key:"open",value:function(){this.fileInputEl.value=null,this.fileInputEl.click()}},{key:"render",value:function(){var e=this,t=this.props,n=t.accept,r=t.activeClassName,a=t.inputProps,i=t.multiple,s=t.name,l=t.rejectClassName,c=o(t,["accept","activeClassName","inputProps","multiple","name","rejectClassName"]),d=c.activeStyle,f=c.className,m=c.rejectStyle,_=c.style,y=o(c,["activeStyle","className","rejectStyle","style"]),v=this.state,g=v.isDragActive,b=v.isDragReject;f=f||"",g&&r&&(f+=" "+r),b&&l&&(f+=" "+l),f||_||d||m||(_={width:200,height:200,borderWidth:2,borderColor:"#666",borderStyle:"dashed",borderRadius:5},d={borderStyle:"solid",backgroundColor:"#eee"},m={borderStyle:"solid",backgroundColor:"#ffdddd"});var M=void 0;M=d&&g?u({},_,d):m&&b?u({},_,m):u({},_);var L={accept:n,type:"file",style:{display:"none"},multiple:h&&i,ref:function(t){return e.fileInputEl=t},onChange:this.onDrop};return s&&s.length&&(L.name=s),p["default"].createElement("div",u({className:f,style:M},y,{onClick:this.onClick,onDragEnter:this.onDragEnter,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop}),this.props.children,p["default"].createElement("input",u({},a,L)))}}]),t}(p["default"].Component);m.defaultProps={disablePreview:!1,disableClick:!1,multiple:!0},m.propTypes={onDrop:p["default"].PropTypes.func,onDropAccepted:p["default"].PropTypes.func,onDropRejected:p["default"].PropTypes.func,onDragEnter:p["default"].PropTypes.func,onDragLeave:p["default"].PropTypes.func,children:p["default"].PropTypes.node,style:p["default"].PropTypes.object,activeStyle:p["default"].PropTypes.object,rejectStyle:p["default"].PropTypes.object,className:p["default"].PropTypes.string,activeClassName:p["default"].PropTypes.string,rejectClassName:p["default"].PropTypes.string,disablePreview:p["default"].PropTypes.bool,disableClick:p["default"].PropTypes.bool,inputProps:p["default"].PropTypes.object,multiple:p["default"].PropTypes.bool,accept:p["default"].PropTypes.string,name:p["default"].PropTypes.string},t["default"]=m,e.exports=t["default"]},function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";t.__esModule=!0,n(8),n(9),t["default"]=function(e,t){if(e&&t){var n=function(){var n=t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return{v:n.some(function(e){var t=e.trim();return"."===t.charAt(0)?r.toLowerCase().endsWith(t.toLowerCase()):/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t})}}();if("object"==typeof n)return n.v}return!0},e.exports=t["default"]},function(e,t){var n=e.exports={version:"1.2.2"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(2),o=n(1),a=n(4),i=n(19),s="prototype",u=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t,n){var c,d,f,p,h=e&l.G,m=e&l.P,_=h?r:e&l.S?r[t]||(r[t]={}):(r[t]||{})[s],y=h?o:o[t]||(o[t]={});h&&(n=t);for(c in n)d=!(e&l.F)&&_&&c in _,f=(d?_:n)[c],p=e&l.B&&d?u(f,r):m&&"function"==typeof f?u(Function.call,f):f,_&&!d&&i(_,c,f),y[c]!=f&&a(y,c,p),m&&((y[s]||(y[s]={}))[c]=f)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,e.exports=l},function(e,t,n){var r=n(5),o=n(18);e.exports=n(22)?function(e,t,n){return r.setDesc(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20)("wks"),o=n(2).Symbol;e.exports=function(e){return r[e]||(r[e]=o&&o[e]||(o||n(6))("Symbol."+e))}},function(e,t,n){n(26),e.exports=n(1).Array.some},function(e,t,n){n(25),e.exports=n(1).String.endsWith},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n(7)("match")]=!1,!"/./"[e](t)}catch(o){}}return!0}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(16),o=n(11),a=n(7)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(2),o=n(4),a=n(6)("src"),i="toString",s=Function[i],u=(""+s).split(i);n(1).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,i){"function"==typeof n&&(o(n,a,e[t]?""+e[t]:u.join(String(t))),"name"in n||(n.name=t)),e===r?e[t]=n:(i||delete e[t],o(e,t,n))})(Function.prototype,i,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(2),o="__core-js_shared__",a=r[o]||(r[o]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t,n){var r=n(17),o=n(13);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){e.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(3),o=n(24),a=n(21),i="endsWith",s=""[i];r(r.P+r.F*n(14)(i),"String",{endsWith:function(e){var t=a(this,e,i),n=arguments,r=n.length>1?n[1]:void 0,u=o(t.length),l=void 0===r?u:Math.min(o(r),u),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,n){var r=n(5),o=n(3),a=n(1).Array||Array,i={},s=function(e,t){r.each.call(e.split(","),function(e){void 0==t&&e in a?i[e]=a[e]:e in[]&&(i[e]=n(12)(Function.call,[][e],t))})};s("pop,reverse,shift,keys,values,entries",1),s("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),s("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),o(o.S,"Array",i)}])},function(t,n){t.exports=e}])})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}t.__esModule=!0,t["default"]=void 0;var s=n(1),u=n(259),l=r(u),c=n(260),d=(r(c),function(e){function t(n,r){o(this,t);var i=a(this,e.call(this,n,r));return i.store=n.store,i}return i(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return s.Children.only(e)},t}(s.Component));t["default"]=d,d.propTypes={store:l["default"].isRequired,children:s.PropTypes.element.isRequired},d.childContextTypes={store:l["default"].isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}function s(e){return e.displayName||e.name||"Component"}function u(e,t){try{return e.apply(t)}catch(n){return S.value=n,S}}function l(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],l=Boolean(e),f=e||x,h=void 0;h="function"==typeof t?t:t?(0,y["default"])(t):k;var _=n||T,v=r.pure,g=void 0===v?!0:v,b=r.withRef,L=void 0===b?!1:b,P=g&&_!==T,C=D++;return function(e){function t(e,t,n){var r=_(e,t,n);return r}var n="Connect("+s(e)+")",r=function(r){function s(e,t){o(this,s);var i=a(this,r.call(this,e,t));i.version=C,i.store=e.store||t.store,(0,w["default"])(i.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a , "+('or explicitly pass "store" as a prop to "'+n+'".'));var u=i.store.getState();return i.state={storeState:u},i.clearCache(),i}return i(s,r),s.prototype.shouldComponentUpdate=function(){return!g||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function(e,t){var n=f(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return this.stateProps&&(0,m["default"])(e,this.stateProps)?!1:(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&(0,m["default"])(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&P&&(0,m["default"])(e,this.mergedProps)?!1:(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){l&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){g&&(0,m["default"])(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!g||t!==e){if(g&&!this.doStatePropsDependOnOwnProps){var n=u(this.updateStatePropsIfNeeded,this);if(!n)return;n===S&&(this.statePropsPrecalculationError=S.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,w["default"])(L,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,a=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var i=!0,s=!0;g&&a&&(i=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var u=!1,l=!1;r?u=!0:i&&(u=this.updateStatePropsIfNeeded()),s&&(l=this.updateDispatchPropsIfNeeded());var f=!0;return f=u||l||t?this.updateMergedPropsIfNeeded():!1,!f&&a?a:(L?this.renderedElement=(0,d.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,d.createElement)(e,this.mergedProps),this.renderedElement)},s}(d.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:p["default"]},r.propTypes={store:p["default"]},(0,M["default"])(r,e)}}var c=Object.assign||function(e){for(var t=1;ta;a++)o[a]=arguments[a];if(e.apply(t,o),e.lengtht;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}t.__esModule=!0,t.runEnterHooks=u,t.runChangeHooks=l,t.runLeaveHooks=c;var d=n(90),f=n(8);r(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;tn;n++)t[n]=arguments[n];var r=t.map(function(e){return e.renderRouterContext}).filter(function(e){return e}),s=t.map(function(e){return e.renderRouteComponent}).filter(function(e){return e}),l=function(){var e=arguments.length<=0||void 0===arguments[0]?a.createElement:arguments[0];return function(t,n){return s.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return r.reduceRight(function(t,n){return n(t,e)},i["default"].createElement(u["default"],o({},e,{createElement:l(e.createElement)})))}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,s=void 0;return n?!function(){var u=!1;a=n.filter(function(n){if(u)return!0;var a=-1===o.indexOf(n)||r(n,e,t);return a&&(u=!0),a}),a.reverse(),s=[],i=[],o.forEach(function(e){var t=-1===n.indexOf(e),r=-1!==a.indexOf(e);t||r?s.push(e):i.push(e)})}():(a=[],i=[],s=o),{leaveRoutes:a,changeRoutes:i,enterRoutes:s}}t.__esModule=!0;var a=n(40);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(!r)return void n();var o=e.location,a=void 0;a=i({},e,o),r.call(t,a,n)}function a(e,t){(0,s.mapAsync)(e.routes,function(t,n,r){o(e,t,r)},t)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;ti;++i){var u=t[i],c=u.path||"";if("/"===c.charAt(0)&&(r=e,o=[],a=[]),null!==r&&c){var d=(0,l.matchPattern)(c,r);if(d?(r=d.remainingPathname,o=[].concat(o,d.paramNames),a=[].concat(a,d.paramValues)):r=null,""===r)return o.every(function(e,t){return String(a[t])===String(n[e])})}}return!1}function i(e,t){return null==t?null==e:null==e?!0:r(e,t)}function s(e,t,n,r,s){var u=e.pathname,l=e.query;return null==n?!1:("/"!==u.charAt(0)&&(u="/"+u),o(u,n.pathname)||!t&&a(u,r,s)?i(l,n.query):!1)}t.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=s;var l=n(40);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){var n=e.history,r=e.routes,a=e.location,s=o(e,["history","routes","location"]);n||a?void 0:(0,u["default"])(!1),n=n?n:(0,c["default"])(s);var l=(0,f["default"])(n,(0,p.createRoutes)(r)),d=void 0;a?a=n.createLocation(a):d=n.listen(function(e){a=e});var m=(0,h.createRouterObject)(n,l);n=(0,h.createRoutingHistory)(n,l),l.match(a,function(e,r,o){t(e,r,o&&i({},o,{history:n,router:m,matchContext:{history:n,transitionManager:l,router:m}})),d&&d()})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.routes,r=o(t,["routes"]),a=(0,u["default"])(e)(r),s=(0,c["default"])(a,n);return i({},a,s)}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;ti&&l;)l=!1,t.call(this,i++,a,o);return u=!1,s?void n.apply(this,c):void(i>=e&&l&&(s=!0,n()))}}var i=0,s=!1,u=!1,l=!1,c=void 0;a()}t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e=e||window.history.state||{};var t=d.getWindowPath(),n=e,r=n.key,o=void 0;r?o=f.readState(r):(o=null,r=g.createKey(),y&&window.history.replaceState(a({},e,{key:r}),null));var i=l.parsePath(t);return g.createLocation(a({},i,{state:o}),void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return d.addEventListener(window,"popstate",n),function(){d.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.hash,a=e.state,i=e.action,s=e.key;if(i!==u.POP){f.saveState(s,a);var l=(t||"")+n+r+o,c={key:s};if(i===u.PUSH){if(v)return window.location.href=l,!1;window.history.pushState(c,null,l)}else{if(v)return window.location.replace(l),!1;window.history.replaceState(c,null,l)}}}function r(e){1===++b&&(M=t(g));var n=g.listenBefore(e);return function(){n(),0===--b&&M()}}function o(e){1===++b&&(M=t(g));var n=g.listen(e);return function(){n(),0===--b&&M()}}function i(e){1===++b&&(M=t(g)),g.registerTransitionHook(e)}function p(e){g.unregisterTransitionHook(e),0===--b&&M()}var m=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:s["default"](!1);var _=m.forceRefresh,y=d.supportsHistory(),v=!y||_,g=h["default"](a({},m,{getCurrentLocation:e,finishTransition:n,saveState:f.saveState})),b=0,M=void 0;return a({},g,{listenBefore:r,listen:o,registerTransitionHook:i,unregisterTransitionHook:p})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t=0&&t=0&&_8&&11>=w),T=32,S=String.fromCharCode(T),D=p.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:g({onBeforeInput:null}),captured:g({onBeforeInputCapture:null})},dependencies:[D.topCompositionEnd,D.topKeyPress,D.topTextInput,D.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:g({onCompositionEnd:null}),captured:g({onCompositionEndCapture:null})},dependencies:[D.topBlur,D.topCompositionEnd,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:g({onCompositionStart:null}),captured:g({onCompositionStartCapture:null})},dependencies:[D.topBlur,D.topCompositionStart,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:g({onCompositionUpdate:null}),captured:g({onCompositionUpdateCapture:null})},dependencies:[D.topBlur,D.topCompositionUpdate,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]}},C=!1,O=null,Y={eventTypes:P,extractEvents:function(e,t,n,r,o){return[l(e,t,n,r,o),f(e,t,n,r,o)]}};e.exports=Y},function(e,t,n){"use strict";var r=n(278),o=n(9),a=n(13),i=(n(406),n(570)),s=n(411),u=n(415),l=(n(6),u(function(e){return s(e)})),c=!1,d="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(p){c=!0}void 0===document.documentElement.style.cssFloat&&(d="styleFloat")}var h={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=l(n)+":",t+=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if("float"===o&&(o=d),a)n[o]=a;else{var s=c&&r.shorthandPropertyExpansions[o];if(s)for(var u in s)n[u]="";else n[o]=""}}}};a.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=h},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=w.getPooled(P.change,O,e,x(e));b.accumulateTwoPhaseDispatches(t),L.batchedUpdates(a,t)}function a(e){g.enqueueEvents(e),g.processEventQueue(!1)}function i(e,t){C=e,O=t,C.attachEvent("onchange",o)}function s(){C&&(C.detachEvent("onchange",o),C=null,O=null)}function u(e,t,n){return e===D.topChange?n:void 0}function l(e,t,n){e===D.topFocus?(s(),i(t,n)):e===D.topBlur&&s()}function c(e,t){C=e,O=t,Y=e.value,E=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(C,"value",H),C.attachEvent("onpropertychange",f)}function d(){C&&(delete C.value,C.detachEvent("onpropertychange",f),C=null,O=null,Y=null,E=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==Y&&(Y=t,o(e))}}function p(e,t,n){return e===D.topInput?n:void 0}function h(e,t,n){e===D.topFocus?(d(),c(t,n)):e===D.topBlur&&d()}function m(e,t,n){return e!==D.topSelectionChange&&e!==D.topKeyUp&&e!==D.topKeyDown||!C||C.value===Y?void 0:(Y=C.value,O)}function _(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){return e===D.topClick?n:void 0}var v=n(21),g=n(49),b=n(50),M=n(9),L=n(14),w=n(32),x=n(107),k=n(110),T=n(305),S=n(24),D=v.topLevelTypes,P={change:{phasedRegistrationNames:{bubbled:S({onChange:null}),captured:S({onChangeCapture:null})},dependencies:[D.topBlur,D.topChange,D.topClick,D.topFocus,D.topInput,D.topKeyDown,D.topKeyUp,D.topSelectionChange]}},C=null,O=null,Y=null,E=null,j=!1;M.canUseDOM&&(j=k("change")&&(!("documentMode"in document)||document.documentMode>8));var A=!1;M.canUseDOM&&(A=k("input")&&(!("documentMode"in document)||document.documentMode>9));var H={get:function(){return E.get.call(this)},set:function(e){Y=""+e,E.set.call(this,e)}},N={eventTypes:P,extractEvents:function(e,t,n,o,a){var i,s;if(r(t)?j?i=u:s=l:T(t)?A?i=p:(i=m,s=h):_(t)&&(i=y),i){var c=i(e,t,n);if(c){var d=w.getPooled(P.change,c,o,a);return d.type="change",b.accumulateTwoPhaseDispatches(d),d}}s&&s(e,t,n)}};e.exports=N},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(9),a=n(408),i=n(16),s=n(126),u=n(5),l=/^(<[^ \/>]+)/,c="data-danger-index",d={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:u(!1);for(var t,n={},d=0;de&&n[e]===o[e];e++);var i=r-e;for(t=1;i>=t&&n[r-t]===o[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(42),a=n(9),i=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,l=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,d=o.injection.HAS_POSITIVE_NUMERIC_VALUE,f=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var p=document.implementation;r=p&&p.hasFeature&&p.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|u,allowTransparency:i,alt:null,async:u,autoComplete:null,autoPlay:u,capture:i|u,cellPadding:null,cellSpacing:null,charSet:i,challenge:i,checked:s|u,classID:i,className:r?i:s,cols:i|d,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:i,"default":u,defer:u,dir:null,disabled:i|u,download:f,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:u,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:i,integrity:null,is:i,keyParams:i,keyType:i,kind:null,label:null,lang:null,list:i,loop:s|u,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,minLength:i,multiple:s|u,muted:s|u,name:null,nonce:i,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:i,rows:i|d,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:i|u,selected:s|u,shape:null,size:i|d,sizes:i,span:d,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:i,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|l,width:i,wmode:i,wrap:null,about:i,datatype:i,inlist:i,prefix:i,property:i,resource:i,"typeof":i,vocab:i,autoCapitalize:i,autoCorrect:i,autoSave:null,color:null,itemProp:i,itemScope:i|u,itemType:i,itemID:i,itemRef:i,results:null,security:i,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=h},function(e,t,n){"use strict";var r=n(284),o=n(544),a=n(549),i=n(7),s=n(571),u={};i(u,a),i(u,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),u.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,u.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,e.exports=u},function(e,t,n){"use strict";var r=(n(51),n(104)),o=(n(6),"_getDOMNodeDidWarn"),a={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=a(t,null))}var o=n(31),a=n(109),i=n(112),s=n(113),u=(n(6),{instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var u=e&&e[s],l=u&&u._currentElement,c=t[s];if(null!=u&&i(l,c))o.receiveComponent(u,c,n,r),t[s]=u;else{u&&o.unmountComponent(u,s);var d=a(c,null);t[s]=d}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}});e.exports=u},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var a=n(100),i=n(22),s=n(12),u=n(51),l=n(13),c=n(71),d=(n(70),n(31)),f=n(102),p=n(7),h=n(47),m=n(5),_=n(112);n(6);o.prototype.render=function(){var e=u.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var y=1,v={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=y++,this._rootNodeID=e;var r,a,i=this._processProps(this._currentElement.props),l=this._processContext(n),c=this._currentElement.type,p="prototype"in c;p&&(r=new c(i,l,f)),p&&null!==r&&r!==!1&&!s.isValidElement(r)||(a=r,r=new o(c)),r.props=i,r.context=l,r.refs=h,r.updater=f,this._instance=r,u.set(r,this);var _=r.state;void 0===_&&(r.state=_=null),"object"!=typeof _||Array.isArray(_)?m(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===a&&(a=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(a);var v=d.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return r.componentDidMount&&t.getReactMountReady().enqueue(r.componentDidMount,r),v},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),d.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,u.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return h;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?m(!1):void 0;for(var o in r)o in t.childContextTypes?void 0:m(!1);return p({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{"function"!=typeof e[a]?m(!1):void 0,i=e[a](t,a,o,n)}catch(s){i=s}if(i instanceof Error){r(this);n===c.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&d.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,o){var a,i=this._instance,s=this._context===o?i.context:this._processContext(o);t===n?a=n.props:(a=this._processProps(n.props),i.componentWillReceiveProps&&i.componentWillReceiveProps(a,s));var u=this._processPendingState(a,s),l=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(a,u,s);l?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,a,u,s,e,o)):(this._currentElement=n,this._context=o,i.props=a,i.state=u,i.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var a=p({},o?r[0]:n.state),i=o?1:0;i=0||null!=t.is}function _(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var y=n(523),v=n(525),g=n(42),b=n(97),M=n(21),L=n(69),w=n(99),x=n(538),k=n(541),T=n(542),S=n(286),D=n(545),P=n(10),C=n(550),O=n(13),Y=n(102),E=n(7),j=n(74),A=n(75),H=n(5),N=(n(110),n(24)),R=n(76),I=n(111),W=(n(127),n(114),n(6),L.deleteListener),F=L.listenTo,U=L.registrationNameModules,z={string:!0,number:!0},B=N({children:null}),V=N({style:null}),q=N({__html:null}),G=1,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},J={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},$={listing:!0,pre:!0,textarea:!0},X=(E({menuitem:!0},J),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},Z={}.hasOwnProperty;_.displayName="ReactDOMComponent",_.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(d,this);break;case"button":r=x.getNativeProps(this,r,n);break;case"input":k.mountWrapper(this,r,n),r=k.getNativeProps(this,r,n);break;case"option":T.mountWrapper(this,r,n),r=T.getNativeProps(this,r,n);break;case"select":S.mountWrapper(this,r,n),r=S.getNativeProps(this,r,n),n=S.processChildContext(this,r,n);break;case"textarea":D.mountWrapper(this,r,n),r=D.getNativeProps(this,r,n)}u(this,r);var o;if(t.useCreateElement){var a=n[P.ownerDocumentContextKey],i=a.createElement(this._currentElement.type);b.setAttributeForID(i,this._rootNodeID),P.getID(i),this._updateDOMProperties({},r,t,i),this._createInitialChildren(t,r,n,i),o=i}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),l=this._createContentMarkup(t,r,n);o=!l&&J[this._tag]?s+"/>":s+">"+l+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(f,this); +case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(y.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(U.hasOwnProperty(r))o&&l(this._rootNodeID,r,o,e);else{r===V&&(o&&(o=this._previousStyleCopy=E({},t.style)),o=v.createMarkupForStyles(o));var a=null;null!=this._tag&&m(this._tag,t)?r!==B&&(a=b.createMarkupForCustomAttribute(r,o)):a=b.createMarkupForProperty(r,o),a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n;var i=b.createMarkupForID(this._rootNodeID);return n+" "+i},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var a=z[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)r=A(a);else if(null!=i){var s=this.mountChildren(i,e,n);r=s.join("")}}return $[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&R(r,o.__html);else{var a=z[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)I(r,a);else if(null!=i)for(var s=this.mountChildren(i,e,n),u=0;ut.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),a="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>a){var i=a;a=o,o=i}var s=l(e,o),u=l(e,a);if(s&&u){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),o>a?(n.addRange(d),n.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),n.addRange(d))}}}var u=n(9),l=n(574),c=n(304),d=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:d?o:a,setOffsets:d?i:s};e.exports=f},function(e,t,n){"use strict";var r=n(289),o=n(555),a=n(103);r.inject();var i={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:a};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return s.asap(r,this),n}var a=n(98),i=n(101),s=n(14),u=n(7),l=n(5),c=(n(6),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML?l(!1):void 0;var r=u({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?l(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:l(!1),r=r[0]),n=""+r),null==n&&(n="");var i=a.getValue(t);e._wrapperState={initialValue:""+(null!=i?i:n),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=a.getValue(t);null!=n&&i.updatePropertyByID(e._rootNodeID,"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(49),a={handleTopLevel:function(e,t,n,a,i){var s=o.extractEvents(e,t,n,a,i);r(s)}};e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.getID(e),n=d.getReactRootIDFromNodeID(t),r=f.findReactContainerForID(n),o=f.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){i(e)}function i(e){for(var t=f.getFirstReactDOM(m(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;oo;){for(;oo;o++)n+=t+=e.charCodeAt(o);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||a.hasOwnProperty(e)&&a[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(278),a=o.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o){return o}n(7),n(6);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return a(e,r,t),t}var a=n(113);n(6);e.exports=o},function(e,t,n){"use strict";function r(e){if(e.key){var t=a[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var o=n(105),a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),a=0,i=0;o;){if(3===o.nodeType){if(i=a+o.textContent.length,t>=a&&i>=t)return{node:o,offset:t-a};a=i}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:a(!1),e}var o=n(12),a=n(5);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(75);e.exports=r},function(e,t,n){"use strict";var r=n(10);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t.5?1:0,u=1===t?[p,o,o,0,0,1,r,r+o,p,o,o,0,0,1,r,r-o]:[p,o,o,0,s,1,_(r,o,i),y(r,o,i)],l=1===t?[p,a,a,0,0,0,r,r+a,p,a,a,0,0,0,r,r-a]:[p,a,a,0,s,0,r,r-a];return[f,r,r-o].concat(u,[h,_(r,a,i),y(r,a,i)],l).join(" ")},g=function(e,t){var n=Math.abs(e)/2,r=n,o=n-Math.abs(t);return[f,n,0,p,r,r,0,0,1,n,e,p,r,r,0,0,1,n,0,f,n,n-o,p,o,o,0,0,0,n,n+o,p,o,o,0,0,0,n,n-o].join(" ")},b=function(e,t){var n=e.value,r=e.size,i=e.strokeWidth,u=e.children,c=o(e,["value","size","strokeWidth","children"]),f=t.rebass,p=a({},d["default"],f),h=p.bold,m="0 0 "+r+" "+r,_={root:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:r/4,fontWeight:h,lineHeight:1,width:r,height:r},svg:{position:"absolute",top:0,right:0,bottom:0,left:0,fill:"currentcolor"},bg:{opacity:1/16},percentage:{marginRight:"-.25em"},unit:{fontSize:".5em",verticalAlign:"super"}};return s["default"].createElement(l["default"],a({},c,{className:"Donut",baseStyle:_.root}),s["default"].createElement("svg",{xmlns:"http://www.w3.org/svg/2000",viewBox:m,width:r,height:r,style:_.svg},s["default"].createElement("path",{d:g(r,i),style:_.bg}),s["default"].createElement("path",{d:v(r,n,i)})),u,!u&&s["default"].createElement("span",{style:_.percentage},Math.round(100*n),s["default"].createElement("span",{style:_.unit},"%")))};b.propTypes={value:s["default"].PropTypes.number,size:s["default"].PropTypes.number,strokeWidth:s["default"].PropTypes.number,color:s["default"].PropTypes.string},b.defaultProps={value:0,size:128,strokeWidth:8,color:"primary"},b.contextTypes={rebass:s["default"].PropTypes.object},t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;te,r=t?null:p.gray;return{color:r}},y=function(e){var t=n>e,r=t?null:"none",o=n>e&&e+1>n?"rect(0, .5em, 1em, 0)":null;return{position:"absolute",top:".25em",left:0,display:r,clip:o}},v=function(e){return function(t){r&&r(e+1)}};return s["default"].createElement(l["default"],a({},i,{className:"Rating",baseStyle:m.root}),h.map(function(e){return s["default"].createElement("button",{key:e,style:m.star,onClick:v(e)},s["default"].createElement("span",{style:_(e)},"☆ "),s["default"].createElement("span",{style:y(e)},"★"))}))};f.propTypes={value:s["default"].PropTypes.number,onClick:s["default"].PropTypes.func},f.defaultProps={value:0,color:"orange"},f.contextTypes={rebass:s["default"].PropTypes.object},t["default"]=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=t},e))});return s["default"].createElement(l["default"],a({},u,{children:y||g,className:"SequenceMap",baseStyle:v}))};h.contextTypes={rebass:s["default"].PropTypes.object},h.propTypes={steps:s["default"].PropTypes.array,active:s["default"].PropTypes.number},h.defaultProps={steps:[]},h.Step=d["default"],t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t0&&console.log("\n redux-persist/autoRehydrate: %d actions were fired before rehydration completed. This can be a symptom of a race\n condition where the rehydrate action may overwrite the previously affected state. Consider running these actions\n after rehydration:\n ",e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(63),u=r(s),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},c=Object.assign||function(e){for(var t=1;tn;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i=e(n,r,o),u=i.dispatch,l=[],c={getState:i.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=s["default"].apply(void 0,l)(i.dispatch),a({},i,{dispatch:u})}}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t1)for(var n=1;n-1?t:e}function d(e,t){t=t||{};var n=t.body;if(d.prototype.isPrototypeOf(e)){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||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=c(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 f(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 p(e){var t=new o,n=(e.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}function h(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof o?t.headers:new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={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};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(r)},o.prototype["delete"]=function(e){delete this.map[t(e)]},o.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},o.prototype.getAll=function(e){return this.map[t(e)]||[]},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){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},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)},m.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this)},l.call(d.prototype),l.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var y=[301,302,303,307,308];h.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=h,e.fetch=function(e,t){return new Promise(function(n,r){function o(){return"responseURL"in i?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):void 0}var a;a=d.prototype.isPrototypeOf(e)&&!t?e:new d(e,t);var i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:p(i),url:o()},t="response"in i?i.response:i.responseText;n(new h(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(a.method,a.url,!0),"include"===a.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}]); //# sourceMappingURL=bundle.js.map \ No newline at end of file diff --git a/dist/bundle.js.map b/dist/bundle.js.map index 713ae72a3..e00827e37 100644 --- a/dist/bundle.js.map +++ b/dist/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["webpack:///bundle.js","webpack:///"],"mappings":"AAAA;ACw2GA;AA6gFA;AAm2GA;AAp+DA;AAshFA;AAk2HA;;;;;;;;;;;;;;AAyiGA;AAgnOA;AA0yTA;AAstGA;AA8tFA;;;;;AAigDA;;;;;AAsDA;AAi6DA;AAs0BA;AAy0HA;AAkqBA;AA22FA;AAuhEA;AA4pEA;AAsjEA;AAwjIA;AA+mHA;AA21KA;AAmbA;AAMA;AAMA;AAMA;AAMA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["webpack:///bundle.js","webpack:///"],"mappings":"AAAA;ACwwHA;AAy/EA;AAyiFA;AA28FA;AAr1IA;AA45IA;;;;;AAo9GA;;;;;AAglFA;AAg7GA;;;;;;;;;;;;;;AAgxCA;AA+rHA;AA8pEA;AAklEA;AAmqEA;AA0gEA;AAowFA;AAunIA;AAytEA;AAgiEA;AA0gDA;AA4hJA;AAskEA;AA2jIA;AAmpHA;AAu4FA;AA2wEA","sourceRoot":""} \ No newline at end of file