/*!
* froala_editor v3.0.0-rc.2 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2019 Froala Labs
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("froala-editor")):"function"==typeof define&&define.amd?define(["froala-editor"],t):t(e.FroalaEditor)}(this,function(l){"use strict";l=l&&l.hasOwnProperty("default")?l["default"]:l,Object.assign(l.DEFAULTS,{listAdvancedTypes:!0}),l.PLUGINS.lists=function(d){var c=d.$;function g(e){return''}function m(e){return''}function r(e,t){!function(e,t){for(var a=[],n=0;n"+i.html()+""+t.toLowerCase()+">")}}(e,t);var a,n=d.html.defaultTag(),r=null;e.length&&(a="rtl"==d.opts.direction||"rtl"==c(e[0]).css("direction")?"margin-right":"margin-left");for(var s=0;s':"<"+t+">",l=""+t+">";for(i-=r;0",l+=l,i-=d.opts.indentMargin;n&&e[s].tagName.toLowerCase()==n?c(e[s]).replaceWith(o+""+c(e[s]).html()+""+l):c(e[s]).wrap(o+""+l)}d.clean.lists()}function s(e){var t,a;for(t=e.length-1;0<=t;t--)for(a=t-1;0<=a;a--)if(c(e[a]).find(e[t]).length||e[a]==e[t]){e.splice(t,1);break}var n=[];for(t=0;t"),r.append(g("LI")),r.prepend(m("LI"))}r.after(g(s.tagName)),"LI"==s.parentNode.tagName&&(s=s.parentNode.parentNode),n.indexOf(s)<0&&n.push(s)}for(t=0;t<\/span>/g,"$1>")).replace(/<\/span>/g,"<$1>"),f.replaceWith(d.node.openTagString(f.get(0))+p+d.node.closeTagString(f.get(0)))}d.$el.find("li:empty").remove(),d.$el.find("ul:empty, ol:empty").remove(),d.clean.lists(),d.html.wrap()}function i(e){d.selection.save();for(var t=0;t ul, ol").last().get(0);if(n){var r=c(document.createElement("li"));c(n).prepend(r);for(var s=d.node.contents(e[t])[0];s&&!d.node.isList(s);){var i=s.nextSibling;r.append(s),s=i}c(a).append(c(n)),c(e[t]).remove()}else{var o=c(a).find("> ul, ol").last().get(0);if(o)c(o).append(c(e[t]));else{var l=c("<"+e[t].parentNode.tagName+">");c(a).append(l),l.append(c(e[t]))}}}}d.clean.lists(),d.selection.restore()}function o(e){d.selection.save(),s(e),d.selection.restore()}function e(e){if("indent"==e||"outdent"==e){for(var t=!1,a=d.selection.blocks(),n=[],r=0;r