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