egroupware/api/js/tinymce/plugins/charmap/plugin.min.js

1 line
11 KiB
JavaScript
Raw Normal View History

!function(){"use strict";var e,n,t,r,a,i=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(e,n){return e.fire("insertCustomChar",{chr:n})},s=function(e,n){var t=o(e,n).chr;e.execCommand("mceInsertContent",!1,t)},u=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(e){return e.settings.charmap},l=function(e){return e.settings.charmap_append},f=function(e){return function(){return e}},m=f(!1),g=f(!0),h=m,d=g,p=function(){return y},y=(r={fold:function(e,n){return e()},is:h,isSome:h,isNone:d,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:p,ap:p,each:function(){},bind:p,flatten:p,exists:h,forall:d,filter:p,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:f("none()")},Object.freeze&&Object.freeze(r),r),b=function(t){var e=function(){return t},n=function(){return a},r=function(e){return e(t)},a={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:d,isNone:h,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return b(e(t))},ap:function(e){return e.fold(p,function(e){return b(e(t))})},each:function(e){e(t)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(t)?a:y},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(h,function(e){return n(t,e)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return a},v={some:b,none:p,from:function(e){return null===e||e===undefined?y:b(e)}},w=(a="function",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)===a}),O=function(e,n){for(var t=e.length,r=new Array(t),a=0;a<t;a++){var i=e[a];r[a]=n(i,a,e)}return r},k=Array.prototype.push,A=function(e,n){return 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);k.apply(n,e[t])}return n}(O(e,n))},C=(Array.prototype.slice,w(Array.from)&&Array.from,u.isArray),x="User Defined",q=function(e){return C(e)?[].concat((n=e,u.grep(n,function(e){return C(e)&&2===e.length}))):"function"==typeof e?e():[];var n},S=function(e){var n=function(e,n){var t=c(e);t&&(n=[{name:x,characters:q(t)}]);var r=l(e);if(r){var a=u.grep(n,function(e){return e.name===x});return a.length?(a[0].characters=[].concat(a[0].characters).concat(q(r)),n):[].concat(n).concat({name:x,characters:q(r)})}return n}(e,[{name:"Finance",characters:[["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"]]},{name:"Signs",characters:[["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"]]},{name:"Quotations",characters:[["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215