UNPKG

camel-components

Version:
2 lines 481 kB
!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){e.exports=n(116)},function(e,t){function n(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&r())}function r(){if(!p){var e=a(n);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,s(e)}}function o(e,t){this.fun=e,this.array=t}function i(){}var a,s,l=e.exports={};!function(){try{a=setTimeout}catch(e){a=function(){throw new Error("setTimeout is not defined")}}try{s=clearTimeout}catch(e){s=function(){throw new Error("clearTimeout is not defined")}}}();var u,c=[],p=!1,d=-1;l.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new o(e,t)),1!==c.length||p||a(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=i,l.addListener=i,l.once=i,l.off=i,l.removeListener=i,l.removeAllListeners=i,l.emit=i,l.binding=function(e){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";function n(e,n,r,o,i,a,s,l){if("production"!==t.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,o,i,a,s,l],p=0;u=new Error(n.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(9),o=r;"production"!==t.env.NODE_ENV&&(o=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(s){}}}),e.exports=o}).call(t,n(1))},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;n<10;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(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,a,s=n(e),l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var u in r)o.call(r,u)&&(s[u]=r[u]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(r);for(var c=0;c<a.length;c++)i.call(r,a[c])&&(s[a[c]]=r[a[c]])}}return s}},function(e,t,n){(function(t){"use strict";function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function o(e,t){var n=r(e);n._nativeNode=t,t[m]=n}function i(e){var t=e._nativeNode;t&&(delete t[m],e._nativeNode=null)}function a(e,n){if(!(e._flags&h.hasCachedChildNodes)){var i=e._renderedChildren,a=n.firstChild;e:for(var s in i)if(i.hasOwnProperty(s)){var l=i[s],u=r(l)._domID;if(null!=u){for(;null!==a;a=a.nextSibling)if(1===a.nodeType&&a.getAttribute(f)===String(u)||8===a.nodeType&&a.nodeValue===" react-text: "+u+" "||8===a.nodeType&&a.nodeValue===" react-empty: "+u+" "){o(l,a);continue e}"production"!==t.env.NODE_ENV?d(!1,"Unable to find element with ID %s.",u):d(!1)}}e._flags|=h.hasCachedChildNodes}}function s(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&a(r,e);return n}function l(e){var t=s(e);return null!=t&&t._nativeNode===e?t:null}function u(e){if(void 0===e._nativeNode?"production"!==t.env.NODE_ENV?d(!1,"getNodeFromInstance: Invalid argument."):d(!1):void 0,e._nativeNode)return e._nativeNode;for(var n=[];!e._nativeNode;)n.push(e),e._nativeParent?void 0:"production"!==t.env.NODE_ENV?d(!1,"React DOM tree root should always have a node reference."):d(!1),e=e._nativeParent;for(;n.length;e=n.pop())a(e,e._nativeNode);return e._nativeNode}var c=n(14),p=n(66),d=n(2),f=c.ID_ATTRIBUTE_NAME,h=p,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:l,getNodeFromInstance:u,precacheChildNodes:a,precacheNode:o,uncacheNode:i};e.exports=v}).call(t,n(1))},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){(function(t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,n,o){if("production"!==t.env.NODE_ENV)for(var i in o)o.hasOwnProperty(i)&&(e[i]=r.measure(n,o[i],e[i]))},measure:function(e,n,o){if("production"!==t.env.NODE_ENV){var i=null,a=function(){return r.enableMeasure?(i||(i=r.storedMeasure(e,n,o)),i.apply(this,arguments)):o.apply(this,arguments)};return a.displayName=e+"_"+n,a}return o},injection:{injectMeasure:function(e){r.storedMeasure=e}}};e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r,o,i=n(4),a=n(15),s=n(3),l=n(43),u="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,n,r,o,i,a,s){var c={$$typeof:u,type:e,key:n,ref:r,props:s,_owner:a};return"production"!==t.env.NODE_ENV&&(c._store={},l?(Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i})):(c._store.validated=!1,c._self=o,c._source=i),Object.freeze&&(Object.freeze(c.props),Object.freeze(c))),c};p.createElement=function(e,n,i){var l,d={},f=null,h=null,m=null,v=null;if(null!=n){"production"!==t.env.NODE_ENV?(h=!n.hasOwnProperty("ref")||Object.getOwnPropertyDescriptor(n,"ref").get?null:n.ref,f=!n.hasOwnProperty("key")||Object.getOwnPropertyDescriptor(n,"key").get?null:""+n.key):(h=void 0===n.ref?null:n.ref,f=void 0===n.key?null:""+n.key),m=void 0===n.__self?null:n.__self,v=void 0===n.__source?null:n.__source;for(l in n)n.hasOwnProperty(l)&&!c.hasOwnProperty(l)&&(d[l]=n[l])}var g=arguments.length-2;if(1===g)d.children=i;else if(g>1){for(var y=Array(g),b=0;b<g;b++)y[b]=arguments[b+2];d.children=y}if(e&&e.defaultProps){var C=e.defaultProps;for(l in C)void 0===d[l]&&(d[l]=C[l])}return"production"!==t.env.NODE_ENV&&("undefined"!=typeof d.$$typeof&&d.$$typeof===u||(d.hasOwnProperty("key")||Object.defineProperty(d,"key",{get:function(){r||(r=!0,"production"!==t.env.NODE_ENV?s(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)","function"==typeof e&&"displayName"in e?e.displayName:"Element"):void 0)},configurable:!0}),d.hasOwnProperty("ref")||Object.defineProperty(d,"ref",{get:function(){o||(o=!0,"production"!==t.env.NODE_ENV?s(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)","function"==typeof e&&"displayName"in e?e.displayName:"Element"):void 0)},configurable:!0}))),p(e,f,h,m,v,a.current,d)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){var n=p(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},p.cloneElement=function(e,t,n){var r,o=i({},e.props),s=e.key,l=e.ref,u=e._self,d=e._source,f=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,f=a.current),void 0!==t.key&&(s=""+t.key);var h;e.type&&e.type.defaultProps&&(h=e.type.defaultProps);for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==h?o[r]=h[r]:o[r]=t[r])}var m=arguments.length-2;if(1===m)o.children=n;else if(m>1){for(var v=Array(m),g=0;g<m;g++)v[g]=arguments[g+2];o.children=v}return p(e.type,s,l,u,d,f,o)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},e.exports=p}).call(t,n(1))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function r(){S.ReactReconcileTransaction&&E?void 0:"production"!==t.env.NODE_ENV?g(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):g(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){r(),E.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var n=e.dirtyComponentsLength;n!==y.length?"production"!==t.env.NODE_ENV?g(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,y.length):g(!1):void 0,y.sort(a);for(var r=0;r<n;r++){var o=y[r],i=o._pendingCallbacks;o._pendingCallbacks=null;var s;if(f.logTopLevelRenders){var l=o;o._currentElement.props===o._renderedComponent._currentElement&&(l=o._renderedComponent),s="React update: "+l.getName(),console.time(s)}if(m.performUpdateIfNecessary(o,e.reconcileTransaction),s&&console.timeEnd(s),i)for(var u=0;u<i.length;u++)e.callbackQueue.enqueue(i[u],o.getPublicInstance())}}function l(e){return r(),E.isBatchingUpdates?void y.push(e):void E.batchedUpdates(l,e)}function u(e,n){E.isBatchingUpdates?void 0:"production"!==t.env.NODE_ENV?g(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):g(!1),b.enqueue(e,n),C=!0}var c=n(4),p=n(61),d=n(16),f=n(70),h=n(7),m=n(18),v=n(42),g=n(2),y=[],b=p.getPooled(),C=!1,E=null,w={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),k()):y.length=0}},x={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},N=[w,x];c(o.prototype,v.Mixin,{getTransactionWrappers:function(){return N},destructor:function(){this.dirtyComponentsLength=null,p.release(this.callbackQueue),this.callbackQueue=null,S.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return v.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),d.addPoolingTo(o);var k=function(){for(;y.length||C;){if(y.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(C){C=!1;var t=b;b=p.getPooled(),t.notifyAll(),p.release(t)}}};k=h.measure("ReactUpdates","flushBatchedUpdates",k);var O={injectReconcileTransaction:function(e){e?void 0:"production"!==t.env.NODE_ENV?g(!1,"ReactUpdates: must provide a reconcile transaction class"):g(!1),S.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:"production"!==t.env.NODE_ENV?g(!1,"ReactUpdates: must provide a batching strategy"):g(!1),"function"!=typeof e.batchedUpdates?"production"!==t.env.NODE_ENV?g(!1,"ReactUpdates: must provide a batchedUpdates() function"):g(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?"production"!==t.env.NODE_ENV?g(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):g(!1):void 0,E=e}},S={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:l,flushBatchedUpdates:k,injection:O,asap:u};e.exports=S}).call(t,n(1))},function(e,t,n){"use strict";var r=n(24),o=r({bubbled:null,captured:null}),i=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart: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,topInvalid: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,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};e.exports=a},function(e,t,n){(function(t){"use strict";function r(e,n,r,o){"production"!==t.env.NODE_ENV&&(delete this.nativeEvent,delete this.preventDefault,delete this.stopPropagation),this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=r;var i=this.constructor.Interface;for(var a in i)if(i.hasOwnProperty(a)){"production"!==t.env.NODE_ENV&&delete this[a];var l=i[a];l?this[a]=l(r):"target"===a?this.target=o:this[a]=r[a]}var u=null!=r.defaultPrevented?r.defaultPrevented:r.returnValue===!1;return u?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function o(e,n){function r(e){var t=a?"setting the method":"setting the property";return i(t,"This is effectively a no-op"),e}function o(){var e=a?"accessing the method":"accessing the property",t=a?"This is a no-op function":"This is set to null";return i(e,t),n}function i(n,r){var o=!1;"production"!==t.env.NODE_ENV?l(o,"This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information.",n,e,r):void 0}var a="function"==typeof n;return{configurable:!0,set:r,get:o}}var i=n(4),a=n(16),s=n(9),l=n(3),u=!1,c="function"==typeof Proxy,p=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],d={type:null,target:null,currentTarget:s.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=s.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var r in e)"production"!==t.env.NODE_ENV?Object.defineProperty(this,r,o(r,e[r])):this[r]=null;for(var i=0;i<p.length;i++)this[p[i]]=null;if("production"!==t.env.NODE_ENV){var a=n(9);Object.defineProperty(this,"nativeEvent",o("nativeEvent",null)),Object.defineProperty(this,"preventDefault",o("preventDefault",a)),Object.defineProperty(this,"stopPropagation",o("stopPropagation",a))}}}),r.Interface=d,"production"!==t.env.NODE_ENV&&c&&(r=new Proxy(r,{construct:function(e,t){return this.apply(e,Object.create(e.prototype),t)},apply:function(e,n,r){return new Proxy(e.apply(n,r),{set:function(e,n,r){return"isPersistent"===n||e.constructor.Interface.hasOwnProperty(n)||p.indexOf(n)!==-1||("production"!==t.env.NODE_ENV?l(u||e.isPersistent(),"This synthetic event is reused for performance reasons. If you're seeing this, you're adding a new property in the synthetic event object. The property is never released. See https://fb.me/react-event-pooling for more information."):void 0,u=!0),e[n]=r,!0}})}})),r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var o=new r;i(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,a.addPoolingTo(e,a.fourArgumentPooler)},a.addPoolingTo(r,a.fourArgumentPooler),e.exports=r}).call(t,n(1))},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){(function(t){"use strict";function r(e,t){return(e&t)===t}var o=n(2),i={MUST_USE_PROPERTY:1,HAS_SIDE_EFFECTS:2,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var n=i,a=e.Properties||{},l=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},c=e.DOMPropertyNames||{},p=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var d in a){s.properties.hasOwnProperty(d)?"production"!==t.env.NODE_ENV?o(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",d):o(!1):void 0;var f=d.toLowerCase(),h=a[d],m={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseProperty:r(h,n.MUST_USE_PROPERTY),hasSideEffects:r(h,n.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,n.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,n.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,n.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,n.HAS_OVERLOADED_BOOLEAN_VALUE)};if(!m.mustUseProperty&&m.hasSideEffects?"production"!==t.env.NODE_ENV?o(!1,"DOMProperty: Properties that have side effects must use property: %s",d):o(!1):void 0,m.hasBooleanValue+m.hasNumericValue+m.hasOverloadedBooleanValue<=1?void 0:"production"!==t.env.NODE_ENV?o(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",d):o(!1),"production"!==t.env.NODE_ENV&&(s.getPossibleStandardName[f]=d),u.hasOwnProperty(d)){var v=u[d];m.attributeName=v,"production"!==t.env.NODE_ENV&&(s.getPossibleStandardName[v]=d)}l.hasOwnProperty(d)&&(m.attributeNamespace=l[d]),c.hasOwnProperty(d)&&(m.propertyName=c[d]),p.hasOwnProperty(d)&&(m.mutationMethod=p[d]),s.properties[d]=m}}},a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\uB7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:"production"!==t.env.NODE_ENV?{}:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:i};e.exports=s}).call(t,n(1))},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){(function(t){"use strict";var r=n(2),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},l=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},u=function(e){var n=this;e instanceof n?void 0:"production"!==t.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):r(!1),e.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(e)},c=10,p=o,d=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=u,n},f={addPoolingTo:d,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:l};e.exports=f}).call(t,n(1))},function(e,t,n){"use strict";function r(e){if(p){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)d(t,n[r],null);else null!=e.html?t.innerHTML=e.html:null!=e.text&&c(t,e.text)}}function o(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){p?e.children.push(t):e.node.appendChild(t.node)}function a(e,t){p?e.html=t:e.node.innerHTML=t}function s(e,t){p?e.text=t:c(e.node,t)}function l(e){return{node:e,children:[],html:null,text:null}}var u=n(44),c=n(86),p="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),d=u(function(e,t,n){11===t.node.nodeType?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});l.insertTreeBefore=d,l.replaceChildWithTree=o,l.queueChild=i,l.queueHTML=a,l.queueText=s,e.exports=l},function(e,t,n){(function(t){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(160),i=n(27),a={mountComponent:function(e,n,o,a,s){var l=e.mountComponent(n,o,a,s);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),"production"!==t.env.NODE_ENV&&i.debugTool.onMountComponent(e),l},getNativeNode:function(e){return e.getNativeNode()},unmountComponent:function(e,n){o.detachRefs(e,e._currentElement),e.unmountComponent(n),"production"!==t.env.NODE_ENV&&i.debugTool.onUnmountComponent(e)},receiveComponent:function(e,n,a,s){var l=e._currentElement;if(n!==l||s!==e._context){var u=o.shouldUpdateRefs(l,n);u&&o.detachRefs(e,l),e.receiveComponent(n,a,s),u&&e._currentElement&&null!=e._currentElement.ref&&a.getReactMountReady().enqueue(r,e),"production"!==t.env.NODE_ENV&&i.debugTool.onUpdateComponent(e)}},performUpdateIfNecessary:function(e,n){e.performUpdateIfNecessary(n),"production"!==t.env.NODE_ENV&&i.debugTool.onUpdateComponent(e)}};e.exports=a}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(25),o=n(36),i=n(39),a=n(80),s=n(81),l=n(2),u={},c=null,p=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return p(e,!0)},f=function(e){return p(e,!1)},h={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(e,n,o){"function"!=typeof o?"production"!==t.env.NODE_ENV?l(!1,"Expected %s listener to be a function, instead got type %s",n,typeof o):l(!1):void 0;var i=u[n]||(u[n]={});i[e._rootNodeID]=o;var a=r.registrationNameModules[n];a&&a.didPutListener&&a.didPutListener(e,n,o)},getListener:function(e,t){var n=u[t];return n&&n[e._rootNodeID]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=u[t];o&&delete o[e._rootNodeID]},deleteAllListeners:function(e){for(var t in u)if(u[t][e._rootNodeID]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete u[t][e._rootNodeID]}},extractEvents:function(e,t,n,o){for(var i,s=r.plugins,l=0;l<s.length;l++){var u=s[l];if(u){var c=u.extractEvents(e,t,n,o);c&&(i=a(i,c))}}return i},enqueueEvents:function(e){e&&(c=a(c,e))},processEventQueue:function(e){var n=c;c=null,e?s(n,d):s(n,f),c?"production"!==t.env.NODE_ENV?l(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):l(!1):void 0,i.rethrowCaughtError()},__purge:function(){u={}},__getListenerBank:function(){return u}};e.exports=h}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return C(e,r)}function o(e,n,o){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?y(e,"Dispatching inst must not be null"):void 0);var i=n?b.bubbled:b.captured,a=r(e,o,i);a&&(o._dispatchListeners=v(o._dispatchListeners,a),o._dispatchInstances=v(o._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(e._targetInst,o,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?m.getParentInstance(t):null;m.traverseTwoPhase(n,o,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=C(e,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,e))}}function l(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){g(e,i)}function c(e){g(e,a)}function p(e,t,n,r){m.traverseEnterLeave(n,r,s,e,t)}function d(e){g(e,l)}var f=n(11),h=n(19),m=n(36),v=n(80),g=n(81),y=n(3),b=f.PropagationPhases,C=h.getListener,E={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};e.exports=E}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(12),i=n(47),a={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),e.exports=r},function(e,t,n){!function(t){e.exports=t()}(function(){"use strict";function e(n,r){if(!(this instanceof e))return new e(n,r);this.options=r=r?Uo(r):{},Uo(ea,r,!1),f(r);var o=r.value;"string"==typeof o&&(o=new Na(o,r.mode,null,r.lineSeparator)),this.doc=o;var i=new e.inputStyles[r.inputStyle](this),a=this.display=new t(n,o,i);a.wrapper.CodeMirror=this,u(this),s(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),r.autofocus&&!Mi&&a.input.focus(),g(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new _o,keySeq:null,specialChars:null};var l=this;bi&&Ci<11&&setTimeout(function(){l.display.input.reset(!0)},20),zt(this),Zo(),Ct(this),this.curOp.forceUpdate=!0,Zr(this,o),r.autofocus&&!Mi||l.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 p=0;p<aa.length;++p)aa[p](this);wt(this),Ei&&r.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function t(e,t,n){var r=this;this.input=n,r.scrollbarFiller=Bo("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=Bo("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=Bo("div",null,"CodeMirror-code"),r.selectionDiv=Bo("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=Bo("div",null,"CodeMirror-cursors"),r.measure=Bo("div",null,"CodeMirror-measure"),r.lineMeasure=Bo("div",null,"CodeMirror-measure"),r.lineSpace=Bo("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none"),r.mover=Bo("div",[Bo("div",[r.lineSpace],"CodeMirror-lines")],null,"position: relative"),r.sizer=Bo("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=Bo("div",null,null,"position: absolute; height: "+Pa+"px; width: 1px;"),r.gutters=Bo("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=Bo("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=Bo("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),bi&&Ci<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),Ei||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&&Pt(e)}function o(e){e.options.lineWrapping?(Xa(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Qa(e.display.wrapper,"CodeMirror-wrap"),d(e)),a(e),Pt(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;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*t:i+t}}function a(e){var t=e.doc,n=i(e);t.iter(function(e){var t=n(e);t!=e.height&&eo(e,t)})}function s(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),st(e)}function l(e){u(e),Pt(e),setTimeout(function(){E(e)},20)}function u(e){var t=e.display.gutters,n=e.options.gutters;Ko(t);for(var r=0;r<n.length;++r){var o=n[r],i=t.appendChild(Bo("div",null,"CodeMirror-gutter "+o));"CodeMirror-linenumbers"==o&&(e.display.lineGutter=i,i.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",c(e)}function c(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function p(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=mr(r);){var o=t.find(0,!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=e;t=vr(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function d(e){var t=e.display,n=e.doc;t.maxLine=Qr(n,n.first),t.maxLineLength=p(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=p(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function f(e){var t=Lo(e.gutters,"CodeMirror-linenumbers");t==-1&&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+Ke(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=Bo("div",[Bo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Bo("div",[Bo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Da(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Da(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,bi&&Ci<8&&(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),Da(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&&Xa(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;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&_(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 C(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Be(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,l=n.ensure.to.line;s<i?(i=s,a=no(t,ro(Qr(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(i=no(t,ro(Qr(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function E(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=N(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&n[a].gutter&&(n[a].gutter.style.left=i);var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function w(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=x(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(Bo("div",[Bo("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",c(e),!0}return!1}function x(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function N(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function k(e,t,n){var r=e.display;this.viewport=t,this.visible=C(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Je(e),this.force=n,this.dims=I(e),this.events=[]}function O(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=qe(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=qe(e)+"px",t.scrollbarsClipped=!0)}function S(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Vt(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==jt(e))return!1;w(e)&&(Vt(e),t.dims=I(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.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Vi&&(i=Cr(e.doc,i),a=Er(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 l=jt(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=qo();return l>4&&(n.lineDiv.style.display="none"),L(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,u&&qo()!=u&&u.offsetHeight&&u.focus(),Ko(n.cursorDiv),Ko(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 T(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Je(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ke(e.display)-Ge(e),n.top)}),t.visible=C(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&S(e,t);r=!1){_(e);var o=h(e);Le(e),y(e,o),D(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 k(e,t);if(S(e,n)){_(e),T(e,n);var r=h(e);Le(e),y(e,r),D(e,r),n.finish()}}function D(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 _(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var o,i=t.view[r];if(!i.hidden){if(bi&&Ci<8){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 l=i.line.height-o;if(o<2&&(o=yt(t)),(l>.001||l<-.001)&&(eo(i.line,o),R(i.line),i.rest))for(var u=0;u<i.rest.length;u++)R(i.rest[u])}}}function R(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function I(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a)n[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,r[e.options.gutters[a]]=i.clientWidth;return{fixedPos:N(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function L(e,t,n){function r(t){var n=t.nextSibling;return Ei&&Di&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,i=e.options.lineNumbers,a=o.lineDiv,s=a.firstChild,l=o.view,u=o.viewFrom,c=0;c<l.length;c++){var p=l[c];if(p.hidden);else if(p.node&&p.node.parentNode==a){for(;s!=p.node;)s=r(s);var d=i&&null!=t&&t<=u&&p.lineNumber;p.changes&&(Lo(p.changes,"gutter")>-1&&(d=!1),P(e,p,u,n)),d&&(Ko(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(x(e.options,u)))),s=p.node.nextSibling}else{var f=B(e,p,u,n);a.insertBefore(f,s)}u+=p.size}for(;s;)s=r(s)}function P(e,t,n,r){for(var o=0;o<t.changes.length;o++){var i=t.changes[o];"text"==i?W(e,t):"gutter"==i?j(e,t,n,r):"class"==i?F(t):"widget"==i&&z(e,t,r)}t.changes=null}function A(e){return e.node==e.text&&(e.node=Bo("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),bi&&Ci<8&&(e.node.style.zIndex=2)),e.node}function V(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=A(e);e.background=n.insertBefore(Bo("div",null,t),n.firstChild)}}function U(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Ur(e,t)}function W(e,t){var n=t.text.className,r=U(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){V(e),e.line.wrapClass?A(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 j(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=A(t);t.gutterBackground=Bo("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=A(t),a=t.gutter=Bo("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(Bo("div",x(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.options.gutters.length;++s){var l=e.options.gutters[s],u=i.hasOwnProperty(l)&&i[l];u&&a.appendChild(Bo("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function z(e,t,n){t.alignable&&(t.alignable=null);for(var r,o=t.node.firstChild;o;o=r){var r=o.nextSibling;"CodeMirror-linewidget"==o.className&&t.node.removeChild(o)}K(e,t,n)}function B(e,t,n,r){var o=U(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),F(t),j(e,t,n,r),K(e,t,r),t.node}function K(e,t,n){if(H(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)H(e,t.rest[r],t,n,!1)}function H(e,t,n,r,o){if(t.widgets)for(var i=A(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=Bo("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),q(l,u,n,r),e.display.input.setUneditable(u),o&&l.above?i.insertBefore(u,n.gutter||n.text):i.appendChild(u),ko(l,"redraw")}}function q(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function J(e){return Ui(e.line,e.ch)}function G(e,t){return Wi(e,t)<0?t:e}function Y(e,t){return Wi(e,t)<0?e:t}function Z(e){e.state.focused||(e.display.input.focus(),gn(e))}function Q(e,t,n,r,o){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var a=e.state.pasteIncoming||"paste"==o,s=i.splitLines(t),l=null;if(a&&r.ranges.length>1)if(Fi&&Fi.text.join("\n")==t){if(r.ranges.length%Fi.text.length==0){l=[];for(var u=0;u<Fi.text.length;u++)l.push(i.splitLines(Fi.text[u]))}}else s.length==r.ranges.length&&(l=Po(s,function(e){return[e]}));for(var u=r.ranges.length-1;u>=0;u--){var c=r.ranges[u],p=c.from(),d=c.to();c.empty()&&(n&&n>0?p=Ui(p.line,p.ch-n):e.state.overwrite&&!a?d=Ui(d.line,Math.min(Qr(i,d.line).text.length,d.ch+Io(s).length)):Fi&&Fi.lineWise&&Fi.text.join("\n")==t&&(p=d=Ui(p.line,0)));var f=e.curOp.updateInput,h={from:p,to:d,text:l?l[u%l.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};On(e.doc,h),ko(e,"inputRead",e,h)}t&&!a&&$(e,t),Un(e),e.curOp.updateInput=f,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function X(e,t){var n=e.clipboardData&&e.clipboardData.getData("text/plain");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Mt(t,function(){Q(t,n,0,null,"paste")}),!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<i.electricChars.length;s++)if(t.indexOf(i.electricChars.charAt(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&&ko(e,"electricInput",e,o.head.line)}}}function ee(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,i={anchor:Ui(o,0),head:Ui(o+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function te(e){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck","false")}function ne(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new _o,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null}function re(){var e=Bo("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none"),t=Bo("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ei?e.style.width="1000px":e.setAttribute("wrap","off"),Ti&&(e.style.border="1px solid black"),te(e),t}function oe(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _o,this.gracePeriod=!1}function ie(e,t){var n=$e(e,t.line);if(!n||n.hidden)return null;var r=Qr(e.doc,t.line),o=Ze(n,r,t.line),i=oo(r),a="left";if(i){var s=ci(i,t.ch);a=s%2?"right":"left"}var l=nt(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function ae(e,t){return t&&(e.bad=!0),e}function se(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return ae(e.clipPos(Ui(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var i=e.display.view[o];if(i.node==r)return le(i,t,n)}}function le(e,t,n){function r(t,n,r){for(var o=-1;o<(c?c.length:0);o++)for(var i=o<0?u.map:c[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==t||s==n){var l=to(o<0?e.line:e.rest[o]),p=i[a]+r;return(r<0||s!=t)&&(p=i[a+(r?1:0)]),Ui(l,p)}}}var o=e.text.firstChild,i=!1;if(!t||!Ga(o,t))return ae(Ui(to(e.line),0),!0);if(t==o&&(i=!0,t=o.childNodes[n],n=0,!t)){var a=e.rest?Io(e.rest):e.line;return ae(Ui(to(a),a.text.length),i)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=o;)l=l.parentNode;var u=e.measure,c=u.maps,p=r(s,l,n);if(p)return ae(p,i);for(var d=l.nextSibling,f=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(p=r(d,d.firstChild,0))return ae(Ui(p.line,p.ch-f),i);f+=d.textContent.length}for(var h=l.previousSibling,f=n;h;h=h.previousSibling){if(p=r(h,h.firstChild,-1))return ae(Ui(p.line,p.ch+f),i);f+=d.textContent.length}}function ue(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,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(Ui(r,0),Ui(o+1,0),i(+p));return void(d.length&&(c=d[0].find())&&(s+=Xr(e.doc,c.from,c.to).join(u)))}if("false"==t.getAttribute("contenteditable"))return;for(var f=0;f<t.childNodes.length;f++)a(t.childNodes[f]);/^(pre|div|p)$/i.test(t.nodeName)&&(l=!0)}else if(3==t.nodeType){var h=t.nodeValue;if(!h)return;l&&(s+=u,l=!1),s+=h}}for(var s="",l=!1,u=e.doc.lineSeparator();a(t),t!=n;)t=t.nextSibling;return s}function ce(e,t){this.ranges=e,this.primIndex=t}function pe(e,t){this.anchor=e,this.head=t}function de(e,t){var n=e[t];e.sort(function(e,t){return Wi(e.from(),t.from())}),t=Lo(e,n);for(var r=1;r<e.length;r++){var o=e[r],i=e[r-1];if(Wi(i.to(),o.from())>=0){var a=Y(i.from(),o.from()),s=G(i.to(),o.to()),l=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new pe(l?s:a,l?a:s))}}return new ce(e,t)}function fe(e,t){return new ce([new pe(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.line<e.first)return Ui(e.first,0);var n=e.first+e.size-1;return t.line>n?Ui(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?Ui(e.line,t):n<0?Ui(e.line,0):e}function ge(e,t){return t>=e.first&&t<e.first+e.size}function ye(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=me(e,t[r]);return n}function be(e,t,n,r){if(e.cm&&e.cm.display.shift||e.extend){var o=t.anchor;if(r){var i=Wi(n,o)<0;i!=Wi(r,o)<0?(o=n,n=r):i!=Wi(n,r)<0&&(n=r)}return new pe(o,n)}return new pe(r||n,n)}function Ce(e,t,n,r){Oe(e,new ce([be(e,e.sel.primary(),t,n)],0),r)}function Ee(e,t,n){for(var r=[],o=0;o<e.sel.ranges.length;o++)r[o]=be(e,e.sel.ranges[o],t[o],null);var i=de(r,e.sel.primIndex);Oe(e,i,n)}function we(e,t,n,r){var o=e.sel.ranges.slice(0);o[t]=n,Oe(e,de(o,e.sel.primIndex),r)}function xe(e,t,n,r){Oe(e,fe(t,n),r)}function Ne(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new pe(me(e,t[n].anchor),me(e,t[n].head))},origin:n&&n.origin};return Ia(e,"beforeSelectionChange",e,r),e.cm&&Ia(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?de(r.ranges,r.ranges.length-1):t}function ke(e,t,n){var r=e.history.done,o=