agenda-libre-ruby/public/assets/tinymce/themes/mobile/theme-d8ea7128fdf215593ad6e1fd511fc1ac196324084fb31c74eb4d0078b9935514.js

2 lines
181 KiB
JavaScript
Raw Normal View History

2018-02-19 14:21:53 +01:00
!function(){"use strict";var n,e,t,r,o,i,u,a=function(n){return function(){return n}},c={noop:function(){},noarg:function(n){return function(){return n()}},compose:function(n,e){return function(){return n(e.apply(null,arguments))}},constant:a,identity:function(n){return n},tripleEquals:function(n,e){return n===e},curry:function(n){for(var e=new Array(arguments.length-1),t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var o=e.concat(t);return n.apply(null,o)}},not:function(n){return function(){return!n.apply(null,arguments)}},die:function(n){return function(){throw new Error(n)}},apply:function(n){return n()},call:function(n){n()},never:a(!1),always:a(!0)},s=c.never,f=c.always,l=function(){return d},d=(r={fold:function(n,e){return n()},is:s,isSome:s,isNone:f,getOr:t=function(n){return n},getOrThunk:e=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},or:t,orThunk:e,map:l,ap:l,each:function(){},bind:l,flatten:l,exists:s,forall:f,filter:l,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:c.constant("none()")},Object.freeze&&Object.freeze(r),r),m=function(n){var e=function(){return n},t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:f,isNone:s,getOr:e,getOrThunk:e,getOrDie:e,or:t,orThunk:t,map:function(e){return m(e(n))},ap:function(e){return e.fold(l,function(e){return m(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(n)?o:d},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(s,function(e){return t(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},p={some:m,none:l,from:function(n){return null===n||n===undefined?d:m(n)}},g=(o=Array.prototype.indexOf)===undefined?function(n,e){return x(n,e)}:function(n,e){return o.call(n,e)},h=function(n,e){return g(n,e)>-1},v=function(n,e){for(var t=n.length,r=new Array(t),o=0;o<t;o++){var i=n[o];r[o]=e(i,o,n)}return r},y=function(n,e){for(var t=0,r=n.length;t<r;t++)e(n[t],t,n)},b=function(n,e){for(var t=n.length-1;t>=0;t--)e(n[t],t,n)},w=function(n,e){for(var t=[],r=0,o=n.length;r<o;r++){var i=n[r];e(i,r,n)&&t.push(i)}return t},S=function(n,e){for(var t=0,r=n.length;t<r;t++)if(e(n[t],t,n))return p.some(t);return p.none()},x=function(n,e){for(var t=0,r=n.length;t<r;++t)if(n[t]===e)return t;return-1},O=Array.prototype.push,T=function(n){for(var e=[],t=0,r=n.length;t<r;++t){if(!Array.prototype.isPrototypeOf(n[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+n);O.apply(e,n[t])}return e},k=function(n,e){for(var t=0,r=n.length;t<r;++t)if(!0!==e(n[t],t,n))return!1;return!0},C=Array.prototype.slice,E={map:v,each:y,eachr:b,partition:function(n,e){for(var t=[],r=[],o=0,i=n.length;o<i;o++){var u=n[o];(e(u,o,n)?t:r).push(u)}return{pass:t,fail:r}},filter:w,groupBy:function(n,e){if(0===n.length)return[];for(var t=e(n[0]),r=[],o=[],i=0,u=n.length;i<u;i++){var a=n[i],c=e(a);c!==t&&(r.push(o),o=[]),t=c,o.push(a)}return 0!==o.length&&r.push(o),r},indexOf:function(n,e){var t=g(n,e);return-1===t?p.none():p.some(t)},foldr:function(n,e,t){return b(n,function(n){t=e(t,n)}),t},foldl:function(n,e,t){return y(n,function(n){t=e(t,n)}),t},find:function(n,e){for(var t=0,r=n.length;t<r;t++){var o=n[t];if(e(o,t,n))return p.some(o)}return p.none()},findIndex:S,flatten:T,bind:function(n,e){var t=v(n,e);return T(t)},forall:k,exists:function(n,e){return S(n,e).isSome()},contains:h,equal:function(n,e){return n.length===e.length&&k(n,function(n,t){return n===e[t]})},reverse:function(n){var e=C.call(n,0);return e.reverse(),e},chunk:function(n,e){for(var t=[],r=0;r<n.length;r+=e){var o=n.slice(r,r+e);t.push(o)}return t},difference:function(n,e){return w(n,function(n){return!h(e,n)})},mapToObject:function(n,e){for(var t={},r=0,o=n.length;r<o;r++){var i=n[r];t[String(i)]=e(i,r)}return t},pure:function(n){return[n]},sort:function(n,e){var t=C.call(n,0);retur