!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.EditorJS=e():t.EditorJS=e()}(window,function(){returnfunction(t){vare={};functionn(o){if(e[o])returne[o].exports;varr=e[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varrint)n.d(o,r,function(e){returnt[e]}.bind(null,r));returno},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,"a",e),e},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=162)}([function(t,e,n){varo=n(9),r=n(16),i=n(22),a=n(19),s=n(31),c=function(t,e,n){varu,l,f,d,p=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,b=h?o:v?o[e]||(o[e]={}):(o[e]||{}).prototype,m=h?r:r[e]||(r[e]={}),k=m.prototype||(m.prototype={});for(uinh&&(n=e),n)f=((l=!p&&b&&void0!==b[u])?b:n)[u],d=y&&l?s(f,o):g&&"function"==typeoff?s(Function.call,f):f,b&&a(b,u,f,t&c.U),m[u]!=f&&i(m,u,d),g&&k[u]!=f&&(k[u]=f)};o.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}},function(t,e){functionn(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,e,o){returne&&n(t.prototype,e),o&&n(t,o),t}},function(t,e){t.exports=function(t){returnt&&t.__esModule?t:{default:t}}},function(t,e,n){varo=n(48),r=n(343);t.exports=function(t,e){return!e||"object"!==o(e)&&"function"!=typeofe?r(t):e}},function(t,e){functionn(e){returnt.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){returnt.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){varo=n(344);t.exports=function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){varo,r,i;r=[e,n(1),n(2)],void0===(i="function"==typeof(o=function(o,r,i){"use strict";vara=n(3);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=a(r),i=a(i);vars=function(){functiont(e){varn=e.config;if((0,r.default)(this,t),(thisinstanceoft?this.constructor:void0)===t)thrownewTypeError("Constructors for abstract class Module are not allowed.");this.config=n}return(0,i.default)(t,[{key:"state",set:function(t){this.Editor=t}}]),t}();o.default=s,s.displayName="Module",t.exports=e.default})?o.apply(e,r):o)||(t.exports=i)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){varn=t.exports="undefined"!=typeofwindow&&window.Math==Math?window:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")();"number"==typeof__g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeoft?null!==t:"function"==typeoft}},function(t,e,n){varo=n(10);t.exports=function(t){if(!o(t))throwTypeError(t+" is not an object!");returnt}},function(t,e,n){varo=n(73)("wks"),r=n(41),i=n(9).Symbol,a="function"==typeofi;(t.exports=function(t){returno[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},function(t,e,n){varo,r,i;r=[e,n(48),n(97),n(1),n(2)],void0===(i="function"==typeof(o=function(o,r,i,a,s){"use strict";varc=n(3);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=c(r),i=c(i),a=c(a),s=c(s);varu=function(){functiont(){(0,a.default)(this,t)}return(0,s
"undefined"!=typeofself&&self,t.exports=function(t){functione(o){if(n[o])returnn[o].exports;varr=n[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}varn={};returne.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varo=function(){functiont(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}returnfunction(e,n,o){returnn&&t(e.prototype,n),o&&t(e,o),e}}(),r={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,BACKSPACE:8,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46},i={CMD:["CMD","CONTROL","COMMAND","WINDOWS","CTRL"],SHIFT:["SHIFT"],ALT:["ALT","OPTION"]},a=function(){functiont(e){varn=this;(function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")})(this,t),this.commands={},this.keys={},this.parseShortcutName(e.name),this.element=e.on,this.callback=e.callback,this.executeShortcut=function(t){n.execute(t)},this.element.addEventListener("keydown",this.executeShortcut,!1)}returno(t,[{key:"parseShortcutName",value:function(t){t=t.split("+");for(vare=0;e<t.length;e++)if(t[e]=t[e].toUpperCase(),t[e].length>1)for(varnini)i[n].includes(t[e])&&(this.commands[n]=!0);elsethis.keys[t[e]]=!0}},{key:"execute",value:function(t){vare=t.ctrlKey||t.metaKey,n=t.shiftKey,o=t.altKey,i={CMD:e,SHIFT:n,ALT:o},a=void0,s=!0;for(ainthis.commands)s=s&&i[a];varc=void0,u=!0;for(cinthis.keys)u=u&&t.keyCode===r[c];s&&u&&this.callback(t)}},{key:"remove",value:function(){this.element.removeEventListener("keydown",this.executeShortcut)}}]),t}();e.default=a}])},function(t,e,n){window,t.exports=function(t){vare={};functionn(o){if(e[o])returne[o].exports;varr=e[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varrint)n.d(o,r,function(e){returnt[e]}.bind(null,r));returno},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,"a",e),e},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}([function(t,e,n){functiono(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}functionr(t,e,n){returne&&o(t.prototype,e),n&&o(t,n),t}n(1).toString();
vari=function(){functiont(e){varn=e.data,o=e.config,r=e.api;!function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,t),this.api=r,this._CSS={block:this.api.styles.block,wrapper:"ce-paragraph"},this._placeholder=o.placeholder?o.placeholder:t.DEFAULT_PLACEHOLDER,this._data={},this._element=this.drawView(),this.data=n}returnr(t,null,[{key:"DEFAULT_PLACEHOLDER",get:function(){return"Tell your story..."}}]),r(t,[{key:"drawView",value:function(){vart=document.createElement("DIV");returnt.classList.add(this._CSS.wrapper,this._CSS.block),t.contentEditable=!0,t.dataset.placeholder=this._placeholder,t}},{key:"render",value:function(){returnthis._element}},{key:"merge",value:function(t){vare={text:this.data.text+t.text};this.data=e}},{key:"validate",value:function(t){return""!==t.text.trim()}},{key:"save",value:function(t){return{text:t.innerHTML}}},{key:"onPaste",value:function(t){vare={text:t.detail.data.innerHTML};this.data=e}},{key:"data",get:function(){vart=this._element.innerHTML;returnthis._data.text=t,this._data},set:function(t){this._data=t||{},this._element.innerHTML=this._data.text||""}}],[{key:"sanitize",get:function(){return{text:{br:!0}}}},{key:"pasteConfig",get:function(){return{tags:["P"]}}}]),t}();t.exports=i},function(t,e,n){varo=n(2);"string"==typeofo&&(o=[[t.i,o,""]]),n(4)(o,{hmr:!0,transform:void0,insertInto:void0}),o.locals&&(t.exports=o.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".ce-paragraph {\r\n line-height: 1.6em;\r\n outline: none;\r\n}\r\n\r\n.ce-paragraph[data-placeholder]:empty::before{\r\n content: attr(data-placeholder);\r\n color: #707684;\r\n font-weight: normal;\r\n}\r\n\r\n.ce-paragraph[data-placeholder]:empty:focus::before {\r\n opacity: 0.3;\r\n}\r\n\r\n/** Hide placeholder if Block is not first or if Editor is not empty */\r\n.ce-block:not(:first-child) .ce-paragraph:empty::before,\r\n.codex-editor:not(.codex-editor--empty) .ce-paragraph:empty::before {\r\n opacity: 0;\r\n}\r\n\r\n.ce-paragraph p:first-of-type{\r\n margin-top: 0;\r\n}\r\n\r\n.ce-paragraph p:last-of-type{\r\n margin-bottom: 0;\r\n}\r\n",""])},function(t,e){t.exports=function(t){vare=[];returne.toString=function(){returnthis.map(function(e){varn=function(t,e){varn,o=t[1]||"",r=t[3];if(!r)returno;if(e&&"function"==typeofbtoa){vari=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[o].concat(a).concat([i]).join("\n")}return[o].join("\n")}(e,t);returne[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeoft&&(t=[[null,t,""]]);for(varo={},r=0;r<this.length;r++){vari=this[r][0];"number"==typeofi&&(o[i]=!0)}for(r=0;r<t.length;r++){vara=t[r];"number"==typeofa[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){varo,r,i={},a=(o=function(){returnwindow&&document&&document.all&&!window.atob},function(){returnvoid0===r&&(r=o.apply(this,arguments)),r}),s=function(t){vare={};returnfunction(t){if("function"==typeoft)returnt();if(void0===e[t]){varn=function(t){returndocument.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&ninstanceofwindow.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}returne[t]}}(),c=null,u=0,l=[],f=n(5);functiond(t,e){for(varn=0;n<t.length;n++){varo=t[n],r=i[o.id];if(r){r.refs++;for(vara=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(b(o.parts[a],e))}else{vars=[];for(a=0;a<o.parts.length;a++)s.push(b(o.parts[a],e));i[o.id]={id:o.id,refs:1,parts:s}}}}functionp(t,e){for(varn=[],o={},r=0;r<t.length;r++){vari=t[r],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}returnn}functionh(t,e){varn=s(t.insertInto);if(!n)thrownewError("Couldn't find a style target. This probably means that the value for the 'insertInto'parameterisinvalid