forgeplus-react/node_modules/draft-js/dist/Draft.min.js

20 lines
144 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Draft v0.10.5
*
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("immutable"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["immutable","react","react-dom"],e):"object"==typeof exports?exports.Draft=e(require("immutable"),require("react"),require("react-dom")):t.Draft=e(t.Immutable,t.React,t.ReactDOM)}(this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(64),o=n(17),i=n(5),s=n(65),a=n(12),c=n(25),u=n(26),l=n(39),f=n(67),p=n(40),d=n(22),g=n(4),h=n(41),y=n(3),m=n(27),v=n(44),b=n(15),S=n(86),w=n(45),x=n(87),C=n(10),k=n(46),E=n(110),O={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:s,Entity:d,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:a,ContentState:c,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:g,RichUtils:v,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:w,convertFromRaw:x,convertToRaw:S,genKey:C,getDefaultKeyBinding:k,getVisibleSelectionRect:E};t.exports=O},function(t,e,n){"use strict";function r(t,e,n,r,i,s,a,c){var u,l,f;if(o(e),!t)throw void 0===e?u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(l=[n,r,i,s,a,c],f=0,u=new Error(e.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"),u.framesToPop=1,u}var o=function(t){};t.exports=r},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return k.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(t,e){return t.getBlockMap().map(function(n){return g.generate(t,n,e)}).toOrderedMap()}function s(t,e,n,r){var o=t.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),s=t.getImmutable().get("treeMap");return s.merge(e.toSeq().filter(function(t,e){return t!==i.get(e)}).map(function(t){return g.generate(o,t,r)}))}function a(t,e,n,r,o){return n.merge(e.toSeq().filter(function(e){return r.getDecorations(e,t)!==o.getDecorations(e,t)}).map(function(e){return g.generate(t,e,r)}))}function c(t,e){var n=t.getLastChangeType();return e!==n||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function u(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):f(t,n)}function l(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):f(t,n)}function f(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):b()}var p=n(7),d=p||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=n(38),h=n(25),y=n(81),m=n(2),v=n(15),b=m.OrderedSet,S=m.Record,w=m.Stack,x={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:w(),selection:null,treeMap:null,undoStack:w()},C=S(x),k=function(){function t(e){r(this,t),this._immutable=e}return t.createEmpty=function(e){return t.createWithContent(h.createFromText(""),e)},t.createWithContent=function(e,n){var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:w(),redoStack:w(),decorator:n||null,selection:v.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=e.decorator,o=d({},e,{treeMap:i(n,r),directionMap:y.getDirectionMap(n)});return new t(new C(o))},t.set=function(e,n){var r=e.getImmutable().withMutations(function(t){var r,o,c,u,l=t.get("decorator"),f=l;return null===n.decorator?f=null:n.decorator&&(f=n.decorator),r=n.currentContent||e.getCurrentContent(),f!==l?(o=t.get("treeMap"),c=f&&l?a(r,r.getBlockMap(),o,f,l):i(r,f),void t.merge({decorator:f,treeMap:c,nativelyRenderedContent:null})):(u=e.getCurrentContent(),r!==u&&t.set("treeMap",s(e,r.getBlockMap(),r.getEntityMap(),f)),void t.merge(n))});return new t(r)},t.prototype.toJS=function(){return this.getImmutable().toJS()},t.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.prototype.getSelection=function(){return this.getImmutable().get("selection")},t.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},t.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},t.prototype.getCurrentInlineStyle=function(){var t,e,n=this.getInlineStyleOverride();return null!=n?n:(t=this.getCurrentContent(),e=this.getSelection(),e.isCollapsed()?u(t,e):l(t,e))},t.prototype.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.prototype.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.prototype.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent(),e=t.getBlockMap(),n=e.last(),r=n.getLength();return this.getSelection().hasEdgeWithin(n.getKey(),r,r)},t.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(t,e){return o(t,e,!1)},t.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),o(t,e,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent(),r=n.getLastBlock(),o=r.getKey(),i=r.getLength();return t.acceptSelection(e,new v({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o,i,s,a,u,l,f,p,d;return e.getCurrentContent()===n?e:(o="insert-characters"!==r,i=y.getDirectionMap(n,e.getDirectionMap()),e.getAllowUndo()?(s=e.getSelection(),a=e.getCurrentContent(),u=e.getUndoStack(),l=n,s!==a.getSelectionAfter()||c(e,r)?(u=u.push(a),l=l.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",a.getSelectionBefore())),f=e.getInlineStyleOverride(),p=["adjust-depth","change-block-type","split-block"],p.indexOf(r)===-1&&(f=null),d={currentContent:l,directionMap:i,undoStack:u,redoStack:w(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f},t.set(e,d)):t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null}))},t.undo=function(e){var n,r,o,i;return e.getAllowUndo()?(n=e.getUndoStack(),(r=n.peek())?(o=e.getCurrentContent(),i=y.getDirectionMap(r,e.getDirectionMap()),t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})):e):e},t.redo=function(e){var n,r,o,i;return e.getAllowUndo()?(n=e.getRedoStack(),(r=n.peek())?(o=e.getCurrentContent(),i=y.getDirectionMap(r,e.getDirectionMap()),t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})):e):e},t.prototype.getImmutable=function(){return this._immutable},t}();t.exports=k},function(t,e,n){"use strict";var r=n(5),o=n(66),i=n(11),s=n(2),a=n(85),c=n(106),u=n(24),l=n(111),f=n(112),p=n(1),d=n(123),g=n(59),h=n(125),y=n(127),m=s.OrderedSet,v={replaceText:function(t,e,n,o,i){var s=g(t,e),a=h(s,e),c=r.create({style:o||m(),entity:i||null});return f(a,a.getSelectionAfter(),n,c)},insertText:function(t,e,n,r,o){return e.isCollapsed()?void 0:p(!1),v.replaceText(t,e,n,r,o)},moveText:function(t,e,n){var r=u(t,e),o=v.removeRange(t,e,"backward");return v.replaceWithFragment(o,n,r)},replaceWithFragment:function(t,e,n){var r=g(t,e),o=h(r,e);return l(o,o.getSelectionAfter(),n)},removeRange:function(t,e,n){var r,o,s,a,u,l,f,p=void 0,d=void 0,y=void 0,m=void 0;return e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),p=e.getAnchorKey(),d=e.getFocusKey(),y=t.getBlockForKey(p),m=t.getBlockForKey(d),r=e.getStartOffset(),o=e.getEndOffset(),s=y.getEntityAt(r),a=m.getEntityAt(o-1),p===d&&s&&s===a?(u=c(t.getEntityMap(),y,m,e,n),h(t,u)):(l=e,i.draft_segmented_entities_behavior&&(l=c(t.getEntityMap(),y,m,e,n)),f=g(t,l),h(f,l))},splitBlock:function(t,e){var n=g(t,e),r=h(n,e);return y(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return o.add(t,e,n)},removeInlineStyle:function(t,e,n){return o.remove(t,e,n)},setBlockType:function(t,e,n){return d(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return d(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return d(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var r=g(t,e);return a(r,e,n)}};t.exports=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(2),a=s.Map,c=s.OrderedSet,u=s.Record,l=c(),f={style:l,entity:null},p=u(f),d=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getStyle=function(){return this.get("style")},e.prototype.getEntity=function(){return this.get("entity")},e.prototype.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,n){var r=t.set("style",t.getStyle().add(n));return e.create(r)},e.removeStyle=function(t,n){var r=t.set("style",t.getStyle().remove(n));return e.create(r)},e.applyEntity=function(t,n){var r=t.getEntity()===n?t:t.set("entity",n);return e.create(r)},e.create=function(t){var n,r,o,i;return t?(n={style:l,entity:null},r=a(n).merge(t),(o=h.get(r))?o:(i=new e(r),h=h.set(r,i),i)):g},e}(p),g=new d,h=a([[a(f),g]]);d.EMPTY=g,t.exports=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(5),a=n(2),c=n(18),u=a.List,l=a.Map,f=a.OrderedSet,p=a.Record,d=a.Repeat,g=f(),h={parent:null,characterList:u(),data:l(),depth:0,key:"",text:"",type:"unstyled",children:u(),prevSibling:null,nextSibling:null},y=function(t,e){return t.getStyle()===e.getStyle()},m=function(t,e){return t.getEntity()===e.getEntity()},v=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=u(d(s.EMPTY,n.length))),t},b=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return r(this,e),o(this,t.call(this,v(n)))}return i(e,t),e.prototype.getKey=function(){return this.get("key")},e.prototype.getType=function(){return this.get("type")},e.prototype.getText=function(){return this.get("text")},e.prototype.getCharacterList=function(){return this.get("characterList")},e.prototype.getLength=function(){return this.getText().length},e.prototype.getDepth=function(){return this.get("depth")},e.prototype.getData=function(){return this.get("data")},e.prototype.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():g},e.prototype.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},e.prototype.getChildKeys=function(){return this.get("children")},e.prototype.getParentKey=function(){return this.get("parent")},e.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},e.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},e.prototype.findStyleRanges=function(t,e){c(this.getCharacterList(),y,t,e)},e.prototype.findEntityRanges=function(t,e){c(this.getCharacterList(),m,t,e)},e}(p(h));t.exports=b},function(t,e){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){var t,e,n,r,o;try{if(!Object.assign)return!1;if(t=new String("abc"),t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;return r=Object.getOwnPropertyNames(e).map(function(t){return e[t]}),"0123456789"===r.join("")&&(o={},"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(t){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){var r,a,c,u,l,f=n(t);for(c=1;c<arguments.length;c++){r=Object(arguments[c]);for(u in r)i.call(r,u)&&(f[u]=r[u]);if(o)for(a=o(r),l=0;l<a.length;l++)s.call(r,a[l])&&(f[a[l]]=r[a[l]])}return f}},function(t,e){"use strict";var n=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")};t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var o=n.slice(t.length);return!!e&&(o=r?r(o):o,s.contains(o,e))}function o(t){return"Windows"===i.platformName?t.replace(/^\s*NT/,""):t}var i=n(133),s=n(134),a=n(147),c=n(148),u={isBrowser:function(t){return r(i.browserName,i.browserFullVersion,t)},isBrowserArchitecture:function(t){return r(i.browserArchitecture,null,t)},isDevice:function(t){return r(i.deviceName,null,t)},isEngine:function(t){return r(i.engineName,i.engineVersion,t)},isPlatform:function(t){return r(i.platformName,i.platformFullVersion,t,o)},isPlatformArchitecture:function(t){return r(i.platformArchitecture,null,t)}};t.exports=a(u,c)},function(t,e){"use strict";function n(){for(var t=void 0;void 0===t||r.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*o).toString(32);return r[t]=!0,t}var r={},o=Math.pow(2,24);t.exports=n},function(t,e,n){"use strict";var r=n(77);t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){return t.getStyle()===e.getStyle()}function a(t,e){return t.getEntity()===e.getEntity()}var c=n(5),u=n(2),l=n(18),f=u.List,p=u.Map,d=u.OrderedSet,g=u.Record,h=u.Repeat,y=d(),m={key:"",type:"unstyled",text:"",characterList:f(),depth:0,data:p()},v=g(m),b=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=f(h(c.EMPTY,n.length))),t},S=function(t){function e(n){return r(this,e),o(this,t.call(this,b(n)))}return i(e,t),e.prototype.getKey=function(){return this.get("key")},e.prototype.getType=function(){return this.get("type")},e.prototype.getText=function(){return this.get("text")},e.prototype.getCharacterList=function(){return this.get("characterList")},e.prototype.getLength=function(){return this.getText().length},e.prototype.getDepth=function(){return this.get("depth")},e.prototype.getData=function(){return this.get("data")},e.prototype.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():y},e.prototype.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},e.prototype.findStyleRanges=function(t,e){l(this.getCharacterList(),s,t,e)},e.prototype.findEntityRanges=function(t,e){l(this.getCharacterList(),a,t,e)},e}(v);t.exports=S},function(t,e,n){"use strict";function r(t){return p<=t&&t<=h}function o(t,e){var n,r;return 0<=e&&e<t.length?void 0:f(!1),e+1!==t.length&&(n=t.charCodeAt(e),r=t.charCodeAt(e+1),p<=n&&n<=d&&g<=r&&r<=h)}function i(t){return y.test(t)}function s(t,e){return 1+r(t.charCodeAt(e))}function a(t){var e,n;if(!i(t))return t.length;for(e=0,n=0;n<t.length;n+=s(t,n))e++;return e}function c(t,e,n){var r,o,a;if(e=e||0,n=void 0===n?1/0:n||0,!i(t))return t.substr(e,n);if(r=t.length,r<=0||e>r||n<=0)return"";if(o=0,e>0){for(;e>0&&o<r;e--)o+=s(t,o);if(o>=r)return""}else if(e<0){for(o=r;e<0&&0<o;e++)o-=s(t,o-1);o<0&&(o=0)}if(a=r,n<r)for(a=o;n>0&&a<r;n--)a+=s(t,a);return t.substring(o,a)}function u(t,e,n){e=e||0,n=void 0===n?1/0:n||0,e<0&&(e=0),n<0&&(n=0);var r=Math.abs(n-e);return e=e<n?e:n,c(t,e,r)}function l(t){var e,n=[];for(e=0;e<t.length;e+=s(t,e))n.push(t.codePointAt(e));return n}var f=n(1),p=55296,d=56319,g=56320,h=57343,y=/[\uD800-\uDFFF]/,m={getCodePoints:l,getUTF16Length:s,hasSurrogateUnit:i,isCodeUnitInSurrogateRange:r,isSurrogatePair:o,strlen:a,substring:u,substr:c};t.exports=m},function(t,n){t.exports=e},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(2),a=s.Record,c={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},u=a(c),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},e.prototype.getAnchorKey=function(){return this.get("anchorKey")},e.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},e.prototype.getFocusKey=function(){return this.get("focusKey")},e.prototype.getFocusOffset=function(){return this.get("focusOffset")},e.prototype.getIsBackward=function(){return this.get("isBackward")},e.prototype.getHasFocus=function(){return this.get("hasFocus")},e.prototype.hasEdgeWithin=function(t,e,n){var r,o,i,s=this.getAnchorKey(),a=this.getFocusKey();return s===a&&s===t?(r=this.getStartOffset(),o=this.getEndOffset(),e<=o&&r<=n):(t===s||t===a)&&(i=t===s?this.getAnchorOffset():this.getFocusOffset(),e<=i&&n>=i)},e.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},e.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},e.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},e.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},e.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}(u);t.exports=l},function(t,e){"use strict";function n(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(r).join(" "):Array.prototype.map.call(arguments,r).join(" ")}function r(t){return t.replace(/\//g,"-")}t.exports=n},function(t,e,n){"use strict";var r=n(2),o=r.OrderedMap,i={createFromArray:function(t){return o(t.map(function(t){return[t.getKey(),t]}))}};t.exports=i},function(t,e){"use strict";function n(t,e,n,r){if(t.size){var o=0;t.reduce(function(t,i,s){return e(t,i)||(n(t)&&r(o,s),o=s),i}),n(t.last())&&r(o,t.count())}}t.exports=n},function(t,e){"use strict";function n(t){return"handled"===t||t===!0}t.exports=n},function(t,e,n){"use strict";function r(t,e,n){var r=t.getSelection(),i=t.getCurrentContent(),s=r;if(r.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return i}else if(t.isSelectionAtStartOfContent())return i;if(s=e(t),s===r)return i}return o.removeRange(i,s,n)}var o=n(4);t.exports=r},function(t,e){t.exports=n},function(t,e,n){"use strict";function r(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var o=n(7),i=o||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(41),a=n(2),c=n(1),u=a.Map,l=u(),f=0,p={getLastCreatedEntityKey:function(){return r("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(t,e,n){return r("DraftEntity.create","contentState.createEntity"),p.__create(t,e,n)},add:function(t){return r("DraftEntity.add","contentState.addEntity"),p.__add(t)},get:function(t){return r("DraftEntity.get","contentState.getEntity"),p.__get(t)},mergeData:function(t,e){return r("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(t,e)},replaceData:function(t,e){return r("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return""+f},__create:function(t,e,n){return p.__add(new s({type:t,mutability:e,data:n||{}}))},__add:function(t){var e=""+ ++f;return l=l.set(e,t),e},__get:function(t){var e=l.get(t);return e?void 0:c(!1),e},__mergeData:function(t,e){var n=p.__get(t),r=i({},n.getData(),e),o=n.set("data",r);return l=l.set(t,o),o},__replaceData:function(t,e){var n=p.__get(t),r=n.set("data",e);return l=l.set(t,r),r}};t.exports=p},function(t,e){"use strict";var n="-",r={encode:function(t,e,r){return t+n+e+n+r},decode:function(t){var e=t.split(n),r=e[0],o=e[1],i=e[2];return{blockKey:r,decoratorKey:parseInt(o,10),leafKey:parseInt(i,10)}}};t.exports=r},function(t,e,n){"use strict";var r=n(58),o=n(59),i=function(t,e){var n=e.getStartKey(),i=e.getStartOffset(),s=e.getEndKey(),a=e.getEndOffset(),c=o(t,e),u=c.getBlockMap(),l=u.keySeq(),f=l.indexOf(n),p=l.indexOf(s)+1;return r(u.slice(f,p).map(function(t,e){var r=t.getText(),o=t.getCharacterList();return n===s?t.merge({text:r.slice(i,a),characterList:o.slice(i,a)}):e===n?t.merge({text:r.slice(i),characterList:o.slice(i)}):e===s?t.merge({text:r.slice(0,a),characterList:o.slice(0,a)}):t}))};t.exports=i},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(17),a=n(5),c=n(12),u=n(6),l=n(22),f=n(11),p=n(2),d=n(15),g=n(10),h=n(31),y=p.List,m=p.Record,v=p.Repeat,b=f.draft_tree_data_support,S={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},w=b?u:c,x=m(S),C=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getEntityMap=function(){return l},e.prototype.getBlockMap=function(){return this.get("blockMap")},e.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},e.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},e.prototype.getBlockForKey=function(t){var e=this.getBlockMap().get(t);return e},e.prototype.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},e.prototype.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},e.prototype.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,n){return n===t}).skip(1).first()},e.prototype.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).first()},e.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},e.prototype.getFirstBlock=function(){return this.getBlockMap().first()},e.prototype.getLastBlock=function(){return this.getBlockMap().last()},e.prototype.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},e.prototype.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},e.prototype.hasText=function(){var t=this.getBlockMap();return t.size>1||t.first().getLength()>0},e.prototype.createEntity=function(t,e,n){return l.__create(t,e,n),this},e.prototype.mergeEntityData=function(t,e){return l.__mergeData(t,e),this},e.prototype.replaceEntityData=function(t,e){return l.__replaceData(t,e),this},e.prototype.addEntity=function(t){return l.__add(t),this},e.prototype.getEntity=function(t){return l.__get(t)},e.createFromBlockArray=function(t,n){var r=Array.isArray(t)?t:t.contentBlocks,o=s.createFromArray(r),i=o.isEmpty()?new d:d.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:n||l,selectionBefore:i,selectionAfter:i})},e.createFromText=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=t.split(n),o=r.map(function(t){return t=h(t),new w({key:g(),text:t,type:"unstyled",characterList:y(v(a.EMPTY,t.length))})});return e.createFromBlockArray(o)},e}(x);t.exports=C},function(t,e,n){"use strict";var r=n(2),o=r.Map,i=n(14),s=n(16),a=i.createElement("ul",{className:s("public/DraftStyleDefault/ul")}),c=i.createElement("ol",{className:s("public/DraftStyleDefault/ol")}),u=i.createElement("pre",{className:s("public/DraftStyleDefault/pre")}),l=o({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:a},"ordered-list-item":{element:"li",wrapper:c},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:u},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=l},function(t,e,n){"use strict";var r=n(9),o=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:i.isCtrlKeyCommand(t)}};t.exports=i},function(t,e,n){"use strict";function r(t){for(var e,n=t;n&&n!==document.documentElement;){if(e=o(n),null!=e)return e;n=n.parentNode}return null}var o=n(52);t.exports=r},function(t,e){"use strict";function n(t,e){var n,o,i,s,a,c;return e.isCollapsed()?(o=e.getAnchorKey(),i=e.getAnchorOffset(),i>0?(n=t.getBlockForKey(o).getEntityAt(i-1),n!==t.getBlockForKey(o).getEntityAt(i)?null:r(t.getEntityMap(),n)):null):(s=e.getStartKey(),a=e.getStartOffset(),c=t.getBlockForKey(s),n=a===c.getLength()?null:c.getEntityAt(a),r(t.getEntityMap(),n))}function r(t,e){if(e){var n=t.__get(e);return"MUTABLE"===n.getMutability()?e:null}return null}t.exports=n},function(t,e){"use strict";function n(t,e){var n,r,o=t.getSelection(),i=t.getCurrentContent(),s=o.getStartKey(),a=o.getStartOffset(),c=s,u=0;return e>a?(n=i.getKeyBefore(s),null==n?c=s:(c=n,r=i.getBlockForKey(n),u=r.getText().length)):u=a-e,o.merge({focusKey:c,focusOffset:u,isBackward:!0})}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"")}var r=new RegExp("\r","g");t.exports=n},function(t,e){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(t,e,n){"use strict";function r(t,e){var n=i.get(t,e);return"auto"===n||"scroll"===n}var o=n(140),i={get:o,getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},function(t,e,n){"use strict";function r(t){return t===f||t===p}function o(t){return r(t)?void 0:u(!1),t===f?"ltr":"rtl"}function i(t,e){return r(t)?void 0:u(!1),r(e)?void 0:u(!1),t===e?null:o(t)}function s(t){d=t}function a(){s(f)}function c(){return d||this.initGlobalDir(),d?void 0:u(!1),d}var u=n(1),l="NEUTRAL",f="LTR",p="RTL",d=null,g={NEUTRAL:l,LTR:f,RTL:p,isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:i,setGlobalDir:s,initGlobalDir:a,getGlobalDir:c};t.exports=g},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(145);t.exports=r},function(t,e){"use strict";function n(t){return function(){return t}}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(t){return t},t.exports=r},function(t,e,n){"use strict";function r(t){var e,n,r,s,a=o(t.ownerDocument||t.document);return t.Window&&t instanceof t.Window&&(t=a),e=i(t),n=t===a?t.ownerDocument.documentElement:t,r=t.scrollWidth-n.clientWidth,s=t.scrollHeight-n.clientHeight,e.x=Math.max(0,Math.min(e.x,r)),e.y=Math.max(0,Math.min(e.y,s)),e}var o=n(137),i=n(141);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=[],r=t.map(function(t){return t.getStyle()}).toList();return a(r,o,f,function(t,r){n.push(new g({start:t+e,end:r+e}))}),c(n)}function o(t,e){return t===e}var i=n(2),s=n(36),a=n(18),c=i.List,u=i.Repeat,l=i.Record,f=s.thatReturnsTrue,p="-",d={start:null,end:null},g=l(d),h={start:null,end:null,decoratorKey:null,leaves:null},y=l(h),m={generate:function(t,e,n){var i,s,l,p=e.getLength();return p?(i=[],s=n?n.getDecorations(e,t):c(u(null,p)),l=e.getCharacterList(),a(s,o,f,function(t,e){i.push(new y({start:t,end:e,decoratorKey:s.get(t),leaves:r(l.slice(t,e).toList(),t)}))}),c(i)):c.of(new y({start:0,end:0,decoratorKey:null,leaves:c.of(new g({start:0,end:0}))}))},getFingerprint:function(t){return t.map(function(t){var e=t.get("decoratorKey"),n=null!==e?e+"."+(t.get("end")-t.get("start")):"";return""+n+"."+t.get("leaves").size}).join(p)}};t.exports=m},function(t,e){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=s||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(73),u=n(23),l=n(14),f=n(21),p=n(61),d=n(33),g=n(62),h=n(34),y=n(16),m=n(138),v=n(37),b=n(142),S=n(1),w=n(8),x=10,C=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},k=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||C(t.selection,t.block.getKey())&&t.forceSelection},e.prototype.componentDidMount=function(){var t,e,n,r,o,i,s,a,c,u=this.props.selection,l=u.getEndKey();u.getHasFocus()&&l===this.props.block.getKey()&&(t=f.findDOMNode(this),e=d.getScrollParent(t),n=v(e),r=void 0,e===window?(o=m(t),i=o.y+o.height,s=b().height,r=i-s,r>0&&window.scrollTo(n.x,n.y+r+x)):(t instanceof HTMLElement?void 0:S(!1),a=t.offsetHeight+t.offsetTop,c=e.offsetHeight+n.y,r=a-c,r>0&&p.setTop(e,p.getTop(e)+r+x)))},e.prototype._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),r=e.getText(),o=this.props.tree.size-1,i=C(this.props.selection,n);return this.props.tree.map(function(s,f){var p,d,y,m,v,b,S=s.get("leaves"),x=S.size-1,C=S.map(function(s,a){var p=u.encode(n,f,a),d=s.get("start"),g=s.get("end");return l.createElement(c,{key:p,offsetKey:p,block:e,start:d,selection:i?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(d,g),styleSet:e.getInlineStyleAt(d),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:f===o&&a===x})}).toArray(),k=s.get("decoratorKey");return null==k?C:t.props.decorator?(p=w(t.props.decorator),(d=p.getComponentForKey(k))?(y=p.getPropsForKey(k),m=u.encode(n,f,0),v=r.slice(S.first().get("start"),S.last().get("end")),b=h.getHTMLDirIfDifferent(g.getDirection(v),t.props.direction),l.createElement(d,a({},y,{contentState:t.props.contentState,decoratedText:v,dir:b,key:m,entityKey:e.getEntityAt(s.get("start")),offsetKey:m}),C)):C):C}).toArray()},e.prototype.render=function(){var t=this.props,e=t.direction,n=t.offsetKey,r=y({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===e,"public/DraftStyleDefault/rtl":"RTL"===e});return l.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},e}(l.Component);t.exports=k},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(2),a=s.Record,c=a({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getType=function(){return this.get("type")},e.prototype.getMutability=function(){return this.get("mutability")},e.prototype.getData=function(){return this.get("data")},e}(c);t.exports=u},function(t,e,n){"use strict";function r(t,e){var n=e?f.exec(t):u.exec(t);return n?n[0]:t}var o=n(130),i=o.getPunctuation(),s="[']",a="\\s|(?![_])"+i,c="^(?:"+a+")*(?:"+s+"|(?!"+a+").)*(?:(?!"+a+").)",u=new RegExp(c),l="(?:(?!"+a+").)(?:"+s+"|(?!"+a+").)*(?:"+a+")*$",f=new RegExp(l),p={getBackward:function(t){return r(t,!0)},getForward:function(t){return r(t,!1)}};t.exports=p},function(t,e){"use strict";var n={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=n},function(t,e,n){"use strict";var r=n(4),o=n(3),i=(n(15),n(83)),s=n(8),a={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=o.push(t,e,"insert-characters");return o.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e,n,r,i,s,c,u=t.getSelection();return!u.isCollapsed()||u.getAnchorOffset()||u.getFocusOffset()?null:(e=t.getCurrentContent(),n=u.getStartKey(),r=e.getBlockBefore(n),r&&"atomic"===r.getType()&&(i=e.getBlockMap().delete(r.getKey()),s=e.merge({blockMap:i,selectionAfter:u}),s!==e)?o.push(t,s,"remove-range"):(c=a.tryToRemoveBlockStyle(t),c?o.push(t,c,"change-block-type"):null))},onDelete:function(t){var e,n,i,s,a,c,u,l=t.getSelection();return l.isCollapsed()?(e=t.getCurrentContent(),n=l.getStartKey(),i=e.getBlockForKey(n),s=i.getLength(),l.getStartOffset()<s?null:(a=e.getBlockAfter(n),a&&"atomic"===a.getType()?(c=l.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),u=r.removeRange(e,c,"forward"),u!==e?o.push(t,u,"remove-range"):null):null)):null},onTab:function(t,e,n){var r,s,a,c,u,l,f,p=e.getSelection(),d=p.getAnchorKey();return d!==p.getFocusKey()?e:(r=e.getCurrentContent(),s=r.getBlockForKey(d),a=s.getType(),"unordered-list-item"!==a&&"ordered-list-item"!==a?e:(t.preventDefault(),(c=r.getBlockBefore(d))?(u=c.getType(),"unordered-list-item"!==u&&"ordered-list-item"!==u?e:(l=s.getDepth(),t.shiftKey||l!==n?(n=Math.min(c.getDepth()+1,n),f=i(r,p,t.shiftKey?-1:1,n),o.push(e,f,"adjust-depth")):e)):e))},toggleBlockType:function(t,e){var n,i,a,c=t.getSelection(),u=c.getStartKey(),l=c.getEndKey(),f=t.getCurrentContent(),p=c;return u!==l&&0===c.getEndOffset()&&(n=s(f.getBlockBefore(l)),l=n.getKey(),p=p.merge({anchorKey:u,anchorOffset:c.getStartOffset(),focusKey:l,focusOffset:n.getLength(),isBackward:!1})),(i=f.getBlockMap().skipWhile(function(t,e){return e!==u}).reverse().skipWhile(function(t,e){return e!==l}).some(function(t){return"atomic"===t.getType()}))?t:(a=f.getBlockForKey(u).getType()===e?"unstyled":e,o.push(t,r.setBlockType(f,p,a),"change-block-type"))},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?a.toggleBlockType(t,"code-block"):a.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n,i,s=t.getSelection(),a=t.getCurrentInlineStyle();return s.isCollapsed()?o.setInlineStyleOverride(t,a.has(e)?a.remove(e):a.add(e)):(n=t.getCurrentContent(),i=a.has(e)?r.removeInlineStyle(n,s,e):r.applyInlineStyle(n,s,e),o.push(t,i,"change-inline-style"))},toggleLink:function(t,e,n){var i=r.applyEntity(t.getCurrentContent(),e,n);return o.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var e,n,o,i,s,a,c=t.getSelection(),u=c.getAnchorOffset();if(c.isCollapsed()&&0===u){if(e=c.getAnchorKey(),n=t.getCurrentContent(),o=n.getBlockForKey(e),i=n.getFirstBlock(),o.getLength()>0&&o!==i)return null;if(s=o.getType(),a=n.getBlockBefore(e),"code-block"===s&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==s)return r.setBlockType(n,c,"unstyled")}return null}};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,i=s||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(7),a=n(5),c=n(12),u=n(6),l=n(26),f=n(22),p=n(11),d=n(2),g=n(2),h=g.Set,y=n(131),m=n(16),v=n(10),b=n(51),S=n(1),w=n(31),x=p.draft_tree_data_support,C=d.List,k=d.OrderedSet,E="&nbsp;",O=" ",T=4,K=new RegExp("\r","g"),_=new RegExp("\n","g"),D=new RegExp(E,"g"),A=new RegExp("&#13;?","g"),M=new RegExp("&#8203;?","g"),B=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],R={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},N=(o={},r(o,m("public/DraftStyleDefault/depth0"),0),r(o,m("public/DraftStyleDefault/depth1"),1),r(o,m("public/DraftStyleDefault/depth2"),2),r(o,m("public/DraftStyleDefault/depth3"),3),r(o,m("public/DraftStyleDefault/depth4"),4),o),F=["className","href","rel","target","title"],I=["alt","className","height","src","width"],P=void 0,j={text:"",inlines:[],entities:[],blocks:[]},U={children:C(),depth:0,key:"",type:""},H=function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null},z=function(t){var e=t.get("unstyled").element,n=h([]);return t.forEach(function(t){t.aliasedElements&&t.aliasedElements.forEach(function(t){n=n.add(t)}),n=n.add(t.element)}),n.filter(function(t){return t&&t!==e}).toArray().sort()},W=function(t,e,n){var r,o;for(r=0;r<n.length;r++)if(o=n[r](t,e))return o;return null},V=function(t,e,n){var r=n.filter(function(e){return e.element===t||e.wrapper===t||e.aliasedElements&&e.aliasedElements.some(function(e){return e===t})}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return W(t,e,[H])||"unstyled"}},G=function(t,e,n){var r,o=R[t];return o?n=n.add(o).toOrderedSet():e instanceof HTMLElement&&(r=e,n=n.withMutations(function(t){var e=r.style.fontWeight,n=r.style.fontStyle,o=r.style.textDecoration;B.indexOf(e)>=0?t.add("BOLD"):L.indexOf(e)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===o&&t.add("UNDERLINE"),"line-through"===o&&t.add("STRIKETHROUGH"),"none"===o&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}).toOrderedSet()),n},q=function(t,e,n){var r=t.text.slice(-1),o=e.text.slice(0,1);if("\r"!==r||"\r"!==o||n||(t.text=t.text.slice(0,-1),t.inlines.pop(),t.entities.pop(),t.blocks.pop()),"\r"===r){if(e.text===O||"\n"===e.text)return t;o!==O&&"\n"!==o||(e.text=e.text.slice(1),e.inlines.shift(),e.entities.shift())}return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},X=function(t,e){return e.some(function(e){return t.indexOf("<"+e)!==-1})},J=function(t){t instanceof HTMLAnchorElement?void 0:S(!1);var e=t.protocol;return"http:"===e||"https:"===e||"mailto:"===e},$=function(t){var e=new Array(1);return t&&(e[0]=t),i({},j,{text:O,inlines:[k()],entities:e})},Y=function(){return i({},j,{text:"\n",inlines:[k()],entities:new Array(1)})},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i({},U,t)},Q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[k()],entities:new Array(1),blocks:[Z({parent:n,key:v(),type:t,depth:Math.max(0,Math.min(T,e))})]}},tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(N).some(function(n){t.classList.contains(n)&&(e=N[n])}),e},et=function t(e,n,r,o,s,a,c,u,l,p){var d,g,h,m,v,b,S,w,C,k,E,T,K,D,A=P,M=n.nodeName.toLowerCase(),B=e,L="unstyled",R=!1,N=s&&V(s,o,u),U=i({},j),H=null,z=void 0;if("#text"===M)return d=n.textContent,g=d.trim(),o&&""===g&&n.parentElement&&(h=n.parentElement.nodeName.toLowerCase(),"ol"===h||"ul"===h)?{chunk:i({},j),entityMap:e}:""===g&&"pre"!==s?{chunk:$(l),entityMap:e}:("pre"!==s&&(d=d.replace(_,O)),P=M,{chunk:{text:d,inlines:Array(d.length).fill(r),entities:Array(d.length).fill(l),blocks:[]},entityMap:e});if(P=M,"br"===M)return"br"!==A||s&&"unstyled"!==N?{chunk:Y(),entityMap:e}:{chunk:Q("unstyled",c,p),entityMap:e};for("img"===M&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value&&(m=n,v={},I.forEach(function(t){var e=m.getAttribute(t);e&&(v[t]=e)}),n.textContent="📷",l=f.__create("IMAGE","MUTABLE",v||{})),r=G(M,n,r),"ul"!==M&&"ol"!==M||(o&&(c+=1),o=M),!x&&"li"===M&&n instanceof HTMLElement&&(c=tt(n,c)),b=V(M,o,u),S=o&&"li"===s&&"li"===M,w=(!s||x)&&a.indexOf(M)!==-1,(S||w)&&(U=Q(b,c,p),
z=U.blocks[0].key,s=M,R=!x),S&&(L="ul"===o?"unordered-list-item":"ordered-list-item"),C=n.firstChild,null!=C&&(M=C.nodeName.toLowerCase()),k=null;C;)C instanceof HTMLAnchorElement&&C.href&&J(C)?!function(){var t=C,e={};F.forEach(function(n){var r=t.getAttribute(n);r&&(e[n]=r)}),e.url=new y(t.href).toString(),k=f.__create("LINK","MUTABLE",e||{})}():k=void 0,E=t(B,C,r,o,s,a,c,u,k||l,x?z:null),T=E.chunk,K=E.entityMap,H=T,B=K,U=q(U,H,x),D=C.nextSibling,!p&&D&&a.indexOf(M)>=0&&s&&(U=q(U,Y())),D&&(M=D.nodeName.toLowerCase()),C=D;return R&&(U=q(U,Q(L,c,p))),{chunk:U,entityMap:B}},nt=function(t,e,n,r){var o,s,a,c,u,l;return t=t.trim().replace(K,"").replace(D,O).replace(A,"").replace(M,""),o=z(n),(s=e(t))?(P=null,a=X(t,o)?o:["div"],c=et(r,s,k(),"ul",null,a,-1,n),u=c.chunk,l=c.entityMap,0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push(i({},j,{type:"unstyled",depth:0})),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:l}):null},rt=function(t){var e,n,r,o,i,s;return t&&t.text&&Array.isArray(t.blocks)?(e={cacheRef:{},contentBlocks:[]},n=0,r=t.blocks,o=t.inlines,i=t.entities,s=x?u:c,t.text.split("\r").reduce(function(t,e,c){var l,f,p,d,g,h,y,m,b,S,x,k,E,O,T,K;return e=w(e),l=r[c],f=n+e.length,p=o.slice(n,f),d=i.slice(n,f),g=C(p.map(function(t,e){var n={style:t,entity:null};return d[e]&&(n.entity=d[e]),a.create(n)})),n=f+1,h=l.depth,y=l.type,m=l.parent,b=l.key||v(),S=null,m&&(x=t.cacheRef[m],k=t.contentBlocks[x],k.getChildKeys().isEmpty()&&k.getText()&&(E=k.getCharacterList(),O=k.getText(),S=v(),T=new u({key:S,text:O,characterList:E,parent:m,nextSibling:b}),t.contentBlocks.push(T),k=k.withMutations(function(t){t.set("characterList",C()).set("text","").set("children",k.children.push(T.getKey()))})),t.contentBlocks[x]=k.set("children",k.children.push(b))),K=new s({key:b,parent:m,type:y,depth:h,text:e,characterList:g,prevSibling:S||(0===c||r[c-1].parent!==m?null:r[c-1].key),nextSibling:c===r.length-1||r[c+1].parent!==m?null:r[c+1].key}),t.contentBlocks.push(K),t.cacheRef[K.key]=c,t},e).contentBlocks):null},ot=function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,s=nt(t,o,i,f);return null==s?null:(e=s.chunk,n=s.entityMap,r=rt(e),{contentBlocks:r,entityMap:n})};t.exports=ot},function(t,e,n){"use strict";function r(t){return f&&t.altKey||h(t)}function o(t){return g(t)?t.shiftKey?"redo":"undo":null}function i(t){return p&&t.shiftKey?null:r(t)?"delete-word":"delete"}function s(t){return g(t)&&f?"backspace-to-start-of-line":r(t)?"backspace-word":"backspace"}function a(t){switch(t.keyCode){case 66:return g(t)?"bold":null;case 68:return h(t)?"delete":null;case 72:return h(t)?"backspace":null;case 73:return g(t)?"italic":null;case 74:return g(t)?"code":null;case 75:return!p&&h(t)?"secondary-cut":null;case 77:return h(t)?"split-block":null;case 79:return h(t)?"split-block":null;case 84:return f&&h(t)?"transpose-characters":null;case 85:return g(t)?"underline":null;case 87:return f&&h(t)?"backspace-word":null;case 89:return h(t)?p?"redo":"secondary-paste":null;case 90:return o(t)||null;case u.RETURN:return"split-block";case u.DELETE:return i(t);case u.BACKSPACE:return s(t);case u.LEFT:return d&&g(t)?"move-selection-to-start-of-block":null;case u.RIGHT:return d&&g(t)?"move-selection-to-end-of-block":null;default:return null}}var c=n(27),u=n(32),l=n(9),f=l.isPlatform("Mac OS X"),p=l.isPlatform("Windows"),d=f&&l.isBrowser("Firefox < 29"),g=c.hasCommandModifier,h=c.isCtrlKeyCommand;t.exports=a},function(t,e,n){"use strict";function r(t,e,n,r,o,i){var a,u,f,d=n.nodeType===Node.TEXT_NODE,g=o.nodeType===Node.TEXT_NODE;return d&&g?{selectionState:l(t,p(c(n)),r,p(c(o)),i),needsRecovery:!1}:(a=null,u=null,f=!0,d?(a={key:p(c(n)),offset:r},u=s(e,o,i)):g?(u={key:p(c(o)),offset:i},a=s(e,n,r)):(a=s(e,n,r),u=s(e,o,i),n===o&&r===i&&(f=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:l(t,a.key,a.offset,u.key,u.offset),needsRecovery:f})}function o(t){for(;t.firstChild&&(t.firstChild instanceof Element&&"true"===t.firstChild.getAttribute("data-blocks")||u(t.firstChild));)t=t.firstChild;return t}function i(t){for(;t.lastChild&&(t.lastChild instanceof Element&&"true"===t.lastChild.getAttribute("data-blocks")||u(t.lastChild));)t=t.lastChild;return t}function s(t,e,n){var r,s,l,d,g,h,y=e,m=c(y);return null!=m||t&&(t===y||t.firstChild===y)?void 0:f(!1),t===y&&(y=y.firstChild,y instanceof Element&&"true"===y.getAttribute("data-contents")?void 0:f(!1),n>0&&(n=y.childNodes.length)),0===n?(r=null,null!=m?r=m:(s=o(y),r=p(u(s))),{key:r,offset:0}):(l=y.childNodes[n-1],d=null,g=null,u(l)?(h=i(l),d=p(u(h)),g=a(h)):(d=p(m),g=a(l)),{key:d,offset:g})}function a(t){var e=t.textContent;return"\n"===e?0:e.length}var c=n(28),u=n(52),l=n(54),f=n(1),p=n(8);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.getSelection();return e.isCollapsed()?null:o(t.getCurrentContent(),e)}var o=n(24);t.exports=r},function(t,e,n){"use strict";var r=n(6),o=function(t,e){var n,o,i,s,a=t instanceof r;if(!a)return null;if(n=t.getNextSiblingKey())return n;if(o=t.getParentKey(),!o)return null;for(i=e.get(o);i&&!i.getNextSiblingKey();)s=i.getParentKey(),i=s?e.get(s):null;return i?i.getNextSiblingKey():null};t.exports=o},function(t,e,n){"use strict";function r(t){var e,n,r,o,s=t.cloneRange(),a=[];for(e=t.endContainer;null!=e;e=e.parentNode){if(n=e===t.commonAncestorContainer,n?s.setStart(t.startContainer,t.startOffset):s.setStart(s.endContainer,0),r=Array.from(s.getClientRects()),a.push(r),n)return a.reverse(),(o=[]).concat.apply(o,a);s.setEndBefore(e)}i(!1)}var o=n(9),i=n(1),s=o.isBrowser("Chrome"),a=s?r:function(t){return Array.from(t.getClientRects())};t.exports=a},function(t,e,n){"use strict";function r(t){var e,n=null;return!s&&document.implementation&&document.implementation.createHTMLDocument&&(e=document.implementation.createHTMLDocument("foo"),e.documentElement?void 0:i(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}var o=n(9),i=n(1),s=o.isBrowser("IE <= 9");t.exports=r},function(t,e){"use strict";function n(t){var e,r,o;if(t instanceof Element){if(e=t.getAttribute("data-offset-key"))return e;for(r=0;r<t.childNodes.length;r++)if(o=n(t.childNodes[r]))return o}return null}t.exports=n},function(t,e,n){(function(e){"use strict";function r(t,e){var n=0,r=[];t.forEach(function(i){o(i,function(o){n++,o&&r.push(o.slice(0,c)),n==t.length&&e(r.join("\r"))})})}function o(t,n){var r,o;return e.FileReader&&(!t.type||t.type in a)?""===t.type?(r="",s.test(t.name)&&(r=t.name.replace(s,"")),void n(r)):(o=new FileReader,o.onload=function(){var t=o.result;"string"!=typeof t?i(!1):void 0,n(t)},o.onerror=function(){n("")},void o.readAsText(t)):void n("")}var i=n(1),s=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0},c=5e3;t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t,e,n,r,s){var a,c,u,l,f,p,d,g,h,y,m,v,b,S,w,x=i(t.getSelection());return a=o.decode(e),c=a.blockKey,u=t.getBlockTree(c).getIn([a.decoratorKey,"leaves",a.leafKey]),l=o.decode(r),f=l.blockKey,p=t.getBlockTree(f).getIn([l.decoratorKey,"leaves",l.leafKey]),d=u.get("start"),g=p.get("start"),h=u?d+n:null,y=p?g+s:null,(m=x.getAnchorKey()===c&&x.getAnchorOffset()===h&&x.getFocusKey()===f&&x.getFocusOffset()===y)?x:(v=!1,c===f?(b=u.get("end"),S=p.get("end"),v=g===d&&S===b?s<n:g<d):(w=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===f}).first(),v=w===f),x.merge({anchorKey:c,anchorOffset:h,focusKey:f,focusOffset:y,isBackward:v}))}var o=n(23),i=n(8);t.exports=r},function(t,e){"use strict";function n(t,e,n){var r,o;return n===t.count()?e.forEach(function(e){t=t.push(e)}):0===n?e.reverse().forEach(function(e){t=t.unshift(e)}):(r=t.slice(0,n),o=t.slice(n),t=r.concat(e,o).toList()),t}t.exports=n},function(t,e){"use strict";function n(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some(function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return o===e&&(i=!0,!0)})}),i}t.exports=n},function(t,e){"use strict";function n(t,e){var n,r=t.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),s=t.getCurrentContent(),a=o,c=s.getBlockForKey(o);return e>c.getText().length-i?(a=s.getKeyAfter(o),n=0):n=i+e,r.merge({focusKey:a,focusOffset:n})}t.exports=n},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(10),s=o.OrderedMap,a=function(t){var e={},n=void 0;return s(t.withMutations(function(t){t.forEach(function(r,o){var s,a,c,u,l=r.getKey(),f=r.getNextSiblingKey(),p=r.getPrevSiblingKey(),d=r.getChildKeys(),g=r.getParentKey(),h=i();e[l]=h,f&&(s=t.get(f),s?t.setIn([f,"prevSibling"],h):t.setIn([l,"nextSibling"],null)),p&&(a=t.get(p),a?t.setIn([p,"nextSibling"],h):t.setIn([l,"prevSibling"],null)),g&&t.get(g)?(c=t.get(g),u=c.getChildKeys(),t.setIn([g,"children"],u.set(u.indexOf(r.getKey()),h))):(t.setIn([l,"parent"],null),n&&(t.setIn([n.getKey(),"nextSibling"],h),t.setIn([l,"prevSibling"],e[n.getKey()])),n=t.get(l)),d.forEach(function(e){var n=t.get(e);n?t.setIn([e,"parent"],h):t.setIn([l,"children"],r.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[e[t.getKey()],t.set("key",e[t.getKey()])]}))},c=function(t){return s(t.toArray().map(function(t){var e=i();return[e,t.set("key",e)]}))},u=function(t){var e=t.first()instanceof r;return e?a(t):c(t)};t.exports=u},function(t,e,n){"use strict";function r(t,e){var n,r,o,s,a=t.getBlockMap(),c=t.getEntityMap(),u={},l=e.getStartKey(),f=e.getStartOffset(),p=a.get(l),d=i(c,p,f);return d!==p&&(u[l]=d),n=e.getEndKey(),r=e.getEndOffset(),o=a.get(n),l===n&&(o=d),s=i(c,o,r),s!==o&&(u[n]=s),Object.keys(u).length?t.merge({blockMap:a.merge(u),selectionAfter:e}):t.set("selectionAfter",e)}function o(t,e,n){var r;return a(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(r={start:t,end:e})}),"object"!=typeof r?c(!1):void 0,r}function i(t,e,n){var r,i,a,c,u,l=e.getCharacterList(),f=n>0?l.get(n-1):void 0,p=n<l.count()?l.get(n):void 0,d=f?f.getEntity():void 0,g=p?p.getEntity():void 0;if(g&&g===d&&(r=t.__get(g),"MUTABLE"!==r.getMutability())){for(i=o(l,g,n),a=i.start,c=i.end;a<c;)u=l.get(a),l=l.set(a,s.applyEntity(u,null)),a++;return e.set("characterList",l)}return e}var s=n(5),a=n(18),c=n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){if("file"==t.kind)return t.getAsFile()}var i=n(129),s=n(136),a=n(36),c=new RegExp("\r\n","g"),u="\n",l={"text/rtf":1,"text/html":1},f=function(){function t(e){r(this,t),this.data=e,this.types=e.types?s(e.types):[]}return t.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(t){return l[t]})},t.prototype.getText=function(){var t;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(c,u):null},t.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}},t.prototype.isLink=function(){return this.types.some(function(t){return t.indexOf("Url")!=-1||t.indexOf("text/uri-list")!=-1||t.indexOf("text/x-moz-url")})},t.prototype.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var t=this.data.getData("text/x-moz-url").split("\n");return t[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},t.prototype.isImage=function t(){var e,n,r,t=this.types.some(function(t){return t.indexOf("application/x-moz-file")!=-1});if(t)return!0;for(e=this.getFiles(),n=0;n<e.length;n++)if(r=e[n].type,!i.isImage(r))return!1;return!0},t.prototype.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(o).filter(a.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.prototype.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=f},function(t,e){"use strict";function n(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var e=t.ownerDocument;return n(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var r=t.ownerDocument;n(t,r)?r.body.scrollTop=r.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return n(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var r=t.ownerDocument;n(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=e:t.scrollLeft=e}};t.exports=r},function(t,e,n){"use strict";function r(t){var e=p.exec(t);return null==e?null:e[0]}function o(t){var e=r(t);return null==e?u.NEUTRAL:d.exec(e)?u.RTL:u.LTR}function i(t,e){if(e=e||u.NEUTRAL,!t.length)return e;var n=o(t);return n===u.NEUTRAL?e:n}function s(t,e){return e||(e=u.getGlobalDir()),u.isStrong(e)?void 0:l(!1),i(t,e)}function a(t,e){return s(t,e)===u.LTR}function c(t,e){return s(t,e)===u.RTL}var u=n(34),l=n(1),f={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA--zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},p=new RegExp("["+f.L+f.R+f.AL+"]"),d=new RegExp("["+f.R+f.AL+"]"),g={firstStrongChar:r,firstStrongCharDir:o,resolveBlockDir:i,getDirection:s,isDirectionLTR:a,isDirectionRTL:c};t.exports=g},function(t,e){"use strict";function n(t){if(t=t||("undefined"!=typeof document?document:void 0),"undefined"==typeof t)return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e,n){"use strict";var r=n(7),o=r||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(17),s=n(5),a=n(12),c=n(6),u=n(11),l=n(4),f=n(3),p=n(2),d=(n(15),n(10)),g=n(124),h=u.draft_tree_data_support,y=h?c:a,m=p.List,v=p.Repeat,b={insertAtomicBlock:function(t,e,n){var r,a,c,u,p=t.getCurrentContent(),g=t.getSelection(),b=l.removeRange(p,g,"backward"),S=b.getSelectionAfter(),w=l.splitBlock(b,S),x=w.getSelectionAfter(),C=l.setBlockType(w,x,"atomic"),k=s.create({entity:e}),E={key:d(),type:"atomic",text:n,characterList:m(v(k,n.length))},O={key:d(),type:"unstyled"};return h&&(E=o({},E,{nextSibling:O.key}),O=o({},O,{prevSibling:E.key})),r=[new y(E),new y(O)],a=i.createFromArray(r),c=l.replaceWithFragment(C,x,a),u=c.merge({selectionBefore:g,selectionAfter:c.getSelectionAfter().set("hasFocus",!0)}),f.push(t,u,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i,s,a,c,u,p,d,h=t.getCurrentContent(),y=t.getSelection(),m=void 0;return"before"===r||"after"===r?(o=h.getBlockForKey("before"===r?n.getStartKey():n.getEndKey()),m=g(h,e,o,r)):(i=l.removeRange(h,n,"backward"),s=i.getSelectionAfter(),a=i.getBlockForKey(s.getFocusKey()),0===s.getStartOffset()?m=g(i,e,a,"before"):s.getEndOffset()===a.getLength()?m=g(i,e,a,"after"):(c=l.splitBlock(i,s),u=c.getSelectionAfter(),p=c.getBlockForKey(u.getFocusKey()),m=g(c,e,p,"before"))),d=m.merge({selectionBefore:y,selectionAfter:m.getSelectionAfter().set("hasFocus",!0)}),f.push(t,d,"move-block")}};t.exports=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0}function i(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}var s=n(2),a=s.List,c=".",u=function(){function t(e){r(this,t),this._decorators=e.slice()}return t.prototype.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach(function(r,s){var a=0,u=r.strategy,l=function(t,e){o(n,t,e)&&(i(n,t,e,s+c+a),a++)};u(t,l,e)}),a(n)},t.prototype.getComponentForKey=function(t){var e=parseInt(t.split(c)[0],10);return this._decorators[e].component},t.prototype.getPropsForKey=function(t){var e=parseInt(t.split(c)[0],10);return this._decorators[e].props},t}();t.exports=u},function(t,e,n){"use strict";function r(t,e,n,r){var i=t.getBlockMap(),a=e.getStartKey(),c=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),f=i.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===u}).concat(s([[u,i.get(u)]])).map(function(t,e){var i,s,f,p;for(a===u?(i=c,s=l):(i=e===a?c:0,s=e===u?l:t.getLength()),f=t.getCharacterList();i<s;)p=f.get(i),f=f.set(i,r?o.applyStyle(p,n):o.removeStyle(p,n)),i++;return t.set("characterList",f)});return t.merge({blockMap:i.merge(f),selectionBefore:e,selectionAfter:e})}var o=n(5),i=n(2),s=i.Map,a={add:function(t,e,n){return r(t,e,n,!0)},remove:function(t,e,n){return r(t,e,n,!1)}};t.exports=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=s||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(26),u=n(39),l=n(68),f=n(70),p=n(71),d=n(72),g=n(74),h=n(3),y=n(14),m=n(21),v=n(61),b=n(33),S=n(9),w=n(16),x=n(36),C=n(10),k=n(46),E=n(37),O=n(1),T=n(8),K=S.isBrowser("IE"),_=!K,D={edit:d,composite:l,drag:p,cut:null,render:null},A=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return i.focus=function(t){var e,n,r,o,s=i.props.editorState,a=s.getSelection().getHasFocus(),c=m.findDOMNode(i.editor);c&&(e=b.getScrollParent(c),n=t||E(e),r=n.x,o=n.y,c instanceof HTMLElement?void 0:O(!1),c.focus(),e===window?window.scrollTo(r,o):v.setTop(e,o),a||i.update(h.forceSelection(s,s.getSelection())))},i.blur=function(){var t=m.findDOMNode(i.editor);t instanceof HTMLElement?void 0:O(!1),t.blur()},i.setMode=function(t){i._handler=D[t]},i.exitCurrentMode=function(){i.setMode("edit")},i.restoreEditorDOM=function(t){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(t)})},i.setClipboard=function(t){i._clipboard=t},i.getClipboard=function(){return i._clipboard},i.update=function(t){i._latestEditorState=t,i.props.onChange(t)},i.onDragEnter=function(){i._dragCount++},i.onDragLeave=function(){i._dragCount--,0===i._dragCount&&i.exitCurrentMode()},i._blockSelectEvents=!1,i._clipboard=null,i._handler=null,i._dragCount=0,i._editorKey=n.editorKey||C(),i._placeholderAccessibilityID="placeholder-"+i._editorKey,i._latestEditorState=n.editorState,i._latestCommittedEditorState=n.editorState,i._onBeforeInput=i._buildHandler("onBeforeInput"),i._onBlur=i._buildHandler("onBlur"),i._onCharacterData=i._buildHandler("onCharacterData"),i._onCompositionEnd=i._buildHandler("onCompositionEnd"),i._onCompositionStart=i._buildHandler("onCompositionStart"),i._onCopy=i._buildHandler("onCopy"),i._onCut=i._buildHandler("onCut"),i._onDragEnd=i._buildHandler("onDragEnd"),i._onDragOver=i._buildHandler("onDragOver"),i._onDragStart=i._buildHandler("onDragStart"),i._onDrop=i._buildHandler("onDrop"),i._onInput=i._buildHandler("onInput"),i._onFocus=i._buildHandler("onFocus"),i._onKeyDown=i._buildHandler("onKeyDown"),i._onKeyPress=i._buildHandler("onKeyPress"),i._onKeyUp=i._buildHandler("onKeyUp"),i._onMouseDown=i._buildHandler("onMouseDown"),i._onMouseUp=i._buildHandler("onMouseUp"),i._onPaste=i._buildHandler("onPaste"),i._onSelect=i._buildHandler("onSelect"),i.getEditorKey=function(){return i._editorKey},i.state={contentsKey:0},i}return i(e,t),e.prototype._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&r(e,n)}}},e.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},e.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return y.createElement(g,t)}return null},e.prototype.render=function(){var t=this,e=this.props,n=e.blockRenderMap,r=e.blockRendererFn,o=e.blockStyleFn,i=e.customStyleFn,s=e.customStyleMap,c=e.editorState,l=e.readOnly,p=e.textAlignment,d=e.textDirectionality,g=w({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),h={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},m=this.props.role||"textbox",v="combobox"===m?!!this.props.ariaExpanded:null,b={blockRenderMap:n,blockRendererFn:r,blockStyleFn:o,customStyleMap:a({},u,s),customStyleFn:i,editorKey:this._editorKey,editorState:c,key:"contents"+this.state.contentsKey,textDirectionality:d};return y.createElement("div",{className:g},this._renderPlaceholder(),y.createElement("div",{className:w("DraftEditor/editorContainer"),ref:function(e){return t.editorContainer=e}},y.createElement("div",{"aria-activedescendant":l?null:this.props.ariaActiveDescendantID,"aria-autocomplete":l?null:this.props.ariaAutoComplete,"aria-controls":l?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":l?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:w({notranslate:!l,"public/DraftEditor/content":!0}),contentEditable:!l,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:function(e){return t.editor=e},role:l?null:m,spellCheck:_&&this.props.spellCheck,style:h,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},y.createElement(f,b))))},e.prototype.componentDidMount=function(){this.setMode("edit"),K&&document.execCommand("AutoUrlDetect",!1,!1)},e.prototype.componentWillUpdate=function(t){this._blockSelectEvents=!0,this._latestEditorState=t.editorState},e.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},e}(y.Component);A.defaultProps={blockRenderMap:c,blockRendererFn:x.thatReturnsNull,blockStyleFn:x.thatReturns(""),keyBindingFn:k,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},t.exports=A},function(t,e,n){"use strict";var r=n(11),o=n(4),i=n(3),s=n(32),a=n(29),c=n(19),u=n(56),l=20,f=!1,p=!1,d="",g={onBeforeInput:function(t,e){d=(d||"")+e.data},onCompositionStart:function(t){p=!0},onCompositionEnd:function(t){f=!1,p=!1,setTimeout(function(){f||g.resolveComposition(t)},l)},onKeyDown:function(t,e){return p?void(e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()):(g.resolveComposition(t),void t._onKeyDown(e))},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){var e,n,s,l,g,h;if(!p){if(f=!0,e=d,d="",n=i.set(t._latestEditorState,{inCompositionMode:!1}),s=n.getCurrentInlineStyle(),l=a(n.getCurrentContent(),n.getSelection()),g=!e||u(n)||s.size>0||null!==l,g&&t.restoreEditorDOM(),t.exitCurrentMode(),e){if(r.draft_handlebeforeinput_composed_text&&t.props.handleBeforeInput&&c(t.props.handleBeforeInput(e,n)))return;return h=o.replaceText(n.getCurrentContent(),n.getSelection(),e,s,l),void t.update(i.push(n,h,"insert-characters"))}g&&t.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};t.exports=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=s||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(40),u=n(23),l=(n(3),n(14)),f=n(16),p=n(146),d=n(8),g=function(t,e,n,r){return f({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":4===e,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.shouldComponentUpdate=function(t){var e,n,r,o,i,s,a,c,u,l=this.props.editorState,f=t.editorState,p=l.getDirectionMap(),d=f.getDirectionMap();return p!==d||(e=l.getSelection().getHasFocus(),n=f.getSelection().getHasFocus(),e!==n||(r=f.getNativelyRenderedContent(),o=l.isInCompositionMode(),i=f.isInCompositionMode(),!(l===f||null!==r&&f.getCurrentContent()===r||o&&i)&&(s=l.getCurrentContent(),a=f.getCurrentContent(),c=l.getDecorator(),u=f.getDecorator(),o!==i||s!==a||c!==u||f.mustForceSelection())))},e.prototype.render=function(){var t,e,n,r,o,i,s,f,h,y,m,v,b,S,w,x,C,k,E,O,T,K,_,D,A,M=this.props,B=M.blockRenderMap,L=M.blockRendererFn,R=M.blockStyleFn,N=M.customStyleMap,F=M.customStyleFn,I=M.editorState,P=M.editorKey,j=M.textDirectionality,U=I.getCurrentContent(),H=I.getSelection(),z=I.mustForceSelection(),W=I.getDecorator(),V=d(I.getDirectionMap()),G=U.getBlocksAsArray(),q=[],X=null,J=null;for(t=0;t<G.length;t++)e=G[t],n=e.getKey(),r=e.getType(),o=L(e),i=void 0,s=void 0,f=void 0,o&&(i=o.component,s=o.props,f=o.editable),h=j?j:V.get(n),y=u.encode(n,0,0),m={contentState:U,block:e,blockProps:s,blockStyleFn:R,customStyleMap:N,customStyleFn:F,decorator:W,direction:h,forceSelection:z,key:n,offsetKey:y,selection:H,tree:I.getBlockTree(n)},v=B.get(r)||B.get("unstyled"),b=v.wrapper,S=v.element||B.get("unstyled").element,w=e.getDepth(),x="",R&&(x=R(e)),"li"===S&&(C=J!==b||null===X||w>X,x=p(x,g(r,w,C,h))),k=i||c,E={className:x,"data-block":!0,"data-editor":P,"data-offset-key":y,key:n},void 0!==f&&(E=a({},E,{contentEditable:f,suppressContentEditableWarning:!0})),O=l.createElement(S,E,l.createElement(k,m)),q.push({block:O,wrapperTemplate:b,key:n,offsetKey:y}),X=b?e.getDepth():null,J=b;for(T=[],K=0;K<q.length;)if(_=q[K],_.wrapperTemplate){D=[];do D.push(q[K].block),K++;while(K<q.length&&q[K].wrapperTemplate===_.wrapperTemplate);A=l.cloneElement(_.wrapperTemplate,{key:_.key+"-wrap","data-offset-key":_.offsetKey},D),T.push(A)}else T.push(_.block),K++;return l.createElement("div",{"data-contents":"true"},T)},e}(l.Component);t.exports=h},function(t,e,n){"use strict";var r=n(69);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n,r,o=null,i=null;if("function"==typeof document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.x,t.y),o=n.startContainer,i=n.startOffset;else{if(!t.rangeParent)return null;o=t.rangeParent,i=t.rangeOffset}return o=d(o),i=d(i),r=d(u(o)),f(e,r,i,r,i)}function o(t,e){var n=a.moveText(t.getCurrentContent(),t.getSelection(),e);return c.push(t,n,"insert-fragment")}function i(t,e,n){var r=a.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return c.push(t,r,"insert-fragment")}var s=n(60),a=n(4),c=n(3),u=n(28),l=n(53),f=n(54),p=n(19),d=n(8),g={onDragEnd:function(t){t.exitCurrentMode()},onDrop:function(t,e){var n,a,c=new s(e.nativeEvent.dataTransfer),u=t._latestEditorState,f=r(e.nativeEvent,u);if(e.preventDefault(),t.exitCurrentMode(),null!=f){if(n=c.getFiles(),n.length>0){if(t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(f,n)))return;return void l(n,function(e){e&&t.update(i(u,f,e))})}if(a=t._internalDrag?"internal":"external",!t.props.handleDrop||!p(t.props.handleDrop(f,c,a)))return t._internalDrag?void t.update(o(u,f)):void t.update(i(u,f,c.getText()))}}};t.exports=g},function(t,e,n){"use strict";var r=n(91),o=n(92),i=n(93),s=n(94),a=n(95),c=n(96),u=n(97),l=n(98),f=n(99),p=n(100),d=n(101),g=n(102),h={onBeforeInput:r,onBlur:o,onCompositionStart:i,onCopy:s,onCut:a,onDragOver:c,onDragStart:u,onFocus:l,onInput:f,onKeyDown:p,onPaste:d,onSelect:g};t.exports=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,
enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(7),a=n(75),c=n(14),u=n(21),l=n(1),f=n(126),p=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype._setSelection=function(){var t,e,n,r,o,i,s,a,c,p=this.props.selection;null!=p&&p.getHasFocus()&&(t=this.props,e=t.block,n=t.start,r=t.text,o=e.getKey(),i=n+r.length,p.hasEdgeWithin(o,n,i)&&(s=u.findDOMNode(this),s?void 0:l(!1),a=s.firstChild,a?void 0:l(!1),c=void 0,a.nodeType===Node.TEXT_NODE?c=a:"BR"===a.tagName?c=s:(c=a.firstChild,c?void 0:l(!1)),f(p,c,o,n,i)))},e.prototype.shouldComponentUpdate=function(t){var e=u.findDOMNode(this.leaf);return e?void 0:l(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},e.prototype.componentDidUpdate=function(){this._setSelection()},e.prototype.componentDidMount=function(){this._setSelection()},e.prototype.render=function(){var t,e,n,r,o,i,u,l=this,f=this.props.block,p=this.props.text;return p.endsWith("\n")&&this.props.isLast&&(p+="\n"),t=this.props,e=t.customStyleMap,n=t.customStyleFn,r=t.offsetKey,o=t.styleSet,i=o.reduce(function(t,n){var r={},o=e[n];return void 0!==o&&t.textDecoration!==o.textDecoration&&(r.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),s(t,o,r)},{}),n&&(u=n(o,f),i=s(i,u)),c.createElement("span",{"data-offset-key":r,ref:function(t){return l.leaf=t},style:i},c.createElement(a,null,p))},e}(c.Component);t.exports=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(14),a=n(16),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},e.prototype.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=a({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t}),n={whiteSpace:"pre-wrap"};return s.createElement("div",{className:e},s.createElement("div",{className:a("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:n},this.props.text))},e}(s.Component);t.exports=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return f?"\n"===t.textContent:"BR"===t.tagName}var a=n(14),c=n(21),u=n(9),l=n(1),f=u.isBrowser("IE <= 11"),p=f?a.createElement("span",{key:"A","data-text":"true"},"\n"):a.createElement("br",{key:"A","data-text":"true"}),d=f?a.createElement("span",{key:"B","data-text":"true"},"\n"):a.createElement("br",{key:"B","data-text":"true"}),g=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return i._forceFlag=!1,i}return i(e,t),e.prototype.shouldComponentUpdate=function(t){var e=c.findDOMNode(this),n=""===t.children;return e instanceof Element?void 0:l(!1),n?!s(e):e.textContent!==t.children},e.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},e.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},e.prototype.render=function(){return""===this.props.children?this._forceFlag?p:d:a.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},e}(a.Component);t.exports=g},function(t,e){"use strict";var n={getRemovalRange:function(t,e,n,r,o){var i,s,a,c,u,l,f,p,d,g=n.split(" ");for(g=g.map(function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<g.length-1)return t+" ";return t}),i=r,c=null,u=null,l=0;l<g.length;l++){if(a=g[l],s=i+a.length,t<s&&i<e)null!==c?u=s:(c=i,u=s);else if(null!==c)break;i=s}return f=r+n.length,p=c===r,d=u===f,(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}};t.exports=n},function(t,e){"use strict";var n={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1};t.exports=n},function(t,e){"use strict";t.exports={logSelectionStateFailure:function(){return null}}},function(t,e,n){"use strict";var r=n(7),o=r||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=(n(5),n(12)),s=n(6),a=n(11),c=n(2),u=n(45),l=n(10),f=n(51),p=n(31),d=c.List,g=c.Repeat,h=a.draft_tree_data_support,y=h?s:i,m={processHTML:function(t,e){return u(t,f,e)},processText:function(t,e,n){return t.reduce(function(t,r,i){var s,a,c,u;return r=p(r),s=l(),a={key:s,type:n,text:r,characterList:d(g(e,r.length))},h&&0!==i&&(c=i-1,u=t[c]=t[c].merge({nextSibling:s}),a=o({},a,{prevSibling:u.getKey()})),t.push(new y(a)),t},[])}};t.exports=m},function(t,e,n){"use strict";var r=n(7),o=r||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(1),s=function(t,e){for(var n,r,o=[].concat(t).reverse();o.length;)n=o.pop(),e(n),r=n.children,Array.isArray(r)?void 0:i(!1),o=o.concat([].concat(r.reverse()))},a=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},c=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?o({},e,{depth:(t.depth||0)+1}):e}))},u={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)?void 0:i(!1),Array.isArray(e)&&e.length?(s(e,function(t){var e=o({},t);a(t)&&(e.depth=e.depth||0,c(t)),delete e.children,n.push(e)}),t.blocks=n,o({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e={},n=[];return t.blocks.forEach(function(t){var r,s=a(t),c=t.depth||0,u=o({},t,{children:[]});return s?(e[c]=u,c>0?(r=e[c-1],r?void 0:i(!1),void r.children.push(u)):void n.push(u)):(e={},void n.push(u))}),o({},t,{blocks:n})}};t.exports=u},function(t,e,n){"use strict";var r,o=n(2),i=n(132),s=n(8),a=o.OrderedMap,c={getDirectionMap:function(t,e){var n,c,u;return r?r.reset():r=new i,n=t.getBlockMap(),c=n.valueSeq().map(function(t){return s(r).getDirection(t.getText())}),u=a(n.keySeq().zip(c)),null!=e&&o.is(e,u)?e:u}};t.exports=c},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(24),s=n(8),a=null,c={cut:function(t){var e,n,c,u=t.getCurrentContent(),l=t.getSelection(),f=null;if(l.isCollapsed()){if(e=l.getAnchorKey(),n=u.getBlockForKey(e).getLength(),n===l.getAnchorOffset())return t;f=l.set("focusOffset",n)}else f=l;return f=s(f),a=i(u,f),c=r.removeRange(u,f,"forward"),c===u?t:o.push(t,c,"remove-range")},paste:function(t){if(!a)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),a);return o.push(t,e,"insert-fragment")}};t.exports=c},function(t,e){"use strict";function n(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),s=t.getBlockMap(),a=s.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat([[i,s.get(i)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return s=s.merge(a),t.merge({blockMap:s,selectionBefore:e,selectionAfter:e})}t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=t.getCharacterList();e<n;)i=i.set(e,o.applyEntity(i.get(e),r)),e++;return t.set("characterList",i)}var o=n(5);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=t.getBlockMap(),s=e.getStartKey(),a=e.getStartOffset(),c=e.getEndKey(),u=e.getEndOffset(),l=r.skipUntil(function(t,e){return e===s}).takeUntil(function(t,e){return e===c}).toOrderedMap().merge(o.OrderedMap([[c,r.get(c)]])).map(function(t,e){var r=e===s?a:0,o=e===c?u:t.getLength();return i(t,r,o,n)});return t.merge({blockMap:r.merge(l),selectionBefore:e,selectionAfter:e})}var o=n(2),i=n(84);t.exports=r},function(t,e,n){"use strict";var r=n(7),o=r||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(12),s=n(6),a=n(43),c=n(103),u=n(104),l=n(1),f=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:u(t),entityRanges:c(t,e),data:t.getData().toObject()}},p=function(t,e,n,r){var a,c;return t instanceof i?void n.push(f(t,e)):(t instanceof s?void 0:l(!1),a=t.getParentKey(),c=r[t.getKey()]=o({},f(t,e),{children:[]}),a?void r[a].children.push(c):void n.push(c))},d=function(t,e){var n=e.entityMap,r=[],o={},i={},s=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var r=t.getEntityAt(e),o=a.stringify(r);i[o]||(i[o]=r,n[o]=""+s,s++)}),p(t,n,r,o)}),{blocks:r,entityMap:n}},g=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach(function(e,n){var r=t.getEntity(a.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:o}},h=function(t){var e={entityMap:{},blocks:[]};return e=d(t,e),e=g(t,e)};t.exports=h},function(t,e,n){"use strict";var r=n(7),o=r||function(t){var e,n,r;for(e=1;e<arguments.length;e++){n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(12),s=n(6),a=n(25),c=n(22),u=n(11),l=n(80),f=n(2),p=n(15),d=n(88),g=n(89),h=n(90),y=n(10),m=n(1),v=u.draft_tree_data_support,b=f.List,S=f.Map,w=f.OrderedMap,x=function(t,e){var n=t.key,r=t.type,o=t.data,i=t.text,s=t.depth,a={text:i,depth:s||0,type:r||"unstyled",key:n||y(),data:S(o),characterList:C(t,e)};return a},C=function(t,e){var n=t.text,r=t.entityRanges,i=t.inlineStyleRanges,s=r||[],a=i||[];return d(h(n,a),g(n,s.filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return o({},t,{key:e[t.key]})})))},k=function(t){return o({},t,{key:t.key||y()})},E=function(t,e,n){var r=e.map(function(t){return o({},t,{parentRef:n})});return t.concat(r.reverse())},O=function(t,e){return t.map(k).reduce(function(n,r,i){var a,c,u,l,f,p,d,g,h,y;for(Array.isArray(r.children)?void 0:m(!1),a=r.children.map(k),c=new s(o({},x(r,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(a.map(function(t){return t.key}))})),n=n.set(c.getKey(),c),u=E([],a,c);u.length>0;){if(l=u.pop(),f=l.parentRef,p=f.getChildKeys(),d=p.indexOf(l.key),g=Array.isArray(l.children),!g){g?void 0:m(!1);break}h=l.children.map(k),y=new s(o({},x(l,e),{parent:f.getKey(),children:b(h.map(function(t){return t.key})),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)})),n=n.set(y.getKey(),y),u=E(u,h,y)}return n},w())},T=function(t,e){return w(t.map(function(t){var n=new i(x(t,e));return[n.getKey(),n]}))},K=function(t,e){var n=Array.isArray(t.blocks[0].children),r=v&&!n?l.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?O(r,e):T(n?l.fromRawTreeStateToRawState(t).blocks:r,e)},_=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var r=e[t],o=r.type,i=r.mutability,s=r.data;n[t]=c.__create(o,i,s||{})}),n},D=function(t){var e,n,r;return Array.isArray(t.blocks)?void 0:m(!1),e=_(t),n=K(t,e),r=n.isEmpty()?new p:p.createEmpty(n.first().getKey()),new a({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})};t.exports=D},function(t,e,n){"use strict";function r(t,e){var n=t.map(function(t,n){var r=e[n];return o.create({style:t,entity:r})});return s(n)}var o=n(5),i=n(2),s=i.List;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){var r,o=i(t,0,e.offset).length,s=o+i(t,e.offset,e.length).length;for(r=o;r<s;r++)n[r]=e.key}),n}var o=n(13),i=o.substr;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=Array(t.length).fill(c);return e&&e.forEach(function(e){for(var r=a(t,0,e.offset).length,o=r+a(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++}),n}var o=n(2),i=o.OrderedSet,s=n(13),a=s.substr,c=i();t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){return m&&(t==h||t==y)}function o(t,e,n,r){var o=a.replaceText(t.getCurrentContent(),t.getSelection(),e,n,r);return c.push(t,o,"insert-characters")}function i(t,n){var i,a,u,h,y,m,v,b,S,w,x,C,k;if(void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0),i=t._latestEditorState,a=n.data){if(t.props.handleBeforeInput&&f(t.props.handleBeforeInput(a,i)))return void n.preventDefault();if(u=i.getSelection(),h=u.getStartOffset(),y=u.getEndOffset(),m=u.getAnchorKey(),!u.isCollapsed())return n.preventDefault(),v=i.getCurrentContent().getPlainText().slice(h,y),void(a===v?t.update(c.forceSelection(i,u.merge({focusOffset:y}))):t.update(o(i,a,i.getCurrentInlineStyle(),l(i.getCurrentContent(),i.getSelection()))));if(b=o(i,a,i.getCurrentInlineStyle(),l(i.getCurrentContent(),i.getSelection())),S=!1,S||(S=p(t._latestCommittedEditorState)),S||(w=e.getSelection(),w.anchorNode&&w.anchorNode.nodeType===Node.TEXT_NODE&&(x=w.anchorNode.parentNode,S="SPAN"===x.nodeName&&x.firstChild.nodeType===Node.TEXT_NODE&&x.firstChild.nodeValue.indexOf("\t")!==-1)),S||(C=s.getFingerprint(i.getBlockTree(m)),k=s.getFingerprint(b.getBlockTree(m)),S=C!==k),S||(S=r(a)),S||(S=d(b.getDirectionMap()).get(m)!==d(i.getDirectionMap()).get(m)),S)return n.preventDefault(),void t.update(b);b=c.set(b,{nativelyRenderedContent:b.getCurrentContent()}),t._pendingStateFromBeforeInput=b,g(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}var s=n(38),a=n(4),c=n(3),u=n(9),l=n(29),f=n(19),p=n(56),d=n(8),g=n(149),h="'",y="/",m=u.isBrowser("Firefox");t.exports=i}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t,n){var r,a,c,u,l;s()===document.body&&(r=e.getSelection(),a=t.editor,1===r.rangeCount&&i(a,r.anchorNode)&&i(a,r.focusNode)&&r.removeAllRanges()),c=t._latestEditorState,u=c.getSelection(),u.getHasFocus()&&(l=u.set("hasFocus",!1),t.props.onBlur&&t.props.onBlur(n),t.update(o.acceptSelection(c,l)))}var o=n(3),i=n(35),s=n(63);t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t,e){t.setMode("composite"),t.update(o.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}var o=n(3);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=t._latestEditorState,r=n.getSelection();return r.isCollapsed()?void e.preventDefault():void t.setClipboard(o(t._latestEditorState))}var o=n(48);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n,r=t._latestEditorState,i=r.getSelection(),s=e.target,l=void 0;return i.isCollapsed()?void e.preventDefault():(s instanceof Node&&(l=u(a.getScrollParent(s))),n=c(r),t.setClipboard(n),t.setMode("cut"),void setTimeout(function(){t.restoreEditorDOM(l),t.exitCurrentMode(),t.update(o(r))},0))}function o(t){var e=i.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return s.push(t,e,"remove-range")}var i=n(4),s=n(3),a=n(33),c=n(48),u=n(37);t.exports=r},function(t,e){"use strict";function n(t,e){t._internalDrag=!1,t.setMode("drag"),e.preventDefault()}t.exports=n},function(t,e){"use strict";function n(t){t._internalDrag=!0,t.setMode("drag")}t.exports=n},function(t,e,n){"use strict";function r(t,e){var n,r=t._latestEditorState,s=r.getSelection();s.getHasFocus()||(n=s.set("hasFocus",!0),t.props.onFocus&&t.props.onFocus(e),i.isBrowser("Chrome < 60.0.3081.0")?t.update(o.forceSelection(r,n)):t.update(o.acceptSelection(r,n)))}var o=n(3),i=n(9);t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){var n,r,c,d,g,h,y,m,v,b,S,w,x,C,k,E,O,T,K,_,D,A,M,B,L,R,N,F,I,P,j,U,H,z;if(void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0),n=e.getSelection(),r=n.anchorNode,c=n.isCollapsed,d=r.nodeType!==Node.TEXT_NODE,g=r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.ELEMENT_NODE,o.draft_killswitch_allow_nontextnodes){if(d)return}else if(g)return;if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling))for(h=r.parentNode,r.nodeValue=h.textContent,y=h.firstChild;null!==y;y=y.nextSibling)y!==r&&h.removeChild(y);m=r.textContent,v=t._latestEditorState,b=l(u(r)),S=s.decode(b),w=S.blockKey,x=S.decoratorKey,C=S.leafKey,k=v.getBlockTree(w).getIn([x,"leaves",C]),E=k.start,O=k.end,T=v.getCurrentContent(),K=T.getBlockForKey(w),_=K.getText().slice(E,O),m.endsWith(p)&&(m=m.slice(0,-1)),m!==_&&(D=v.getSelection(),A=D.merge({anchorOffset:E,focusOffset:O,isBackward:!1}),M=K.getEntityAt(E),B=M&&T.getEntity(M),L=B&&B.getMutability(),R="MUTABLE"===L,N=R?"spellcheck-change":"apply-entity",F=i.replaceText(T,A,m,K.getInlineStyleAt(E),R?K.getEntityAt(E):null),f?(I=n.anchorOffset,P=n.focusOffset,j=E+Math.min(I,P),U=j+Math.abs(I-P),I=j,P=U):(H=m.length-_.length,j=D.getStartOffset(),U=D.getEndOffset(),I=c?U+H:j,P=U+H),z=F.merge({selectionBefore:T.getSelectionAfter(),selectionAfter:D.merge({anchorOffset:I,focusOffset:P})}),t.update(a.push(v,z,N)))}var o=n(11),i=n(4),s=n(23),a=n(3),c=n(9),u=n(28),l=n(8),f=c.isEngine("Gecko"),p="\n\n";t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t,e){switch(t){case"redo":return s.redo(e);case"delete":return b(e);case"delete-word":return g(e);case"backspace":return v(e);case"backspace-word":return d(e);case"backspace-to-start-of-line":return p(e);case"split-block":return h(e);case"transpose-characters":return S(e);case"move-selection-to-start-of-block":return m(e);case"move-selection-to-end-of-block":return y(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}function o(t,e){var n,o,a,u=e.which,l=t._latestEditorState;switch(u){case c.RETURN:if(e.preventDefault(),t.props.handleReturn&&f(t.props.handleReturn(e,l)))return;break;case c.ESC:return e.preventDefault(),void(t.props.onEscape&&t.props.onEscape(e));case c.TAB:return void(t.props.onTab&&t.props.onTab(e));case c.UP:return void(t.props.onUpArrow&&t.props.onUpArrow(e));case c.RIGHT:return void(t.props.onRightArrow&&t.props.onRightArrow(e));case c.DOWN:return void(t.props.onDownArrow&&t.props.onDownArrow(e));case c.LEFT:return void(t.props.onLeftArrow&&t.props.onLeftArrow(e));case c.SPACE:if(C&&x(e))return e.preventDefault(),n=i.replaceText(l.getCurrentContent(),l.getSelection()," "),void t.update(s.push(l,n,"insert-characters"))}if(o=t.props.keyBindingFn(e)){if("undo"===o)return void w(e,l,t.update);e.preventDefault(),t.props.handleKeyCommand&&f(t.props.handleKeyCommand(o,l))||(a=r(o,l),a!==l&&t.update(a))}}var i=n(4),s=n(3),a=n(27),c=n(32),u=n(82),l=n(9),f=n(19),p=n(113),d=n(114),g=n(115),h=n(116),y=n(117),m=n(118),v=n(119),b=n(120),S=n(121),w=n(122),x=a.isOptionKeyCommand,C=l.isBrowser("Chrome");t.exports=o},function(t,e,n){"use strict";function r(t,e){var n,r,m,v,b,S,w,x,C,k,E,O,T,K,_,D;if(e.preventDefault(),n=new c(e.clipboardData),!n.isRichText()&&(r=n.getFiles(),m=n.getText(),r.length>0)){if(t.props.handlePastedFiles&&h(t.props.handlePastedFiles(r)))return;return void g(r,function(e){var n,r,o,i,c,g,h;e=e||m,e&&(n=t._latestEditorState,r=y(e),o=a.create({style:n.getCurrentInlineStyle(),entity:d(n.getCurrentContent(),n.getSelection())}),i=p.getCurrentBlockType(n),c=l.processText(r,o,i),g=s.createFromArray(c),h=u.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g),t.update(f.push(n,h,"insert-fragment")))})}if(v=[],b=n.getText(),S=n.getHTML(),w=t._latestEditorState,!t.props.handlePastedText||!h(t.props.handlePastedText(b,S,w))){if(b&&(v=y(b)),!t.props.stripPastedStyles){if(x=t.getClipboard(),n.isRichText()&&x){if(S.indexOf(t.getEditorKey())!==-1||1===v.length&&1===x.size&&x.first().getText()===b)return void t.update(o(t._latestEditorState,x))}else if(x&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&i(v,x))return void t.update(o(t._latestEditorState,x));if(S&&(C=l.processHTML(S,t.props.blockRenderMap),C&&(k=C.contentBlocks,E=C.entityMap,k)))return O=s.createFromArray(k),void t.update(o(t._latestEditorState,O,E));t.setClipboard(null)}v.length&&(T=a.create({style:w.getCurrentInlineStyle(),entity:d(w.getCurrentContent(),w.getSelection())}),K=p.getCurrentBlockType(w),_=l.processText(v,T,K),D=s.createFromArray(_),t.update(o(t._latestEditorState,D)))}}function o(t,e,n){var r=u.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return f.push(t,r.set("entityMap",n),"insert-fragment")}function i(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}var s=n(17),a=n(5),c=n(60),u=n(4),l=n(79),f=n(3),p=n(44),d=n(29),g=n(53),h=n(19),y=n(128);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n,r,c;t._blockSelectEvents||t._latestEditorState!==t.props.editorState||(e=t.props.editorState,n=i.findDOMNode(t.editorContainer),n?void 0:a(!1),n.firstChild instanceof HTMLElement?void 0:a(!1),r=s(e,n.firstChild),c=r.selectionState,c!==e.getSelection()&&(e=r.needsRecovery?o.forceSelection(e,c):o.acceptSelection(e,c),t.update(e)))}var o=n(3),i=n(21),s=n(107),a=n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(r,i){var a=t.getText(),c=t.getEntityAt(r);n.push({offset:s(a.slice(0,r)),length:s(a.slice(r,i)),key:Number(e[o.stringify(c)])})}),n}var o=n(43),i=n(13),s=i.strlen;t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=[],o=e.map(function(t){return t.has(n)}).toList();return s(o,a,c,function(e,o){var s=t.getText();r.push({offset:i.strlen(s.slice(0,e)),length:i.strlen(s.slice(e,o)),style:n})}),r}function o(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return r(t,e,n)});return Array.prototype.concat.apply(u,n.toJS())}var i=n(13),s=n(18),a=function(t,e){return t===e},c=function(t){return!!t},u=[];t.exports=o},function(t,e,n){"use strict";function r(t){var e,n,r=getComputedStyle(t),o=document.createElement("div");return o.style.fontFamily=r.fontFamily,o.style.fontSize=r.fontSize,o.style.fontStyle=r.fontStyle,o.style.fontWeight=r.fontWeight,o.style.lineHeight=r.lineHeight,o.style.position="absolute",o.textContent="M",e=document.body,e?void 0:u(!1),e.appendChild(o),n=o.getBoundingClientRect(),e.removeChild(o),n.height}function o(t,e){var n,r,o=1/0,i=1/0,s=-(1/0),a=-(1/0);for(n=0;n<t.length;n++)r=t[n],0!==r.width&&1!==r.width&&(o=Math.min(o,r.top),i=Math.min(i,r.bottom),s=Math.max(s,r.top),a=Math.max(a,r.bottom));return s<=i&&s-o<e&&a-i<e}function i(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}function s(t){var e,n,s,l,f,p,d,g;for(t.collapsed?void 0:u(!1),t=t.cloneRange(),e=t.startContainer,1!==e.nodeType&&(e=e.parentNode),n=r(e),s=t.endContainer,l=t.endOffset,t.setStart(t.startContainer,0);o(c(t),n)&&(s=t.startContainer,l=t.startOffset,s.parentNode?void 0:u(!1),t.setStartBefore(s),1!==s.nodeType||"inline"===getComputedStyle(s).display););for(f=s,p=l-1;;){for(d=f.nodeValue,g=p;g>=0;g--)if(!(null!=d&&g>0&&a.isSurrogatePair(d,g-1))){if(t.setStart(f,g),!o(c(t),n))break;s=f,l=g}if(g===-1||0===f.childNodes.length)break;f=f.childNodes[g],p=i(f)}return t.setStart(s,l),t}var a=n(13),c=n(50),u=n(1);t.exports=s},function(t,e,n){"use strict";function r(t,e,n,r,i){var s,a,c,u,l,f=r.getStartOffset(),p=r.getEndOffset(),d=e.getEntityAt(f),g=n.getEntityAt(p-1);return d||g?(s=r,d&&d===g?s=o(t,e,s,i,d,!0,!0):d&&g?(a=o(t,e,s,i,d,!1,!0),c=o(t,n,s,i,g,!1,!1),s=s.merge({anchorOffset:a.getAnchorOffset(),focusOffset:c.getFocusOffset(),isBackward:!1})):d?(u=o(t,e,s,i,d,!1,!0),s=s.merge({anchorOffset:u.getStartOffset(),isBackward:!1})):g&&(l=o(t,n,s,i,g,!1,!1),s=s.merge({focusOffset:l.getEndOffset(),isBackward:!1})),s):r}function o(t,e,n,r,o,c,u){var l,f,p,d=n.getStartOffset(),g=n.getEndOffset(),h=t.__get(o),y=h.getMutability(),m=u?d:g;return"MUTABLE"===y?n:(l=s(e,o).filter(function(t){return m<=t.end&&m>=t.start}),1!=l.length?a(!1):void 0,f=l[0],"IMMUTABLE"===y?n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1}):(c||(u?g=f.end:d=f.start),p=i.getRemovalRange(d,g,e.getText().slice(f.start,f.end),f.start,r),n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})))}var i=n(76),s=n(109),a=n(1);t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,n){var r=e.getSelection();return 0===r.rangeCount?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:o(t,n,r.anchorNode,r.anchorOffset,r.focusNode,r.focusOffset)}var o=n(47);t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){var e,n,r,i,s=o(t),a=0,c=0,u=0,l=0;if(s.length)for(s.length>1&&0===s[0].width?(e=s[1],a=e.top,c=e.right,u=e.bottom,l=e.left):(n=s[0],a=n.top,c=n.right,u=n.bottom,l=n.left),r=1;r<s.length;r++)i=s[r],0!==i.height&&0!==i.width&&(a=Math.min(a,i.top),c=Math.max(c,i.right),u=Math.max(u,i.bottom),l=Math.min(l,i.left));return{top:a,right:c,bottom:u,left:l,width:c-l,height:u-a}}var o=n(50);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){n.push({start:t,end:e})}),n.length?void 0:o(!1),n}var o=n(1);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n,r,i,s,a,c=t.getSelection();return c.rangeCount?(e=c.getRangeAt(0),n=o(e),r=n.top,i=n.right,s=n.bottom,a=n.left,0===r&&0===i&&0===s&&0===a?null:n):null}var o=n(108);t.exports=r},function(t,e,n){"use strict";var r=n(17),o=n(6),i=n(2),s=n(55),a=n(1),c=n(58),u=i.List,l=function(t,e,n,r,o,i){var a=n.get(o),c=a.getText(),u=a.getCharacterList(),l=o,f=i+r.getText().length,p=a.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:s(u,r.getCharacterList(),i),data:r.getData()});return t.merge({blockMap:n.set(o,p),selectionBefore:e,selectionAfter:e.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},f=function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),s=o.slice(0,e),a=n.first();return t.merge({text:i+a.getText(),characterList:s.concat(a.getCharacterList()),type:i?t.getType():a.getType(),data:a.getData()})},p=function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,s=r.slice(e,i),a=o.slice(e,i),c=n.last();return c.merge({text:c.getText()+s,characterList:c.getCharacterList().concat(a),data:c.getData()})},d=function(t,e){var n,r=t.getKey(),o=t,i=[];for(e.get(r)&&i.push(r);o&&o.getNextSiblingKey()&&(n=o.getNextSiblingKey());)i.push(n),o=e.get(n);return i},g=function(t,e,n,r){return t.withMutations(function(e){var o,i,s,a,c,l=n.getKey(),f=r.getKey(),p=n.getNextSiblingKey(),g=n.getParentKey(),h=d(r,t),y=h[h.length-1];e.get(f)?(e.setIn([l,"nextSibling"],f),e.setIn([f,"prevSibling"],l)):(e.setIn([l,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],l)),e.setIn([y,"nextSibling"],p),p&&e.setIn([p,"prevSibling"],y),h.forEach(function(t){return e.setIn([t,"parent"],g)}),g&&(o=t.get(g),i=o.getChildKeys(),s=i.indexOf(l),a=s+1,c=i.toArray(),c.splice.apply(c,[a,0].concat(h)),e.setIn([g,"children"],u(c)))})},h=function(t,e,n,i,s,a){var c,u=n.first()instanceof o,l=[],d=i.size,h=n.get(s),y=i.first(),m=i.last(),v=m.getLength(),b=m.getKey(),S=u&&(!h.getChildKeys().isEmpty()||!y.getChildKeys().isEmpty());return n.forEach(function(t,e){return e!==s?void l.push(t):(S?l.push(t):l.push(f(t,a,i)),i.slice(S?0:1,d-1).forEach(function(t){return l.push(t)}),void l.push(p(t,a,i)))}),c=r.createFromArray(l),u&&(c=g(c,n,h,y)),t.merge({blockMap:c,selectionBefore:e,selectionAfter:e.merge({anchorKey:b,anchorOffset:v,focusKey:b,focusOffset:v,isBackward:!1})})},y=function(t,e,n){var r,i,s,u,f;return e.isCollapsed()?void 0:a(!1),r=t.getBlockMap(),i=c(n),s=e.getStartKey(),u=e.getStartOffset(),f=r.get(s),f instanceof o&&(f.getChildKeys().isEmpty()?void 0:a(!1)),1===i.size?l(t,e,r,i.first(),s,u):h(t,e,r,i,s,u)};t.exports=y},function(t,e,n){"use strict";function r(t,e,n,r){var o,c,u,l,f,p,d,g;return e.isCollapsed()?void 0:s(!1),(o=n.length)?(c=t.getBlockMap(),u=e.getStartKey(),l=e.getStartOffset(),f=c.get(u),p=f.getText(),d=f.merge({text:p.slice(0,l)+n+p.slice(l,f.getLength()),characterList:i(f.getCharacterList(),a(r,o).toList(),l)}),g=l+o,t.merge({blockMap:c.set(u,d),selectionAfter:e.merge({anchorOffset:g,focusOffset:g})})):t}var o=n(2),i=n(55),s=n(1),a=o.Repeat;t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){var n=c(t,function(t){var n,r,o=t.getSelection();return o.isCollapsed()&&0===o.getAnchorOffset()?a(t,1):(n=e.getSelection(),r=n.getRangeAt(0),r=i(r),s(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState)},"backward");return n===t.getCurrentContent()?t:o.push(t,n,"remove-range")}var o=n(3),i=n(105),s=n(47),a=n(30),c=n(20);t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){var e=a(t,function(t){var e,n,r,i,a=t.getSelection(),c=a.getStartOffset();return 0===c?s(t,1):(e=a.getStartKey(),n=t.getCurrentContent(),r=n.getBlockForKey(e).getText().slice(0,c),i=o.getBackward(r),s(t,i.length||1))},"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}var o=n(42),i=n(3),s=n(30),a=n(20);t.exports=r},function(t,e,n){"use strict";function r(t){var e=a(t,function(t){var e=t.getSelection(),n=e.getStartOffset(),r=e.getStartKey(),i=t.getCurrentContent(),a=i.getBlockForKey(r).getText().slice(n),c=o.getForward(a);return s(t,c.length||1)},"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}var o=n(42),i=n(3),s=n(57),a=n(20);t.exports=r},function(t,e,n){"use strict";function r(t){var e=o.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}var o=n(4),i=n(3);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.getSelection(),n=e.getEndKey(),r=t.getCurrentContent(),i=r.getBlockForKey(n).getLength();return o.set(t,{selection:e.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}var o=n(3);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.getSelection(),n=e.getStartKey();return o.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}var o=n(3);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=a(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),o=e.getAnchorOffset(),a=n.getBlockForKey(r).getText()[o-1];return s(t,a?i.getUTF16Length(a,0):1)},"backward");return n===t.getCurrentContent()?t:(e=t.getSelection(),o.push(t,n.set("selectionBefore",e),e.isCollapsed()?"backspace-character":"remove-range"))}var o=n(3),i=n(13),s=n(30),a=n(20);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=a(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),o=e.getAnchorOffset(),a=n.getBlockForKey(r).getText()[o];return s(t,a?i.getUTF16Length(a,0):1)},"forward");return n===t.getCurrentContent()?t:(e=t.getSelection(),o.push(t,n.set("selectionBefore",e),e.isCollapsed()?"delete-character":"remove-range"));
}var o=n(3),i=n(13),s=n(57),a=n(20);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n,r,a,c,u,l,f,p,d,g,h,y,m,v=t.getSelection();return v.isCollapsed()?(e=v.getAnchorOffset(),0===e?t:(n=v.getAnchorKey(),r=t.getCurrentContent(),a=r.getBlockForKey(n),c=a.getLength(),c<=1?t:(e===c?(u=v.set("anchorOffset",e-1),l=v):(u=v.set("focusOffset",e+1),l=u.set("anchorOffset",e+1)),f=s(r,u),p=o.removeRange(r,u,"backward"),d=p.getSelectionAfter(),g=d.getAnchorOffset()-1,h=d.merge({anchorOffset:g,focusOffset:g}),y=o.replaceWithFragment(p,h,f),m=i.push(t,y,"insert-fragment"),i.acceptSelection(m,l)))):t}var o=n(4),i=n(3),s=n(24);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r,i=o.undo(e);return"spellcheck-change"===e.getLastChangeType()?(r=i.getCurrentContent(),void n(o.set(i,{nativelyRenderedContent:r}))):(t.preventDefault(),e.getNativelyRenderedContent()?(n(o.set(e,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i))}var o=n(3);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=e.getStartKey(),o=e.getEndKey(),s=t.getBlockMap(),a=s.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===o}).concat(i([[o,s.get(o)]])).map(n);return t.merge({blockMap:s.merge(a),selectionBefore:e,selectionAfter:e})}var o=n(2),i=o.Map;t.exports=r},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(49),s=n(1),a=o.OrderedMap,c=o.List,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n,r,o){var i,s,a,l,f,p,d,g,h;return o?(i="after"===r,s=e.getKey(),a=n.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),d=n.getParentKey(),g=i?n.getNextSiblingKey():a,h=i?a:n.getPrevSiblingKey(),t.withMutations(function(t){u(l,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(s))})}),u(p,t,function(t){return t.merge({nextSibling:f})}),u(f,t,function(t){return t.merge({prevSibling:p})}),u(g,t,function(t){return t.merge({prevSibling:s})}),u(h,t,function(t){return t.merge({nextSibling:s})}),u(d,t,function(t){var e=t.getChildKeys(),n=e.indexOf(a),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,s),t.merge({children:c(o)})}),u(s,t,function(t){return t.merge({nextSibling:g,prevSibling:h,parent:d})})})):t},f=function(t,e,n,o){var c,u,f,p,d,g,h,y,m,v,b,S;return"replace"===o?s(!1):void 0,c=n.getKey(),u=e.getKey(),u===c?s(!1):void 0,f=t.getBlockMap(),p=e instanceof r,d=[e],g=f.delete(u),p&&(d=[],g=f.withMutations(function(t){var n=e.getNextSiblingKey(),r=i(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===u}).takeWhile(function(t){var e=t.getKey(),o=e===u,i=n&&e!==n,s=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||i||s)}).forEach(function(e){d.push(e),t.delete(e.getKey())})})),h=g.toSeq().takeUntil(function(t){return t===n}),y=g.toSeq().skipUntil(function(t){return t===n}).skip(1),m=d.map(function(t){return[t.getKey(),t]}),v=a(),"before"===o?(b=t.getBlockBefore(c),b&&b.getKey()===e.getKey()?s(!1):void 0,v=h.concat([].concat(m,[[c,n]]),y).toOrderedMap()):"after"===o&&(S=t.getBlockAfter(c),S&&S.getKey()===u?s(!1):void 0,v=h.concat([[c,n]].concat(m),y).toOrderedMap()),t.merge({blockMap:l(v,e,n,o,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})};t.exports=f},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(49),s=(o.List,o.Map),a=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},c=function(t,e){var n,r,o=[];if(!t)return o;for(n=e.get(t);n&&n.getParentKey();)r=n.getParentKey(),r&&o.push(r),n=r?e.get(r):null;return o},u=function(t,e){var n,r,o=[];if(!t)return o;for(n=i(t,e);n&&e.get(n);)r=e.get(n),o.push(n),n=r.getParentKey()?i(r,e):null;return o},l=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},f=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},p=function(t,e,n,r){return t.withMutations(function(t){a(e.getKey(),t,function(n){return n.merge({nextSibling:l(e,t,r),prevSibling:f(e,t,r)})}),a(n.getKey(),t,function(e){return e.merge({nextSibling:l(n,t,r),prevSibling:f(n,t,r)})}),c(e.getKey(),r).forEach(function(e){return a(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:l(e,t,r),prevSibling:f(e,t,r)})})}),a(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}),a(e.getPrevSiblingKey(),t,function(n){return n.merge({nextSibling:l(e,t,r)})}),a(n.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:f(n,t,r)})}),a(n.getPrevSiblingKey(),t,function(t){return t.merge({nextSibling:n.getNextSiblingKey()})}),c(n.getKey(),r).forEach(function(e){a(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:l(e,t,r),prevSibling:f(e,t,r)})})}),u(n,r).forEach(function(e){return a(e,t,function(e){return e.merge({nextSibling:l(e,t,r),prevSibling:f(e,t,r)})})})})},d=function(t,e){var n,o,a,u,l,f,d,h,y,m,v,b,S,w,x;return e.isCollapsed()?t:(n=t.getBlockMap(),o=e.getStartKey(),a=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),f=n.get(o),d=n.get(u),h=f instanceof r,y=[],h&&(m=d.getChildKeys(),v=c(u,n),d.getNextSiblingKey()&&(y=y.concat(v)),m.isEmpty()||(y=y.concat(v.concat([u]))),y=y.concat(c(i(d,n),n))),b=void 0,b=f===d?g(f.getCharacterList(),a,l):f.getCharacterList().slice(0,a).concat(d.getCharacterList().slice(l)),S=f.merge({text:f.getText().slice(0,a)+d.getText().slice(l),characterList:b}),w=n.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===u}).filter(function(t,e){return y.indexOf(e)===-1}).concat(s([[u,null]])).map(function(t,e){return e===o?S:null}),x=n.merge(w).filter(function(t){return!!t}),h&&(x=p(x,f,d,n)),t.merge({blockMap:x,selectionBefore:e,selectionAfter:e.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})}))},g=function(t,e,n){var r,o;if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else r=t.slice(0,e),o=t.slice(n),t=r.concat(o).toList();return t};t.exports=d},function(t,e,n){(function(e){"use strict";function r(t,e){if(!t)return"[empty]";var n=o(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element?void 0:d(!1),n.outerHTML)}function o(t,e){var n,r,i,s,a=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE)return n=t.textContent.length,document.createTextNode("[text "+n+(a.length?" | "+a.join(", "):"")+"]");for(r=t.cloneNode(),1===r.nodeType&&a.length&&r.setAttribute("data-labels",a.join(", ")),i=t.childNodes,s=0;s<i.length;s++)r.appendChild(o(i[s],e));return r}function i(t,e){for(var n=t;n;){if(n instanceof Element&&n.hasAttribute("contenteditable"))return r(n,e);n=n.parentNode}return"Could not find contentEditable parent of node"}function s(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function a(t,n,r,o,i){var s,a,l,p,d,g,h,y,m,v,b,S;if(f(document.documentElement,n))return s=e.getSelection(),a=t.getAnchorKey(),l=t.getAnchorOffset(),p=t.getFocusKey(),d=t.getFocusOffset(),g=t.getIsBackward(),!s.extend&&g&&(h=a,y=l,a=p,l=d,p=h,d=y,g=!1),m=a===r&&o<=l&&i>=l,v=p===r&&o<=d&&i>=d,m&&v?(s.removeAllRanges(),u(s,n,l-o,t),void c(s,n,d-o,t)):void(g?(v&&(s.removeAllRanges(),u(s,n,d-o,t)),m&&(b=s.focusNode,S=s.focusOffset,s.removeAllRanges(),u(s,n,l-o,t),c(s,b,S,t))):(m&&(s.removeAllRanges(),u(s,n,l-o,t)),v&&c(s,n,d-o,t)))}function c(t,e,n,r){var o,a,c=p();if(t.extend&&f(c,e)){n>s(e)&&l.logSelectionStateFailure({anonymizedDom:i(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o=e===t.focusNode;try{t.extend(e,n)}catch(s){throw l.logSelectionStateFailure({anonymizedDom:i(e,function(e){var n=[];return e===c&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:c?c.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:o,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:s?""+s:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),s}}else a=t.getRangeAt(0),a.setEnd(e,n),t.addRange(a.cloneRange())}function u(t,e,n,r){var o=document.createRange();n>s(e)&&l.logSelectionStateFailure({anonymizedDom:i(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(e,n),t.addRange(o)}var l=n(78),f=n(35),p=n(63),d=n(1);t.exports=a}).call(e,function(){return this}())},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(10),s=n(1),a=o.List,c=o.Map,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n){return t.withMutations(function(t){var r=e.getKey(),o=n.getKey();u(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:a(i)})}),u(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:o})}),u(r,t,function(t){return t.merge({nextSibling:o})}),u(o,t,function(t){return t.merge({prevSibling:r})})})},f=function(t,e){var n,o,a,u,f,p,d,g,h,y,m,v,b;return e.isCollapsed()?void 0:s(!1),n=e.getAnchorKey(),o=e.getAnchorOffset(),a=t.getBlockMap(),u=a.get(n),f=u.getText(),p=u.getCharacterList(),d=i(),g=u instanceof r,h=u.merge({text:f.slice(0,o),characterList:p.slice(0,o)}),y=h.merge({key:d,text:f.slice(o),characterList:p.slice(o),data:c()}),m=a.toSeq().takeUntil(function(t){return t===u}),v=a.toSeq().skipUntil(function(t){return t===u}).rest(),b=m.concat([[n,h],[d,y]],v).toOrderedMap(),g&&(u.getChildKeys().isEmpty()?void 0:s(!1),b=l(b,h,y)),t.merge({blockMap:b,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})};t.exports=f},function(t,e){"use strict";function n(t){return t.split(r)}var r=/\r\n?|\n/g;t.exports=n},function(t,e){"use strict";function n(t){return t.split("/")}var r={isImage:function(t){return"image"===n(t)[0]},isJpeg:function(t){var e=n(t);return r.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};t.exports=r},function(t,e){"use strict";var n="[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:----・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]";t.exports={getPunctuation:function(){return n}}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(e){n(this,t),this._uri=e}return t.prototype.toString=function(){return this._uri},t}();t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(62),i=n(34),s=n(1),a=function(){function t(e){r(this,t),e?i.isStrong(e)?void 0:s(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}return t.prototype.reset=function(){this._lastDir=this._defaultDir},t.prototype.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=a},function(t,e,n){"use strict";function r(t){return a[t]||t}function o(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}var i=n(152),s="Unknown",a={"Mac OS":"Mac OS X"},c=new i,u=c.getResult(),l=o(u.browser.version),f={browserArchitecture:u.cpu.architecture||s,browserFullVersion:u.browser.version||s,browserMinorVersion:l.minor||s,browserName:u.browser.name||s,browserVersion:u.browser.major||s,deviceName:u.device.model||s,engineName:u.engine.name||s,engineVersion:u.engine.version||s,platformArchitecture:u.cpu.architecture||s,platformName:r(u.os.name)||s,platformVersion:u.os.version||s,platformFullVersion:u.os.version||s};t.exports=f},function(t,e,n){"use strict";function r(t,e){var n=t.split(x);return n.length>1?n.some(function(t){return O.contains(t,e)}):(t=n[0].trim(),o(t,e))}function o(t,e){var n,r,o=t.split(C);return o.length>0&&o.length<=2?void 0:S(!1),1===o.length?i(o[0],e):(n=o[0],r=o[1],g(n)&&g(r)?void 0:S(!1),i(">="+n,e)&&i("<="+r,e))}function i(t,e){var n,r,o,i;if(t=t.trim(),""===t)return!0;switch(n=e.split(w),r=p(t),o=r.modifier,i=r.rangeComponents,o){case"<":return s(n,i);case"<=":return a(n,i);case">=":return u(n,i);case">":return l(n,i);case"~":case"~>":return f(n,i);default:return c(n,i)}}function s(t,e){return b(t,e)===-1}function a(t,e){var n=b(t,e);return n===-1||0===n}function c(t,e){return 0===b(t,e)}function u(t,e){var n=b(t,e);return 1===n||0===n}function l(t,e){return 1===b(t,e)}function f(t,e){var n,r,o=e.slice(),i=e.slice();return i.length>1&&i.pop(),n=i.length-1,r=parseInt(i[n],10),d(r)&&(i[n]=r+1+""),u(t,o)&&s(t,i)}function p(t){var e=t.split(w),n=e[0].match(k);return n?void 0:S(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function g(t){return!p(t).modifier}function h(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function y(t,e){var n,r,o;for(t=t.slice(),e=e.slice(),h(t,e.length),n=0;n<e.length;n++)if(r=e[n].match(/^[x*]$/i),r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(o=n;o<t.length;o++)t[o]="0";return h(e,t.length),[t,e]}function m(t,e){var n=t.match(E)[1],r=e.match(E)[1],o=parseInt(n,10),i=parseInt(r,10);return d(o)&&d(i)&&o!==i?v(o,i):v(t,e)}function v(t,e){return typeof t!=typeof e?S(!1):void 0,t>e?1:t<e?-1:0}function b(t,e){var n,r,o=y(t,e),i=o[0],s=o[1];for(n=0;n<s.length;n++)if(r=m(i[n],s[n]))return r;return 0}var S=n(1),w=/\./,x=/\|\|/,C=/\s+\-\s+/,k=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,E=/^(\d*)(.*)/,O={contains:function(t,e){return r(t.trim(),e.trim())}};t.exports=O},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){var e,n,r=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?s(!1):void 0,"number"!=typeof r?s(!1):void 0,0===r||r-1 in t?void 0:s(!1),"function"==typeof t.callee?s(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(e=Array(r),n=0;n<r;n++)e[n]=t[n];return e}function o(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function i(t){return o(t)?Array.isArray(t)?t.slice():r(t):[t]}var s=n(1);t.exports=i},function(t,e){"use strict";function n(t){return t=t||document,t.scrollingElement?t.scrollingElement:r||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=n},function(t,e,n){"use strict";function r(t){var e=o(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}var o=n(139);t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=t.ownerDocument.documentElement;return"getBoundingClientRect"in t&&o(n,t)?(e=t.getBoundingClientRect(),{left:Math.round(e.left)-n.clientLeft,right:Math.round(e.right)-n.clientLeft,top:Math.round(e.top)-n.clientTop,bottom:Math.round(e.bottom)-n.clientTop}):{left:0,right:0,top:0,bottom:0}}var o=n(35);t.exports=r},function(t,e,n){"use strict";function r(t){return null==t?t:String(t)}function o(t,e){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return r(n.getPropertyValue(s(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return r(n.getPropertyValue(s(e)));if("display"===e)return"none"}return r(t.currentStyle?"float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[i(e)]:t.style&&t.style[i(e)])}var i=n(135),s=n(143);t.exports=o},function(t,e){"use strict";function n(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},t.exports=o},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e){"use strict";function n(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(144);t.exports=r},function(t,e){"use strict";function n(t){var e,n,r;if(t||(t=""),e=void 0,n=arguments.length,n>1)for(r=1;r<n;r++)e=arguments[r],e&&(t=(t?t+" ":"")+e);return t}t.exports=n},function(t,e){"use strict";function n(t,e,n){var o,i;if(!t)return null;o={};for(i in t)r.call(t,i)&&(o[i]=e.call(n,t[i],i,t));return o}var r=Object.prototype.hasOwnProperty;t.exports=n},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e,n){(function(e){"use strict";n(151),t.exports=e.setImmediate}).call(e,function(){return this}())},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){d&&g&&(d=!1,g.length?p=g.concat(p):h=-1,p.length&&a())}function a(){var t,e;if(!d){for(t=o(s),d=!0,e=p.length;e;){for(g=p,p=[];++h<e;)g&&g[h].run();h=-1,e=p.length}g=null,d=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,f,p,d,g,h,y=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}(),p=[],d=!1,h=-1,y.nextTick=function(t){var e,n=new Array(arguments.length-1);if(arguments.length>1)for(e=1;e<arguments.length;e++)n[e-1]=arguments[e];p.push(new c(t,n)),1!==p.length||d||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={},y.on=u,y.addListener=u,y.once=u,y.off=u,y.removeListener=u,y.removeAllListeners=u,y.emit=u,y.prependListener=u,y.prependOnceListener=u,y.listeners=function(t){return[]},y.binding=function(t){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(t){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){var e,n,r;for("function"!=typeof t&&(t=new Function(""+t)),e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];return r={callback:t,args:e},g[d]=r,m(d),d++}function o(t){delete g[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function s(t){if(h)setTimeout(s,0,t);else{var e=g[t];if(e){h=!0;try{i(e)}finally{o(t),h=!1}}}}function a(){m=function(t){e.nextTick(function(){s(t)})}}function c(){var e,n;if(t.postMessage&&!t.importScripts)return e=!0,n=t.onmessage,t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}function u(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&s(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),m=function(n){t.postMessage(e+n,"*")}}function l(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;s(e)},m=function(e){t.port2.postMessage(e)}}function f(){var t=y.documentElement;m=function(e){var n=y.createElement("script");n.onreadystatechange=function(){s(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function p(){m=function(t){setTimeout(s,0,t)}}var d,g,h,y,m,v;t.setImmediate||(d=1,g={},h=!1,y=t.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(t),v=v&&v.setTimeout?v:t,"[object process]"==={}.toString.call(t.process)?a():c()?u():t.MessageChannel?l():y&&"onreadystatechange"in y.createElement("script")?f():p(),v.setImmediate=r,v.clearImmediate=o)}("undefined"==typeof self?"undefined"==typeof t?this:t:self)}).call(e,function(){return this}(),n(150))},function(t,e,n){var r;!function(o,i){"use strict";var s,a,c="0.7.17",u="",l="?",f="function",p="undefined",d="object",g="string",h="major",y="model",m="name",v="type",b="vendor",S="version",w="architecture",x="console",C="mobile",k="tablet",E="smarttv",O="wearable",T="embedded",K={extend:function(t,e){var n,r={};for(n in t)e[n]&&e[n].length%2===0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r},has:function(t,e){return"string"==typeof t&&e.toLowerCase().indexOf(t.toLowerCase())!==-1},lowerize:function(t){return t.toLowerCase()},major:function(t){return typeof t===g?t.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},_={rgx:function(t,e){for(var n,r,o,s,a,c,u,l,p=0;p<e.length&&!a;){for(u=e[p],l=e[p+1],n=r=0;n<u.length&&!a;)if(a=u[n++].exec(t))for(o=0;o<l.length;o++)c=a[++r],s=l[o],typeof s===d&&s.length>0?2==s.length?typeof s[1]==f?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3==s.length?typeof s[1]!==f||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):i:this[s[0]]=c?s[1].call(this,c,s[2]):i:4==s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):i):this[s]=c?c:i;p+=2}},str:function(t,e){var n,r;for(n in e)if(typeof e[n]===d&&e[n].length>0){for(r=0;r<e[n].length;r++)if(K.has(e[n][r],t))return n===l?i:n}else if(K.has(e[n],t))return n===l?i:n;return t}},D={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},A={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,S],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],S],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],S],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser)\/([\w\.-]+)/i],[m,S],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],S],[/(edge)\/((\d+)?[\w\.]+)/i],[m,S],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],S],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],S],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],S],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],S],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],S],[/(QQ)\/([\d\.]+)/i],[m,S],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,S],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[S,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[S,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[S,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],S],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],S],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[S,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,S],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],S],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],S],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],S],[/fxios\/([\w\.-]+)/i],[S,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[S,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[S,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],S],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[S,_.str,D.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,S],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],S],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,S]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,K.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[w,/ower/,"",K.lowerize]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[w,K.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[y,b,[v,k]],[/applecoremedia\/[\w\.]+ \((ipad)/],[y,[b,"Apple"],[v,k]],[/(apple\s{0,1}tv)/i],[[y,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,y,[v,k]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[y,[b,"Amazon"],[v,k]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[y,_.str,D.device.amazon.model],[b,"Amazon"],[v,C]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[y,b,[v,C]],[/\((ip[honed|\s\w*]+);/i],[y,[b,"Apple"],[v,C]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,y,[v,C]],[/\(bb10;\s(\w+)/i],[y,[b,"BlackBerry"],[v,C]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[y,[b,"Asus"],[v,k]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[y,"Xperia Tablet"],[v,k]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[y,[b,"Sony"],[v,C]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,y,[v,x]],[/android.+;\s(shield)\sbuild/i],[y,[b,"Nvidia"],[v,x]],[/(playstation\s[34portablevi]+)/i],[y,[b,"Sony"],[v,x]],[/(sprint\s(\w+))/i],[[b,_.str,D.device.sprint.vendor],[y,_.str,D.device.sprint.model],[v,C]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,y,[v,k]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[b,[y,/_/g," "],[v,C]],[/(nexus\s9)/i],[y,[b,"HTC"],[v,k]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[y,[b,"Huawei"],[v,C]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,y,[v,C]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[y,[b,"Microsoft"],[v,x]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[b,"Microsoft"],[v,C]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[y,[b,"Motorola"],[v,C]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[y,[b,"Motorola"],[v,k]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,K.trim],[y,K.trim],[v,E]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[b,"Samsung"],[v,E]],[/\(dtv[\);].+(aquos)/i],[y,[b,"Sharp"],[v,E]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],y,[v,k]],[/smart-tv.+(samsung)/i],[b,[v,E],y],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[b,"Samsung"],y,[v,C]],[/sie-(\w+)*/i],[y,[b,"Siemens"],[v,C]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[b,"Nokia"],y,[v,C]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[y,[b,"Acer"],[v,k]],[/android.+([vl]k\-?\d{3})\s+build/i],[y,[b,"LG"],[v,k]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],y,[v,k]],[/(lg) netcast\.tv/i],[b,y,[v,E]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],[y,[b,"LG"],[v,C]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[y,[b,"Lenovo"],[v,k]],[/linux;.+((jolla));/i],[b,y,[v,C]],[/((pebble))app\/[\d\.]+\s/i],[b,y,[v,O]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,y,[v,C]],[/crkey/i],[[y,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[y,[b,"Google"],[v,O]],[/android.+;\s(pixel c)\s/i],[y,[b,"Google"],[v,k]],[/android.+;\s(pixel xl|pixel)\s/i],[y,[b,"Google"],[v,C]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[y,/_/g," "],[b,"Xiaomi"],[v,C]],[/android.+(mi[\s\-_]*(?:pad)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[y,/_/g," "],[b,"Xiaomi"],[v,k]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[y,[b,"Meizu"],[v,k]],[/android.+a000(1)\s+build/i],[y,[b,"OnePlus"],[v,C]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[y,[b,"RCA"],[v,k]],[/android.+[;\/]\s*(Venue[\d\s]*)\s+build/i],[y,[b,"Dell"],[v,k]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[y,[b,"Verizon"],[v,k]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],y,[v,k]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[y,[b,"NuVision"],[v,k]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[[b,"ZTE"],y,[v,k]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[y,[b,"Swiss"],[v,C]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[y,[b,"Swiss"],[v,k]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[y,[b,"Zeki"],[v,k]],[/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i],[[b,"Dragon Touch"],y,[v,k]],[/android.+[;\/]\s*(NS-?.+)\s+build/i],[y,[b,"Insignia"],[v,k]],[/android.+[;\/]\s*((NX|Next)-?.+)\s+build/i],[y,[b,"NextBook"],[v,k]],[/android.+[;\/]\s*(Xtreme\_?)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],y,[v,C]],[/android.+[;\/]\s*(LVTEL\-?)?(V1[12])\s+build/i],[[b,"LvTel"],y,[v,C]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[y,[b,"Envizen"],[v,k]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(.*\b)\s+build/i],[b,y,[v,k]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[y,[b,"MachSpeed"],[v,k]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,y,[v,k]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[y,[b,"Rotor"],[v,k]],[/android.+(KS(.+))\s+build/i],[y,[b,"Amazon"],[v,k]],[/android.+(Gigaset)[\s\-]+(Q.+)\s+build/i],[b,y,[v,k]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[v,K.lowerize],b,y],[/(android.+)[;\/].+build/i],[y,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[S,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,S],[/rv\:([\w\.]+).*(gecko)/i],[S,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,S],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[S,_.str,D.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[S,_.str,D.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],S],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[m,S],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[m,"Symbian"],S],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],S],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[m,S],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],S],[/(sunos)\s?([\w\.]+\d)*/i],[[m,"Solaris"],S],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[m,S],[/(haiku)\s(\w+)/i],[m,S],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[S,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[S,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[m,S]]
},M=function(t,e){var n,r;return"object"==typeof t&&(e=t,t=i),this instanceof M?(n=t||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:u),r=e?K.extend(A,e):A,this.getBrowser=function(){var t={name:i,version:i};return _.rgx.call(t,n,r.browser),t.major=K.major(t.version),t},this.getCPU=function(){var t={architecture:i};return _.rgx.call(t,n,r.cpu),t},this.getDevice=function(){var t={vendor:i,model:i,type:i};return _.rgx.call(t,n,r.device),t},this.getEngine=function(){var t={name:i,version:i};return _.rgx.call(t,n,r.engine),t},this.getOS=function(){var t={name:i,version:i};return _.rgx.call(t,n,r.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=t,this},this):new M(t,e).getResult()};M.VERSION=c,M.BROWSER={NAME:m,MAJOR:h,VERSION:S},M.CPU={ARCHITECTURE:w},M.DEVICE={MODEL:y,VENDOR:b,TYPE:v,CONSOLE:x,MOBILE:C,SMARTTV:E,TABLET:k,WEARABLE:O,EMBEDDED:T},M.ENGINE={NAME:m,VERSION:S},M.OS={NAME:m,VERSION:S},typeof e!==p?(typeof t!==p&&t.exports&&(e=t.exports=M),e.UAParser=M):"function"===f&&n(153)?(r=function(){return M}.call(e,n,e,t),!(r!==i&&(t.exports=r))):o&&(o.UAParser=M),s=o&&(o.jQuery||o.Zepto),typeof s!==p&&(a=new M,s.ua=a.getResult(),s.ua.get=function(){return a.getUA()},s.ua.set=function(t){var e,n;a.setUA(t),e=a.getResult();for(n in e)s.ua[n]=e[n]})}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(e,{})}])});