Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.147.205.114
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/book24.ng/public/libs/tinymce/js/tinymce/plugins/lists/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/public/libs/tinymce/js/tinymce/plugins/lists/plugin.min.js
/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.9 (2019-06-26)
 */
!function(u){"use strict";var e,n,t,r,o,i,s,a,c,f=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),l=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),m=tinymce.util.Tools.resolve("tinymce.util.VK"),p=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),h=function(e){return e&&"BR"===e.nodeName},y=function(e){return e&&3===e.nodeType},N=function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)},S=function(e){return e&&/^(OL|UL)$/.test(e.nodeName)},O=function(e){return e&&/^(DT|DD)$/.test(e.nodeName)},C=function(e){return e&&/^(LI|DT|DD)$/.test(e.nodeName)},b=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},T=h,L=function(e,n){return n&&!!e.schema.getTextBlockElements()[n.nodeName]},D=function(e,n){return e&&e.nodeName in n},E=function(e,n){return!!h(n)&&!(!e.isBlock(n.nextSibling)||h(n.previousSibling))},w=function(e,n,t){var r=e.isEmpty(n);return!(t&&0<e.select("span[data-mce-type=bookmark]",n).length)&&r},k=function(e,n){return e.isChildOf(n,e.getRoot())},A=function(e,n){if(y(e))return{container:e,offset:n};var t=d.getNode(e,n);return y(t)?{container:t,offset:n>=e.childNodes.length?t.data.length:0}:t.previousSibling&&y(t.previousSibling)?{container:t.previousSibling,offset:t.previousSibling.data.length}:t.nextSibling&&y(t.nextSibling)?{container:t.nextSibling,offset:0}:{container:e,offset:n}},x=function(e){var n=e.cloneRange(),t=A(e.startContainer,e.startOffset);n.setStart(t.container,t.offset);var r=A(e.endContainer,e.endOffset);return n.setEnd(r.container,r.offset),n},R=g.DOM,I=function(o){var i={},e=function(e){var n,t,r;t=o[e?"startContainer":"endContainer"],r=o[e?"startOffset":"endOffset"],1===t.nodeType&&(n=R.create("span",{"data-mce-type":"bookmark"}),t.hasChildNodes()?(r=Math.min(r,t.childNodes.length-1),e?t.insertBefore(n,t.childNodes[r]):R.insertAfter(n,t.childNodes[r])):t.appendChild(n),t=n,r=0),i[e?"startContainer":"endContainer"]=t,i[e?"startOffset":"endOffset"]=r};return e(!0),o.collapsed||e(),i},_=function(o){function e(e){var n,t,r;n=r=o[e?"startContainer":"endContainer"],t=o[e?"startOffset":"endOffset"],n&&(1===n.nodeType&&(t=function(e){for(var n=e.parentNode.firstChild,t=0;n;){if(n===e)return t;1===n.nodeType&&"bookmark"===n.getAttribute("data-mce-type")||t++,n=n.nextSibling}return-1}(n),n=n.parentNode,R.remove(r),!n.hasChildNodes()&&R.isBlock(n)&&n.appendChild(R.create("br"))),o[e?"startContainer":"endContainer"]=n,o[e?"startOffset":"endOffset"]=t)}e(!0),e();var n=R.createRng();return n.setStart(o.startContainer,o.startOffset),o.endContainer&&n.setEnd(o.endContainer,o.endOffset),x(n)},B=function(e){return function(){return e}},P=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},M=B(!1),U=B(!0),F=M,j=U,H=function(){return $},$=(r={fold:function(e,n){return e()},is:F,isSome:F,isNone:j,getOr:t=function(e){return e},getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:t,orThunk:n,map:H,ap:H,each:function(){},bind:H,flatten:H,exists:F,forall:j,filter:H,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:B("none()")},Object.freeze&&Object.freeze(r),r),q=function(t){var e=function(){return t},n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:j,isNone:F,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return q(e(t))},ap:function(e){return e.fold(H,function(e){return q(e(t))})},each:function(e){e(t)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(t)?o:$},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(F,function(e){return n(t,e)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},W={some:q,none:H,from:function(e){return null===e||e===undefined?$:q(e)}},z=function(n){return function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&Array.prototype.isPrototypeOf(e)?"array":"object"===n&&String.prototype.isPrototypeOf(e)?"string":n}(e)===n}},K=z("string"),V=z("boolean"),X=z("function"),Q=z("number"),Y=Array.prototype.slice,G=(o=Array.prototype.indexOf,undefined,function(e,n){for(var t=e.length,r=new Array(t),o=0;o<t;o++){var i=e[o];r[o]=n(i,o,e)}return r}),J=function(e,n){for(var t=0,r=e.length;t<r;t++){n(e[t],t,e)}},Z=function(e,n){for(var t=[],r=0,o=e.length;r<o;r++){var i=e[r];n(i,r,e)&&t.push(i)}return t},ee=function(e,n){if(0===e.length)return[];for(var t=n(e[0]),r=[],o=[],i=0,u=e.length;i<u;i++){var s=e[i],a=n(s);a!==t&&(r.push(o),o=[]),t=a,o.push(s)}return 0!==o.length&&r.push(o),r},ne=function(e,n,t){return J(e,function(e){t=n(t,e)}),t},te=function(e,n){for(var t=0,r=e.length;t<r;t++){var o=e[t];if(n(o,t,e))return W.some(o)}return W.none()},re=function(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return t;return-1},oe=Array.prototype.push,ie=function(e){for(var n=[],t=0,r=e.length;t<r;++t){if(!Array.prototype.isPrototypeOf(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);oe.apply(n,e[t])}return n},ue=function(e,n){var t=G(e,n);return ie(t)},se=function(e){var n=Y.call(e,0);return n.reverse(),n},ae=function(e){return 0===e.length?W.none():W.some(e[0])},ce=function(e){return 0===e.length?W.none():W.some(e[e.length-1])},fe=(X(Array.from)&&Array.from,"undefined"!=typeof u.window?u.window:Function("return this;")()),de=function(e,n){return function(e,n){for(var t=n!==undefined&&null!==n?n:fe,r=0;r<e.length&&t!==undefined&&null!==t;++r)t=t[e[r]];return t}(e.split("."),n)},le=function(e,n){var t=de(e,n);if(t===undefined||null===t)throw e+" not available on this browser";return t},me=function(e){var n,t=de("ownerDocument.defaultView",e);return(n=t,le("HTMLElement",n)).prototype.isPrototypeOf(e)},ge=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),pe=function(e){var n=e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",he(e,n))},ve=function(e){var t,n,r,o=e.selection.getSelectedBlocks();return v.grep((t=e,n=o,r=v.map(n,function(e){var n=t.dom.getParent(e,"li,dd,dt",he(t,e));return n||e}),ge.unique(r)),function(e){return C(e)})},he=function(e,n){var t=e.dom.getParents(n,"TD,TH");return 0<t.length?t[0]:e.getBody()},ye=function(e,n){var t=e.dom.getParents(n,"ol,ul",he(e,n));return ce(t)},Ne=function(n,e){var t=G(e,function(e){return ye(n,e).getOr(e)});return ge.unique(t)},Se={isList:function(e){var n=pe(e);return me(n)},getParentList:pe,getSelectedSubLists:function(e){var n,t,r,o=pe(e),i=e.selection.getSelectedBlocks();return r=i,(t=o)&&1===r.length&&r[0]===t?(n=o,v.grep(n.querySelectorAll("ol,ul,dl"),function(e){return N(e)})):v.grep(i,function(e){return N(e)&&o!==e})},getSelectedListItems:ve,getClosestListRootElm:he,getSelectedDlItems:function(e){return Z(ve(e),O)},getSelectedListRoots:function(e){var n,t,r,o=(t=ye(n=e,n.selection.getStart()),r=Z(n.selection.getSelectedBlocks(),S),t.toArray().concat(r));return Ne(e,o)}},Oe=function(e){if(null===e||e===undefined)throw new Error("Node cannot be null or undefined");return{dom:B(e)}},Ce={fromHtml:function(e,n){var t=(n||u.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw u.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Oe(t.childNodes[0])},fromTag:function(e,n){var t=(n||u.document).createElement(e);return Oe(t)},fromText:function(e,n){var t=(n||u.document).createTextNode(e);return Oe(t)},fromDom:Oe,fromPoint:function(e,n,t){var r=e.dom();return W.from(r.elementFromPoint(n,t)).map(Oe)}},be=function(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r];if(!o.isSome())return W.none();t.push(o.getOrDie())}return W.some(n.apply(null,t))},Te=Object.keys,Le=function(){return le("Node")},De=function(e,n,t){return 0!=(e.compareDocumentPosition(n)&t)},Ee=function(e,n){return De(e,n,Le().DOCUMENT_POSITION_CONTAINED_BY)},we=function(e,n){var t=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(r.test(n))return r}return undefined}(e,n);if(!t)return{major:0,minor:0};var r=function(e){return Number(n.replace(t,"$"+e))};return Ae(r(1),r(2))},ke=function(){return Ae(0,0)},Ae=function(e,n){return{major:e,minor:n}},xe={nu:Ae,detect:function(e,n){var t=String(n).toLowerCase();return 0===e.length?ke():we(e,t)},unknown:ke},Re="Firefox",Ie=function(e,n){return function(){return n===e}},_e=function(e){var n=e.current;return{current:n,version:e.version,isEdge:Ie("Edge",n),isChrome:Ie("Chrome",n),isIE:Ie("IE",n),isOpera:Ie("Opera",n),isFirefox:Ie(Re,n),isSafari:Ie("Safari",n)}},Be={unknown:function(){return _e({current:undefined,version:xe.unknown()})},nu:_e,edge:B("Edge"),chrome:B("Chrome"),ie:B("IE"),opera:B("Opera"),firefox:B(Re),safari:B("Safari")},Pe="Windows",Me="Android",Ue="Solaris",Fe="FreeBSD",je=function(e,n){return function(){return n===e}},He=function(e){var n=e.current;return{current:n,version:e.version,isWindows:je(Pe,n),isiOS:je("iOS",n),isAndroid:je(Me,n),isOSX:je("OSX",n),isLinux:je("Linux",n),isSolaris:je(Ue,n),isFreeBSD:je(Fe,n)}},$e={unknown:function(){return He({current:undefined,version:xe.unknown()})},nu:He,windows:B(Pe),ios:B("iOS"),android:B(Me),linux:B("Linux"),osx:B("OSX"),solaris:B(Ue),freebsd:B(Fe)},qe=function(e,n){var t=String(n).toLowerCase();return te(e,function(e){return e.search(t)})},We=function(e,t){return qe(e,t).map(function(e){var n=xe.detect(e.versionRegexes,t);return{current:e.name,version:n}})},ze=function(e,t){return qe(e,t).map(function(e){var n=xe.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Ke=function(e,n){return-1!==e.indexOf(n)},Ve=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Xe=function(n){return function(e){return Ke(e,n)}},Qe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ke(e,"edge/")&&Ke(e,"chrome")&&Ke(e,"safari")&&Ke(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ve],search:function(e){return Ke(e,"chrome")&&!Ke(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ke(e,"msie")||Ke(e,"trident")}},{name:"Opera",versionRegexes:[Ve,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Xe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Xe("firefox")},{name:"Safari",versionRegexes:[Ve,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ke(e,"safari")||Ke(e,"mobile/"))&&Ke(e,"applewebkit")}}],Ye=[{name:"Windows",search:Xe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ke(e,"iphone")||Ke(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Xe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Xe("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Xe("linux"),versionRegexes:[]},{name:"Solaris",search:Xe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Xe("freebsd"),versionRegexes:[]}],Ge={browsers:B(Qe),oses:B(Ye)},Je=function(e){var n,t,r,o,i,u,s,a,c,f,d,l=Ge.browsers(),m=Ge.oses(),g=We(l,e).fold(Be.unknown,Be.nu),p=ze(m,e).fold($e.unknown,$e.nu);return{browser:g,os:p,deviceType:(t=g,r=e,o=(n=p).isiOS()&&!0===/ipad/i.test(r),i=n.isiOS()&&!o,u=n.isAndroid()&&3===n.version.major,s=n.isAndroid()&&4===n.version.major,a=o||u||s&&!0===/mobile/i.test(r),c=n.isiOS()||n.isAndroid(),f=c&&!a,d=t.isSafari()&&n.isiOS()&&!1===/safari/i.test(r),{isiPad:B(o),isiPhone:B(i),isTablet:B(a),isPhone:B(f),isTouch:B(c),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:B(d)})}},Ze={detect:(a=!(i=function(){var e=u.navigator.userAgent;return Je(e)}),function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a||(a=!0,s=i.apply(null,e)),s})},en=(u.Node.ATTRIBUTE_NODE,u.Node.CDATA_SECTION_NODE,u.Node.COMMENT_NODE,u.Node.DOCUMENT_NODE,u.Node.DOCUMENT_TYPE_NODE,u.Node.DOCUMENT_FRAGMENT_NODE,u.Node.ELEMENT_NODE),nn=(u.Node.TEXT_NODE,u.Node.PROCESSING_INSTRUCTION_NODE,u.Node.ENTITY_REFERENCE_NODE,u.Node.ENTITY_NODE,u.Node.NOTATION_NODE,en),tn=function(e,n){return e.dom()===n.dom()},rn=Ze.detect().browser.isIE()?function(e,n){return Ee(e.dom(),n.dom())}:function(e,n){var t=e.dom(),r=n.dom();return t!==r&&t.contains(r)},on=function(e,n){var t=e.dom();if(t.nodeType!==nn)return!1;if(t.matches!==undefined)return t.matches(n);if(t.msMatchesSelector!==undefined)return t.msMatchesSelector(n);if(t.webkitMatchesSelector!==undefined)return t.webkitMatchesSelector(n);if(t.mozMatchesSelector!==undefined)return t.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")},un=function(e){var n=e.dom();return W.from(n.parentNode).map(Ce.fromDom)},sn=function(e){var n=e.dom();return G(n.childNodes,Ce.fromDom)},an=function(e,n){var t=e.dom().childNodes;return W.from(t[n]).map(Ce.fromDom)},cn=function(e){return an(e,0)},fn=function(e){return an(e,e.dom().childNodes.length-1)},dn=(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n]}("element","offset"),function(n,t){un(n).each(function(e){e.dom().insertBefore(t.dom(),n.dom())})}),ln=function(e,n){e.dom().appendChild(n.dom())},mn=function(n,e){J(e,function(e){ln(n,e)})},gn=function(e){var n=e.dom();null!==n.parentNode&&n.parentNode.removeChild(n)},pn=function(e){return e.dom().nodeName.toLowerCase()},vn=function(e,n){var t=e.dom();!function(e,n){for(var t=Te(e),r=0,o=t.length;r<o;r++){var i=t[r];n(e[i],i,e)}}(n,function(e,n){!function(e,n,t){if(!(K(t)||V(t)||Q(t)))throw u.console.error("Invalid call to Attr.set. Key ",n,":: Value ",t,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(n,t+"")}(t,n,e)})},hn=function(e){return ne(e.dom().attributes,function(e,n){return e[n.name]=n.value,e},{})},yn=function(e,n,t){if(!K(t))throw u.console.error("Invalid call to CSS.set. Property ",n,":: Value ",t,":: Element ",e),new Error("CSS value must be a string: "+t);e.style!==undefined&&e.style.setProperty(n,t)},Nn=function(e){return n=e,t=!0,Ce.fromDom(n.dom().cloneNode(t));var n,t},Sn=function(e,n){var t,r,o,i,u=(t=e,r=n,o=Ce.fromTag(r),i=hn(t),vn(o,i),o);dn(e,u);var s=sn(e);return mn(u,s),gn(e),u},On=function(e,n){ln(e.item,n.list)},Cn=function(f,e,d){var n=e.slice(0,d.depth);return ce(n).each(function(e){var n,t,r,o,i,u,s,a,c=(n=f,t=d.itemAttributes,r=d.content,o=Ce.fromTag("li",n),vn(o,t),mn(o,r),o);u=c,ln((i=e).list,u),i.item=u,a=d,pn((s=e).list)!==a.listType&&(s.list=Sn(s.list,a.listType)),vn(s.list,a.listAttributes)}),n},bn=function(e,n,t){var r,o=function(e,n,t){for(var r,o,i,u=[],s=0;s<t;s++)u.push((r=e,o=n.listType,i={list:Ce.fromTag(o,r),item:Ce.fromTag("li",r)},ln(i.list,i.item),i));return u}(e,t,t.depth-n.length);return function(e){for(var n=1;n<e.length;n++)On(e[n-1],e[n])}(o),function(e,n){for(var t=0;t<e.length-1;t++)r=e[t].item,o="list-style-type",i="none",u=r.dom(),yn(u,o,i);var r,o,i,u;ce(e).each(function(e){vn(e.list,n.listAttributes),vn(e.item,n.itemAttributes),mn(e.item,n.content)})}(o,t),r=o,be([ce(n),ae(r)],On),n.concat(o)},Tn=function(e){return on(e,"OL,UL")},Ln=function(e){return cn(e).map(Tn).getOr(!1)},Dn=function(e){return 0<e.depth},En=function(e){return e.isSelected},wn=function(e){var n=sn(e),t=fn(e).map(Tn).getOr(!1)?n.slice(0,-1):n;return G(t,Nn)},kn=Object.prototype.hasOwnProperty,An=(c=function(e,n){return n},function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var t={},r=0;r<e.length;r++){var o=e[r];for(var i in o)kn.call(o,i)&&(t[i]=c(t[i],o[i]))}return t}),xn=function(n){J(n,function(r,e){(function(e,n){for(var t=e[n].depth,r=n-1;0<=r;r--){if(e[r].depth===t)return W.some(e[r]);if(e[r].depth<t)break}return W.none()})(n,e).each(function(e){var n,t;t=e,(n=r).listType=t.listType,n.listAttributes=An({},t.listAttributes)})})},Rn=function(e){var n=e,t=function(){return n};return{get:t,set:function(e){n=e},clone:function(){return Rn(t())}}},In=function(i,u,s,a){return cn(a).filter(Tn).fold(function(){u.each(function(e){tn(e.start,a)&&s.set(!0)});var n,t,r,e=(n=a,t=i,r=s.get(),un(n).map(function(e){return{depth:t,isSelected:r,content:wn(n),itemAttributes:hn(n),listAttributes:hn(e),listType:pn(e)}}));u.each(function(e){tn(e.end,a)&&s.set(!1)});var o=fn(a).filter(Tn).map(function(e){return _n(i,u,s,e)}).getOr([]);return e.toArray().concat(o)},function(e){return _n(i,u,s,e)})},_n=function(n,t,r,e){return ue(sn(e),function(e){return(Tn(e)?_n:In)(n+1,t,r,e)})},Bn=tinymce.util.Tools.resolve("tinymce.Env"),Pn=function(e,n){var t,r,o,i,u=e.dom,s=e.schema.getBlockElements(),a=u.createFragment();if(e.settings.forced_root_block&&(o=e.settings.forced_root_block),o&&((r=u.create(o)).tagName===e.settings.forced_root_block&&u.setAttribs(r,e.settings.forced_root_block_attrs),D(n.firstChild,s)||a.appendChild(r)),n)for(;t=n.firstChild;){var c=t.nodeName;i||"SPAN"===c&&"bookmark"===t.getAttribute("data-mce-type")||(i=!0),D(t,s)?(a.appendChild(t),r=null):o?(r||(r=u.create(o),a.appendChild(r)),r.appendChild(t)):a.appendChild(t)}return e.settings.forced_root_block?i||Bn.ie&&!(10<Bn.ie)||r.appendChild(u.create("br",{"data-mce-bogus":"1"})):a.appendChild(u.create("br")),a},Mn=function(e,n,t){return e.fire("ListMutation",{action:n,element:t})},Un=function(i,e){return G(e,function(e){var n,t,r,o=(n=e.content,r=(t||u.document).createDocumentFragment(),J(n,function(e){r.appendChild(e.dom())}),Ce.fromDom(r));return Ce.fromDom(Pn(i,o.dom()))})},Fn=function(e,n){return xn(n),(t=e.contentDocument,r=n,o=ne(r,function(e,n){return n.depth>e.length?bn(t,e,n):Cn(t,e,n)},[]),ae(o).map(function(e){return e.list})).toArray();var t,r,o},jn=function(s,e,a){var n,t,r,o,i,u=(n=e,o=s,i=G(Se.getSelectedListItems(o),Ce.fromDom),t=be([te(i,P(Ln)),te(se(i),P(Ln))],function(e,n){return{start:e,end:n}}),r=Rn(!1),G(n,function(e){return{sourceList:e,entries:_n(0,t,r,e)}}));J(u,function(e){var n,t;n=e.entries,t=a,J(Z(n,En),function(e){return function(e,n){switch(e){case"Indent":n.depth++;break;case"Outdent":n.depth--;break;case"Flatten":n.depth=0}}(t,e)});var r,o,i,u=(r=s,o=e.entries,ue(ee(o,Dn),function(e){return ae(e).map(Dn).getOr(!1)?Fn(r,e):Un(r,e)}));J(u,function(e){Mn(s,"Indent"===a?"IndentList":"OutdentList",e.dom())}),i=e.sourceList,J(u,function(e){dn(i,e)}),gn(e.sourceList)})},Hn=g.DOM,$n=function(e,n,t){var r,o,i,u,s,a;for(i=Hn.select('span[data-mce-type="bookmark"]',n),s=Pn(e,t),(r=Hn.createRng()).setStartAfter(t),r.setEndAfter(n),u=(o=r.extractContents()).firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&e.dom.isEmpty(u)){Hn.remove(u);break}e.dom.isEmpty(o)||Hn.insertAfter(o,n),Hn.insertAfter(s,n),w(e.dom,t.parentNode)&&(a=t.parentNode,v.each(i,function(e){a.parentNode.insertBefore(e,t.parentNode)}),Hn.remove(a)),Hn.remove(t),w(e.dom,n)&&Hn.remove(n)},qn=function(e){on(e,"DT")&&Sn(e,"DD")},Wn=function(r,e,n){J(n,"Indent"===e?qn:function(e){return n=r,void(on(t=e,"DD")?Sn(t,"DT"):on(t,"DT")&&un(t).each(function(e){return $n(n,e.dom(),t.dom())}));var n,t})},zn=function(e,n){var t=G(Se.getSelectedListRoots(e),Ce.fromDom),r=G(Se.getSelectedDlItems(e),Ce.fromDom),o=!1;if(t.length||r.length){var i=e.selection.getBookmark();jn(e,t,n),Wn(e,n,r),e.selection.moveToBookmark(i),e.selection.setRng(x(e.selection.getRng())),e.nodeChanged(),o=!0}return o},Kn=function(e){return zn(e,"Indent")},Vn=function(e){return zn(e,"Outdent")},Xn=function(e){return zn(e,"Flatten")},Qn=function(e){return/\btox\-/.test(e.className)},Yn=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Gn=function(t,e){v.each(e,function(e,n){t.setAttribute(n,e)})},Jn=function(e,n,t){var r,o,i,u,s,a,c;r=e,o=n,u=(i=t)["list-style-type"]?i["list-style-type"]:null,r.setStyle(o,"list-style-type",u),s=e,Gn(a=n,(c=t)["list-attributes"]),v.each(s.select("li",a),function(e){Gn(e,c["list-item-attributes"])})},Zn=function(e,n,t,r){var o,i;for(o=n[t?"startContainer":"endContainer"],i=n[t?"startOffset":"endOffset"],1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!t&&T(o.nextSibling)&&(o=o.nextSibling);o.parentNode!==r;){if(L(e,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},et=function(f,d,l){void 0===l&&(l={});var e,n=f.selection.getRng(!0),m="LI",t=Se.getClosestListRootElm(f,f.selection.getStart(!0)),g=f.dom;"false"!==g.getContentEditable(f.selection.getNode())&&("DL"===(d=d.toUpperCase())&&(m="DT"),e=I(n),v.each(function(t,e,r){for(var o,i=[],u=t.dom,n=Zn(t,e,!0,r),s=Zn(t,e,!1,r),a=[],c=n;c&&(a.push(c),c!==s);c=c.nextSibling);return v.each(a,function(e){if(L(t,e))return i.push(e),void(o=null);if(u.isBlock(e)||T(e))return T(e)&&u.remove(e),void(o=null);var n=e.nextSibling;p.isBookmarkNode(e)&&(L(t,n)||!n&&e.parentNode===r)?o=null:(o||(o=u.create("p"),e.parentNode.insertBefore(o,e),i.push(o)),o.appendChild(e))}),i}(f,n,t),function(e){var n,t,r,o,i,u,s,a,c;(t=e.previousSibling)&&N(t)&&t.nodeName===d&&(r=t,o=l,i=g.getStyle(r,"list-style-type"),u=o?o["list-style-type"]:"",i===(u=null===u?"":u))?(n=t,e=g.rename(e,m),t.appendChild(e)):(n=g.create(d),e.parentNode.insertBefore(n,e),n.appendChild(e),e=g.rename(e,m)),s=g,a=e,c=["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"],v.each(c,function(e){var n;return s.setStyle(a,((n={})[e]="",n))}),Jn(g,n,l),tt(f.dom,n)}),f.selection.setRng(_(e)))},nt=function(e,n,t){return a=t,(s=n)&&a&&N(s)&&s.nodeName===a.nodeName&&(i=n,u=t,(o=e).getStyle(i,"list-style-type",!0)===o.getStyle(u,"list-style-type",!0))&&(r=t,n.className===r.className);var r,o,i,u,s,a},tt=function(e,n){var t,r;if(t=n.nextSibling,nt(e,n,t)){for(;r=t.firstChild;)n.appendChild(r);e.remove(t)}if(t=n.previousSibling,nt(e,n,t)){for(;r=t.lastChild;)n.insertBefore(r,n.firstChild);e.remove(t)}},rt=function(n,e,t,r,o){if(e.nodeName!==r||ot(o)){var i=I(n.selection.getRng(!0));v.each([e].concat(t),function(e){!function(e,n,t,r){if(n.nodeName!==t){var o=e.dom.rename(n,t);Jn(e.dom,o,r),Mn(e,Yn(t),o)}else Jn(e.dom,n,r),Mn(e,Yn(t),n)}(n,e,r,o)}),n.selection.setRng(_(i))}else Xn(n)},ot=function(e){return"list-style-type"in e},it={toggleList:function(e,n,t){var r=Se.getParentList(e),o=Se.getSelectedSubLists(e);t=t||{},r&&0<o.length?rt(e,r,o,n,t):function(e,n,t,r){if(n!==e.getBody())if(n)if(n.nodeName!==t||ot(r)||Qn(n)){var o=I(e.selection.getRng(!0));Jn(e.dom,n,r);var i=e.dom.rename(n,t);tt(e.dom,i),e.selection.setRng(_(o)),Mn(e,Yn(t),i)}else Xn(e);else et(e,t,r),Mn(e,Yn(t),n)}(e,r,n,t)},mergeWithAdjacentLists:tt},ut=g.DOM,st=function(e,n){var t,r=n.parentNode;"LI"===r.nodeName&&r.firstChild===n&&((t=r.previousSibling)&&"LI"===t.nodeName?(t.appendChild(n),w(e,r)&&ut.remove(r)):ut.setStyle(r,"listStyleType","none")),N(r)&&(t=r.previousSibling)&&"LI"===t.nodeName&&t.appendChild(n)},at=function(n,e){v.each(v.grep(n.select("ol,ul",e)),function(e){st(n,e)})},ct=function(e,n,t,r){var o=n.startContainer,i=n.startOffset;if(3===o.nodeType&&(t?i<o.data.length:0<i))return o;var u=e.schema.getNonEmptyElements();1===o.nodeType&&(o=d.getNode(o,i));var s=new l(o,r);for(t&&E(e.dom,o)&&s.next();o=s[t?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(u[o.nodeName])return o;if(3===o.nodeType&&0<o.data.length)return o}},ft=function(e,n){var t=n.childNodes;return 1===t.length&&!N(t[0])&&e.isBlock(t[0])},dt=function(e,n,t){var r,o,i,u;if(o=ft(e,t)?t.firstChild:t,ft(i=e,u=n)&&i.remove(u.firstChild,!0),!w(e,n,!0))for(;r=n.firstChild;)o.appendChild(r)},lt=function(n,e,t){var r,o,i=e.parentNode;if(k(n,e)&&k(n,t)){N(t.lastChild)&&(o=t.lastChild),i===t.lastChild&&T(i.previousSibling)&&n.remove(i.previousSibling),(r=t.lastChild)&&T(r)&&e.hasChildNodes()&&n.remove(r),w(n,t,!0)&&n.$(t).empty(),dt(n,e,t),o&&t.appendChild(o);var u=rn(Ce.fromDom(t),Ce.fromDom(e))?n.getParents(e,N,t):[];n.remove(e),J(u,function(e){w(n,e)&&e!==n.getRoot()&&n.remove(e)})}},mt=function(e,n,t,r){var o,i,u,s=e.dom;if(s.isEmpty(r))i=t,u=r,(o=e).dom.$(u).empty(),lt(o.dom,i,u),o.selection.setCursorLocation(u);else{var a=I(n);lt(s,t,r),e.selection.setRng(_(a))}},gt=function(e,n){var t,r,o,i=e.dom,u=e.selection,s=u.getStart(),a=Se.getClosestListRootElm(e,s),c=i.getParent(u.getStart(),"LI",a);if(c){if((t=c.parentNode)===e.getBody()&&w(i,t))return!0;if(r=x(u.getRng(!0)),(o=i.getParent(ct(e,r,n,a),"LI",a))&&o!==c)return n?mt(e,r,o,c):function(e,n,t,r){var o=I(n);lt(e.dom,t,r);var i=_(o);e.selection.setRng(i)}(e,r,c,o),!0;if(!o&&!n&&0===r.startOffset&&0===r.endOffset)return Xn(e),!0}return!1},pt=function(e,n){return gt(e,n)||function(o,i){var u=o.dom,e=o.selection.getStart(),s=Se.getClosestListRootElm(o,e),a=u.getParent(e,u.isBlock,s);if(a&&u.isEmpty(a)){var n=x(o.selection.getRng(!0)),c=u.getParent(ct(o,n,i,s),"LI",s);if(c)return o.undoManager.transact(function(){var e,n,t,r;n=a,t=s,r=(e=u).getParent(n.parentNode,e.isBlock,t),e.remove(n),r&&e.isEmpty(r)&&e.remove(r),it.mergeWithAdjacentLists(u,c.parentNode),o.selection.select(c,!0),o.selection.collapse(i)}),!0}return!1}(e,n)},vt=function(e,n){return e.selection.isCollapsed()?pt(e,n):(r=(t=e).selection.getStart(),o=Se.getClosestListRootElm(t,r),!!(t.dom.getParent(r,"LI,DT,DD",o)||0<Se.getSelectedListItems(t).length)&&(t.undoManager.transact(function(){t.execCommand("Delete"),at(t.dom,t.getBody())}),!0));var t,r,o},ht=function(n){n.on("keydown",function(e){e.keyCode===m.BACKSPACE?vt(n,!1)&&e.preventDefault():e.keyCode===m.DELETE&&vt(n,!0)&&e.preventDefault()})},yt=vt,Nt=function(n){return{backspaceDelete:function(e){yt(n,e)}}},St=function(n,t){return function(){var e=n.dom.getParent(n.selection.getStart(),"UL,OL,DL");return e&&e.nodeName===t}},Ot=function(t){t.on("BeforeExecCommand",function(e){var n=e.command.toLowerCase();"indent"===n?Kn(t):"outdent"===n&&Vn(t)}),t.addCommand("InsertUnorderedList",function(e,n){it.toggleList(t,"UL",n)}),t.addCommand("InsertOrderedList",function(e,n){it.toggleList(t,"OL",n)}),t.addCommand("InsertDefinitionList",function(e,n){it.toggleList(t,"DL",n)}),t.addCommand("RemoveList",function(){Xn(t)}),t.addQueryStateHandler("InsertUnorderedList",St(t,"UL")),t.addQueryStateHandler("InsertOrderedList",St(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",St(t,"DL"))},Ct=function(e){return e.getParam("lists_indent_on_tab",!0)},bt=function(e){var n;Ct(e)&&(n=e).on("keydown",function(e){e.keyCode!==m.TAB||m.metaKeyPressed(e)||n.undoManager.transact(function(){(e.shiftKey?Vn(n):Kn(n))&&e.preventDefault()})}),ht(e)},Tt=function(n,i){return function(o){var e=function(e){var n=function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t;return-1}(e.parents,b),t=-1!==n?e.parents.slice(0,n):e.parents,r=v.grep(t,N);o.setActive(0<r.length&&r[0].nodeName===i&&!Qn(r[0]))};return n.on("NodeChange",e),function(){return n.off("NodeChange",e)}}},Lt=function(n){var e,t,r,o=function(e){return function(){return n.execCommand(e)}};t="advlist",r=(e=n).settings.plugins?e.settings.plugins:"",-1===v.inArray(r.split(/[ ,]/),t)&&(n.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:o("InsertOrderedList"),onSetup:Tt(n,"OL")}),n.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:o("InsertUnorderedList"),onSetup:Tt(n,"UL")}))};!function Dt(){f.add("lists",function(e){return bt(e),Lt(e),Ot(e),Nt(e)})}()}(window);

Youez - 2016 - github.com/yon3zu
LinuXploit