diff options
Diffstat (limited to 'srcs/wordpress/wp-includes/js/mediaelement')
20 files changed, 0 insertions, 15724 deletions
diff --git a/srcs/wordpress/wp-includes/js/mediaelement/mediaelement-and-player.js b/srcs/wordpress/wp-includes/js/mediaelement/mediaelement-and-player.js deleted file mode 100644 index c3adeec..0000000 --- a/srcs/wordpress/wp-includes/js/mediaelement/mediaelement-and-player.js +++ /dev/null @@ -1,8802 +0,0 @@ -/*! - * MediaElement.js - * http://www.mediaelementjs.com/ - * - * Wrapper that mimics native HTML5 MediaElement (audio and video) - * using a variety of technologies (pure JavaScript, Flash, iframe) - * - * Copyright 2010-2017, John Dyer (http://j.hn/) - * License: MIT - * - */(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){ - -},{}],2:[function(_dereq_,module,exports){ -(function (global){ -var topLevel = typeof global !== 'undefined' ? global : - typeof window !== 'undefined' ? window : {} -var minDoc = _dereq_(1); - -var doccy; - -if (typeof document !== 'undefined') { - doccy = document; -} else { - doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; - - if (!doccy) { - doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc; - } -} - -module.exports = doccy; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"1":1}],3:[function(_dereq_,module,exports){ -(function (global){ -var win; - -if (typeof window !== "undefined") { - win = window; -} else if (typeof global !== "undefined") { - win = global; -} else if (typeof self !== "undefined"){ - win = self; -} else { - win = {}; -} - -module.exports = win; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],4:[function(_dereq_,module,exports){ -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - -},{}],5:[function(_dereq_,module,exports){ -(function (setImmediate){ -(function (root) { - - // Store setTimeout reference so promise-polyfill will be unaffected by - // other code modifying setTimeout (like sinon.useFakeTimers()) - var setTimeoutFunc = setTimeout; - - function noop() {} - - // Polyfill for Function.prototype.bind - function bind(fn, thisArg) { - return function () { - fn.apply(thisArg, arguments); - }; - } - - function Promise(fn) { - if (typeof this !== 'object') throw new TypeError('Promises must be constructed via new'); - if (typeof fn !== 'function') throw new TypeError('not a function'); - this._state = 0; - this._handled = false; - this._value = undefined; - this._deferreds = []; - - doResolve(fn, this); - } - - function handle(self, deferred) { - while (self._state === 3) { - self = self._value; - } - if (self._state === 0) { - self._deferreds.push(deferred); - return; - } - self._handled = true; - Promise._immediateFn(function () { - var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; - if (cb === null) { - (self._state === 1 ? resolve : reject)(deferred.promise, self._value); - return; - } - var ret; - try { - ret = cb(self._value); - } catch (e) { - reject(deferred.promise, e); - return; - } - resolve(deferred.promise, ret); - }); - } - - function resolve(self, newValue) { - try { - // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure - if (newValue === self) throw new TypeError('A promise cannot be resolved with itself.'); - if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) { - var then = newValue.then; - if (newValue instanceof Promise) { - self._state = 3; - self._value = newValue; - finale(self); - return; - } else if (typeof then === 'function') { - doResolve(bind(then, newValue), self); - return; - } - } - self._state = 1; - self._value = newValue; - finale(self); - } catch (e) { - reject(self, e); - } - } - - function reject(self, newValue) { - self._state = 2; - self._value = newValue; - finale(self); - } - - function finale(self) { - if (self._state === 2 && self._deferreds.length === 0) { - Promise._immediateFn(function() { - if (!self._handled) { - Promise._unhandledRejectionFn(self._value); - } - }); - } - - for (var i = 0, len = self._deferreds.length; i < len; i++) { - handle(self, self._deferreds[i]); - } - self._deferreds = null; - } - - function Handler(onFulfilled, onRejected, promise) { - this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; - this.onRejected = typeof onRejected === 'function' ? onRejected : null; - this.promise = promise; - } - - /** - * Take a potentially misbehaving resolver function and make sure - * onFulfilled and onRejected are only called once. - * - * Makes no guarantees about asynchrony. - */ - function doResolve(fn, self) { - var done = false; - try { - fn(function (value) { - if (done) return; - done = true; - resolve(self, value); - }, function (reason) { - if (done) return; - done = true; - reject(self, reason); - }); - } catch (ex) { - if (done) return; - done = true; - reject(self, ex); - } - } - - Promise.prototype['catch'] = function (onRejected) { - return this.then(null, onRejected); - }; - - Promise.prototype.then = function (onFulfilled, onRejected) { - var prom = new (this.constructor)(noop); - - handle(this, new Handler(onFulfilled, onRejected, prom)); - return prom; - }; - - Promise.all = function (arr) { - var args = Array.prototype.slice.call(arr); - - return new Promise(function (resolve, reject) { - if (args.length === 0) return resolve([]); - var remaining = args.length; - - function res(i, val) { - try { - if (val && (typeof val === 'object' || typeof val === 'function')) { - var then = val.then; - if (typeof then === 'function') { - then.call(val, function (val) { - res(i, val); - }, reject); - return; - } - } - args[i] = val; - if (--remaining === 0) { - resolve(args); - } - } catch (ex) { - reject(ex); - } - } - - for (var i = 0; i < args.length; i++) { - res(i, args[i]); - } - }); - }; - - Promise.resolve = function (value) { - if (value && typeof value === 'object' && value.constructor === Promise) { - return value; - } - - return new Promise(function (resolve) { - resolve(value); - }); - }; - - Promise.reject = function (value) { - return new Promise(function (resolve, reject) { - reject(value); - }); - }; - - Promise.race = function (values) { - return new Promise(function (resolve, reject) { - for (var i = 0, len = values.length; i < len; i++) { - values[i].then(resolve, reject); - } - }); - }; - - // Use polyfill for setImmediate for performance gains - Promise._immediateFn = (typeof setImmediate === 'function' && function (fn) { setImmediate(fn); }) || - function (fn) { - setTimeoutFunc(fn, 0); - }; - - Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) { - if (typeof console !== 'undefined' && console) { - console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console - } - }; - - /** - * Set the immediate function to execute callbacks - * @param fn {function} Function to execute - * @deprecated - */ - Promise._setImmediateFn = function _setImmediateFn(fn) { - Promise._immediateFn = fn; - }; - - /** - * Change the function to execute on unhandled rejection - * @param {function} fn Function to execute on unhandled rejection - * @deprecated - */ - Promise._setUnhandledRejectionFn = function _setUnhandledRejectionFn(fn) { - Promise._unhandledRejectionFn = fn; - }; - - if (typeof module !== 'undefined' && module.exports) { - module.exports = Promise; - } else if (!root.Promise) { - root.Promise = Promise; - } - -})(this); - -}).call(this,_dereq_(6).setImmediate) -},{"6":6}],6:[function(_dereq_,module,exports){ -(function (setImmediate,clearImmediate){ -var nextTick = _dereq_(4).nextTick; -var apply = Function.prototype.apply; -var slice = Array.prototype.slice; -var immediateIds = {}; -var nextImmediateId = 0; - -// DOM APIs, for completeness - -exports.setTimeout = function() { - return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout); -}; -exports.setInterval = function() { - return new Timeout(apply.call(setInterval, window, arguments), clearInterval); -}; -exports.clearTimeout = -exports.clearInterval = function(timeout) { timeout.close(); }; - -function Timeout(id, clearFn) { - this._id = id; - this._clearFn = clearFn; -} -Timeout.prototype.unref = Timeout.prototype.ref = function() {}; -Timeout.prototype.close = function() { - this._clearFn.call(window, this._id); -}; - -// Does not start the time, just sets up the members needed. -exports.enroll = function(item, msecs) { - clearTimeout(item._idleTimeoutId); - item._idleTimeout = msecs; -}; - -exports.unenroll = function(item) { - clearTimeout(item._idleTimeoutId); - item._idleTimeout = -1; -}; - -exports._unrefActive = exports.active = function(item) { - clearTimeout(item._idleTimeoutId); - - var msecs = item._idleTimeout; - if (msecs >= 0) { - item._idleTimeoutId = setTimeout(function onTimeout() { - if (item._onTimeout) - item._onTimeout(); - }, msecs); - } -}; - -// That's not how node.js implements it but the exposed api is the same. -exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function(fn) { - var id = nextImmediateId++; - var args = arguments.length < 2 ? false : slice.call(arguments, 1); - - immediateIds[id] = true; - - nextTick(function onNextTick() { - if (immediateIds[id]) { - // fn.call() is faster so we optimize for the common use-case - // @see http://jsperf.com/call-apply-segu - if (args) { - fn.apply(null, args); - } else { - fn.call(null); - } - // Prevent ids from leaking - exports.clearImmediate(id); - } - }); - - return id; -}; - -exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function(id) { - delete immediateIds[id]; -}; -}).call(this,_dereq_(6).setImmediate,_dereq_(6).clearImmediate) -},{"4":4,"6":6}],7:[function(_dereq_,module,exports){ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _mejs = _dereq_(9); - -var _mejs2 = _interopRequireDefault(_mejs); - -var _en = _dereq_(17); - -var _general = _dereq_(29); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var i18n = { lang: 'en', en: _en.EN }; - -i18n.language = function () { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - if (args !== null && args !== undefined && args.length) { - - if (typeof args[0] !== 'string') { - throw new TypeError('Language code must be a string value'); - } - - if (!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(args[0])) { - throw new TypeError('Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters'); - } - - i18n.lang = args[0]; - - if (i18n[args[0]] === undefined) { - args[1] = args[1] !== null && args[1] !== undefined && _typeof(args[1]) === 'object' ? args[1] : {}; - i18n[args[0]] = !(0, _general.isObjectEmpty)(args[1]) ? args[1] : _en.EN; - } else if (args[1] !== null && args[1] !== undefined && _typeof(args[1]) === 'object') { - i18n[args[0]] = args[1]; - } - } - - return i18n.lang; -}; - -i18n.t = function (message) { - var pluralParam = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - - - if (typeof message === 'string' && message.length) { - - var str = void 0, - pluralForm = void 0; - - var language = i18n.language(); - - var _plural = function _plural(input, number, form) { - - if ((typeof input === 'undefined' ? 'undefined' : _typeof(input)) !== 'object' || typeof number !== 'number' || typeof form !== 'number') { - return input; - } - - var _pluralForms = function () { - return [function () { - return arguments.length <= 1 ? undefined : arguments[1]; - }, function () { - return (arguments.length <= 0 ? undefined : arguments[0]) === 1 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2]; - }, function () { - return (arguments.length <= 0 ? undefined : arguments[0]) === 0 || (arguments.length <= 0 ? undefined : arguments[0]) === 1 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2]; - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 !== 11) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) !== 0) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1 || (arguments.length <= 0 ? undefined : arguments[0]) === 11) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2 || (arguments.length <= 0 ? undefined : arguments[0]) === 12) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) > 2 && (arguments.length <= 0 ? undefined : arguments[0]) < 20) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else { - return arguments.length <= 4 ? undefined : arguments[4]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 0 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 > 0 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 < 20) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 !== 11) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return [3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 !== 11) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 <= 4 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) <= 4) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 <= 4 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 === 1) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 === 2) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 === 3 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 === 4) { - return arguments.length <= 4 ? undefined : arguments[4]; - } else { - return arguments.length <= 1 ? undefined : arguments[1]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) > 2 && (arguments.length <= 0 ? undefined : arguments[0]) < 7) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) > 6 && (arguments.length <= 0 ? undefined : arguments[0]) < 11) { - return arguments.length <= 4 ? undefined : arguments[4]; - } else { - return arguments.length <= 5 ? undefined : arguments[5]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 0) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 3 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 <= 10) { - return arguments.length <= 4 ? undefined : arguments[4]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 11) { - return arguments.length <= 5 ? undefined : arguments[5]; - } else { - return arguments.length <= 6 ? undefined : arguments[6]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 0 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 > 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 < 11) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 > 10 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 < 20) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else { - return arguments.length <= 4 ? undefined : arguments[4]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 2) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - return (arguments.length <= 0 ? undefined : arguments[0]) !== 11 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2]; - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 <= 4 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) !== 8 && (arguments.length <= 0 ? undefined : arguments[0]) !== 11) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else { - return arguments.length <= 4 ? undefined : arguments[4]; - } - }, function () { - return (arguments.length <= 0 ? undefined : arguments[0]) === 0 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2]; - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 3) { - return arguments.length <= 3 ? undefined : arguments[3]; - } else { - return arguments.length <= 4 ? undefined : arguments[4]; - } - }, function () { - if ((arguments.length <= 0 ? undefined : arguments[0]) === 0) { - return arguments.length <= 1 ? undefined : arguments[1]; - } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) { - return arguments.length <= 2 ? undefined : arguments[2]; - } else { - return arguments.length <= 3 ? undefined : arguments[3]; - } - }]; - }(); - - return _pluralForms[form].apply(null, [number].concat(input)); - }; - - if (i18n[language] !== undefined) { - str = i18n[language][message]; - if (pluralParam !== null && typeof pluralParam === 'number') { - pluralForm = i18n[language]['mejs.plural-form']; - str = _plural.apply(null, [str, pluralParam, pluralForm]); - } - } - - if (!str && i18n.en) { - str = i18n.en[message]; - if (pluralParam !== null && typeof pluralParam === 'number') { - pluralForm = i18n.en['mejs.plural-form']; - str = _plural.apply(null, [str, pluralParam, pluralForm]); - } - } - - str = str || message; - - if (pluralParam !== null && typeof pluralParam === 'number') { - str = str.replace('%1', pluralParam); - } - - return (0, _general.escapeHTML)(str); - } - - return message; -}; - -_mejs2.default.i18n = i18n; - -if (typeof mejsL10n !== 'undefined') { - _mejs2.default.i18n.language(mejsL10n.language, mejsL10n.strings); -} - -exports.default = i18n; - -},{"17":17,"29":29,"9":9}],8:[function(_dereq_,module,exports){ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _window = _dereq_(3); - -var _window2 = _interopRequireDefault(_window); - -var _document = _dereq_(2); - -var _document2 = _interopRequireDefault(_document); - -var _mejs = _dereq_(9); - -var _mejs2 = _interopRequireDefault(_mejs); - -var _general = _dereq_(29); - -var _media2 = _dereq_(30); - |
