/*!CK:934670258!*//*1459382619,*/

if (self.CavalryLogger) { CavalryLogger.start_js(["IKH0G"]); }

__d('DefaultDraftInlineStyle',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports={BOLD:{fontWeight:'bold'},CODE:{fontFamily:'monospace',wordWrap:'break-word'},ITALIC:{fontStyle:'italic'},STRIKETHROUGH:{textDecoration:'line-through'},UNDERLINE:{textDecoration:'underline'}};},null);
__d('CharacterMetadata',['immutable'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('immutable').Map,k=c('immutable').OrderedSet,l=c('immutable').Record,m=k(),n={style:m,entity:null},o=l(n);h=babelHelpers.inherits(p,o);i=h&&h.prototype;p.prototype.getStyle=function(){return this.get('style');};p.prototype.getEntity=function(){return this.get('entity');};p.prototype.hasStyle=function(s){return this.getStyle().has(s);};p.applyStyle=function(s,t){var u=s.set('style',s.getStyle().add(t));return p.create(u);};p.removeStyle=function(s,t){var u=s.set('style',s.getStyle().remove(t));return p.create(u);};p.applyEntity=function(s,t){var u=s.getEntity()===t?s:s.set('entity',t);return p.create(u);};p.create=function(s){if(!s)return q;var t=j({style:m,entity:null}).merge(s),u=r.get(t);if(u)return u;var v=new p(t);r=r.set(t,v);return v;};function p(){h.apply(this,arguments);}var q=new p(),r=j([[j(n),q]]);p.EMPTY=q;f.exports=p;},null);
__d('ContentStateInlineStyle',['CharacterMetadata','immutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').Map,i={add:function(k,l,m){return j(k,l,m,true);},remove:function(k,l,m){return j(k,l,m,false);}};function j(k,l,m,n){var o=k.getBlockMap(),p=l.getStartKey(),q=l.getStartOffset(),r=l.getEndKey(),s=l.getEndOffset(),t=o.skipUntil(function(u,v){return v===p;}).takeUntil(function(u,v){return v===r;}).concat(h([[r,o.get(r)]])).map(function(u,v){var w,x;if(p===r){w=q;x=s;}else{w=v===p?q:0;x=v===r?s:u.getLength();}var y=u.getCharacterList(),z;while(w<x){z=y.get(w);y=y.set(w,n?c('CharacterMetadata').applyStyle(z,m):c('CharacterMetadata').removeStyle(z,m));w++;}return u.set('characterList',y);});return k.merge({blockMap:o.merge(t),selectionBefore:l,selectionAfter:l});}f.exports=i;},null);
__d('applyEntityToContentBlock',['CharacterMetadata'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k,l){var m=i.getCharacterList();while(j<k){m=m.set(j,c('CharacterMetadata').applyEntity(m.get(j),l));j++;}return i.set('characterList',m);}f.exports=h;},null);
__d('applyEntityToContentState',['immutable','applyEntityToContentBlock'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){var l=i.getBlockMap(),m=j.getStartKey(),n=j.getStartOffset(),o=j.getEndKey(),p=j.getEndOffset(),q=l.skipUntil(function(r,s){return s===m;}).takeUntil(function(r,s){return s===o;}).toOrderedMap().merge(c('immutable').OrderedMap([[o,l.get(o)]])).map(function(r,s){var t,u;if(m===o){t=n;u=p;}else{t=s===m?n:0;u=s===o?0:r.getLength();}return c('applyEntityToContentBlock')(r,t,u,k);});return i.merge({blockMap:l.merge(q),selectionBefore:j,selectionAfter:j});}f.exports=h;},null);
__d('DraftEntitySegments',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={getRemovalRange:function(i,j,k,l,m){var n=k.split(' ');n=n.map(function(x,y){if(m==='forward'){if(y>0)return ' '+x;}else if(y<n.length-1)return x+' ';return x;});var o=l,p,q,r=null,s=null;for(var t=0;t<n.length;t++){q=n[t];p=o+q.length;if(i<p&&o<j){if(r!==null){s=p;}else{r=o;s=p;}}else if(r!==null)break;o=p;}var u=l+k.length,v=r===l,w=s===u;if(!v&&w||v&&!w)if(m==='forward'){if(s!==u)s++;}else if(r!==l)r--;return {start:r,end:s};}};f.exports=h;},null);
__d('getRangesForDraftEntity',['invariant'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j,k){var l=[];j.findEntityRanges(function(m){return m.getEntity()===k;},function(m,n){l.push({start:m,end:n});});!!!l.length?h(0):void 0;return l;}f.exports=i;},null);
__d('getCharacterRemovalRange',['invariant','DraftEntity','DraftEntitySegments','getRangesForDraftEntity'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j,k,l){var m=k.getStartOffset(),n=k.getEndOffset(),o=j.getEntityAt(m);if(!o)return k;var p=c('DraftEntity').get(o),q=p.getMutability();if(q==='MUTABLE')return k;var r=c('getRangesForDraftEntity')(j,o).filter(function(u){return m<u.end&&n>u.start;});!(r.length==1)?h(0):void 0;var s=r[0];if(q==='IMMUTABLE')return k.merge({anchorOffset:s.start,focusOffset:s.end,isBackward:false});var t=c('DraftEntitySegments').getRemovalRange(m,n,j.getText().slice(s.start,s.end),s.start,l);return k.merge({anchorOffset:t.start,focusOffset:t.end,isBackward:false});}f.exports=i;},null);
__d('generateRandomKey',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={},i=Math.pow(2,24);function j(){var k=void 0;while(k===undefined||h.hasOwnProperty(k)||!isNaN(+k))k=Math.floor(Math.random()*i).toString(32);h[k]=true;return k;}f.exports=j;},null);
__d('findRangesImmutable',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k,l){if(!i.size)return;var m=0;i.reduce(function(n,o,p){if(!j(n,o)){if(k(n))l(m,p);m=p;}return o;});k(i.last())&&l(m,i.count());}f.exports=h;},null);
__d('removeEntitiesAtEdges',['invariant','CharacterMetadata','DraftEntity','findRangesImmutable'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(l,m){var n=l.getBlockMap(),o={},p=m.getStartKey(),q=m.getStartOffset(),r=n.get(p),s=k(r,q);if(s!==r)o[p]=s;var t=m.getEndKey(),u=m.getEndOffset(),v=n.get(t);if(p===t)v=s;var w=k(v,u);if(w!==v)o[t]=w;if(!Object.keys(o).length)return l.set('selectionAfter',m);return l.merge({blockMap:n.merge(o),selectionAfter:m});}function j(l,m,n){var o;c('findRangesImmutable')(l,function(p,q){return p.getEntity()===q.getEntity();},function(p){return p.getEntity()===m;},function(p,q){if(p<=n&&q>=n)o={start:p,end:q};});!(typeof o==='object')?h(0):void 0;return o;}function k(l,m){var n=l.getCharacterList(),o=m>0?n.get(m-1):undefined,p=m<n.count()?n.get(m):undefined,q=o?o.getEntity():undefined,r=p?p.getEntity():undefined;if(r&&r===q){var s=c('DraftEntity').get(r);if(s.getMutability()!=='MUTABLE'){var t=j(n,r,m),u=t.start,v=t.end,w;while(u<v){w=n.get(u);n=n.set(u,c('CharacterMetadata').applyEntity(w,null));u++;}return l.set('characterList',n);}}return l;}f.exports=i;},null);
__d('getContentStateFragment',['generateRandomKey','removeEntitiesAtEdges'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j){var k=j.getStartKey(),l=j.getStartOffset(),m=j.getEndKey(),n=j.getEndOffset(),o=c('removeEntitiesAtEdges')(i,j),p=o.getBlockMap(),q=p.keySeq(),r=q.indexOf(k),s=q.indexOf(m)+1,t=p.slice(r,s).map(function(u,v){var w=c('generateRandomKey')(),x=u.getText(),y=u.getCharacterList();if(k===m)return u.merge({key:w,text:x.slice(l,n),characterList:y.slice(l,n)});if(v===k)return u.merge({key:w,text:x.slice(l),characterList:y.slice(l)});if(v===m)return u.merge({key:w,text:x.slice(0,n),characterList:y.slice(0,n)});return u.set('key',w);});return t.toOrderedMap();}f.exports=h;},null);
__d('BlockMapBuilder',['immutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').OrderedMap,i={createFromArray:function(j){return h(j.map(function(k){return [k.getKey(),k];}));}};f.exports=i;},null);
__d('insertIntoList',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){if(k===i.count()){j.forEach(function(n){i=i.push(n);});}else if(k===0){j.reverse().forEach(function(n){i=i.unshift(n);});}else{var l=i.slice(0,k),m=i.slice(k);i=l.concat(j,m).toList();}return i;}f.exports=h;},null);
__d('insertFragmentIntoContentState',['invariant','BlockMapBuilder','generateRandomKey','insertIntoList'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j,k,l){!k.isCollapsed()?h(0):void 0;var m=k.getStartKey(),n=k.getStartOffset(),o=j.getBlockMap(),p=l.size,q,r;if(p===1){var s=o.get(m),t=l.first(),u=s.getText(),v=s.getCharacterList(),w=s.merge({text:u.slice(0,n)+t.getText()+u.slice(n),characterList:c('insertIntoList')(v,t.getCharacterList(),n)});o=o.set(m,w);q=m;r=n+t.getText().length;return j.merge({blockMap:o.set(m,w),selectionBefore:k,selectionAfter:k.merge({anchorKey:q,anchorOffset:r,focusKey:q,focusOffset:r,isBackward:false})});}var x=[];j.getBlockMap().forEach(function(y,z){if(z!==m){x.push(y);return;}var aa=y.getText(),ba=y.getCharacterList(),ca=aa.length,da=aa.slice(0,n),ea=ba.slice(0,n),fa=l.first(),ga=y.merge({text:da+fa.getText(),characterList:ea.concat(fa.getCharacterList())});x.push(ga);l.slice(1,p-1).forEach(function(la){x.push(la.set('key',c('generateRandomKey')()));});var ha=aa.slice(n,ca),ia=ba.slice(n,ca),ja=l.last();q=c('generateRandomKey')();var ka=ja.merge({key:q,text:ja.getText()+ha,characterList:ja.getCharacterList().concat(ia)});x.push(ka);});r=l.last().getLength();return j.merge({blockMap:c('BlockMapBuilder').createFromArray(x),selectionBefore:k,selectionAfter:k.merge({anchorKey:q,anchorOffset:r,focusKey:q,focusOffset:r,isBackward:false})});}f.exports=i;},null);
__d('insertTextIntoContentState',['invariant','immutable','insertIntoList'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('immutable').Repeat;function j(k,l,m,n){!l.isCollapsed()?h(0):void 0;var o=m.length;if(!o)return k;var p=k.getBlockMap(),q=l.getStartKey(),r=l.getStartOffset(),s=p.get(q),t=s.getText(),u=s.merge({text:t.slice(0,r)+m+t.slice(r,s.getLength()),characterList:c('insertIntoList')(s.getCharacterList(),i(n,o).toList(),r)}),v=r+o;return k.merge({blockMap:p.set(q,u),selectionAfter:l.merge({anchorOffset:v,focusOffset:v})});}f.exports=j;},null);
__d('removeRangeFromContentState',['immutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j,k){if(k.isCollapsed())return j;var l=j.getBlockMap(),m=k.getStartKey(),n=k.getStartOffset(),o=k.getEndKey(),p=k.getEndOffset(),q=l.get(m),r=l.get(o),s;if(q===r){s=i(q.getCharacterList(),n,p);}else s=q.getCharacterList().slice(0,n).concat(r.getCharacterList().slice(p));var t=q.merge({text:q.getText().slice(0,n)+r.getText().slice(p),characterList:s}),u=l.toSeq().skipUntil(function(v,w){return w===m;}).takeUntil(function(v,w){return w===o;}).concat(c('immutable').Map([[o,null]])).map(function(v,w){return w===m?t:null;});l=l.merge(u).filter(function(v){return !!v;});return j.merge({blockMap:l,selectionBefore:k,selectionAfter:k.merge({anchorKey:m,anchorOffset:n,focusKey:m,focusOffset:n,isBackward:false})});}function i(j,k,l){if(k===0){while(k<l){j=j.shift();k++;}}else if(l===j.count()){while(l>k){j=j.pop();l--;}}else{var m=j.slice(0,k),n=j.slice(l);j=m.concat(n).toList();}return j;}f.exports=h;},null);
__d('setBlockTypeForContentState',['immutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){var l=j.getStartKey(),m=j.getEndKey(),n=i.getBlockMap(),o=n.toSeq().skipUntil(function(p,q){return q===l;}).takeUntil(function(p,q){return q===m;}).concat(c('immutable').Map([[m,n.get(m)]])).map(function(p){return p.merge({type:k,depth:0});});return i.merge({blockMap:n.merge(o),selectionBefore:j,selectionAfter:j});}f.exports=h;},null);
__d('splitBlockInContentState',['invariant','generateRandomKey'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j,k){!k.isCollapsed()?h(0):void 0;var l=k.getAnchorKey(),m=k.getAnchorOffset(),n=j.getBlockMap(),o=n.get(l),p=o.getText(),q=o.getCharacterList(),r=o.merge({text:p.slice(0,m),characterList:q.slice(0,m)}),s=c('generateRandomKey')(),t=r.merge({key:s,text:p.slice(m),characterList:q.slice(m)}),u=n.toSeq().takeUntil(function(x){return x===o;}),v=n.toSeq().skipUntil(function(x){return x===o;}).rest(),w=u.concat([[r.getKey(),r],[t.getKey(),t]],v).toOrderedMap();return j.merge({blockMap:w,selectionBefore:k,selectionAfter:k.merge({anchorKey:s,anchorOffset:0,focusKey:s,focusOffset:0,isBackward:false})});}f.exports=i;},null);
__d('DraftModifier',['invariant','CharacterMetadata','ContentStateInlineStyle','immutable','applyEntityToContentState','getCharacterRemovalRange','getContentStateFragment','insertFragmentIntoContentState','insertTextIntoContentState','removeEntitiesAtEdges','removeRangeFromContentState','setBlockTypeForContentState','splitBlockInContentState'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('immutable').OrderedSet,j={replaceText:function(k,l,m,n,o){var p=c('removeEntitiesAtEdges')(k,l),q=c('removeRangeFromContentState')(p,l),r=c('CharacterMetadata').create({style:n||i(),entity:o||null});return c('insertTextIntoContentState')(q,q.getSelectionAfter(),m,r);},insertText:function(k,l,m,n,o){!l.isCollapsed()?h(0):void 0;return j.replaceText(k,l,m,n,o);},moveText:function(k,l,m){var n=c('getContentStateFragment')(k,l),o=j.removeRange(k,l,'backward');return j.replaceWithFragment(o,m,n);},replaceWithFragment:function(k,l,m){var n=c('removeEntitiesAtEdges')(k,l),o=c('removeRangeFromContentState')(n,l);return c('insertFragmentIntoContentState')(o,o.getSelectionAfter(),m);},removeRange:function(k,l,m){if(l.getAnchorKey()===l.getFocusKey()){var n=l.getAnchorKey(),o=l.getStartOffset(),p=l.getEndOffset(),q=k.getBlockForKey(n),r=q.getEntityAt(o),s=q.getEntityAt(p-1);if(r&&r===s){var t=c('getCharacterRemovalRange')(q,l,m);return c('removeRangeFromContentState')(k,t);}}var u=c('removeEntitiesAtEdges')(k,l);return c('removeRangeFromContentState')(u,l);},splitBlock:function(k,l){var m=c('removeEntitiesAtEdges')(k,l),n=c('removeRangeFromContentState')(m,l);return c('splitBlockInContentState')(n,n.getSelectionAfter());},applyInlineStyle:function(k,l,m){return c('ContentStateInlineStyle').add(k,l,m);},removeInlineStyle:function(k,l,m){return c('ContentStateInlineStyle').remove(k,l,m);},setBlockType:function(k,l,m){return c('setBlockTypeForContentState')(k,l,m);},applyEntity:function(k,l,m){var n=c('removeEntitiesAtEdges')(k,l);return c('applyEntityToContentState')(n,l,m);}};f.exports=j;},null);
__d('BlockTree',['immutable','emptyFunction','findRangesImmutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').List,i=c('immutable').Repeat,j=c('immutable').Record,k=c('emptyFunction').thatReturnsTrue,l='-',m={start:null,end:null},n=j(m),o={start:null,end:null,decoratorKey:null,leaves:null},p=j(o),q={generate:function(t,u){var v=t.getLength();if(!v)return h.of(new p({start:0,end:0,decoratorKey:null,leaves:h.of(new n({start:0,end:0}))}));var w=[],x=u?u.getDecorations(t):h(i(null,v)),y=t.getCharacterList();c('findRangesImmutable')(x,s,k,function(z,aa){w.push(new p({start:z,end:aa,decoratorKey:x.get(z),leaves:r(y.slice(z,aa).toList(),z)}));});return h(w);},getFingerprint:function(t){return t.map(function(u){var v=u.get('decoratorKey'),w=v!==null?v+'.'+(u.get('end')-u.get('start')):'';return ''+w+'.'+u.get('leaves').size;}).join(l);}};function r(t,u){var v=[],w=t.map(function(x){return x.getStyle();}).toList();c('findRangesImmutable')(w,s,k,function(x,y){v.push(new n({start:x+u,end:y+u}));});return h(v);}function s(t,u){return t===u;}f.exports=q;},null);
__d('ContentBlock',['immutable','findRangesImmutable'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('immutable').List,k=c('immutable').OrderedSet,l=c('immutable').Record,m=k(),n={key:'',type:'unstyled',text:'',characterList:j(),depth:0},o=l(n);h=babelHelpers.inherits(p,o);i=h&&h.prototype;p.prototype.getKey=function(){return this.get('key');};p.prototype.getType=function(){return this.get('type');};p.prototype.getText=function(){return this.get('text');};p.prototype.getCharacterList=function(){return this.get('characterList');};p.prototype.getLength=function(){return this.getText().length;};p.prototype.getDepth=function(){return this.get('depth');};p.prototype.getInlineStyleAt=function(s){var t=this.getCharacterList().get(s);return t?t.getStyle():m;};p.prototype.getEntityAt=function(s){var t=this.getCharacterList().get(s);return t?t.getEntity():null;};p.prototype.findStyleRanges=function(s,t){c('findRangesImmutable')(this.getCharacterList(),q,s,t);};p.prototype.findEntityRanges=function(s,t){c('findRangesImmutable')(this.getCharacterList(),r,s,t);};function p(){h.apply(this,arguments);}function q(s,t){return s.getStyle()===t.getStyle();}function r(s,t){return s.getEntity()===t.getEntity();}f.exports=p;},null);
__d('SelectionState',['immutable'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('immutable').Record,k={anchorKey:'',anchorOffset:0,focusKey:'',focusOffset:0,isBackward:false,hasFocus:false},l=j(k);h=babelHelpers.inherits(m,l);i=h&&h.prototype;m.prototype.serialize=function(){return ('Anchor: '+this.getAnchorKey()+':'+this.getAnchorOffset()+', '+'Focus: '+this.getFocusKey()+':'+this.getFocusOffset()+', '+'Is Backward: '+String(this.getIsBackward())+', '+'Has Focus: '+String(this.getHasFocus()));};m.prototype.getAnchorKey=function(){return this.get('anchorKey');};m.prototype.getAnchorOffset=function(){return this.get('anchorOffset');};m.prototype.getFocusKey=function(){return this.get('focusKey');};m.prototype.getFocusOffset=function(){return this.get('focusOffset');};m.prototype.getIsBackward=function(){return this.get('isBackward');};m.prototype.getHasFocus=function(){return this.get('hasFocus');};m.prototype.hasEdgeWithin=function(n,o,p){var q=this.getAnchorKey(),r=this.getFocusKey();if(q===r&&q===n){var s=this.getStartOffset(),t=this.getEndOffset();return o<=t&&s<=p;}if(n!==q&&n!==r)return false;var u=n===q?this.getAnchorOffset():this.getFocusOffset();return o<=u&&p>=u;};m.prototype.isCollapsed=function(){return (this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset());};m.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey();};m.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset();};m.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey();};m.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset();};m.createEmpty=function(n){return new m({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:false,hasFocus:false});};function m(){h.apply(this,arguments);}f.exports=m;},null);
__d('sanitizeDraftText',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=new RegExp('\r','g');function i(j){return j.replace(h,'');}f.exports=i;},null);
__d('ContentState',['BlockMapBuilder','CharacterMetadata','ContentBlock','immutable','SelectionState','generateRandomKey','sanitizeDraftText'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('immutable').List,k=c('immutable').Record,l=c('immutable').Repeat,m={blockMap:null,selectionBefore:null,selectionAfter:null},n=k(m);h=babelHelpers.inherits(o,n);i=h&&h.prototype;o.prototype.getBlockMap=function(){return this.get('blockMap');};o.prototype.getSelectionBefore=function(){return this.get('selectionBefore');};o.prototype.getSelectionAfter=function(){return this.get('selectionAfter');};o.prototype.getBlockForKey=function(p){var q=this.getBlockMap().get(p);return q;};o.prototype.getKeyBefore=function(p){return this.getBlockMap().reverse().keySeq().skipUntil(function(q){return q===p;}).skip(1).first();};o.prototype.getKeyAfter=function(p){return this.getBlockMap().keySeq().skipUntil(function(q){return q===p;}).skip(1).first();};o.prototype.getBlockAfter=function(p){return this.getBlockMap().skipUntil(function(q,r){return r===p;}).skip(1).first();};o.prototype.getBlockBefore=function(p){return this.getBlockMap().reverse().skipUntil(function(q,r){return r===p;}).skip(1).first();};o.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray();};o.prototype.getLastBlock=function(){return this.getBlockMap().last();};o.prototype.getPlainText=function(p){return this.getBlockMap().map(function(q){return q?q.getText():'';}).join(p||'\n');};o.prototype.hasText=function(){var p=this.getBlockMap();return (p.size>1||p.first().getLength()>0);};o.createFromBlockArray=function(p){var q=c('BlockMapBuilder').createFromArray(p),r=c('SelectionState').createEmpty(q.first().getKey());return new o({blockMap:q,selectionBefore:r,selectionAfter:r});};o.createFromText=function(p){var q=arguments.length<=1||arguments[1]===undefined?/\r\n?|\n/g:arguments[1],r=p.split(q),s=r.map(function(t){t=c('sanitizeDraftText')(t);return new (c('ContentBlock'))({key:c('generateRandomKey')(),text:t,type:'unstyled',characterList:j(l(c('CharacterMetadata').EMPTY,t.length))});});return o.createFromBlockArray(s);};function o(){h.apply(this,arguments);}f.exports=o;},null);
__d('UnicodeBidiService',['invariant','UnicodeBidi','UnicodeBidiDirection'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){if(!j){j=c('UnicodeBidiDirection').getGlobalDir();}else !c('UnicodeBidiDirection').isStrong(j)?h(0):void 0;this.$UnicodeBidiService1=j;this.reset();}i.prototype.reset=function(){this.$UnicodeBidiService2=this.$UnicodeBidiService1;};i.prototype.getDirection=function(j){this.$UnicodeBidiService2=c('UnicodeBidi').getDirection(j,this.$UnicodeBidiService2);return this.$UnicodeBidiService2;};f.exports=i;},null);
__d('EditorBidiService',['immutable','UnicodeBidiService','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').OrderedMap,i,j={getDirectionMap:function(k,l){if(!i){i=new (c('UnicodeBidiService'))();}else i.reset();var m=k.getBlockMap(),n=m.valueSeq().map(function(p){return c('nullthrows')(i).getDirection(p.getText());}),o=h(m.keySeq().zip(n));if(l!=null&&c('immutable').is(l,o))return l;return o;}};f.exports=j;},null);
__d('EditorState',['BlockTree','ContentState','EditorBidiService','immutable','SelectionState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').OrderedSet,i=c('immutable').Record,j=c('immutable').Stack,k={allowUndo:true,currentContent:null,decorator:null,directionMap:null,forceSelection:false,inCompositionMode:false,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:j(),selection:null,treeMap:null,undoStack:j()},l=i(k);m.createEmpty=function(v){return m.createWithContent(c('ContentState').createFromText(''),v);};m.createWithContent=function(v,w){var x=v.getBlockMap().first().getKey();return m.create({currentContent:v,undoStack:j(),redoStack:j(),decorator:w||null,selection:c('SelectionState').createEmpty(x)});};m.create=function(v){var w=v.currentContent,x=v.decorator,y=babelHelpers['extends']({},v,{treeMap:o(w,x),directionMap:c('EditorBidiService').getDirectionMap(w)});return new m(new l(y));};m.set=function(v,w){var x=v.getImmutable().withMutations(function(y){var z=y.get('decorator'),aa=z;if(w.decorator===null){aa=null;}else if(w.decorator)aa=w.decorator;var ba=w.currentContent||v.getCurrentContent();if(aa!==z){var ca=y.get('treeMap'),da;if(aa&&z){da=q(ba.getBlockMap(),ca,aa,z);}else da=o(ba,aa);y.merge({decorator:aa,treeMap:da,nativelyRenderedContent:null});return;}var ea=v.getCurrentContent();if(ba!==ea)y.set('treeMap',p(v,ba.getBlockMap(),aa));y.merge(w);});return new m(x);};m.prototype.toJS=function(){return this.getImmutable().toJS();};m.prototype.getAllowUndo=function(){return this.getImmutable().get('allowUndo');};m.prototype.getCurrentContent=function(){return this.getImmutable().get('currentContent');};m.prototype.getUndoStack=function(){return this.getImmutable().get('undoStack');};m.prototype.getRedoStack=function(){return this.getImmutable().get('redoStack');};m.prototype.getSelection=function(){return this.getImmutable().get('selection');};m.prototype.getDecorator=function(){return this.getImmutable().get('decorator');};m.prototype.isInCompositionMode=function(){return this.getImmutable().get('inCompositionMode');};m.prototype.mustForceSelection=function(){return this.getImmutable().get('forceSelection');};m.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get('nativelyRenderedContent');};m.prototype.getLastChangeType=function(){return this.getImmutable().get('lastChangeType');};m.prototype.getInlineStyleOverride=function(){return this.getImmutable().get('inlineStyleOverride');};m.prototype.getCurrentInlineStyle=function(){var v=this.getInlineStyleOverride();if(v!=null)return v;var w=this.getCurrentContent(),x=this.getSelection();if(x.isCollapsed())return s(w,x);return t(w,x);};m.prototype.getBlockTree=function(v){return this.getImmutable().getIn(['treeMap',v]);};m.prototype.isSelectionAtStartOfContent=function(){var v=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(v,0,0);};m.prototype.isSelectionAtEndOfContent=function(){var v=this.getCurrentContent(),w=v.getBlockMap(),x=w.last(),y=x.getLength();return this.getSelection().hasEdgeWithin(x.getKey(),y,y);};m.prototype.getDirectionMap=function(){return this.getImmutable().get('directionMap');};m.acceptSelection=function(v,w){return n(v,w,false);};m.forceSelection=function(v,w){if(!w.getHasFocus())w=w.set('hasFocus',true);return n(v,w,true);};m.moveSelectionToEnd=function(v){var w=v.getCurrentContent(),x=w.getLastBlock(),y=x.getKey(),z=x.getLength();return m.acceptSelection(v,new (c('SelectionState'))({anchorKey:y,anchorOffset:z,focusKey:y,focusOffset:z,isBackward:false}));};m.moveFocusToEnd=function(v){var w=m.moveSelectionToEnd(v);return m.forceSelection(w,w.getSelection());};m.push=function(v,w,x){if(v.getCurrentContent()===w)return v;var y=x!=='insert-characters',z=c('EditorBidiService').getDirectionMap(w,v.getDirectionMap());if(!v.getAllowUndo())return m.set(v,{currentContent:w,directionMap:z,lastChangeType:x,selection:w.getSelectionAfter(),forceSelection:y,inlineStyleOverride:null});var aa=v.getSelection(),ba=v.getCurrentContent(),ca=v.getUndoStack(),da=w;if(aa!==ba.getSelectionAfter()||r(v,x)){ca=ca.push(ba);da=da.set('selectionBefore',aa);}else if(x==='insert-characters'||x==='backspace-character'||x==='delete-character')da=da.set('selectionBefore',ba.getSelectionBefore());var ea=v.getInlineStyleOverride();if(x!=='adjust-depth'&&x!=='change-block-type')ea=null;var fa={currentContent:da,directionMap:z,undoStack:ca,redoStack:j(),lastChangeType:x,selection:w.getSelectionAfter(),forceSelection:y,inlineStyleOverride:ea};return m.set(v,fa);};m.undo=function(v){if(!v.getAllowUndo())return v;var w=v.getUndoStack(),x=w.peek();if(!x)return v;var y=v.getCurrentContent(),z=c('EditorBidiService').getDirectionMap(x,v.getDirectionMap());return m.set(v,{currentContent:x,directionMap:z,undoStack:w.shift(),redoStack:v.getRedoStack().push(y),forceSelection:true,inlineStyleOverride:null,lastChangeType:'undo',nativelyRenderedContent:null,selection:y.getSelectionBefore()});};m.redo=function(v){if(!v.getAllowUndo())return v;var w=v.getRedoStack(),x=w.peek();if(!x)return v;var y=v.getCurrentContent(),z=c('EditorBidiService').getDirectionMap(x,v.getDirectionMap());return m.set(v,{currentContent:x,directionMap:z,undoStack:v.getUndoStack().push(y),redoStack:w.shift(),forceSelection:true,inlineStyleOverride:null,lastChangeType:'redo',nativelyRenderedContent:null,selection:x.getSelectionAfter()});};function m(v){this.$EditorState1=v;}m.prototype.getImmutable=function(){return this.$EditorState1;};function n(v,w,x){return m.set(v,{selection:w,forceSelection:x,nativelyRenderedContent:null,inlineStyleOverride:null});}function o(v,w){return v.getBlockMap().map(function(x){return c('BlockTree').generate(x,w);}).toOrderedMap();}function p(v,w,x){var y=v.getCurrentContent().getBlockMap(),z=v.getImmutable().get('treeMap');return z.merge(w.toSeq().filter(function(aa,ba){return aa!==y.get(ba);}).map(function(aa){return c('BlockTree').generate(aa,x);}));}function q(v,w,x,y){return w.merge(v.toSeq().filter(function(z){return (x.getDecorations(z)!==y.getDecorations(z));}).map(function(z){return c('BlockTree').generate(z,x);}));}function r(v,w){var x=v.getLastChangeType();return (w!==x||w!=='insert-characters'&&w!=='backspace-character'&&w!=='delete-character');}function s(v,w){var x=w.getStartKey(),y=w.getStartOffset(),z=v.getBlockForKey(x);if(y>0)return z.getInlineStyleAt(y-1);if(z.getLength())return z.getInlineStyleAt(0);return u(v,x);}function t(v,w){var x=w.getStartKey(),y=w.getStartOffset(),z=v.getBlockForKey(x);if(y<z.getLength())return z.getInlineStyleAt(y);if(y>0)return z.getInlineStyleAt(y-1);return u(v,x);}function u(v,w){var x=v.getBlockBefore(w),y;while(x){y=x.getLength();if(y)return x.getInlineStyleAt(y-1);x=v.getBlockBefore(x.getKey());}return h();}f.exports=m;},null);
__d('getEntityKeyForSelection',['DraftEntity'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j,k){var l;if(k.isCollapsed()){var m=k.getAnchorKey(),n=k.getAnchorOffset();if(n>0){l=j.getBlockForKey(m).getEntityAt(n-1);return i(l);}return null;}var o=k.getStartKey(),p=k.getStartOffset(),q=j.getBlockForKey(o);l=p===q.getLength()?null:q.getEntityAt(p);return i(l);}function i(j){if(j){var k=c('DraftEntity').get(j);return k.getMutability()==='MUTABLE'?j:null;}return null;}f.exports=h;},null);
__d('isSelectionAtLeafStart',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=i.getSelection(),k=j.getAnchorKey(),l=i.getBlockTree(k),m=j.getStartOffset(),n=false;l.some(function(o){if(m===o.get('start')){n=true;return true;}if(m<o.get('end'))return o.get('leaves').some(function(p){var q=p.get('start');if(m===q){n=true;return true;}if(m<q)return false;});return false;});return n;}f.exports=h;},null);
__d('DraftEditorCompositionHandler',['DraftModifier','EditorState','Keys','getEntityKeyForSelection','isSelectionAtLeafStart'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=20,i=false,j=false,k='',l={onBeforeInput:function(m){k=(k||'')+m.data;},onCompositionStart:function(){j=true;},onCompositionEnd:function(){i=false;j=false;setTimeout(function(){if(!i)l.resolveComposition.call(this);}.bind(this),h);},onKeyDown:function(m){if(m.which===c('Keys').RIGHT||m.which===c('Keys').LEFT)m.preventDefault();},onKeyPress:function(m){if(m.which===c('Keys').RETURN)m.preventDefault();},resolveComposition:function(){if(j)return;i=true;var m=k;k='';var n=c('EditorState').set(this.props.editorState,{inCompositionMode:false}),o=n.getCurrentInlineStyle(),p=c('getEntityKeyForSelection')(n.getCurrentContent(),n.getSelection()),q=!m||c('isSelectionAtLeafStart')(n)||o.size>0||p!==null;if(q)this.restoreEditorDOM();this.exitCurrentMode();this.removeRenderGuard();if(m){var r=c('DraftModifier').replaceText(n.getCurrentContent(),n.getSelection(),m,o,p);this.update(c('EditorState').push(n,r,'insert-characters'));return;}if(q)this.update(c('EditorState').set(n,{nativelyRenderedContent:null,forceSelection:true}));}};f.exports=l;},null);
__d('DraftEditorTextNode.react',['React','ReactDOM','UserAgent'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('UserAgent').isBrowser('IE <= 11');function k(o){return j?o.textContent==='\n':o.tagName==='BR';}var l=j?c('React').createElement('span',{key:'A','data-text':'true'},'\n'):c('React').createElement('br',{key:'A','data-text':'true'}),m=j?c('React').createElement('span',{key:'B','data-text':'true'},'\n'):c('React').createElement('br',{key:'B','data-text':'true'});h=babelHelpers.inherits(n,c('React').Component);i=h&&h.prototype;function n(o){i.constructor.call(this,o);this.$DraftEditorTextNode1=false;}n.prototype.shouldComponentUpdate=function(o){var p=c('ReactDOM').findDOMNode(this),q=o.children==='';if(q)return !k(p);return p.textContent!==o.children;};n.prototype.componentWillUpdate=function(){this.$DraftEditorTextNode1=!this.$DraftEditorTextNode1;};n.prototype.render=function(){if(this.props.children==='')return this.$DraftEditorTextNode1?l:m;return (c('React').createElement('span',{key:this.$DraftEditorTextNode1?'A':'B','data-text':'true'},this.props.children));};f.exports=n;},null);
__d('setDraftEditorSelection',['containsNode','getActiveElement'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(k,l,m,n,o){if(!c('containsNode')(document.documentElement,l))return;var p=b.getSelection(),q=k.getAnchorKey(),r=k.getAnchorOffset(),s=k.getFocusKey(),t=k.getFocusOffset(),u=k.getIsBackward();if(!p.extend&&u){var v=q,w=r;q=s;r=t;s=v;t=w;u=false;}var x=q===m&&n<=r&&o>=r,y=s===m&&n<=t&&o>=t;if(x&&y){p.removeAllRanges();j(p,l,r-n);i(p,l,t-n);return;}if(!u){if(x){p.removeAllRanges();j(p,l,r-n);}if(y)i(p,l,t-n);}else{if(y){p.removeAllRanges();j(p,l,t-n);}if(x){var z=p.focusNode,aa=p.focusOffset;p.removeAllRanges();j(p,l,r-n);i(p,z,aa);}}}function i(k,l,m){if(k.extend&&c('containsNode')(c('getActiveElement')(),l)){k.extend(l,m);}else{var n=k.getRangeAt(0);n.setEnd(l,m);k.addRange(n.cloneRange());}}function j(k,l,m){var n=document.createRange();n.setStart(l,m);k.addRange(n);}f.exports=h;},null);
__d('DraftEditorLeaf.react',['DraftEditorTextNode.react','React','ReactDOM','SelectionState','setDraftEditorSelection'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('React').Component);i=h&&h.prototype;j.prototype.$DraftEditorLeaf1=function(){var k=this.props.selection;if(k==null||!k.getHasFocus())return;var l=this.props,m=l.blockKey,n=l.start,o=l.text,p=n+o.length;if(!k.hasEdgeWithin(m,n,p))return;var q=c('ReactDOM').findDOMNode(this),r=q.firstChild,s=void 0;if(r.nodeType===Node.TEXT_NODE){s=r;}else if(r.tagName==='BR'){s=q;}else s=r.firstChild;c('setDraftEditorSelection')(k,s,m,n,p);};j.prototype.shouldComponentUpdate=function(k){return (c('ReactDOM').findDOMNode(this.refs.leaf).textContent!==k.text||k.styleSet!==this.props.styleSet||k.forceSelection);};j.prototype.componentDidUpdate=function(){this.$DraftEditorLeaf1();};j.prototype.componentDidMount=function(){this.$DraftEditorLeaf1();};j.prototype.render=function(){var k=this.props.text;if(k.endsWith('\n')&&this.props.isLast)k+='\n';var l=this.props,m=l.customStyleMap,n=l.offsetKey,o=l.styleSet,p=o.reduce(function(q,r){var s={},t=m[r];if(t!==undefined&&q.textDecoration!==t.textDecoration)s.textDecoration=[q.textDecoration,t.textDecoration].join(' ');return Object.assign(q,t,s);},{});return (c('React').createElement('span',{'data-offset-key':n,ref:'leaf',style:p},c('React').createElement(c('DraftEditorTextNode.react'),null,k)));};function j(){h.apply(this,arguments);}f.exports=j;},null);
__d('DraftOffsetKey',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='-',i={encode:function(j,k,l){return j+h+k+h+l;},decode:function(j){var k=j.split(h),l=k[0],m=k[1],n=k[2];return {blockKey:l,decoratorKey:parseInt(m,10),leafKey:parseInt(n,10)};}};f.exports=i;},null);
__d('DraftEditorBlock.react',['cx','ContentBlock','DraftEditorLeaf.react','DraftOffsetKey','React','ReactDOM','Scroll','SelectionState','Style','UnicodeBidi','UnicodeBidiDirection','getElementPosition','getScrollPosition','getViewportDimensions','nullthrows'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();var k=10;i=babelHelpers.inherits(l,c('React').Component);j=i&&i.prototype;l.prototype.shouldComponentUpdate=function(n){return (this.props.block!==n.block||this.props.tree!==n.tree||this.props.direction!==n.direction||m(n.selection,n.block.getKey())&&n.forceSelection);};l.prototype.componentDidMount=function(){var n=this.props.selection,o=n.getEndKey();if(!n.getHasFocus()||o!==this.props.block.getKey())return;var p=c('ReactDOM').findDOMNode(this),q=c('Style').getScrollParent(p),r=c('getScrollPosition')(q),s;if(q===window){var t=c('getElementPosition')(p),u=t.y+t.height,v=c('getViewportDimensions')().height;s=u-v;if(s>0)window.scrollTo(r.x,r.y+s+k);}else{var w=p.offsetHeight+p.offsetTop,x=q.offsetHeight+r.y;s=w-x;if(s>0)c('Scroll').setTop(q,c('Scroll').getTop(q)+s+k);}};l.prototype.$DraftEditorBlock1=function(){var n=this.props.block,o=n.getKey(),p=n.getText(),q=this.props.tree.size-1,r=m(this.props.selection,o);return this.props.tree.map(function(s,t){var u=s.get('leaves'),v=u.size-1,w=u.map(function(ea,fa){var ga=c('DraftOffsetKey').encode(o,t,fa),ha=ea.get('start'),ia=ea.get('end');return (c('React').createElement(c('DraftEditorLeaf.react'),{key:ga,offsetKey:ga,blockKey:o,start:ha,selection:r?this.props.selection:undefined,forceSelection:this.props.forceSelection,text:p.slice(ha,ia),styleSet:n.getInlineStyleAt(ha),customStyleMap:this.props.customStyleMap,isLast:t===q&&fa===v}));}.bind(this)).toArray(),x=s.get('decoratorKey');if(x==null)return w;if(!this.props.decorator)return w;var y=c('nullthrows')(this.props.decorator),z=y.getComponentForKey(x);if(!z)return w;var aa=y.getPropsForKey(x),ba=c('DraftOffsetKey').encode(o,t,0),ca=p.slice(u.first().get('start'),u.last().get('end')),da=c('UnicodeBidiDirection').getHTMLDirIfDifferent(c('UnicodeBidi').getDirection(ca),this.props.direction);return (c('React').createElement(z,babelHelpers['extends']({},aa,{decoratedText:ca,dir:da,key:ba,entityKey:n.getEntityAt(s.get('start')),offsetKey:ba}),w));}.bind(this)).toArray();};l.prototype.render=function(){var n=this.props,o=n.direction,p=n.offsetKey,q="_1mf"+(o==='LTR'?' '+"_1mj":'')+(o==='RTL'?' '+"_1mk":'');return (c('React').createElement('div',{'data-offset-key':p,className:q},this.$DraftEditorBlock1()));};function l(){i.apply(this,arguments);}function m(n,o){return (n.getAnchorKey()===o||n.getFocusKey()===o);}f.exports=l;},null);
__d('getElementForBlockType',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){switch(i){case 'header-one':return 'h1';case 'header-two':return 'h2';case 'header-three':return 'h3';case 'header-four':return 'h4';case 'header-five':return 'h5';case 'header-six':return 'h6';case 'unordered-list-item':case 'ordered-list-item':return 'li';case 'blockquote':return 'blockquote';case 'media':return 'figure';default:return 'div';}}f.exports=h;},null);
__d('getWrapperTemplateForBlockType',['cx','React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').createElement('ul',{className:"_1bv0"}),j=c('React').createElement('ol',{className:"_1bv1"}),k=c('React').createElement('pre',{className:"_1bv2"});function l(m){switch(m){case 'unordered-list-item':return i;case 'ordered-list-item':return j;case 'code-block':return k;default:return null;}}f.exports=l;},null);
__d('DraftEditorContents.react',['cx','DraftEditorBlock.react','DraftOffsetKey','EditorState','React','getElementForBlockType','getWrapperTemplateForBlockType','joinClasses','nullthrows'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('React').Component);j=i&&i.prototype;k.prototype.shouldComponentUpdate=function(m){var n=this.props.editorState,o=m.editorState,p=n.getDirectionMap(),q=o.getDirectionMap();if(p!==q)return true;var r=n.getSelection().getHasFocus(),s=o.getSelection().getHasFocus();if(r!==s)return true;var t=o.getNativelyRenderedContent(),u=n.isInCompositionMode(),v=o.isInCompositionMode();if(n===o||t!==null&&o.getCurrentContent()===t||u&&v)return false;var w=n.getCurrentContent(),x=o.getCurrentContent(),y=n.getDecorator(),z=o.getDecorator();return (u!==v||w!==x||y!==z||o.mustForceSelection());};k.prototype.render=function(){var m=this.props,n=m.blockRendererFn,o=m.customStyleMap,p=m.editorState,q=p.getCurrentContent(),r=p.getSelection(),s=p.mustForceSelection(),t=p.getDecorator(),u=c('nullthrows')(p.getDirectionMap()),v=q.getBlocksAsArray(),w=[],x=null,y=null,z=null,aa=void 0,ba=void 0,ca=void 0,da=void 0,ea=void 0,fa=void 0;for(var ga=0;ga<v.length;ga++){ba=v[ga];ca=ba.getKey();da=ba.getType();var ha=n(ba),ia=void 0,ja=void 0;if(ha){ia=ha.component;ja=ha.props;}var ka=u.get(ca),la=c('DraftOffsetKey').encode(ca,0,0),ma={block:ba,blockProps:ja,customStyleMap:o,decorator:t,direction:ka,forceSelection:s,key:ca,offsetKey:la,selection:r,tree:p.getBlockTree(ca)};fa=c('getWrapperTemplateForBlockType')(da);var na=fa!==y;if(ia){ea=c('React').createElement(ia,ma);}else{var oa=c('getElementForBlockType')(da),pa=ba.getDepth(),qa=this.props.blockStyleFn(ba);if(oa==='li'){var ra=na||z===null||pa>z;qa=c('joinClasses')(qa,l(da,pa,ra,ka));}ea=c('React').createElement(oa,{className:qa,'data-block':true,'data-editor':this.props.editorKey,'data-offset-key':la,key:ca},c('React').createElement(c('DraftEditorBlock.react'),ma));}if(fa){if(na){aa=[];x=c('React').cloneElement(fa,{key:ca+'-wrap','data-offset-key':la},aa);y=fa;w.push(x);}z=ba.getDepth();c('nullthrows')(aa).push(ea);}else{aa=null;x=null;y=null;z=null;w.push(ea);}}return c('React').createElement('div',{'data-contents':'true'},w);};function k(){i.apply(this,arguments);}function l(m,n,o,p){return (m==='unordered-list-item'?"_3kpz":'')+(m==='ordered-list-item'?' '+"_3kp_":'')+(o?' '+"_3kq0":'')+(n===0?' '+"_3kq1":'')+(n===1?' '+"_3kq2":'')+(n===2?' '+"_3kq3":'')+(n===3?' '+"_3kq4":'')+(n===4?' '+"_3kq5":'')+(p==='LTR'?' '+"_3kq6":'')+(p==='RTL'?' '+"_3kq7":'');}f.exports=k;},null);
__d('getSelectionOffsetKeyForNode',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){return i instanceof Element?i.getAttribute('data-offset-key'):null;}f.exports=h;},null);
__d('findAncestorOffsetKey',['getSelectionOffsetKeyForNode'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){while(i&&i!==document.documentElement){var j=c('getSelectionOffsetKeyForNode')(i);if(j!=null)return j;i=i.parentNode;}return null;}f.exports=h;},null);
__d('getTextContentFromFiles',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=/\.textClipping$/,i={'text/plain':true,'text/html':true,'text/rtf':true},j=5000;function k(m,n){var o=0,p=[];m.forEach(function(q){l(q,function(r){o++;r&&p.push(r.slice(0,j));if(o==m.length)n(p.join('\r'));});});}function l(m,n){if(!b.FileReader||m.type&&!(m.type in i)){n('');return;}if(m.type===''){var o='';if(h.test(m.name))o=m.name.replace(h,'');n(o);return;}var p=new FileReader();p.onload=function(){n(p.result);};p.onerror=function(){n('');};p.readAsText(m);}f.exports=k;},null);
__d('getUpdatedSelectionState',['DraftOffsetKey','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k,l,m){var n=c('nullthrows')(i.getSelection()),o=c('DraftOffsetKey').decode(j),p=o.blockKey,q=i.getBlockTree(p).getIn([o.decoratorKey,'leaves',o.leafKey]),r=c('DraftOffsetKey').decode(l),s=r.blockKey,t=i.getBlockTree(s).getIn([r.decoratorKey,'leaves',r.leafKey]),u=q.get('start'),v=t.get('start'),w=q?u+k:null,x=t?v+m:null,y=n.getAnchorKey()===p&&n.getAnchorOffset()===w&&n.getFocusKey()===s&&n.getFocusOffset()===x;if(y)return n;var z=false;if(p===s){var aa=q.get('end'),ba=t.get('end');if(v===u&&ba===aa){z=m<k;}else z=v<u;}else{var ca=i.getCurrentContent().getBlockMap().keySeq().skipUntil(function(da){return da===p||da===s;}).first();z=ca===s;}return n.merge({anchorKey:p,anchorOffset:w,focusKey:s,focusOffset:x,isBackward:z});}f.exports=h;},null);
__d('DraftEditorDragHandler',['DataTransfer','DraftModifier','EditorState','findAncestorOffsetKey','getTextContentFromFiles','getUpdatedSelectionState','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(event,l){var m=null,n=null;if(document.caretRangeFromPoint){var o=document.caretRangeFromPoint(event.x,event.y);m=o.startContainer;n=o.startOffset;}else if(event.rangeParent){m=event.rangeParent;n=event.rangeOffset;}else return null;m=c('nullthrows')(m);n=c('nullthrows')(n);var p=c('nullthrows')(c('findAncestorOffsetKey')(m));return c('getUpdatedSelectionState')(l,p,n,p,n);}var i={onDragEnd:function(){this.exitCurrentMode();},onDrop:function(l){var m=new (c('DataTransfer'))(l.nativeEvent.dataTransfer),n=this.props.editorState,o=h(l.nativeEvent,n);l.preventDefault();this.exitCurrentMode();if(o==null)return;var p=m.getFiles();if(p.length>0){if(this.props.handleDroppedFiles&&this.props.handleDroppedFiles(o,p))return;c('getTextContentFromFiles')(p,function(r){r&&this.update(k(n,c('nullthrows')(o),r));}.bind(this));return;}var q=this._internalDrag?'internal':'external';if(this.props.handleDrop&&this.props.handleDrop(o,m,q))return;if(this._internalDrag){this.update(j(n,o));return;}this.update(k(n,o,m.getText()));}};function j(l,m){var n=c('DraftModifier').moveText(l.getCurrentContent(),l.getSelection(),m);return c('EditorState').push(l,n,'insert-fragment');}function k(l,m,n){var o=c('DraftModifier').insertText(l.getCurrentContent(),m,n,l.getCurrentInlineStyle());return c('EditorState').push(l,o,'insert-fragment');}f.exports=i;},null);
__d('editOnBeforeInput',['BlockTree','DraftModifier','EditorState','UserAgent','getEntityKeyForSelection','isSelectionAtLeafStart','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='\'',i='\/',j=c('UserAgent').isBrowser('Firefox');function k(n){return (j&&(n==h||n==i));}function l(n,o,p,q){var r=c('DraftModifier').replaceText(n.getCurrentContent(),n.getSelection(),o,p,q);return c('EditorState').push(n,r,'insert-characters');}function m(n){var o=n.data;if(!o)return;if(this.props.handleBeforeInput&&this.props.handleBeforeInput(o)){n.preventDefault();return;}var p=this.props.editorState,q=p.getSelection();if(!q.isCollapsed()){n.preventDefault();this.update(l(p,o,p.getCurrentInlineStyle(),c('getEntityKeyForSelection')(p.getCurrentContent(),p.getSelection())));return;}var r=!c('isSelectionAtLeafStart')(p),s=l(p,o,p.getCurrentInlineStyle(),c('getEntityKeyForSelection')(p.getCurrentContent(),p.getSelection()));if(!r){n.preventDefault();this.update(s);return;}var t=q.getAnchorKey(),u=p.getBlockTree(t),v=c('BlockTree').getFingerprint(u),w=c('BlockTree').getFingerprint(s.getBlockTree(t));if(k(o)||v!==w||c('nullthrows')(s.getDirectionMap()).get(t)!==c('nullthrows')(p.getDirectionMap()).get(t)){n.preventDefault();}else s=c('EditorState').set(s,{nativelyRenderedContent:s.getCurrentContent()});this.update(s);}f.exports=m;},null);
__d('editOnBlur',['EditorState','UserAgent','getActiveElement'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('UserAgent').isEngine('WebKit');function i(j){if(h&&c('getActiveElement')()===document.body)b.getSelection().removeAllRanges();var k=this.props.editorState,l=k.getSelection();if(!l.getHasFocus())return;var m=l.set('hasFocus',false);this.props.onBlur&&this.props.onBlur(j);this.update(c('EditorState').acceptSelection(k,m));}f.exports=i;},null);
__d('editOnCompositionStart',['EditorState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.setRenderGuard();this.setMode('composite');this.update(c('EditorState').set(this.props.editorState,{inCompositionMode:true}));}f.exports=h;},null);
__d('getFragmentFromSelection',['getContentStateFragment'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=i.getSelection();if(!j.isCollapsed())return c('getContentStateFragment')(i.getCurrentContent(),j);}f.exports=h;},null);
__d('editOnCopy',['getFragmentFromSelection'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=this.props.editorState,k=j.getSelection();if(k.isCollapsed()){i.preventDefault();return;}this.setClipboard(c('getFragmentFromSelection')(this.props.editorState));}f.exports=h;},null);
__d('editOnCut',['DraftModifier','EditorState','Style','getFragmentFromSelection','getScrollPosition'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j){var k=this.props.editorState,l=k.getSelection();if(l.isCollapsed()){j.preventDefault();return;}var m=c('Style').getScrollParent(j.target),n=c('getScrollPosition')(m),o=n.x,p=n.y,q=c('getFragmentFromSelection')(k);this.setClipboard(q);this.setRenderGuard();this.setMode('cut');setTimeout(function(){this.restoreEditorDOM({x:o,y:p});this.removeRenderGuard();this.exitCurrentMode();this.update(i(k));}.bind(this),0);}function i(j){var k=c('DraftModifier').removeRange(j.getCurrentContent(),j.getSelection(),'forward');return c('EditorState').push(j,k,'remove-range');}f.exports=h;},null);
__d('editOnDragOver',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){this._internalDrag=false;this.setMode('drag');i.preventDefault();}f.exports=h;},null);
__d('editOnDragStart',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this._internalDrag=true;this.setMode('drag');}f.exports=h;},null);
__d('editOnFocus',['EditorState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=this.props.editorState,k=j.getSelection();if(k.getHasFocus())return;var l=k.set('hasFocus',true);this.props.onFocus&&this.props.onFocus(i);this.update(c('EditorState').forceSelection(j,l));}f.exports=h;},null);
__d('editOnInput',['DraftModifier','DraftOffsetKey','EditorState','UserAgent','findAncestorOffsetKey','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('UserAgent').isEngine('Gecko'),i='\n\n';function j(){var k=b.getSelection(),l=k.anchorNode,m=k.isCollapsed;if(l.nodeType!==Node.TEXT_NODE)return;var n=l.textContent,o=this.props.editorState,p=c('nullthrows')(c('findAncestorOffsetKey')(l)),q=c('DraftOffsetKey').decode(p),r=q.blockKey,s=q.decoratorKey,t=q.leafKey,u=o.getBlockTree(r).getIn([s,'leaves',t]),v=u.start,w=u.end,x=o.getCurrentContent(),y=x.getBlockForKey(r),z=y.getText().slice(v,w);if(n.endsWith(i))n=n.slice(0,-1);if(n===z)return;var aa=o.getSelection(),ba=aa.merge({anchorOffset:v,focusOffset:w,isBackward:false}),ca=c('DraftModifier').replaceText(x,ba,n,y.getInlineStyleAt(v)),da,ea,fa,ga;if(h){da=k.anchorOffset;ea=k.focusOffset;fa=v+Math.min(da,ea);ga=fa+Math.abs(da-ea);da=fa;ea=ga;}else{var ha=n.length-z.length;fa=aa.getStartOffset();ga=aa.getEndOffset();da=m?ga+ha:fa;ea=ga+ha;}var ia=ca.merge({selectionBefore:x.getSelectionAfter(),selectionAfter:aa.merge({anchorOffset:da,focusOffset:ea})});this.update(c('EditorState').push(o,ia,'spellcheck-change'));}f.exports=j;},null);
__d('SecondaryClipboard',['DraftModifier','EditorState','getContentStateFragment','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=null,i={cut:function(j){var k=j.getCurrentContent(),l=j.getSelection(),m=null;if(l.isCollapsed()){var n=l.getAnchorKey(),o=k.getBlockForKey(n).getLength();if(o===l.getAnchorOffset())return j;m=l.set('focusOffset',o);}else m=l;m=c('nullthrows')(m);h=c('getContentStateFragment')(k,m);var p=c('DraftModifier').removeRange(k,m,'forward');if(p===k)return j;return c('EditorState').push(j,p,'remove-range');},paste:function(j){if(!h)return j;var k=c('DraftModifier').replaceWithFragment(j.getCurrentContent(),j.getSelection(),h);return c('EditorState').push(j,k,'insert-fragment');}};f.exports=i;},null);
__d('getRangeClientRects',['invariant','UserAgent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('UserAgent').isBrowser('Chrome');function j(l){var m=l.cloneRange(),n=[];for(var o=l.endContainer;o!=null;o=o.parentNode){var p=o===l.commonAncestorContainer;if(p){m.setStart(l.startContainer,l.startOffset);}else m.setStart(m.endContainer,0);var q=Array.from(m.getClientRects());n.push(q);if(p){var r;n.reverse();return (r=[]).concat.apply(r,n);}m.setEndBefore(o);}h(0);}var k=i?j:function(l){return Array.from(l.getClientRects());};f.exports=k;},null);
__d('expandRangeToStartOfLine',['invariant','UnicodeUtils','getRangeClientRects'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(m){var n=getComputedStyle(m),o=document.createElement('div');o.style.fontFamily=n.fontFamily;o.style.fontSize=n.fontSize;o.style.fontStyle=n.fontStyle;o.style.fontWeight=n.fontWeight;o.style.lineHeight=n.lineHeight;o.style.position='absolute';o.textContent='M';document.body.appendChild(o);var p=o.getBoundingClientRect();document.body.removeChild(o);return p.height;}function j(m,n){var o=Infinity,p=Infinity,q=-Infinity,r=-Infinity;for(var s=0;s<m.length;s++){var t=m[s];if(t.width===0||t.width===1)continue;o=Math.min(o,t.top);p=Math.min(p,t.bottom);q=Math.max(q,t.top);r=Math.max(r,t.bottom);}return (q<=p&&q-o<n&&r-p<n);}function k(m){switch(m.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return m.length;default:return m.childNodes.length;}}function l(m){!m.collapsed?h(0):void 0;m=m.cloneRange();var n=m.startContainer;if(n.nodeType!==1)n=n.parentNode;var o=i(n),p=m.endContainer,q=m.endOffset;m.setStart(m.startContainer,0);while(j(c('getRangeClientRects')(m),o)){p=m.startContainer;q=m.startOffset;!p.parentNode?h(0):void 0;m.setStartBefore(p);if(p.nodeType===1&&getComputedStyle(p).display!=='inline')break;}var r=p,s=q-1;do{var t=r.nodeValue;for(var u=s;u>=0;u--){if(t!=null&&u>0&&c('UnicodeUtils').isSurrogatePair(t,u-1))continue;m.setStart(r,u);if(j(c('getRangeClientRects')(m),o)){p=r;q=u;}else break;}if(u===-1||r.childNodes.length===0)break;r=r.childNodes[u];s=k(r);}while(true);m.setStart(p,q);return m;}f.exports=l;},null);
__d('getDraftEditorSelectionWithNodes',['invariant','findAncestorOffsetKey','getSelectionOffsetKeyForNode','getUpdatedSelectionState','nullthrows'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(n,o,p,q,r,s){var t=p.nodeType===Node.TEXT_NODE,u=r.nodeType===Node.TEXT_NODE;if(t&&u)return {selectionState:c('getUpdatedSelectionState')(n,c('nullthrows')(c('findAncestorOffsetKey')(p)),q,c('nullthrows')(c('findAncestorOffsetKey')(r)),s),needsRecovery:false};var v=null,w=null,x=true;if(t){v={key:c('nullthrows')(c('findAncestorOffsetKey')(p)),offset:q};w=l(o,r,s);}else if(u){w={key:c('nullthrows')(c('findAncestorOffsetKey')(r)),offset:s};v=l(o,p,q);}else{v=l(o,p,q);w=l(o,r,s);if(p===r&&q===s)x=p.firstChild.nodeName!=='BR';}return {selectionState:c('getUpdatedSelectionState')(n,v.key,v.offset,w.key,w.offset),needsRecovery:x};}function j(n){while(n.firstChild&&c('getSelectionOffsetKeyForNode')(n.firstChild))n=n.firstChild;return n;}function k(n){while(n.lastChild&&c('getSelectionOffsetKeyForNode')(n.lastChild))n=n.lastChild;return n;}function l(n,o,p){var q=c('findAncestorOffsetKey')(o);!(q!=null||n&&(n===o||n.firstChild===o))?h(0):void 0;if(n===o){o=o.firstChild;!(o instanceof Element&&o.getAttribute('data-contents')==='true')?h(0):void 0;if(p>0)p=o.childNodes.length;}if(p===0){var r=null;if(q!=null){r=q;}else{var s=j(o);r=c('nullthrows')(c('getSelectionOffsetKeyForNode')(s));}return {key:r,offset:0};}var t=o.childNodes[p-1],u=null,v=null;if(!c('getSelectionOffsetKeyForNode')(t)){u=c('nullthrows')(q);v=m(t);}else{var w=k(t);u=c('nullthrows')(c('getSelectionOffsetKeyForNode')(w));v=m(w);}return {key:u,offset:v};}function m(n){var o=n.textContent;return o==='\n'?0:o.length;}f.exports=i;},null);
__d('removeTextWithStrategy',['DraftModifier'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){var l=i.getSelection(),m=i.getCurrentContent(),n=l;if(l.isCollapsed()){if(k==='forward'){if(i.isSelectionAtEndOfContent())return m;}else if(i.isSelectionAtStartOfContent())return m;n=j(i);if(n===l)return m;}return c('DraftModifier').removeRange(m,n,k);}f.exports=h;},null);
__d('keyCommandBackspaceToStartOfLine',['EditorState','expandRangeToStartOfLine','getDraftEditorSelectionWithNodes','removeTextWithStrategy'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=c('removeTextWithStrategy')(i,function(k){var l=b.getSelection(),m=l.getRangeAt(0);m=c('expandRangeToStartOfLine')(m);var n=c('getDraftEditorSelectionWithNodes')(k,null,m.endContainer,m.endOffset,m.startContainer,m.startOffset).selectionState;return n;},'backward');if(j===i.getCurrentContent())return i;return c('EditorState').push(i,j,'remove-range');}f.exports=h;},null);
__d('DraftRemovableWord',['TokenizeUtil'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('TokenizeUtil').getPunctuation(),i='[\'\u2018\u2019]',j='\\s|(?![_])'+h,k='^'+'(?:'+j+')*'+'(?:'+i+'|(?!'+j+').)*'+'(?:(?!'+j+').)',l=new RegExp(k),m='(?:(?!'+j+').)'+'(?:'+i+'|(?!'+j+').)*'+'(?:'+j+')*'+'$',n=new RegExp(m);function o(q,r){var s=r?n.exec(q):l.exec(q);return s?s[0]:q;}var p={getBackward:function(q){return o(q,true);},getForward:function(q){return o(q,false);}};f.exports=p;},null);
__d('moveSelectionBackward',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j){var k=i.getSelection(),l=i.getCurrentContent(),m=k.getStartKey(),n=k.getStartOffset(),o=m,p=0;if(j>n){var q=l.getKeyBefore(m);if(q==null){o=m;}else{o=q;var r=l.getBlockForKey(q);p=r.getText().length;}}else p=n-j;return k.merge({focusKey:o,focusOffset:p,isBackward:true});}f.exports=h;},null);
__d('keyCommandBackspaceWord',['DraftRemovableWord','EditorState','moveSelectionBackward','removeTextWithStrategy'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=c('removeTextWithStrategy')(i,function(k){var l=k.getSelection(),m=l.getStartOffset();if(m===0)return c('moveSelectionBackward')(k,1);var n=l.getStartKey(),o=k.getCurrentContent(),p=o.getBlockForKey(n).getText().slice(0,m),q=c('DraftRemovableWord').getBackward(p);return c('moveSelectionBackward')(k,q.length||1);},'backward');if(j===i.getCurrentContent())return i;return c('EditorState').push(i,j,'remove-range');}f.exports=h;},null);
__d('moveSelectionForward',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j){var k=i.getSelection(),l=k.getStartKey(),m=k.getStartOffset(),n=i.getCurrentContent(),o=l,p,q=n.getBlockForKey(l);if(j>q.getText().length-m){o=n.getKeyAfter(l);p=0;}else p=m+j;return k.merge({focusKey:o,focusOffset:p});}f.exports=h;},null);
__d('keyCommandDeleteWord',['DraftRemovableWord','EditorState','moveSelectionForward','removeTextWithStrategy'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=c('removeTextWithStrategy')(i,function(k){var l=k.getSelection(),m=l.getStartOffset(),n=l.getStartKey(),o=k.getCurrentContent(),p=o.getBlockForKey(n).getText().slice(m),q=c('DraftRemovableWord').getForward(p);return c('moveSelectionForward')(k,q.length||1);},'forward');if(j===i.getCurrentContent())return i;return c('EditorState').push(i,j,'remove-range');}f.exports=h;},null);
__d('keyCommandInsertNewline',['DraftModifier','EditorState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=c('DraftModifier').splitBlock(i.getCurrentContent(),i.getSelection());return c('EditorState').push(i,j,'split-block');}f.exports=h;},null);
__d('keyCommandMoveSelectionToEndOfBlock',['EditorState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=i.getSelection(),k=j.getEndKey(),l=i.getCurrentContent(),m=l.getBlockForKey(k).getLength();return c('EditorState').set(i,{selection:j.merge({anchorKey:k,anchorOffset:m,focusKey:k,focusOffset:m,isBackward:false}),forceSelection:true});}f.exports=h;},null);
__d('keyCommandMoveSelectionToStartOfBlock',['EditorState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=i.getSelection(),k=j.getStartKey();return c('EditorState').set(i,{selection:j.merge({anchorKey:k,anchorOffset:0,focusKey:k,focusOffset:0,isBackward:false}),forceSelection:true});}f.exports=h;},null);
__d('keyCommandPlainBackspace',['EditorState','UnicodeUtils','moveSelectionBackward','removeTextWithStrategy'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=c('removeTextWithStrategy')(i,function(l){var m=l.getSelection(),n=l.getCurrentContent(),o=m.getAnchorKey(),p=m.getAnchorOffset(),q=n.getBlockForKey(o).getText()[p-1];return c('moveSelectionBackward')(l,q?c('UnicodeUtils').getUTF16Length(q,0):1);},'backward');if(j===i.getCurrentContent())return i;var k=i.getSelection();return c('EditorState').push(i,j.set('selectionBefore',k),k.isCollapsed()?'backspace-character':'remove-range');}f.exports=h;},null);
__d('keyCommandPlainDelete',['EditorState','UnicodeUtils','moveSelectionForward','removeTextWithStrategy'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=c('removeTextWithStrategy')(i,function(l){var m=l.getSelection(),n=l.getCurrentContent(),o=m.getAnchorKey(),p=m.getAnchorOffset(),q=n.getBlockForKey(o).getText()[p];return c('moveSelectionForward')(l,q?c('UnicodeUtils').getUTF16Length(q,0):1);},'forward');if(j===i.getCurrentContent())return i;var k=i.getSelection();return c('EditorState').push(i,j.set('selectionBefore',k),k.isCollapsed()?'delete-character':'remove-range');}f.exports=h;},null);
__d('keyCommandTransposeCharacters',['DraftModifier','EditorState','getContentStateFragment'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=i.getSelection();if(!j.isCollapsed())return i;var k=j.getAnchorOffset();if(k===0)return i;var l=j.getAnchorKey(),m=i.getCurrentContent(),n=m.getBlockForKey(l),o=n.getLength();if(o<=1)return i;var p,q;if(k===o){p=j.set('anchorOffset',k-1);q=j;}else{p=j.set('focusOffset',k+1);q=p.set('anchorOffset',k+1);}var r=c('getContentStateFragment')(m,p),s=c('DraftModifier').removeRange(m,p,'backward'),t=s.getSelectionAfter(),u=t.getAnchorOffset()-1,v=t.merge({anchorOffset:u,focusOffset:u}),w=c('DraftModifier').replaceWithFragment(s,v,r),x=c('EditorState').push(i,w,'insert-fragment');return c('EditorState').acceptSelection(x,q);}f.exports=h;},null);
__d('keyCommandUndo',['EditorState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){var l=c('EditorState').undo(j);if(j.getLastChangeType()==='spellcheck-change'){var m=l.getCurrentContent();k(c('EditorState').set(l,{nativelyRenderedContent:m}));return;}i.preventDefault();if(!j.getNativelyRenderedContent()){k(l);return;}k(c('EditorState').set(j,{nativelyRenderedContent:null}));setTimeout(function(){k(l);},0);}f.exports=h;},null);
__d('editOnKeyDown',['EditorState','Keys','SecondaryClipboard','keyCommandBackspaceToStartOfLine','keyCommandBackspaceWord','keyCommandDeleteWord','keyCommandInsertNewline','keyCommandPlainBackspace','keyCommandPlainDelete','keyCommandMoveSelectionToEndOfBlock','keyCommandMoveSelectionToStartOfBlock','keyCommandTransposeCharacters','keyCommandUndo'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j,k){switch(j){case 'redo':return c('EditorState').redo(k);case 'delete':return c('keyCommandPlainDelete')(k);case 'delete-word':return c('keyCommandDeleteWord')(k);case 'backspace':return c('keyCommandPlainBackspace')(k);case 'backspace-word':return c('keyCommandBackspaceWord')(k);case 'backspace-to-start-of-line':return c('keyCommandBackspaceToStartOfLine')(k);case 'split-block':return c('keyCommandInsertNewline')(k);case 'transpose-characters':return c('keyCommandTransposeCharacters')(k);case 'move-selection-to-start-of-block':return c('keyCommandMoveSelectionToStartOfBlock')(k);case 'move-selection-to-end-of-block':return c('keyCommandMoveSelectionToEndOfBlock')(k);case 'secondary-cut':return c('SecondaryClipboard').cut(k);case 'secondary-paste':return c('SecondaryClipboard').paste(k);default:return k;}}function i(j){var k=j.which,l=this.props.editorState;switch(k){case c('Keys').RETURN:j.preventDefault();if(!this.props.handleReturn||!this.props.handleReturn(j))this.update(c('keyCommandInsertNewline')(l));return;case c('Keys').ESC:j.preventDefault();this.props.onEscape&&this.props.onEscape(j);return;case c('Keys').TAB:this.props.onTab&&this.props.onTab(j);return;case c('Keys').UP:this.props.onUpArrow&&this.props.onUpArrow(j);return;case c('Keys').DOWN:this.props.onDownArrow&&this.props.onDownArrow(j);return;}var m=this.props.keyBindingFn(j);if(!m)return;if(m==='undo'){c('keyCommandUndo')(j,l,this.update);return;}j.preventDefault();if(this.props.handleKeyCommand&&this.props.handleKeyCommand(m))return;var n=h(m,l);if(n!==l)this.update(n);}f.exports=i;},null);
__d('convertFromHTMLToContentBlocks',['invariant','CharacterMetadata','ContentBlock','DraftEntity','immutable','URI','generateRandomKey','getSafeBodyFromHTML','nullthrows','sanitizeDraftText'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('immutable').List,j=c('immutable').OrderedSet,k='&nbsp;',l=' ',m=4,n=new RegExp('\r','g'),o=new RegExp('\n','g'),p=new RegExp(k,'g'),q=['p','h1','h2','h3','li','blockquote','pre'],r={b:'BOLD',code:'CODE',del:'STRIKETHROUGH',em:'ITALIC',i:'ITALIC',s:'STRIKETHROUGH',strike:'STRIKETHROUGH',strong:'BOLD',u:'UNDERLINE'},s;function t(){return {text:'',inlines:[],entities:[],blocks:[]};}function u(fa){var ga=new Array(1);if(fa)ga[0]=fa;return {text:l,inlines:[j()],entities:ga,blocks:[]};}function v(){return {text:'\n',inlines:[j()],entities:new Array(1),blocks:[]};}function w(fa,ga){return {text:'\r',inlines:[j()],entities:new Array(1),blocks:[{type:fa,depth:Math.max(0,Math.min(m,ga))}]};}function x(fa,ga){switch(fa){case 'h1':return 'header-one';case 'h2':return 'header-two';case 'h3':return 'header-three';case 'h4':return 'header-four';case 'h5':return 'header-five';case 'h6':return 'header-six';case 'li':if(ga==='ol')return 'ordered-list-item';return 'unordered-list-item';case 'blockquote':return 'blockquote';case 'pre':return 'code-block';default:return 'unstyled';}}function y(fa,ga,ha){var ia=r[fa];if(ia){ha=ha.add(ia).toOrderedSet();}else if(ga instanceof HTMLElement)(function(){var ja=ga;ha=ha.withMutations(function(ka){if(ja.style.fontWeight==='bold')ka.add('BOLD');if(ja.style.fontStyle==='italic')ka.add('ITALIC');if(ja.style.textDecoration==='underline')ka.add('UNDERLINE');if(ja.style.textDecoration==='line-through')ka.add('STRIKETHROUGH');}).toOrderedSet();})();return ha;}function z(fa,ga){var ha=ga.text.slice(0,1);if(fa.text.slice(-1)==='\r'&&ha==='\r'){fa.text=fa.text.slice(0,-1);fa.inlines.pop();fa.entities.pop();fa.blocks.pop();}if(fa.text.slice(-1)==='\r')if(ga.text===l||ga.text==='\n'){return fa;}else if(ha===l||ha==='\n'){ga.text=ga.text.slice(1);ga.inlines.shift();ga.entities.shift();}return {text:fa.text+ga.text,inlines:fa.inlines.concat(ga.inlines),entities:fa.entities.concat(ga.entities),blocks:fa.blocks.concat(ga.blocks)};}function aa(fa){return q.some(function(ga){return fa.indexOf('<'+ga)!==-1;});}function ba(fa){!(fa instanceof HTMLAnchorElement)?h(0):void 0;var ga=fa.protocol;return ga==='http:'||ga==='https:';}function ca(fa,ga,ha,ia,ja,ka,la){var ma=fa.nodeName.toLowerCase(),na=false,oa='unstyled',pa=s;if(ma==='#text'){var qa=fa.textContent;if(qa.trim()===''&&ia!=='pre')return u(la);if(ia!=='pre')qa=qa.replace(o,l);s=ma;return {text:qa,inlines:Array(qa.length).fill(ga),entities:Array(qa.length).fill(la),blocks:[]};}s=ma;if(ma==='br'){if(pa==='br'&&(!ia||x(ia,ha)==='unstyled'))return w('unstyled',ka);return v();}var ra=t(),sa=null;ga=y(ma,fa,ga);if(ma==='ul'||ma==='ol'){if(ha)ka+=1;ha=ma;}if(!ia&&ja.indexOf(ma)!==-1){ra=w(x(ma,ha),ka);ia=ma;na=true;}else if(ha&&ia==='li'&&ma==='li'){ra=w(x(ma,ha),ka);ia=ma;na=true;oa=ha==='ul'?'unordered-list-item':'ordered-list-item';}var ta=fa.firstChild;if(ta!=null)ma=ta.nodeName.toLowerCase();var ua=null,va=null;while(ta){if(ma==='a'&&ta.href&&ba(ta)){va=new (c('URI'))(ta.href).toString();ua=c('DraftEntity').create('LINK','MUTABLE',{url:va});}else ua=undefined;sa=ca(ta,ga,ha,ia,ja,ka,ua||la);ra=z(ra,sa);var wa=ta.nextSibling;if(wa&&ja.indexOf(ma)>=0&&ia)ra=z(ra,v());if(wa)ma=wa.nodeName.toLowerCase();ta=wa;}if(na)ra=z(ra,w(oa,ka));return ra;}function da(fa,ga){fa=fa.trim().replace(n,'').replace(p,l);var ha=ga(fa);if(!ha)return null;s=null;var ia=aa(fa)?q:['div'],ja=ca(ha,j(),'ul',null,ia,-1);if(ja.text.indexOf('\r')===0)ja={text:ja.text.slice(1),inlines:ja.inlines.slice(1),entities:ja.entities.slice(1),blocks:ja.blocks};if(ja.text.slice(-1)==='\r'){ja.text=ja.text.slice(0,-1);ja.inlines=ja.inlines.slice(0,-1);ja.entities=ja.entities.slice(0,-1);ja.blocks.pop();}if(ja.blocks.length===0)ja.blocks.push({type:'unstyled',depth:0});if(ja.text.split('\r').length===ja.blocks.length+1)ja.blocks.unshift({type:'unstyled',depth:0});return ja;}function ea(fa){var ga=arguments.length<=1||arguments[1]===undefined?c('getSafeBodyFromHTML'):arguments[1],ha=da(fa,ga);if(ha==null)return null;var ia=0;return ha.text.split('\r').map(function(ja,ka){ja=c('sanitizeDraftText')(ja);var la=ia+ja.length,ma=c('nullthrows')(ha).inlines.slice(ia,la),na=c('nullthrows')(ha).entities.slice(ia,la),oa=i(ma.map(function(pa,qa){var ra={style:pa,entity:null};if(na[qa])ra.entity=na[qa];return c('CharacterMetadata').create(ra);}));ia=la+1;return new (c('ContentBlock'))({key:c('generateRandomKey')(),type:c('nullthrows')(ha).blocks[ka].type,depth:c('nullthrows')(ha).blocks[ka].depth,text:ja,characterList:oa});});}f.exports=ea;},null);
__d('DraftPasteProcessor',['CharacterMetadata','ContentBlock','immutable','convertFromHTMLToContentBlocks','generateRandomKey','sanitizeDraftText'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').List,i=c('immutable').Repeat,j={processHTML:function(k){return c('convertFromHTMLToContentBlocks')(k);},processText:function(k,l){return k.map(function(m){m=c('sanitizeDraftText')(m);return new (c('ContentBlock'))({key:c('generateRandomKey')(),type:'unstyled',text:m,characterList:h(i(l,m.length))});});}};f.exports=j;},null);
__d('splitTextIntoTextBlocks',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=/\r\n?|\n/g;function i(j){return j.split(h);}f.exports=i;},null);
__d('editOnPaste',['BlockMapBuilder','CharacterMetadata','DataTransfer','DraftModifier','DraftPasteProcessor','EditorState','getEntityKeyForSelection','getTextContentFromFiles','splitTextIntoTextBlocks'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j){j.preventDefault();var k=new (c('DataTransfer'))(j.clipboardData);if(!k.isRichText()){var l=k.getFiles(),m=k.getText();if(l.length>0){if(this.props.handlePastedFiles&&this.props.handlePastedFiles(l))return;c('getTextContentFromFiles')(l,function(x){x=x||m;if(!x)return;var y=this.props.editorState,z=c('splitTextIntoTextBlocks')(x),aa=c('CharacterMetadata').create({style:y.getCurrentInlineStyle(),entity:c('getEntityKeyForSelection')(y.getCurrentContent(),y.getSelection())}),ba=c('DraftPasteProcessor').processText(z,aa),ca=c('BlockMapBuilder').createFromArray(ba),da=c('DraftModifier').replaceWithFragment(y.getCurrentContent(),y.getSelection(),ca);this.update(c('EditorState').push(y,da,'insert-fragment'));}.bind(this));return;}}var n=[],o=k.getText(),p=k.getHTML();if(this.props.handlePastedText&&this.props.handlePastedText(o,p))return;if(o)n=c('splitTextIntoTextBlocks')(o);if(!this.props.stripPastedStyles){var q=this.getClipboard();if(k.isRichText()&&q)if(p.indexOf(this.getEditorKey())!==-1||n.length===1&&q.size===1&&q.first().getText()===o){this.update(i(this.props.editorState,q));return;}if(p){var r=c('DraftPasteProcessor').processHTML(p);if(r){var s=c('BlockMapBuilder').createFromArray(r);this.update(i(this.props.editorState,s));return;}}this.setClipboard(null);}if(n){var t=this.props.editorState,u=c('CharacterMetadata').create({style:t.getCurrentInlineStyle(),entity:c('getEntityKeyForSelection')(t.getCurrentContent(),t.getSelection())}),v=c('DraftPasteProcessor').processText(n,u),w=c('BlockMapBuilder').createFromArray(v);this.update(i(this.props.editorState,w));}}function i(j,k){var l=c('DraftModifier').replaceWithFragment(j.getCurrentContent(),j.getSelection(),k);return c('EditorState').push(j,l,'insert-fragment');}f.exports=h;},null);
__d('getDraftEditorSelection',['getDraftEditorSelectionWithNodes'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j){var k=b.getSelection();if(k.rangeCount===0)return {selectionState:i.getSelection().set('hasFocus',false),needsRecovery:false};return c('getDraftEditorSelectionWithNodes')(i,j,k.anchorNode,k.anchorOffset,k.focusNode,k.focusOffset);}f.exports=h;},null);
__d('editOnSelect',['EditorState','ReactDOM','getDraftEditorSelection'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){if(this._blockSelectEvents)return;var i=this.props.editorState,j=c('getDraftEditorSelection')(i,c('ReactDOM').findDOMNode(this.refs.editorContainer).firstChild),k=j.selectionState;if(k!==i.getSelection()){if(j.needsRecovery){i=c('EditorState').forceSelection(i,k);}else i=c('EditorState').acceptSelection(i,k);this.update(i);}}f.exports=h;},null);
__d('DraftEditorEditHandler',['editOnBeforeInput','editOnBlur','editOnCompositionStart','editOnCopy','editOnCut','editOnDragOver','editOnDragStart','editOnFocus','editOnInput','editOnKeyDown','editOnPaste','editOnSelect'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={onBeforeInput:c('editOnBeforeInput'),onBlur:c('editOnBlur'),onCompositionStart:c('editOnCompositionStart'),onCopy:c('editOnCopy'),onCut:c('editOnCut'),onDragOver:c('editOnDragOver'),onDragStart:c('editOnDragStart'),onFocus:c('editOnFocus'),onInput:c('editOnInput'),onKeyDown:c('editOnKeyDown'),onPaste:c('editOnPaste'),onSelect:c('editOnSelect')};f.exports=h;},null);
__d('DraftEditorPlaceholder.react',['cx','React'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('React').Component);j=i&&i.prototype;k.prototype.shouldComponentUpdate=function(l){return (this.props.text!==l.text||this.props.editorState.getSelection().getHasFocus()!==l.editorState.getSelection().getHasFocus());};k.prototype.render=function(){var l=this.props.editorState.getSelection().getHasFocus(),m="_1p1t"+(l?' '+"_1p1u":'');return (c('React').createElement('div',{className:m},c('React').createElement('div',{className:"_1p1v"},this.props.text)));};function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('KeyBindingUtil',['UserAgent'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('UserAgent').isPlatform('Mac OS X'),i={isCtrlKeyCommand:function(j){return !!j.ctrlKey&&!j.altKey;},hasCommandModifier:function(j){return h?!!j.metaKey&&!j.altKey:i.isCtrlKeyCommand(j);}};f.exports=i;},null);
__d('getDefaultKeyBinding',['KeyBindingUtil','Keys','UserAgent'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('UserAgent').isPlatform('Mac OS X'),i=c('UserAgent').isPlatform('Windows'),j=h&&c('UserAgent').isBrowser('Firefox < 29'),k=c('KeyBindingUtil').hasCommandModifier,l=c('KeyBindingUtil').isCtrlKeyCommand;function m(r){return h&&r.altKey||l(r);}function n(r){if(k(r))return r.shiftKey?'redo':'undo';}function o(r){if(i&&r.shiftKey)return null;return m(r)?'delete-word':'delete';}function p(r){if(k(r)&&h)return 'backspace-to-start-of-line';return m(r)?'backspace-word':'backspace';}function q(r){switch(r.keyCode){case 66:return k(r)?'bold':null;case 68:return l(r)?'delete':null;case 72:return l(r)?'backspace':null;case 73:return k(r)?'italic':null;case 74:return k(r)?'code':null;case 75:return !i&&l(r)?'secondary-cut':null;case 79:return l(r)?'split-block':null;case 84:return h&&l(r)?'transpose-characters':null;case 85:return k(r)?'underline':null;case 87:return h&&l(r)?'backspace-word':null;case 89:if(l(r))return i?'redo':'secondary-paste';return null;case 90:return n(r)||null;case c('Keys').DELETE:return o(r);case c('Keys').BACKSPACE:return p(r);case c('Keys').LEFT:return (j&&k(r)?'move-selection-to-start-of-block':null);case c('Keys').RIGHT:return (j&&k(r)?'move-selection-to-end-of-block':null);default:return null;}}f.exports=q;},null);
__d('DraftEditor.react',['cx','DefaultDraftInlineStyle','DraftEditorCompositionHandler','DraftEditorContents.react','DraftEditorDragHandler','DraftEditorEditHandler','DraftEditorPlaceholder.react','EditorState','React','ReactDOM','Scroll','Style','UserAgent','emptyFunction','generateRandomKey','getDefaultKeyBinding','nullthrows','getScrollPosition'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('UserAgent').isBrowser('IE'),l=!k,m={edit:c('DraftEditorEditHandler'),composite:c('DraftEditorCompositionHandler'),drag:c('DraftEditorDragHandler'),cut:null,render:null};i=babelHelpers.inherits(n,c('React').Component);j=i&&i.prototype;n.defaultProps={blockRendererFn:c('emptyFunction').thatReturnsNull,blockStyleFn:c('emptyFunction').thatReturns(''),keyBindingFn:c('getDefaultKeyBinding'),readOnly:false,spellCheck:false,stripPastedStyles:false};function n(o){j.constructor.call(this,o);this.$DraftEditor1=false;this.$DraftEditor2=null;this.$DraftEditor3=false;this.$DraftEditor4=null;this.$DraftEditor5=0;this.$DraftEditor6=c('generateRandomKey')();this.$DraftEditor7=this.$DraftEditor27('onBeforeInput');this.$DraftEditor8=this.$DraftEditor27('onBlur');this.$DraftEditor9=this.$DraftEditor27('onCharacterData');this.$DraftEditor10=this.$DraftEditor27('onCompositionEnd');this.$DraftEditor11=this.$DraftEditor27('onCompositionStart');this.$DraftEditor12=this.$DraftEditor27('onCopy');this.$DraftEditor13=this.$DraftEditor27('onCut');this.$DraftEditor14=this.$DraftEditor27('onDragEnd');this.$DraftEditor15=this.$DraftEditor27('onDragOver');this.$DraftEditor16=this.$DraftEditor27('onDragStart');this.$DraftEditor17=this.$DraftEditor27('onDrop');this.$DraftEditor18=this.$DraftEditor27('onInput');this.$DraftEditor19=this.$DraftEditor27('onFocus');this.$DraftEditor20=this.$DraftEditor27('onKeyDown');this.$DraftEditor21=this.$DraftEditor27('onKeyPress');this.$DraftEditor22=this.$DraftEditor27('onKeyUp');this.$DraftEditor23=this.$DraftEditor27('onMouseDown');this.$DraftEditor24=this.$DraftEditor27('onMouseUp');this.$DraftEditor25=this.$DraftEditor27('onPaste');this.$DraftEditor26=this.$DraftEditor27('onSelect');this.focus=this.$DraftEditor28.bind(this);this.blur=this.$DraftEditor29.bind(this);this.setMode=this.$DraftEditor30.bind(this);this.exitCurrentMode=this.$DraftEditor31.bind(this);this.restoreEditorDOM=this.$DraftEditor32.bind(this);this.setRenderGuard=this.$DraftEditor33.bind(this);this.removeRenderGuard=this.$DraftEditor34.bind(this);this.setClipboard=this.$DraftEditor35.bind(this);this.getClipboard=this.$DraftEditor36.bind(this);this.getEditorKey=function(){return this.$DraftEditor6;}.bind(this);this.update=this.$DraftEditor37.bind(this);this.onDragEnter=this.$DraftEditor38.bind(this);this.onDragLeave=this.$DraftEditor39.bind(this);this.state={containerKey:0};}n.prototype.$DraftEditor27=function(o){return function(p){if(!this.props.readOnly){var q=this.$DraftEditor4&&this.$DraftEditor4[o];q&&q.call(this,p);}}.bind(this);};n.prototype.$DraftEditor40=function(){var o=this.props.editorState.getCurrentContent(),p=this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!o.hasText();if(p)return (c('React').createElement(c('DraftEditorPlaceholder.react'),{text:c('nullthrows')(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment}));};n.prototype.render=function(){var o=this.props,p=o.readOnly,q=o.textAlignment,r="_5rp7"+(q==='left'?' '+"_5rp8":'')+(q==='right'?' '+"_5rp9":'')+(q==='center'?' '+"_5rpa":''),s=this.props.editorState.getCurrentContent().hasText(),t={outline:'none',whiteSpace:'pre-wrap',wordWrap:'break-word'};return (c('React').createElement('div',{className:r},this.$DraftEditor40(),c('React').createElement('div',{className:"_5rpb",key:'editor'+this.state.containerKey,ref:'editorContainer'},c('React').createElement('div',{'aria-activedescendant':p?null:this.props.ariaActiveDescendantID,'aria-autocomplete':p?null:this.props.ariaAutoComplete,'aria-describedby':this.props.ariaDescribedBy,'aria-expanded':p?null:this.props.ariaExpanded,'aria-haspopup':p?null:this.props.ariaHasPopup,'aria-label':this.props.ariaLabel,'aria-owns':p?null:this.props.ariaOwneeID,className:"_5rpu",contentEditable:!p,'data-testid':this.props.webDriverTestID,onBeforeInput:this.$DraftEditor7,onBlur:this.$DraftEditor8,onCompositionEnd:this.$DraftEditor10,onCompositionStart:this.$DraftEditor11,onCopy:this.$DraftEditor12,onCut:this.$DraftEditor13,onDragEnd:this.$DraftEditor14,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this.$DraftEditor15,onDragStart:this.$DraftEditor16,onDrop:this.$DraftEditor17,onFocus:this.$DraftEditor19,onInput:this.$DraftEditor18,onKeyDown:this.$DraftEditor20,onKeyPress:this.$DraftEditor21,onKeyUp:this.$DraftEditor22,onMouseUp:this.$DraftEditor24,onPaste:this.$DraftEditor25,onSelect:this.$DraftEditor26,ref:'editor',role:p?null:this.props.role||'textbox',spellCheck:l&&this.props.spellCheck,style:t,suppressContentEditableWarning:true,tabIndex:this.props.tabIndex,title:s?null:this.props.placeholder},c('React').createElement(c('DraftEditorContents.react'),{blockRendererFn:c('nullthrows')(this.props.blockRendererFn),blockStyleFn:c('nullthrows')(this.props.blockStyleFn),customStyleMap:babelHelpers['extends']({},c('DefaultDraftInlineStyle'),this.props.customStyleMap),editorKey:this.$DraftEditor6,editorState:this.props.editorState})))));};n.prototype.componentDidMount=function(){this.setMode('edit');if(k)document.execCommand('AutoUrlDetect',false,false);};n.prototype.componentWillUpdate=function(){this.$DraftEditor1=true;};n.prototype.componentDidUpdate=function(){this.$DraftEditor1=false;};n.prototype.$DraftEditor28=function(o){var p=this.props.editorState,q=p.getSelection().getHasFocus(),r=c('ReactDOM').findDOMNode(this.refs.editor),s=c('Style').getScrollParent(r),t=o||c('getScrollPosition')(s),u=t.x,v=t.y;r.focus();if(s===window){window.scrollTo(u,v);}else c('Scroll').setTop(s,v);if(!q)this.update(c('EditorState').forceSelection(p,p.getSelection()));};n.prototype.$DraftEditor29=function(){c('ReactDOM').findDOMNode(this.refs.editor).blur();};n.prototype.$DraftEditor30=function(o){this.$DraftEditor4=m[o];};n.prototype.$DraftEditor31=function(){this.setMode('edit');};n.prototype.$DraftEditor32=function(o){this.setState({containerKey:this.state.containerKey+1},function(){this.$DraftEditor28(o);}.bind(this));};n.prototype.$DraftEditor33=function(){this.$DraftEditor3=true;};n.prototype.$DraftEditor34=function(){this.$DraftEditor3=false;};n.prototype.$DraftEditor35=function(o){this.$DraftEditor2=o;};n.prototype.$DraftEditor36=function(){return this.$DraftEditor2;};n.prototype.$DraftEditor37=function(o){this.props.onChange(o);};n.prototype.$DraftEditor38=function(){this.$DraftEditor5++;};n.prototype.$DraftEditor39=function(){this.$DraftEditor5--;if(this.$DraftEditor5===0)this.exitCurrentMode();};f.exports=n;},null);
__d('EmoticonSpan.react',['cx','DraftEntity','React','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').createClass({displayName:'EmoticonSpan',render:function(){var j=c('DraftEntity').get(this.props.entityKey),k=j.getData(),l=k.type,m=c('joinClasses')("_1ty6",'emoticon_'+l);return (c('React').createElement('span',{className:m,title:l,'data-offset-key':this.props.offsetKey},c('React').createElement('span',{className:"_5ukz"},this.props.children)));}});f.exports=i;},null);
__d('getVisibleValueForContentState',['DraftEntity','emptyFunction'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){var j=i.getBlockMap().map(function(k){var l=k.getText(),m='';k.findEntityRanges(c('emptyFunction').thatReturnsTrue,function(n,o){var p=k.getEntityAt(n);if(p===null){m+=l.slice(n,o);}else{var q=c('DraftEntity').get(p);if(q.getType()==='EMOTICON'){m+=q.getData().originalEmoticon;}else m+=l.slice(n,o);}});return m;});return j.join('\n');}f.exports=h;},null);
__d('getEntityMatcher',['DraftEntity'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('DraftEntity').get;function i(j,k){var l=k||h;return function(m,n){m.findEntityRanges(function(o){var p=o.getEntity();return typeof p==='string'&&j(l(p));},n);};}f.exports=i;},null);
__d('applyEmoticonToContentBlock',['CharacterMetadata','DraftEntity','EmoticonsList','immutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').List,i='\u3000';function j(k,l,m){if(!c('EmoticonsList').emotes[l])return k;var n=c('DraftEntity').create('EMOTICON','IMMUTABLE',{type:c('EmoticonsList').emotes[l],originalEmoticon:l}),o=k.getText(),p=k.getCharacterList(),q=l.length,r=p.get(m);return k.merge({text:o.slice(0,m)+i+o.slice(m+q),characterList:p.slice(0,m).concat(h.of(c('CharacterMetadata').applyEntity(r,n)),p.slice(m+q))});}f.exports=j;},null);
__d('insertEmoticonIntoContentState',['DraftModifier','applyEmoticonToContentBlock'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){var l=c('DraftModifier').replaceText(j,k,i),m=k.getAnchorKey(),n=k.getAnchorOffset(),o=l.getBlockForKey(m),p=l.getBlockMap().set(m,c('applyEmoticonToContentBlock')(o,i,n));n++;return j.merge({blockMap:p,selectionBefore:k,selectionAfter:k.merge({anchorOffset:n,focusOffset:n})});}f.exports=h;},null);
__d('insertEmoticonIntoEditorState',['DraftModifier','EditorState','insertEmoticonIntoContentState'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=' ';function i(j,k){var l=k.getSelection(),m=k.getCurrentContent(),n=l.getStartOffset(),o=l.getEndOffset(),p=m.getBlockForKey(l.getStartKey()).getText(),q=m.getBlockForKey(l.getEndKey()).getText(),r='';if(o<=q.length&&q[o]!==h)r=h;if(n>0&&p[n-1]!==h){m=c('DraftModifier').insertText(m,l,h);l=m.getSelectionAfter();}var s=c('insertEmoticonIntoContentState')(j,m,l);m=c('DraftModifier').insertText(s,s.getSelectionAfter(),r);return c('EditorState').push(k,m,'insert-characters');}f.exports=i;},null);
__d('CompositeDraftDecorator',['immutable'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('immutable').List,i='.';function j(m){this.$CompositeDraftDecorator1=m.slice();}j.prototype.getDecorations=function(m){var n=Array(m.getText().length).fill(null);this.$CompositeDraftDecorator1.forEach(function(o,p){var q=0,r=o.strategy;r(m,function(s,t){if(k(n,s,t)){l(n,s,t,p+i+q);q++;}});});return h(n);};j.prototype.getComponentForKey=function(m){var n=parseInt(m.split(i)[0],10);return this.$CompositeDraftDecorator1[n].component;};j.prototype.getPropsForKey=function(m){var n=parseInt(m.split(i)[0],10);return this.$CompositeDraftDecorator1[n].props;};function k(m,n,o){for(var p=n;p<o;p++)if(m[p]!=null)return false;return true;}function l(m,n,o,p){for(var q=n;q<o;q++)m[q]=p;}f.exports=j;},null);