text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("slate"),require("immutable")):"function"==typeof define&&define.amd?define(["exports","slate","immutable"],t):t(e.SlatePlainSerializer={},e.Slate,e.Immutable)}(this,function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e};function n(e){return"document"==e.object||"block"==e.object&&t.Block.isBlockList(e.nodes)?e.nodes.map(n).join("\n"):e.text}var a={deserialize:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.defaultBlock,i=void 0===a?"line":a,c=n.defaultMarks,l=void 0===c?[]:c,u=n.toJSON,d=void 0!==u&&u;o.Set.isSet(l)&&(l=l.toArray()),i=t.Node.createProperties(i),l=l.map(t.Mark.createProperties);var s={object:"value",document:{object:"document",data:{},nodes:e.split("\n").map(function(e){return r({},i,{object:"block",data:{},nodes:[{object:"text",leaves:[{object:"leaf",text:e,marks:l}]}]})})}};return d?s:t.Value.fromJSON(s)},serialize:function(e){return n(e.document)}};e.default=a,Object.defineProperty(e,"__esModule",{value:!0})});
  