code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
(function () { var GLOBAL_ENV = YUI.Env; if (!GLOBAL_ENV._ready) { GLOBAL_ENV._ready = function() { GLOBAL_ENV.DOMReady = true; GLOBAL_ENV.remove(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready); }; GLOBAL_ENV.add(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready); } })(); YUI.add('event-base', function (Y, NAME) { /* * DOM event listener abstraction layer * @module event * @submodule event-base */ /** * The domready event fires at the moment the browser's DOM is * usable. In most cases, this is before images are fully * downloaded, allowing you to provide a more responsive user * interface. * * In YUI 3, domready subscribers will be notified immediately if * that moment has already passed when the subscription is created. * * One exception is if the yui.js file is dynamically injected into * the page. If this is done, you must tell the YUI instance that * you did this in order for DOMReady (and window load events) to * fire normally. That configuration option is 'injected' -- set * it to true if the yui.js script is not included inline. * * This method is part of the 'event-ready' module, which is a * submodule of 'event'. * * @event domready * @for YUI */ Y.publish('domready', { fireOnce: true, async: true }); if (YUI.Env.DOMReady) { Y.fire('domready'); } else { Y.Do.before(function() { Y.fire('domready'); }, YUI.Env, '_ready'); } /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event * @submodule event-base */ /** * Wraps a DOM event, properties requiring browser abstraction are * fixed here. Provids a security layer when required. * @class DOMEventFacade * @param ev {Event} the DOM event * @param currentTarget {HTMLElement} the element the listener was attached to * @param wrapper {Event.Custom} the custom event wrapper for this DOM event */ var ua = Y.UA, EMPTY = {}, /** * webkit key remapping required for Safari < 3.1 * @property webkitKeymap * @private */ webkitKeymap = { 63232: 38, // up 63233: 40, // down 63234: 37, // left 63235: 39, // right 63276: 33, // page up 63277: 34, // page down 25: 9, // SHIFT-TAB (Safari provides a different key code in // this case, even though the shiftKey modifier is set) 63272: 46, // delete 63273: 36, // home 63275: 35 // end }, /** * Returns a wrapped node. Intended to be used on event targets, * so it will return the node's parent if the target is a text * node. * * If accessing a property of the node throws an error, this is * probably the anonymous div wrapper Gecko adds inside text * nodes. This likely will only occur when attempting to access * the relatedTarget. In this case, we now return null because * the anonymous div is completely useless and we do not know * what the related target was because we can't even get to * the element's parent node. * * @method resolve * @private */ resolve = function(n) { if (!n) { return n; } try { if (n && 3 == n.nodeType) { n = n.parentNode; } } catch(e) { return null; } return Y.one(n); }, DOMEventFacade = function(ev, currentTarget, wrapper) { this._event = ev; this._currentTarget = currentTarget; this._wrapper = wrapper || EMPTY; // if not lazy init this.init(); }; Y.extend(DOMEventFacade, Object, { init: function() { var e = this._event, overrides = this._wrapper.overrides, x = e.pageX, y = e.pageY, c, currentTarget = this._currentTarget; this.altKey = e.altKey; this.ctrlKey = e.ctrlKey; this.metaKey = e.metaKey; this.shiftKey = e.shiftKey; this.type = (overrides && overrides.type) || e.type; this.clientX = e.clientX; this.clientY = e.clientY; this.pageX = x; this.pageY = y; // charCode is unknown in keyup, keydown. keyCode is unknown in keypress. // FF 3.6 - 8+? pass 0 for keyCode in keypress events. // Webkit, FF 3.6-8+?, and IE9+? pass 0 for charCode in keydown, keyup. // Webkit and IE9+? duplicate charCode in keyCode. // Opera never sets charCode, always keyCode (though with the charCode). // IE6-8 don't set charCode or which. // All browsers other than IE6-8 set which=keyCode in keydown, keyup, and // which=charCode in keypress. // // Moral of the story: (e.which || e.keyCode) will always return the // known code for that key event phase. e.keyCode is often different in // keypress from keydown and keyup. c = e.keyCode || e.charCode; if (ua.webkit && (c in webkitKeymap)) { c = webkitKeymap[c]; } this.keyCode = c; this.charCode = c; // Fill in e.which for IE - implementers should always use this over // e.keyCode or e.charCode. this.which = e.which || e.charCode || c; // this.button = e.button; this.button = this.which; this.target = resolve(e.target); this.currentTarget = resolve(currentTarget); this.relatedTarget = resolve(e.relatedTarget); if (e.type == "mousewheel" || e.type == "DOMMouseScroll") { this.wheelDelta = (e.detail) ? (e.detail * -1) : Math.round(e.wheelDelta / 80) || ((e.wheelDelta < 0) ? -1 : 1); } if (this._touch) { this._touch(e, currentTarget, this._wrapper); } }, stopPropagation: function() { this._event.stopPropagation(); this._wrapper.stopped = 1; this.stopped = 1; }, stopImmediatePropagation: function() { var e = this._event; if (e.stopImmediatePropagation) { e.stopImmediatePropagation(); } else { this.stopPropagation(); } this._wrapper.stopped = 2; this.stopped = 2; }, preventDefault: function(returnValue) { var e = this._event; e.preventDefault(); e.returnValue = returnValue || false; this._wrapper.prevented = 1; this.prevented = 1; }, halt: function(immediate) { if (immediate) { this.stopImmediatePropagation(); } else { this.stopPropagation(); } this.preventDefault(); } }); DOMEventFacade.resolve = resolve; Y.DOM2EventFacade = DOMEventFacade; Y.DOMEventFacade = DOMEventFacade; /** * The native event * @property _event * @type {Native DOM Event} * @private */ /** The name of the event (e.g. "click") @property type @type {String} **/ /** `true` if the "alt" or "option" key is pressed. @property altKey @type {Boolean} **/ /** `true` if the shift key is pressed. @property shiftKey @type {Boolean} **/ /** `true` if the "Windows" key on a Windows keyboard, "command" key on an Apple keyboard, or "meta" key on other keyboards is pressed. @property metaKey @type {Boolean} **/ /** `true` if the "Ctrl" or "control" key is pressed. @property ctrlKey @type {Boolean} **/ /** * The X location of the event on the page (including scroll) * @property pageX * @type {Number} */ /** * The Y location of the event on the page (including scroll) * @property pageY * @type {Number} */ /** * The X location of the event in the viewport * @property clientX * @type {Number} */ /** * The Y location of the event in the viewport * @property clientY * @type {Number} */ /** * The keyCode for key events. Uses charCode if keyCode is not available * @property keyCode * @type {Number} */ /** * The charCode for key events. Same as keyCode * @property charCode * @type {Number} */ /** * The button that was pushed. 1 for left click, 2 for middle click, 3 for * right click. This is only reliably populated on `mouseup` events. * @property button * @type {Number} */ /** * The button that was pushed. Same as button. * @property which * @type {Number} */ /** * Node reference for the targeted element * @property target * @type {Node} */ /** * Node reference for the element that the listener was attached to. * @property currentTarget * @type {Node} */ /** * Node reference to the relatedTarget * @property relatedTarget * @type {Node} */ /** * Number representing the direction and velocity of the movement of the mousewheel. * Negative is down, the higher the number, the faster. Applies to the mousewheel event. * @property wheelDelta * @type {Number} */ /** * Stops the propagation to the next bubble target * @method stopPropagation */ /** * Stops the propagation to the next bubble target and * prevents any additional listeners from being exectued * on the current target. * @method stopImmediatePropagation */ /** * Prevents the event's default behavior * @method preventDefault * @param returnValue {string} sets the returnValue of the event to this value * (rather than the default false value). This can be used to add a customized * confirmation query to the beforeunload event). */ /** * Stops the event propagation and prevents the default * event behavior. * @method halt * @param immediate {boolean} if true additional listeners * on the current target will not be executed */ (function() { /** * The event utility provides functions to add and remove event listeners, * event cleansing. It also tries to automatically remove listeners it * registers during the unload event. * @module event * @main event * @submodule event-base */ /** * The event utility provides functions to add and remove event listeners, * event cleansing. It also tries to automatically remove listeners it * registers during the unload event. * * @class Event * @static */ Y.Env.evt.dom_wrappers = {}; Y.Env.evt.dom_map = {}; var YDOM = Y.DOM, _eventenv = Y.Env.evt, config = Y.config, win = config.win, add = YUI.Env.add, remove = YUI.Env.remove, onLoad = function() { YUI.Env.windowLoaded = true; Y.Event._load(); remove(win, "load", onLoad); }, onUnload = function() { Y.Event._unload(); }, EVENT_READY = 'domready', COMPAT_ARG = '~yui|2|compat~', shouldIterate = function(o) { try { // TODO: See if there's a more performant way to return true early on this, for the common case return (o && typeof o !== "string" && Y.Lang.isNumber(o.length) && !o.tagName && !YDOM.isWindow(o)); } catch(ex) { Y.log("collection check failure", "warn", "event"); return false; } }, // aliases to support DOM event subscription clean up when the last // subscriber is detached. deleteAndClean overrides the DOM event's wrapper // CustomEvent _delete method. _ceProtoDelete = Y.CustomEvent.prototype._delete, _deleteAndClean = function(s) { var ret = _ceProtoDelete.apply(this, arguments); if (!this.hasSubs()) { Y.Event._clean(this); } return ret; }, Event = function() { /** * True after the onload event has fired * @property _loadComplete * @type boolean * @static * @private */ var _loadComplete = false, /** * The number of times to poll after window.onload. This number is * increased if additional late-bound handlers are requested after * the page load. * @property _retryCount * @static * @private */ _retryCount = 0, /** * onAvailable listeners * @property _avail * @static * @private */ _avail = [], /** * Custom event wrappers for DOM events. Key is * 'event:' + Element uid stamp + event type * @property _wrappers * @type Y.Event.Custom * @static * @private */ _wrappers = _eventenv.dom_wrappers, _windowLoadKey = null, /** * Custom event wrapper map DOM events. Key is * Element uid stamp. Each item is a hash of custom event * wrappers as provided in the _wrappers collection. This * provides the infrastructure for getListeners. * @property _el_events * @static * @private */ _el_events = _eventenv.dom_map; return { /** * The number of times we should look for elements that are not * in the DOM at the time the event is requested after the document * has been loaded. The default is 1000@amp;40 ms, so it will poll * for 40 seconds or until all outstanding handlers are bound * (whichever comes first). * @property POLL_RETRYS * @type int * @static * @final */ POLL_RETRYS: 1000, /** * The poll interval in milliseconds * @property POLL_INTERVAL * @type int * @static * @final */ POLL_INTERVAL: 40, /** * addListener/removeListener can throw errors in unexpected scenarios. * These errors are suppressed, the method returns false, and this property * is set * @property lastError * @static * @type Error */ lastError: null, /** * poll handle * @property _interval * @static * @private */ _interval: null, /** * document readystate poll handle * @property _dri * @static * @private */ _dri: null, /** * True when the document is initially usable * @property DOMReady * @type boolean * @static */ DOMReady: false, /** * @method startInterval * @static * @private */ startInterval: function() { if (!Event._interval) { Event._interval = setInterval(Event._poll, Event.POLL_INTERVAL); } }, /** * Executes the supplied callback when the item with the supplied * id is found. This is meant to be used to execute behavior as * soon as possible as the page loads. If you use this after the * initial page load it will poll for a fixed time for the element. * The number of times it will poll and the frequency are * configurable. By default it will poll for 10 seconds. * * <p>The callback is executed with a single parameter: * the custom object parameter, if provided.</p> * * @method onAvailable * * @param {string||string[]} id the id of the element, or an array * of ids to look for. * @param {function} fn what to execute when the element is found. * @param {object} p_obj an optional object to be passed back as * a parameter to fn. * @param {boolean|object} p_override If set to true, fn will execute * in the context of p_obj, if set to an object it * will execute in the context of that object * @param checkContent {boolean} check child node readiness (onContentReady) * @static * @deprecated Use Y.on("available") */ // @TODO fix arguments onAvailable: function(id, fn, p_obj, p_override, checkContent, compat) { var a = Y.Array(id), i, availHandle; // Y.log('onAvailable registered for: ' + id); for (i=0; i<a.length; i=i+1) { _avail.push({ id: a[i], fn: fn, obj: p_obj, override: p_override, checkReady: checkContent, compat: compat }); } _retryCount = this.POLL_RETRYS; // We want the first test to be immediate, but async setTimeout(Event._poll, 0); availHandle = new Y.EventHandle({ _delete: function() { // set by the event system for lazy DOM listeners if (availHandle.handle) { availHandle.handle.detach(); return; } var i, j; // otherwise try to remove the onAvailable listener(s) for (i = 0; i < a.length; i++) { for (j = 0; j < _avail.length; j++) { if (a[i] === _avail[j].id) { _avail.splice(j, 1); } } } } }); return availHandle; }, /** * Works the same way as onAvailable, but additionally checks the * state of sibling elements to determine if the content of the * available element is safe to modify. * * <p>The callback is executed with a single parameter: * the custom object parameter, if provided.</p> * * @method onContentReady * * @param {string} id the id of the element to look for. * @param {function} fn what to execute when the element is ready. * @param {object} obj an optional object to be passed back as * a parameter to fn. * @param {boolean|object} override If set to true, fn will execute * in the context of p_obj. If an object, fn will * exectute in the context of that object * * @static * @deprecated Use Y.on("contentready") */ // @TODO fix arguments onContentReady: function(id, fn, obj, override, compat) { return Event.onAvailable(id, fn, obj, override, true, compat); }, /** * Adds an event listener * * @method attach * * @param {String} type The type of event to append * @param {Function} fn The method the event invokes * @param {String|HTMLElement|Array|NodeList} el An id, an element * reference, or a collection of ids and/or elements to assign the * listener to. * @param {Object} context optional context object * @param {Boolean|object} args 0..n arguments to pass to the callback * @return {EventHandle} an object to that can be used to detach the listener * * @static */ attach: function(type, fn, el, context) { return Event._attach(Y.Array(arguments, 0, true)); }, _createWrapper: function (el, type, capture, compat, facade) { var cewrapper, ek = Y.stamp(el), key = 'event:' + ek + type; if (false === facade) { key += 'native'; } if (capture) { key += 'capture'; } cewrapper = _wrappers[key]; if (!cewrapper) { // create CE wrapper cewrapper = Y.publish(key, { silent: true, bubbles: false, contextFn: function() { if (compat) { return cewrapper.el; } else { cewrapper.nodeRef = cewrapper.nodeRef || Y.one(cewrapper.el); return cewrapper.nodeRef; } } }); cewrapper.overrides = {}; // for later removeListener calls cewrapper.el = el; cewrapper.key = key; cewrapper.domkey = ek; cewrapper.type = type; cewrapper.fn = function(e) { cewrapper.fire(Event.getEvent(e, el, (compat || (false === facade)))); }; cewrapper.capture = capture; if (el == win && type == "load") { // window load happens once cewrapper.fireOnce = true; _windowLoadKey = key; } cewrapper._delete = _deleteAndClean; _wrappers[key] = cewrapper; _el_events[ek] = _el_events[ek] || {}; _el_events[ek][key] = cewrapper; add(el, type, cewrapper.fn, capture); } return cewrapper; }, _attach: function(args, conf) { var compat, handles, oEl, cewrapper, context, fireNow = false, ret, type = args[0], fn = args[1], el = args[2] || win, facade = conf && conf.facade, capture = conf && conf.capture, overrides = conf && conf.overrides; if (args[args.length-1] === COMPAT_ARG) { compat = true; } if (!fn || !fn.call) { // throw new TypeError(type + " attach call failed, callback undefined"); Y.log(type + " attach call failed, invalid callback", "error", "event"); return false; } // The el argument can be an array of elements or element ids. if (shouldIterate(el)) { handles=[]; Y.each(el, function(v, k) { args[2] = v; handles.push(Event._attach(args.slice(), conf)); }); // return (handles.length === 1) ? handles[0] : handles; return new Y.EventHandle(handles); // If the el argument is a string, we assume it is // actually the id of the element. If the page is loaded // we convert el to the actual element, otherwise we // defer attaching the event until the element is // ready } else if (Y.Lang.isString(el)) { // oEl = (compat) ? Y.DOM.byId(el) : Y.Selector.query(el); if (compat) { oEl = YDOM.byId(el); } else { oEl = Y.Selector.query(el); switch (oEl.length) { case 0: oEl = null; break; case 1: oEl = oEl[0]; break; default: args[2] = oEl; return Event._attach(args, conf); } } if (oEl) { el = oEl; // Not found = defer adding the event until the element is available } else { // Y.log(el + ' not found'); ret = Event.onAvailable(el, function() { // Y.log('lazy attach: ' + args); ret.handle = Event._attach(args, conf); }, Event, true, false, compat); return ret; } } // Element should be an html element or node if (!el) { Y.log("unable to attach event " + type, "warn", "event"); return false; } if (Y.Node && Y.instanceOf(el, Y.Node)) { el = Y.Node.getDOMNode(el); } cewrapper = Event._createWrapper(el, type, capture, compat, facade); if (overrides) { Y.mix(cewrapper.overrides, overrides); } if (el == win && type == "load") { // if the load is complete, fire immediately. // all subscribers, including the current one // will be notified. if (YUI.Env.windowLoaded) { fireNow = true; } } if (compat) { args.pop(); } context = args[3]; // set context to the Node if not specified // ret = cewrapper.on.apply(cewrapper, trimmedArgs); ret = cewrapper._on(fn, context, (args.length > 4) ? args.slice(4) : null); if (fireNow) { cewrapper.fire(); } return ret; }, /** * Removes an event listener. Supports the signature the event was bound * with, but the preferred way to remove listeners is using the handle * that is returned when using Y.on * * @method detach * * @param {String} type the type of event to remove. * @param {Function} fn the method the event invokes. If fn is * undefined, then all event handlers for the type of event are * removed. * @param {String|HTMLElement|Array|NodeList|EventHandle} el An * event handle, an id, an element reference, or a collection * of ids and/or elements to remove the listener from. * @return {boolean} true if the unbind was successful, false otherwise. * @static */ detach: function(type, fn, el, obj) { var args=Y.Array(arguments, 0, true), compat, l, ok, i, id, ce; if (args[args.length-1] === COMPAT_ARG) { compat = true; // args.pop(); } if (type && type.detach) { return type.detach(); } // The el argument can be a string if (typeof el == "string") { // el = (compat) ? Y.DOM.byId(el) : Y.all(el); if (compat) { el = YDOM.byId(el); } else { el = Y.Selector.query(el); l = el.length; if (l < 1) { el = null; } else if (l == 1) { el = el[0]; } } // return Event.detach.apply(Event, args); } if (!el) { return false; } if (el.detach) { args.splice(2, 1); return el.detach.apply(el, args); // The el argument can be an array of elements or element ids. } else if (shouldIterate(el)) { ok = true; for (i=0, l=el.length; i<l; ++i) { args[2] = el[i]; ok = ( Y.Event.detach.apply(Y.Event, args) && ok ); } return ok; } if (!type || !fn || !fn.call) { return Event.purgeElement(el, false, type); } id = 'event:' + Y.stamp(el) + type; ce = _wrappers[id]; if (ce) { return ce.detach(fn); } else { return false; } }, /** * Finds the event in the window object, the caller's arguments, or * in the arguments of another method in the callstack. This is * executed automatically for events registered through the event * manager, so the implementer should not normally need to execute * this function at all. * @method getEvent * @param {Event} e the event parameter from the handler * @param {HTMLElement} el the element the listener was attached to * @return {Event} the event * @static */ getEvent: function(e, el, noFacade) { var ev = e || win.event; return (noFacade) ? ev : new Y.DOMEventFacade(ev, el, _wrappers['event:' + Y.stamp(el) + e.type]); }, /** * Generates an unique ID for the element if it does not already * have one. * @method generateId * @param el the element to create the id for * @return {string} the resulting id of the element * @static */ generateId: function(el) { return YDOM.generateID(el); }, /** * We want to be able to use getElementsByTagName as a collection * to attach a group of events to. Unfortunately, different * browsers return different types of collections. This function * tests to determine if the object is array-like. It will also * fail if the object is an array, but is empty. * @method _isValidCollection * @param o the object to test * @return {boolean} true if the object is array-like and populated * @deprecated was not meant to be used directly * @static * @private */ _isValidCollection: shouldIterate, /** * hook up any deferred listeners * @method _load * @static * @private */ _load: function(e) { if (!_loadComplete) { // Y.log('Load Complete', 'info', 'event'); _loadComplete = true; // Just in case DOMReady did not go off for some reason // E._ready(); if (Y.fire) { Y.fire(EVENT_READY); } // Available elements may not have been detected before the // window load event fires. Try to find them now so that the // the user is more likely to get the onAvailable notifications // before the window load notification Event._poll(); } }, /** * Polling function that runs before the onload event fires, * attempting to attach to DOM Nodes as soon as they are * available * @method _poll * @static * @private */ _poll: function() { if (Event.locked) { return; } if (Y.UA.ie && !YUI.Env.DOMReady) { // Hold off if DOMReady has not fired and check current // readyState to protect against the IE operation aborted // issue. Event.startInterval(); return; } Event.locked = true; // Y.log.debug("poll"); // keep trying until after the page is loaded. We need to // check the page load state prior to trying to bind the // elements so that we can be certain all elements have been // tested appropriately var i, len, item, el, notAvail, executeItem, tryAgain = !_loadComplete; if (!tryAgain) { tryAgain = (_retryCount > 0); } // onAvailable notAvail = []; executeItem = function (el, item) { var context, ov = item.override; try { if (item.compat) { if (item.override) { if (ov === true) { context = item.obj; } else { context = ov; } } else { context = el; } item.fn.call(context, item.obj); } else { context = item.obj || Y.one(el); item.fn.apply(context, (Y.Lang.isArray(ov)) ? ov : []); } } catch (e) { Y.log("Error in available or contentReady callback", 'error', 'event'); } }; // onAvailable for (i=0,len=_avail.length; i<len; ++i) { item = _avail[i]; if (item && !item.checkReady) { // el = (item.compat) ? Y.DOM.byId(item.id) : Y.one(item.id); el = (item.compat) ? YDOM.byId(item.id) : Y.Selector.query(item.id, null, true); if (el) { // Y.log('avail: ' + el); executeItem(el, item); _avail[i] = null; } else { // Y.log('NOT avail: ' + el); notAvail.push(item); } } } // onContentReady for (i=0,len=_avail.length; i<len; ++i) { item = _avail[i]; if (item && item.checkReady) { // el = (item.compat) ? Y.DOM.byId(item.id) : Y.one(item.id); el = (item.compat) ? YDOM.byId(item.id) : Y.Selector.query(item.id, null, true); if (el) { // The element is available, but not necessarily ready // @todo should we test parentNode.nextSibling? if (_loadComplete || (el.get && el.get('nextSibling')) || el.nextSibling) { executeItem(el, item); _avail[i] = null; } } else { notAvail.push(item); } } } _retryCount = (notAvail.length === 0) ? 0 : _retryCount - 1; if (tryAgain) { // we may need to strip the nulled out items here Event.startInterval(); } else { clearInterval(Event._interval); Event._interval = null; } Event.locked = false; return; }, /** * Removes all listeners attached to the given element via addListener. * Optionally, the node's children can also be purged. * Optionally, you can specify a specific type of event to remove. * @method purgeElement * @param {HTMLElement} el the element to purge * @param {boolean} recurse recursively purge this element's children * as well. Use with caution. * @param {string} type optional type of listener to purge. If * left out, all listeners will be removed * @static */ purgeElement: function(el, recurse, type) { // var oEl = (Y.Lang.isString(el)) ? Y.one(el) : el, var oEl = (Y.Lang.isString(el)) ? Y.Selector.query(el, null, true) : el, lis = Event.getListeners(oEl, type), i, len, children, child; if (recurse && oEl) { lis = lis || []; children = Y.Selector.query('*', oEl); len = children.length; for (i = 0; i < len; ++i) { child = Event.getListeners(children[i], type); if (child) { lis = lis.concat(child); } } } if (lis) { for (i = 0, len = lis.length; i < len; ++i) { lis[i].detachAll(); } } }, /** * Removes all object references and the DOM proxy subscription for * a given event for a DOM node. * * @method _clean * @param wrapper {CustomEvent} Custom event proxy for the DOM * subscription * @private * @static * @since 3.4.0 */ _clean: function (wrapper) { var key = wrapper.key, domkey = wrapper.domkey; remove(wrapper.el, wrapper.type, wrapper.fn, wrapper.capture); delete _wrappers[key]; delete Y._yuievt.events[key]; if (_el_events[domkey]) { delete _el_events[domkey][key]; if (!Y.Object.size(_el_events[domkey])) { delete _el_events[domkey]; } } }, /** * Returns all listeners attached to the given element via addListener. * Optionally, you can specify a specific type of event to return. * @method getListeners * @param el {HTMLElement|string} the element or element id to inspect * @param type {string} optional type of listener to return. If * left out, all listeners will be returned * @return {CustomEvent} the custom event wrapper for the DOM event(s) * @static */ getListeners: function(el, type) { var ek = Y.stamp(el, true), evts = _el_events[ek], results=[] , key = (type) ? 'event:' + ek + type : null, adapters = _eventenv.plugins; if (!evts) { return null; } if (key) { // look for synthetic events if (adapters[type] && adapters[type].eventDef) { key += '_synth'; } if (evts[key]) { results.push(evts[key]); } // get native events as well key += 'native'; if (evts[key]) { results.push(evts[key]); } } else { Y.each(evts, function(v, k) { results.push(v); }); } return (results.length) ? results : null; }, /** * Removes all listeners registered by pe.event. Called * automatically during the unload event. * @method _unload * @static * @private */ _unload: function(e) { Y.each(_wrappers, function(v, k) { if (v.type == 'unload') { v.fire(e); } v.detachAll(); }); remove(win, "unload", onUnload); }, /** * Adds a DOM event directly without the caching, cleanup, context adj, etc * * @method nativeAdd * @param {HTMLElement} el the element to bind the handler to * @param {string} type the type of event handler * @param {function} fn the callback to invoke * @param {boolen} capture capture or bubble phase * @static * @private */ nativeAdd: add, /** * Basic remove listener * * @method nativeRemove * @param {HTMLElement} el the element to bind the handler to * @param {string} type the type of event handler * @param {function} fn the callback to invoke * @param {boolen} capture capture or bubble phase * @static * @private */ nativeRemove: remove }; }(); Y.Event = Event; if (config.injected || YUI.Env.windowLoaded) { onLoad(); } else { add(win, "load", onLoad); } // Process onAvailable/onContentReady items when when the DOM is ready in IE if (Y.UA.ie) { Y.on(EVENT_READY, Event._poll); } try { add(win, "unload", onUnload); } catch(e) { Y.log("Registering unload listener failed. This is known to happen in Chrome Packaged Apps and Extensions, which don't support unload, and don't provide a way to test for support", "warn", "event-base"); } Event.Custom = Y.CustomEvent; Event.Subscriber = Y.Subscriber; Event.Target = Y.EventTarget; Event.Handle = Y.EventHandle; Event.Facade = Y.EventFacade; Event._poll(); }()); /** * DOM event listener abstraction layer * @module event * @submodule event-base */ /** * Executes the callback as soon as the specified element * is detected in the DOM. This function expects a selector * string for the element(s) to detect. If you already have * an element reference, you don't need this event. * @event available * @param type {string} 'available' * @param fn {function} the callback function to execute. * @param el {string} an selector for the element(s) to attach * @param context optional argument that specifies what 'this' refers to. * @param args* 0..n additional arguments to pass on to the callback function. * These arguments will be added after the event object. * @return {EventHandle} the detach handle * @for YUI */ Y.Env.evt.plugins.available = { on: function(type, fn, id, o) { var a = arguments.length > 4 ? Y.Array(arguments, 4, true) : null; return Y.Event.onAvailable.call(Y.Event, id, fn, o, a); } }; /** * Executes the callback as soon as the specified element * is detected in the DOM with a nextSibling property * (indicating that the element's children are available). * This function expects a selector * string for the element(s) to detect. If you already have * an element reference, you don't need this event. * @event contentready * @param type {string} 'contentready' * @param fn {function} the callback function to execute. * @param el {string} an selector for the element(s) to attach. * @param context optional argument that specifies what 'this' refers to. * @param args* 0..n additional arguments to pass on to the callback function. * These arguments will be added after the event object. * @return {EventHandle} the detach handle * @for YUI */ Y.Env.evt.plugins.contentready = { on: function(type, fn, id, o) { var a = arguments.length > 4 ? Y.Array(arguments, 4, true) : null; return Y.Event.onContentReady.call(Y.Event, id, fn, o, a); } }; }, '@VERSION@', {"requires": ["event-custom-base"]});
htmlstrap/cdnjs
ajax/libs/yui/3.10.1/event-base/event-base-debug.js
JavaScript
mit
42,744
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); /** * Blood theme for reveal.js * Author: Walther http://github.com/Walther * * Designed to be used with highlight.js theme * "monokai_sublime.css" available from * https://github.com/isagalaev/highlight.js/ * * For other themes, change $codeBackground accordingly. * */ /********************************************* * GLOBAL STYLES *********************************************/ body { background: #222222; background: -moz-radial-gradient(center, circle cover, #626262 0%, #222222 100%); background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #626262), color-stop(100%, #222222)); background: -webkit-radial-gradient(center, circle cover, #626262 0%, #222222 100%); background: -o-radial-gradient(center, circle cover, #626262 0%, #222222 100%); background: -ms-radial-gradient(center, circle cover, #626262 0%, #222222 100%); background: radial-gradient(center, circle cover, #626262 0%, #222222 100%); background-color: #2b2b2b; } .reveal { font-family: Ubuntu, "sans-serif"; font-size: 36px; font-weight: normal; letter-spacing: -0.02em; color: #eeeeee; } ::selection { color: white; background: #aa2233; text-shadow: none; } /********************************************* * HEADERS *********************************************/ .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 { margin: 0 0 20px 0; color: #eeeeee; font-family: Ubuntu, "sans-serif"; line-height: 0.9em; letter-spacing: 0.02em; text-transform: uppercase; text-shadow: 2px 2px 2px #222222; } .reveal h1 { text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbbbbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); } /********************************************* * LINKS *********************************************/ .reveal a:not(.image) { color: #aa2233; text-decoration: none; -webkit-transition: color .15s ease; -moz-transition: color .15s ease; -ms-transition: color .15s ease; -o-transition: color .15s ease; transition: color .15s ease; } .reveal a:not(.image):hover { color: #dd5566; text-shadow: none; border: none; } .reveal .roll span:after { color: #fff; background: #6a1520; } /********************************************* * IMAGES *********************************************/ .reveal section img { margin: 15px 0px; background: rgba(255, 255, 255, 0.12); border: 4px solid #eeeeee; box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); -webkit-transition: all .2s linear; -moz-transition: all .2s linear; -ms-transition: all .2s linear; -o-transition: all .2s linear; transition: all .2s linear; } .reveal a:hover img { background: rgba(255, 255, 255, 0.2); border-color: #aa2233; box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); } /********************************************* * NAVIGATION CONTROLS *********************************************/ .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled { border-right-color: #aa2233; } .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled { border-left-color: #aa2233; } .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled { border-bottom-color: #aa2233; } .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled { border-top-color: #aa2233; } .reveal .controls div.navigate-left.enabled:hover { border-right-color: #dd5566; } .reveal .controls div.navigate-right.enabled:hover { border-left-color: #dd5566; } .reveal .controls div.navigate-up.enabled:hover { border-bottom-color: #dd5566; } .reveal .controls div.navigate-down.enabled:hover { border-top-color: #dd5566; } /********************************************* * PROGRESS BAR *********************************************/ .reveal .progress { background: rgba(0, 0, 0, 0.2); } .reveal .progress span { background: #aa2233; -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); } /********************************************* * SLIDE NUMBER *********************************************/ .reveal .slide-number { color: #aa2233; } .reveal p { font-weight: 300; text-shadow: 1px 1px #222222; } .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 { font-weight: 700; } .reveal a:not(.image), .reveal a:not(.image):hover { text-shadow: 2px 2px 2px #000; } .reveal small a:not(.image), .reveal small a:not(.image):hover { text-shadow: 1px 1px 1px #000; } .reveal p code { background-color: #23241f; display: inline-block; border-radius: 7px; } .reveal small code { vertical-align: baseline; }
TheoChevalier/soutenance-memoire
css/theme/blood.css
CSS
mit
5,193
var baseEach = require('./baseEach'); /** * Gets the extremum value of `collection` invoking `iteratee` for each value * in `collection` to generate the criterion by which the value is ranked. * The `iteratee` is invoked with three arguments: (value, index|key, collection). * * @private * @param {Array|Object|string} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} comparator The function used to compare values. * @param {*} exValue The initial extremum value. * @returns {*} Returns the extremum value. */ function baseExtremum(collection, iteratee, comparator, exValue) { var computed = exValue, result = computed; baseEach(collection, function(value, index, collection) { var current = +iteratee(value, index, collection); if (comparator(current, computed) || (current === exValue && current === result)) { computed = current; result = value; } }); return result; } module.exports = baseExtremum;
linmp4/IonicChat
platforms/android/cordova/node_modules/lodash/internal/baseExtremum.js
JavaScript
mit
1,035
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\PropertyInfo\Tests; use Symfony\Component\PropertyInfo\Type; /** * @author Kévin Dunglas <dunglas@gmail.com> */ class TypeTest extends \PHPUnit_Framework_TestCase { public function testConstruct() { $type = new Type('object', true, 'ArrayObject', true, new Type('int'), new Type('string')); $this->assertEquals(Type::BUILTIN_TYPE_OBJECT, $type->getBuiltinType()); $this->assertTrue($type->isNullable()); $this->assertEquals('ArrayObject', $type->getClassName()); $this->assertTrue($type->isCollection()); $collectionKeyType = $type->getCollectionKeyType(); $this->assertInstanceOf('Symfony\Component\PropertyInfo\Type', $collectionKeyType); $this->assertEquals(Type::BUILTIN_TYPE_INT, $collectionKeyType->getBuiltinType()); $collectionValueType = $type->getCollectionValueType(); $this->assertInstanceOf('Symfony\Component\PropertyInfo\Type', $collectionValueType); $this->assertEquals(Type::BUILTIN_TYPE_STRING, $collectionValueType->getBuiltinType()); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage "foo" is not a valid PHP type. */ public function testInvalidType() { new Type('foo'); } }
sharmapuneet/Symfony
vendor/symfony/symfony/src/Symfony/Component/PropertyInfo/Tests/TypeTest.php
PHP
mit
1,540
// knockout-postbox 0.3.1 | (c) 2013 Ryan Niemeyer | http://www.opensource.org/licenses/mit-license !function(a){"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?a(require("knockout"),exports):"function"==typeof define&&define.amd?define(["knockout","exports"],a):a(ko,ko.postbox={})}(function(a,b,c){var d,e;a.subscribable.call(b),b.topicCache={},b.serializer=a.toJSON,b.publish=function(a,c){a&&(b.topicCache[a]={value:c,serialized:b.serializer(c)},b.notifySubscribers(c,a))},e=b.subscribe,b.subscribe=function(a,c,d){return a?e.call(b,c,d,a):void 0},b.defaultComparer=function(a,c){return c&&b.serializer(a)===c.serialized},a.subscribable.fn.publishOn=function(a,c,e){var f;return a&&("function"==typeof c?e=c:f=c,e=e||b.defaultComparer,d.call(this,a,"publishOn"),this.postboxSubs[a].publishOn=this.subscribe(function(c){e.call(this,c,b.topicCache[a])||b.publish(a,c)},this),f||b.publish(a,this())),this},d=function(a,b){var c=this.postboxSubs=this.postboxSubs||{};c[a]=c[a]||{},c[a][b]&&c[a][b].dispose()},a.subscribable.fn.stopPublishingOn=function(a){return d.call(this,a,"publishOn"),this},a.subscribable.fn.subscribeTo=function(e,f,g){var h,i,j,k=this;return"function"==typeof f?g=f:h=f,e&&a.isWriteableObservable(this)&&(d.call(this,e,"subscribeTo"),j=function(a){k(g?g.call(k,a):a)},this.postboxSubs[e].subscribeTo=b.subscribe(e,j),h&&(i=b.topicCache[e],i!==c&&j(i.value))),this},a.subscribable.fn.unsubscribeFrom=function(a){return d.call(this,a,"subscribeTo"),this},a.subscribable.fn.syncWith=function(a,b,c,d){return this.subscribeTo(a,b).publishOn(a,c,d),this},a.postbox=b});
artch/cdnjs
ajax/libs/knockout-postbox/0.3.1/knockout-postbox.min.js
JavaScript
mit
1,619
<!doctype html> <title>CodeMirror: PHP mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="../../addon/edit/matchbrackets.js"></script> <script src="../htmlmixed/htmlmixed.js"></script> <script src="../xml/xml.js"></script> <script src="../javascript/javascript.js"></script> <script src="../css/css.js"></script> <script src="../clike/clike.js"></script> <script src="php.js"></script> <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> <div id=nav> <a href="http://codemirror.net"><img id=logo src="../../doc/logo.png"></a> <ul> <li><a href="../../index.html">Home</a> <li><a href="../../doc/manual.html">Manual</a> <li><a href="https://github.com/marijnh/codemirror">Code</a> </ul> <ul> <li><a href="../index.html">Language modes</a> <li><a class=active href="#">PHP</a> </ul> </div> <article> <h2>PHP mode</h2> <form><textarea id="code" name="code"> <?php $a = array('a' => 1, 'b' => 2, 3 => 'c'); echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]"; function hello($who) { return "Hello $who!"; } ?> <p>The program says <?= hello("World") ?>.</p> <script> alert("And here is some JS code"); // also colored </script> </textarea></form> <script> var editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, matchBrackets: true, mode: "application/x-httpd-php", indentUnit: 4, indentWithTabs: true }); </script> <p>Simple HTML/PHP mode based on the <a href="../clike/">C-like</a> mode. Depends on XML, JavaScript, CSS, HTMLMixed, and C-like modes.</p> <p><strong>MIME types defined:</strong> <code>application/x-httpd-php</code> (HTML with PHP code), <code>text/x-php</code> (plain, non-wrapped PHP code).</p> </article>
justinelam/cdnjs
ajax/libs/codemirror/3.24.0/package/mode/php/index.html
HTML
mit
1,978
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\DataCollector; use Symfony\Component\Debug\ErrorHandler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; /** * LogDataCollector. * * @author Fabien Potencier <fabien@symfony.com> */ class LoggerDataCollector extends DataCollector implements LateDataCollectorInterface { private $logger; public function __construct($logger = null) { if (null !== $logger && $logger instanceof DebugLoggerInterface) { $this->logger = $logger; } } /** * {@inheritdoc} */ public function collect(Request $request, Response $response, \Exception $exception = null) { // everything is done as late as possible } /** * {@inheritdoc} */ public function lateCollect() { if (null !== $this->logger) { $this->data = $this->computeErrorsCount(); $this->data['logs'] = $this->sanitizeLogs($this->logger->getLogs()); } } /** * Gets the called events. * * @return array An array of called events * * @see TraceableEventDispatcherInterface */ public function countErrors() { return isset($this->data['error_count']) ? $this->data['error_count'] : 0; } /** * Gets the logs. * * @return array An array of logs */ public function getLogs() { return isset($this->data['logs']) ? $this->data['logs'] : array(); } public function getPriorities() { return isset($this->data['priorities']) ? $this->data['priorities'] : array(); } public function countDeprecations() { return isset($this->data['deprecation_count']) ? $this->data['deprecation_count'] : 0; } public function countScreams() { return isset($this->data['scream_count']) ? $this->data['scream_count'] : 0; } /** * {@inheritdoc} */ public function getName() { return 'logger'; } private function sanitizeLogs($logs) { foreach ($logs as $i => $log) { $logs[$i]['context'] = $this->sanitizeContext($log['context']); } return $logs; } private function sanitizeContext($context) { if (is_array($context)) { foreach ($context as $key => $value) { $context[$key] = $this->sanitizeContext($value); } return $context; } if (is_resource($context)) { return sprintf('Resource(%s)', get_resource_type($context)); } if (is_object($context)) { return sprintf('Object(%s)', get_class($context)); } return $context; } private function computeErrorsCount() { $count = array( 'error_count' => $this->logger->countErrors(), 'deprecation_count' => 0, 'scream_count' => 0, 'priorities' => array(), ); foreach ($this->logger->getLogs() as $log) { if (isset($count['priorities'][$log['priority']])) { ++$count['priorities'][$log['priority']]['count']; } else { $count['priorities'][$log['priority']] = array( 'count' => 1, 'name' => $log['priorityName'], ); } if (isset($log['context']['type'])) { if (ErrorHandler::TYPE_DEPRECATION === $log['context']['type']) { ++$count['deprecation_count']; } elseif (isset($log['context']['scream'])) { ++$count['scream_count']; } } } ksort($count['priorities']); return $count; } }
shokimc/Pickandgo
pickandgo/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php
PHP
mit
4,100
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package batch import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "batch" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} // Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) schema.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } // Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) schema.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme ) // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, &JobTemplate{}, &CronJob{}, &CronJobList{}, ) scheme.AddKnownTypeWithName(SchemeGroupVersion.WithKind("ScheduledJob"), &CronJob{}) scheme.AddKnownTypeWithName(SchemeGroupVersion.WithKind("ScheduledJobList"), &CronJobList{}) return nil }
munnerz/keepalived-cloud-provider
vendor/k8s.io/client-go/pkg/apis/batch/register.go
GO
mit
1,826
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.tooltip = { name : 'tooltip', version : '5.2.1', settings : { additional_inheritable_classes : [], tooltip_class : '.tooltip', append_to: 'body', touch_close_text: 'Tap To Close', disable_for_touch: false, hover_delay: 200, tip_template : function (selector, content) { return '<span data-selector="' + selector + '" class="' + Foundation.libs.tooltip.settings.tooltip_class.substring(1) + '">' + content + '<span class="nub"></span></span>'; } }, cache : {}, init : function (scope, method, options) { Foundation.inherit(this, 'random_str'); this.bindings(method, options); }, events : function (instance) { var self = this, S = self.S; self.create(this.S(instance)); $(this.scope) .off('.tooltip') .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', '[' + this.attr_name() + ']:not(a)', function (e) { var $this = S(this), settings = $.extend({}, self.settings, self.data_options($this)), is_touch = false; if (/mouse/i.test(e.type) && self.ie_touch(e)) return false; if ($this.hasClass('open')) { if (Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) e.preventDefault(); self.hide($this); } else { if (settings.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) { return; } else if(!settings.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) { e.preventDefault(); S(settings.tooltip_class + '.open').hide(); is_touch = true; } if (/enter|over/i.test(e.type)) { this.timer = setTimeout(function () { var tip = self.showTip($this); }.bind(this), self.settings.hover_delay); } else if (e.type === 'mouseout' || e.type === 'mouseleave') { clearTimeout(this.timer); self.hide($this); } else { self.showTip($this); } } }) .on('mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', '[' + this.attr_name() + '].open', function (e) { if (/mouse/i.test(e.type) && self.ie_touch(e)) return false; if($(this).data('tooltip-open-event-type') == 'touch' && e.type == 'mouseleave') { return; } else if($(this).data('tooltip-open-event-type') == 'mouse' && /MSPointerDown|touchstart/i.test(e.type)) { self.convert_to_touch($(this)); } else { self.hide($(this)); } }) .on('DOMNodeRemoved DOMAttrModified', '[' + this.attr_name() + ']:not(a)', function (e) { self.hide(S(this)); }); }, ie_touch : function (e) { // How do I distinguish between IE11 and Windows Phone 8????? return false; }, showTip : function ($target) { var $tip = this.getTip($target); return this.show($target); }, getTip : function ($target) { var selector = this.selector($target), settings = $.extend({}, this.settings, this.data_options($target)), tip = null; if (selector) { tip = this.S('span[data-selector="' + selector + '"]' + settings.tooltip_class); } return (typeof tip === 'object') ? tip : false; }, selector : function ($target) { var id = $target.attr('id'), dataSelector = $target.attr(this.attr_name()) || $target.attr('data-selector'); if ((id && id.length < 1 || !id) && typeof dataSelector != 'string') { dataSelector = this.random_str(6); $target.attr('data-selector', dataSelector); } return (id && id.length > 0) ? id : dataSelector; }, create : function ($target) { var self = this, settings = $.extend({}, this.settings, this.data_options($target)), tip_template = this.settings.tip_template; if (typeof settings.tip_template === 'string' && window.hasOwnProperty(settings.tip_template)) { tip_template = window[settings.tip_template]; } var $tip = $(tip_template(this.selector($target), $('<div></div>').html($target.attr('title')).html())), classes = this.inheritable_classes($target); $tip.addClass(classes).appendTo(settings.append_to); if (Modernizr.touch) { $tip.append('<span class="tap-to-close">'+settings.touch_close_text+'</span>'); $tip.on('touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', function(e) { self.hide($target); }); } $target.removeAttr('title').attr('title',''); }, reposition : function (target, tip, classes) { var width, nub, nubHeight, nubWidth, column, objPos; tip.css('visibility', 'hidden').show(); width = target.data('width'); nub = tip.children('.nub'); nubHeight = nub.outerHeight(); nubWidth = nub.outerHeight(); if (this.small()) { tip.css({'width' : '100%' }); } else { tip.css({'width' : (width) ? width : 'auto'}); } objPos = function (obj, top, right, bottom, left, width) { return obj.css({ 'top' : (top) ? top : 'auto', 'bottom' : (bottom) ? bottom : 'auto', 'left' : (left) ? left : 'auto', 'right' : (right) ? right : 'auto', }).end(); }; objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', target.offset().left); if (this.small()) { objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', 12.5, $(this.scope).width()); tip.addClass('tip-override'); objPos(nub, -nubHeight, 'auto', 'auto', target.offset().left); } else { var left = target.offset().left; if (Foundation.rtl) { nub.addClass('rtl'); left = target.offset().left + target.outerWidth() - tip.outerWidth(); } objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', left); tip.removeClass('tip-override'); if (classes && classes.indexOf('tip-top') > -1) { if (Foundation.rtl) nub.addClass('rtl'); objPos(tip, (target.offset().top - tip.outerHeight()), 'auto', 'auto', left) .removeClass('tip-override'); } else if (classes && classes.indexOf('tip-left') > -1) { objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left - tip.outerWidth() - nubHeight)) .removeClass('tip-override'); nub.removeClass('rtl'); } else if (classes && classes.indexOf('tip-right') > -1) { objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left + target.outerWidth() + nubHeight)) .removeClass('tip-override'); nub.removeClass('rtl'); } } tip.css('visibility', 'visible').hide(); }, small : function () { return matchMedia(Foundation.media_queries.small).matches; }, inheritable_classes : function ($target) { var settings = $.extend({}, this.settings, this.data_options($target)), inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'radius', 'round'].concat(settings.additional_inheritable_classes), classes = $target.attr('class'), filtered = classes ? $.map(classes.split(' '), function (el, i) { if ($.inArray(el, inheritables) !== -1) { return el; } }).join(' ') : ''; return $.trim(filtered); }, convert_to_touch : function($target) { var self = this, $tip = self.getTip($target), settings = $.extend({}, self.settings, self.data_options($target)); if ($tip.find('.tap-to-close').length === 0) { $tip.append('<span class="tap-to-close">'+settings.touch_close_text+'</span>'); $tip.on('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose', function(e) { self.hide($target); }); } $target.data('tooltip-open-event-type', 'touch'); }, show : function ($target) { var $tip = this.getTip($target); if ($target.data('tooltip-open-event-type') == 'touch') { this.convert_to_touch($target); } this.reposition($target, $tip, $target.attr('class')); $target.addClass('open'); $tip.fadeIn(150); }, hide : function ($target) { var $tip = this.getTip($target); $tip.fadeOut(150, function() { $tip.find('.tap-to-close').remove(); $tip.off('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose'); $target.removeClass('open'); }); }, off : function () { var self = this; this.S(this.scope).off('.fndtn.tooltip'); this.S(this.settings.tooltip_class).each(function (i) { $('[' + self.attr_name() + ']').get(i).attr('title', $(this).text()); }).remove(); }, reflow : function () {} }; }(jQuery, this, this.document));
zhengyongbo/cdnjs
ajax/libs/foundation/5.2.1/js/foundation/foundation.tooltip.js
JavaScript
mit
9,552
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.tooltip = { name : 'tooltip', version : '5.2.1', settings : { additional_inheritable_classes : [], tooltip_class : '.tooltip', append_to: 'body', touch_close_text: 'Tap To Close', disable_for_touch: false, hover_delay: 200, tip_template : function (selector, content) { return '<span data-selector="' + selector + '" class="' + Foundation.libs.tooltip.settings.tooltip_class.substring(1) + '">' + content + '<span class="nub"></span></span>'; } }, cache : {}, init : function (scope, method, options) { Foundation.inherit(this, 'random_str'); this.bindings(method, options); }, events : function (instance) { var self = this, S = self.S; self.create(this.S(instance)); $(this.scope) .off('.tooltip') .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', '[' + this.attr_name() + ']:not(a)', function (e) { var $this = S(this), settings = $.extend({}, self.settings, self.data_options($this)), is_touch = false; if (/mouse/i.test(e.type) && self.ie_touch(e)) return false; if ($this.hasClass('open')) { if (Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) e.preventDefault(); self.hide($this); } else { if (settings.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) { return; } else if(!settings.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) { e.preventDefault(); S(settings.tooltip_class + '.open').hide(); is_touch = true; } if (/enter|over/i.test(e.type)) { this.timer = setTimeout(function () { var tip = self.showTip($this); }.bind(this), self.settings.hover_delay); } else if (e.type === 'mouseout' || e.type === 'mouseleave') { clearTimeout(this.timer); self.hide($this); } else { self.showTip($this); } } }) .on('mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', '[' + this.attr_name() + '].open', function (e) { if (/mouse/i.test(e.type) && self.ie_touch(e)) return false; if($(this).data('tooltip-open-event-type') == 'touch' && e.type == 'mouseleave') { return; } else if($(this).data('tooltip-open-event-type') == 'mouse' && /MSPointerDown|touchstart/i.test(e.type)) { self.convert_to_touch($(this)); } else { self.hide($(this)); } }) .on('DOMNodeRemoved DOMAttrModified', '[' + this.attr_name() + ']:not(a)', function (e) { self.hide(S(this)); }); }, ie_touch : function (e) { // How do I distinguish between IE11 and Windows Phone 8????? return false; }, showTip : function ($target) { var $tip = this.getTip($target); return this.show($target); }, getTip : function ($target) { var selector = this.selector($target), settings = $.extend({}, this.settings, this.data_options($target)), tip = null; if (selector) { tip = this.S('span[data-selector="' + selector + '"]' + settings.tooltip_class); } return (typeof tip === 'object') ? tip : false; }, selector : function ($target) { var id = $target.attr('id'), dataSelector = $target.attr(this.attr_name()) || $target.attr('data-selector'); if ((id && id.length < 1 || !id) && typeof dataSelector != 'string') { dataSelector = this.random_str(6); $target.attr('data-selector', dataSelector); } return (id && id.length > 0) ? id : dataSelector; }, create : function ($target) { var self = this, settings = $.extend({}, this.settings, this.data_options($target)), tip_template = this.settings.tip_template; if (typeof settings.tip_template === 'string' && window.hasOwnProperty(settings.tip_template)) { tip_template = window[settings.tip_template]; } var $tip = $(tip_template(this.selector($target), $('<div></div>').html($target.attr('title')).html())), classes = this.inheritable_classes($target); $tip.addClass(classes).appendTo(settings.append_to); if (Modernizr.touch) { $tip.append('<span class="tap-to-close">'+settings.touch_close_text+'</span>'); $tip.on('touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', function(e) { self.hide($target); }); } $target.removeAttr('title').attr('title',''); }, reposition : function (target, tip, classes) { var width, nub, nubHeight, nubWidth, column, objPos; tip.css('visibility', 'hidden').show(); width = target.data('width'); nub = tip.children('.nub'); nubHeight = nub.outerHeight(); nubWidth = nub.outerHeight(); if (this.small()) { tip.css({'width' : '100%' }); } else { tip.css({'width' : (width) ? width : 'auto'}); } objPos = function (obj, top, right, bottom, left, width) { return obj.css({ 'top' : (top) ? top : 'auto', 'bottom' : (bottom) ? bottom : 'auto', 'left' : (left) ? left : 'auto', 'right' : (right) ? right : 'auto', }).end(); }; objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', target.offset().left); if (this.small()) { objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', 12.5, $(this.scope).width()); tip.addClass('tip-override'); objPos(nub, -nubHeight, 'auto', 'auto', target.offset().left); } else { var left = target.offset().left; if (Foundation.rtl) { nub.addClass('rtl'); left = target.offset().left + target.outerWidth() - tip.outerWidth(); } objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', left); tip.removeClass('tip-override'); if (classes && classes.indexOf('tip-top') > -1) { if (Foundation.rtl) nub.addClass('rtl'); objPos(tip, (target.offset().top - tip.outerHeight()), 'auto', 'auto', left) .removeClass('tip-override'); } else if (classes && classes.indexOf('tip-left') > -1) { objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left - tip.outerWidth() - nubHeight)) .removeClass('tip-override'); nub.removeClass('rtl'); } else if (classes && classes.indexOf('tip-right') > -1) { objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left + target.outerWidth() + nubHeight)) .removeClass('tip-override'); nub.removeClass('rtl'); } } tip.css('visibility', 'visible').hide(); }, small : function () { return matchMedia(Foundation.media_queries.small).matches; }, inheritable_classes : function ($target) { var settings = $.extend({}, this.settings, this.data_options($target)), inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'radius', 'round'].concat(settings.additional_inheritable_classes), classes = $target.attr('class'), filtered = classes ? $.map(classes.split(' '), function (el, i) { if ($.inArray(el, inheritables) !== -1) { return el; } }).join(' ') : ''; return $.trim(filtered); }, convert_to_touch : function($target) { var self = this, $tip = self.getTip($target), settings = $.extend({}, self.settings, self.data_options($target)); if ($tip.find('.tap-to-close').length === 0) { $tip.append('<span class="tap-to-close">'+settings.touch_close_text+'</span>'); $tip.on('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose', function(e) { self.hide($target); }); } $target.data('tooltip-open-event-type', 'touch'); }, show : function ($target) { var $tip = this.getTip($target); if ($target.data('tooltip-open-event-type') == 'touch') { this.convert_to_touch($target); } this.reposition($target, $tip, $target.attr('class')); $target.addClass('open'); $tip.fadeIn(150); }, hide : function ($target) { var $tip = this.getTip($target); $tip.fadeOut(150, function() { $tip.find('.tap-to-close').remove(); $tip.off('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose'); $target.removeClass('open'); }); }, off : function () { var self = this; this.S(this.scope).off('.fndtn.tooltip'); this.S(this.settings.tooltip_class).each(function (i) { $('[' + self.attr_name() + ']').get(i).attr('title', $(this).text()); }).remove(); }, reflow : function () {} }; }(jQuery, this, this.document));
jakubfiala/cdnjs
ajax/libs/foundation/5.2.1/js/foundation/foundation.tooltip.js
JavaScript
mit
9,552
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('tree-selectable', function (Y, NAME) { /*jshint expr:true, onevar:false */ /** Extension for `Tree` that adds the concept of selection state for nodes. @module tree @submodule tree-selectable @main tree-selectable **/ var Do = Y.Do; /** Extension for `Tree` that adds the concept of selection state for nodes. @class Tree.Selectable @constructor @extensionfor Tree **/ /** Fired when a node is selected. @event select @param {Tree.Node} node Node being selected. @preventable _defSelectFn **/ var EVT_SELECT = 'select'; /** Fired when a node is unselected. @event unselect @param {Tree.Node} node Node being unselected. @preventable _defUnselectFn **/ var EVT_UNSELECT = 'unselect'; function Selectable() {} Selectable.prototype = { // -- Protected Properties ------------------------------------------------- /** Mapping of node ids to node instances for nodes in this tree that are currently selected. @property {Object} _selectedMap @protected **/ // -- Lifecycle ------------------------------------------------------------ initializer: function () { this.nodeExtensions = this.nodeExtensions.concat(Y.Tree.Node.Selectable); this._selectedMap = {}; Do.after(this._selectableAfterDefAddFn, this, '_defAddFn'); Do.after(this._selectableAfterDefClearFn, this, '_defClearFn'); Do.after(this._selectableAfterDefRemoveFn, this, '_defRemoveFn'); this._selectableEvents = [ this.after('multiSelectChange', this._afterMultiSelectChange) ]; }, destructor: function () { (new Y.EventHandle(this._selectableEvents)).detach(); this._selectableEvents = null; this._selectedMap = null; }, // -- Public Methods ------------------------------------------------------- /** Returns an array of nodes that are currently selected. @method getSelectedNodes @return {Tree.Node.Selectable[]} Array of selected nodes. **/ getSelectedNodes: function () { return Y.Object.values(this._selectedMap); }, /** Selects the specified node. @method selectNode @param {Tree.Node.Selectable} node Node to select. @param {Object} [options] Options. @param {Boolean} [options.silent=false] If `true`, the `select` event will be suppressed. @param {String} [options.src] Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example. @chainable **/ selectNode: function (node, options) { // Instead of calling node.isSelected(), we look for the node in this // tree's selectedMap, which ensures that the `select` event will fire // in cases such as a node being added to this tree with its selected // state already set to true. if (!this._selectedMap[node.id]) { this._fireTreeEvent(EVT_SELECT, { node: node, src : options && options.src }, { defaultFn: this._defSelectFn, silent : options && options.silent }); } return this; }, /** Unselects all selected nodes. @method unselect @param {Object} [options] Options. @param {Boolean} [options.silent=false] If `true`, the `unselect` event will be suppressed. @param {String} [options.src] Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example. @chainable **/ unselect: function (options) { for (var id in this._selectedMap) { if (this._selectedMap.hasOwnProperty(id)) { this.unselectNode(this._selectedMap[id], options); } } return this; }, /** Unselects the specified node. @method unselectNode @param {Tree.Node.Selectable} node Node to unselect. @param {Object} [options] Options. @param {Boolean} [options.silent=false] If `true`, the `unselect` event will be suppressed. @param {String} [options.src] Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example. @chainable **/ unselectNode: function (node, options) { if (node.isSelected() || this._selectedMap[node.id]) { this._fireTreeEvent(EVT_UNSELECT, { node: node, src : options && options.src }, { defaultFn: this._defUnselectFn, silent : options && options.silent }); } return this; }, // -- Protected Methods ---------------------------------------------------- _selectableAfterDefAddFn: function (e) { // If the node is marked as selected, we need go through the select // flow. if (e.node.isSelected()) { this.selectNode(e.node); } }, _selectableAfterDefClearFn: function () { this._selectedMap = {}; }, _selectableAfterDefRemoveFn: function (e) { delete e.node.state.selected; delete this._selectedMap[e.node.id]; }, // -- Protected Event Handlers --------------------------------------------- _afterMultiSelectChange: function () { this.unselect(); }, _defSelectFn: function (e) { if (!this.get('multiSelect')) { this.unselect(); } e.node.state.selected = true; this._selectedMap[e.node.id] = e.node; }, _defUnselectFn: function (e) { delete e.node.state.selected; delete this._selectedMap[e.node.id]; } }; Selectable.ATTRS = { /** Whether or not to allow multiple nodes to be selected at once. @attribute {Boolean} multiSelect @default false **/ multiSelect: { value: false } }; Y.Tree.Selectable = Selectable; /** @module tree @submodule tree-selectable **/ /** `Tree.Node` extension that adds methods useful for nodes in trees that use the `Tree.Selectable` extension. @class Tree.Node.Selectable @constructor @extensionfor Tree.Node **/ function NodeSelectable() {} NodeSelectable.prototype = { /** Returns `true` if this node is currently selected. @method isSelected @return {Boolean} `true` if this node is currently selected, `false` otherwise. **/ isSelected: function () { return !!this.state.selected; }, /** Selects this node. @method select @param {Object} [options] Options. @param {Boolean} [options.silent=false] If `true`, the `select` event will be suppressed. @param {String} [options.src] Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example. @chainable **/ select: function (options) { this.tree.selectNode(this, options); return this; }, /** Unselects this node. @method unselect @param {Object} [options] Options. @param {Boolean} [options.silent=false] If `true`, the `unselect` event will be suppressed. @param {String} [options.src] Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example. @chainable **/ unselect: function (options) { this.tree.unselectNode(this, options); return this; } }; Y.Tree.Node.Selectable = NodeSelectable; }, '3.16.0', {"requires": ["tree"]});
rtenshi/jsdelivr
files/yui/3.16.0/tree-selectable/tree-selectable-debug.js
JavaScript
mit
8,355
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('intl', function (Y, NAME) { var _mods = {}, ROOT_LANG = "yuiRootLang", ACTIVE_LANG = "yuiActiveLang", NONE = []; /** * Provides utilities to support the management of localized resources (strings and formatting patterns). * * @module intl */ /** * The Intl utility provides a central location for managing sets of localized resources (strings and formatting patterns). * * @class Intl * @uses EventTarget * @static */ Y.mix(Y.namespace("Intl"), { /** * Private method to retrieve the language hash for a given module. * * @method _mod * @private * * @param {String} module The name of the module * @return {Object} The hash of localized resources for the module, keyed by BCP language tag */ _mod : function(module) { if (!_mods[module]) { _mods[module] = {}; } return _mods[module]; }, /** * Sets the active language for the given module. * * Returns false on failure, which would happen if the language had not been registered through the <a href="#method_add">add()</a> method. * * @method setLang * * @param {String} module The module name. * @param {String} lang The BCP 47 language tag. * @return boolean true if successful, false if not. */ setLang : function(module, lang) { var langs = this._mod(module), currLang = langs[ACTIVE_LANG], exists = !!langs[lang]; if (exists && lang !== currLang) { langs[ACTIVE_LANG] = lang; this.fire("intl:langChange", {module: module, prevVal: currLang, newVal: (lang === ROOT_LANG) ? "" : lang}); } return exists; }, /** * Get the currently active language for the given module. * * @method getLang * * @param {String} module The module name. * @return {String} The BCP 47 language tag. */ getLang : function(module) { var lang = this._mod(module)[ACTIVE_LANG]; return (lang === ROOT_LANG) ? "" : lang; }, /** * Register a hash of localized resources for the given module and language * * @method add * * @param {String} module The module name. * @param {String} lang The BCP 47 language tag. * @param {Object} strings The hash of localized values, keyed by the string name. */ add : function(module, lang, strings) { lang = lang || ROOT_LANG; this._mod(module)[lang] = strings; this.setLang(module, lang); }, /** * Gets the module's localized resources for the currently active language (as provided by the <a href="#method_getLang">getLang</a> method). * <p> * Optionally, the localized resources for alternate languages which have been added to Intl (see the <a href="#method_add">add</a> method) can * be retrieved by providing the BCP 47 language tag as the lang parameter. * </p> * @method get * * @param {String} module The module name. * @param {String} key Optional. A single resource key. If not provided, returns a copy (shallow clone) of all resources. * @param {String} lang Optional. The BCP 47 language tag. If not provided, the module's currently active language is used. * @return String | Object A copy of the module's localized resources, or a single value if key is provided. */ get : function(module, key, lang) { var mod = this._mod(module), strs; lang = lang || mod[ACTIVE_LANG]; strs = mod[lang] || {}; return (key) ? strs[key] : Y.merge(strs); }, /** * Gets the list of languages for which localized resources are available for a given module, based on the module * meta-data (part of loader). If loader is not on the page, returns an empty array. * * @method getAvailableLangs * @param {String} module The name of the module * @return {Array} The array of languages available. */ getAvailableLangs : function(module) { var loader = Y.Env._loader, mod = loader && loader.moduleInfo[module], langs = mod && mod.lang; return (langs) ? langs.concat() : NONE; } }); Y.augment(Y.Intl, Y.EventTarget); /** * Notification event to indicate when the lang for a module has changed. There is no default behavior associated with this event, * so the on and after moments are equivalent. * * @event intl:langChange * @param {EventFacade} e The event facade * <p>The event facade contains:</p> * <dl> * <dt>module</dt><dd>The name of the module for which the language changed</dd> * <dt>newVal</dt><dd>The new language tag</dd> * <dt>prevVal</dt><dd>The current language tag</dd> * </dl> */ Y.Intl.publish("intl:langChange", {emitFacade:true}); }, '3.16.0', {"requires": ["intl-base", "event-custom"]});
anilanar/jsdelivr
files/yui/3.16.0/intl/intl.js
JavaScript
mit
5,050
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('model-sync-rest', function (Y, NAME) { /** An extension which provides a RESTful XHR sync implementation that can be mixed into a Model or ModelList subclass. @module app @submodule model-sync-rest @since 3.6.0 **/ var Lang = Y.Lang; /** An extension which provides a RESTful XHR sync implementation that can be mixed into a Model or ModelList subclass. This makes it trivial for your Model or ModelList subclasses communicate and transmit their data via RESTful XHRs. In most cases you'll only need to provide a value for `root` when sub-classing `Y.Model`. Y.User = Y.Base.create('user', Y.Model, [Y.ModelSync.REST], { root: '/users' }); Y.Users = Y.Base.create('users', Y.ModelList, [Y.ModelSync.REST], { // By convention `Y.User`'s `root` will be used for the lists' URL. model: Y.User }); var users = new Y.Users(); // GET users list from: "/users" users.load(function () { var firstUser = users.item(0); firstUser.get('id'); // => "1" // PUT updated user data at: "/users/1" firstUser.set('name', 'Eric').save(); }); @class ModelSync.REST @extensionfor Model @extensionfor ModelList @since 3.6.0 **/ function RESTSync() {} /** A request authenticity token to validate HTTP requests made by this extension with the server when the request results in changing persistent state. This allows you to protect your server from Cross-Site Request Forgery attacks. A CSRF token provided by the server can be embedded in the HTML document and assigned to `YUI.Env.CSRF_TOKEN` like this: <script> YUI.Env.CSRF_TOKEN = {{session.authenticityToken}}; </script> The above should come after YUI seed file so that `YUI.Env` will be defined. **Note:** This can be overridden on a per-request basis. See `sync()` method. When a value for the CSRF token is provided, either statically or via `options` passed to the `save()` and `destroy()` methods, the applicable HTTP requests will have a `X-CSRF-Token` header added with the token value. @property CSRF_TOKEN @type String @default YUI.Env.CSRF_TOKEN @static @since 3.6.0 **/ RESTSync.CSRF_TOKEN = YUI.Env.CSRF_TOKEN; /** Static flag to use the HTTP POST method instead of PUT or DELETE. If the server-side HTTP framework isn't RESTful, setting this flag to `true` will cause all PUT and DELETE requests to instead use the POST HTTP method, and add a `X-HTTP-Method-Override` HTTP header with the value of the method type which was overridden. @property EMULATE_HTTP @type Boolean @default false @static @since 3.6.0 **/ RESTSync.EMULATE_HTTP = false; /** Default headers used with all XHRs. By default the `Accept` and `Content-Type` headers are set to "application/json", this signals to the HTTP server to process the request bodies as JSON and send JSON responses. If you're sending and receiving content other than JSON, you can override these headers and the `parse()` and `serialize()` methods. **Note:** These headers will be merged with any request-specific headers, and the request-specific headers will take precedence. @property HTTP_HEADERS @type Object @default { "Accept" : "application/json", "Content-Type": "application/json" } @static @since 3.6.0 **/ RESTSync.HTTP_HEADERS = { 'Accept' : 'application/json', 'Content-Type': 'application/json' }; /** Static mapping of RESTful HTTP methods corresponding to CRUD actions. @property HTTP_METHODS @type Object @default { "create": "POST", "read" : "GET", "update": "PUT", "delete": "DELETE" } @static @since 3.6.0 **/ RESTSync.HTTP_METHODS = { 'create': 'POST', 'read' : 'GET', 'update': 'PUT', 'delete': 'DELETE' }; /** The number of milliseconds before the XHRs will timeout/abort. This defaults to 30 seconds. **Note:** This can be overridden on a per-request basis. See `sync()` method. @property HTTP_TIMEOUT @type Number @default 30000 @static @since 3.6.0 **/ RESTSync.HTTP_TIMEOUT = 30000; /** Properties that shouldn't be turned into ad-hoc attributes when passed to a Model or ModelList constructor. @property _NON_ATTRS_CFG @type Array @default ["root", "url"] @static @protected @since 3.6.0 **/ RESTSync._NON_ATTRS_CFG = ['root', 'url']; RESTSync.prototype = { // -- Public Properties ---------------------------------------------------- /** A string which represents the root or collection part of the URL which relates to a Model or ModelList. Usually this value should be same for all instances of a specific Model/ModelList subclass. When sub-classing `Y.Model`, usually you'll only need to override this property, which lets the URLs for the XHRs be generated by convention. If the `root` string ends with a trailing-slash, XHR URLs will also end with a "/", and if the `root` does not end with a slash, neither will the XHR URLs. @example Y.User = Y.Base.create('user', Y.Model, [Y.ModelSync.REST], { root: '/users' }); var currentUser, newUser; // GET the user data from: "/users/123" currentUser = new Y.User({id: '123'}).load(); // POST the new user data to: "/users" newUser = new Y.User({name: 'Eric Ferraiuolo'}).save(); When sub-classing `Y.ModelList`, usually you'll want to ignore configuring the `root` and simply rely on the build-in convention of the list's generated URLs defaulting to the `root` specified by the list's `model`. @property root @type String @default "" @since 3.6.0 **/ root: '', /** A string which specifies the URL to use when making XHRs, if not value is provided, the URLs used to make XHRs will be generated by convention. While a `url` can be provided for each Model/ModelList instance, usually you'll want to either rely on the default convention or provide a tokenized string on the prototype which can be used for all instances. When sub-classing `Y.Model`, you will probably be able to rely on the default convention of generating URLs in conjunction with the `root` property and whether the model is new or not (i.e. has an `id`). If the `root` property ends with a trailing-slash, the generated URL for the specific model will also end with a trailing-slash. @example Y.User = Y.Base.create('user', Y.Model, [Y.ModelSync.REST], { root: '/users/' }); var currentUser, newUser; // GET the user data from: "/users/123/" currentUser = new Y.User({id: '123'}).load(); // POST the new user data to: "/users/" newUser = new Y.User({name: 'Eric Ferraiuolo'}).save(); If a `url` is specified, it will be processed by `Y.Lang.sub()`, which is useful when the URLs for a Model/ModelList subclass match a specific pattern and can use simple replacement tokens; e.g.: @example Y.User = Y.Base.create('user', Y.Model, [Y.ModelSync.REST], { root: '/users', url : '/users/{username}' }); **Note:** String subsitituion of the `url` only use string an number values provided by this object's attribute and/or the `options` passed to the `getURL()` method. Do not expect something fancy to happen with Object, Array, or Boolean values, they will simply be ignored. If your URLs have plural roots or collection URLs, while the specific item resources are under a singular name, e.g. "/users" (plural) and "/user/123" (singular), you'll probably want to configure the `root` and `url` properties like this: @example Y.User = Y.Base.create('user', Y.Model, [Y.ModelSync.REST], { root: '/users', url : '/user/{id}' }); var currentUser, newUser; // GET the user data from: "/user/123" currentUser = new Y.User({id: '123'}).load(); // POST the new user data to: "/users" newUser = new Y.User({name: 'Eric Ferraiuolo'}).save(); When sub-classing `Y.ModelList`, usually you'll be able to rely on the associated `model` to supply its `root` to be used as the model list's URL. If this needs to be customized, you can provide a simple string for the `url` property. @example Y.Users = Y.Base.create('users', Y.ModelList, [Y.ModelSync.REST], { // Leverages `Y.User`'s `root`, which is "/users". model: Y.User }); // Or specified explicitly... Y.Users = Y.Base.create('users', Y.ModelList, [Y.ModelSync.REST], { model: Y.User, url : '/users' }); @property url @type String @default "" @since 3.6.0 **/ url: '', // -- Lifecycle Methods ---------------------------------------------------- initializer: function (config) { config || (config = {}); // Overrides `root` at the instance level. if ('root' in config) { this.root = config.root || ''; } // Overrides `url` at the instance level. if ('url' in config) { this.url = config.url || ''; } }, // -- Public Methods ------------------------------------------------------- /** Returns the URL for this model or model list for the given `action` and `options`, if specified. This method correctly handles the variations of `root` and `url` values and is called by the `sync()` method to get the URLs used to make the XHRs. You can override this method if you need to provide a specific implementation for how the URLs of your Model and ModelList subclasses need to be generated. @method getURL @param {String} [action] Optional `sync()` action for which to generate the URL. @param {Object} [options] Optional options which may be used to help generate the URL. @return {String} this model's or model list's URL for the the given `action` and `options`. @since 3.6.0 **/ getURL: function (action, options) { var root = this.root, url = this.url; // If this is a model list, use its `url` and substitute placeholders, // but default to the `root` of its `model`. By convention a model's // `root` is the location to a collection resource. if (this._isYUIModelList) { if (!url) { return this.model.prototype.root; } return this._substituteURL(url, Y.merge(this.getAttrs(), options)); } // Assume `this` is a model. // When a model is new, i.e. has no `id`, the `root` should be used. By // convention a model's `root` is the location to a collection resource. // The model's `url` will be used as a fallback if `root` isn't defined. if (root && (action === 'create' || this.isNew())) { return root; } // When a model's `url` is not provided, we'll generate a URL to use by // convention. This will combine the model's `id` with its configured // `root` and add a trailing-slash if the root ends with "/". if (!url) { return this._joinURL(this.getAsURL('id') || ''); } // Substitute placeholders in the `url` with URL-encoded values from the // model's attribute values or the specified `options`. return this._substituteURL(url, Y.merge(this.getAttrs(), options)); }, /** Called to parse the response object returned from `Y.io()`. This method receives the full response object and is expected to "prep" a response which is suitable to pass to the `parse()` method. By default the response body is returned (`responseText`), because it usually represents the entire entity of this model on the server. If you need to parse data out of the response's headers you should do so by overriding this method. If you'd like the entire response object from the XHR to be passed to your `parse()` method, you can simply assign this property to `false`. @method parseIOResponse @param {Object} response Response object from `Y.io()`. @return {Any} The modified response to pass along to the `parse()` method. @since 3.7.0 **/ parseIOResponse: function (response) { return response.responseText; }, /** Serializes `this` model to be used as the HTTP request entity body. By default this model will be serialized to a JSON string via its `toJSON()` method. You can override this method when the HTTP server expects a different representation of this model's data that is different from the default JSON serialization. If you're sending and receive content other than JSON, be sure change the `Accept` and `Content-Type` `HTTP_HEADERS` as well. **Note:** A model's `toJSON()` method can also be overridden. If you only need to modify which attributes are serialized to JSON, that's a better place to start. @method serialize @param {String} [action] Optional `sync()` action for which to generate the the serialized representation of this model. @return {String} serialized HTTP request entity body. @since 3.6.0 **/ serialize: function (action) { return Y.JSON.stringify(this); }, /** Communicates with a RESTful HTTP server by sending and receiving data via XHRs. This method is called internally by load(), save(), and destroy(). The URL used for each XHR will be retrieved by calling the `getURL()` method and passing it the specified `action` and `options`. This method relies heavily on standard RESTful HTTP conventions @method sync @param {String} action Sync action to perform. May be one of the following: * `create`: Store a newly-created model for the first time. * `delete`: Delete an existing model. * `read` : Load an existing model. * `update`: Update an existing model. @param {Object} [options] Sync options: @param {String} [options.csrfToken] The authenticity token used by the server to verify the validity of this request and protected against CSRF attacks. This overrides the default value provided by the static `CSRF_TOKEN` property. @param {Object} [options.headers] The HTTP headers to mix with the default headers specified by the static `HTTP_HEADERS` property. @param {Number} [options.timeout] The number of milliseconds before the request will timeout and be aborted. This overrides the default provided by the static `HTTP_TIMEOUT` property. @param {Function} [callback] Called when the sync operation finishes. @param {Error|null} callback.err If an error occurred, this parameter will contain the error. If the sync operation succeeded, _err_ will be falsy. @param {Any} [callback.response] The server's response. **/ sync: function (action, options, callback) { options || (options = {}); var url = this.getURL(action, options), method = RESTSync.HTTP_METHODS[action], headers = Y.merge(RESTSync.HTTP_HEADERS, options.headers), timeout = options.timeout || RESTSync.HTTP_TIMEOUT, csrfToken = options.csrfToken || RESTSync.CSRF_TOKEN, entity; // Prepare the content if we are sending data to the server. if (method === 'POST' || method === 'PUT') { entity = this.serialize(action); } else { // Remove header, no content is being sent. delete headers['Content-Type']; } // Setup HTTP emulation for older servers if we need it. if (RESTSync.EMULATE_HTTP && (method === 'PUT' || method === 'DELETE')) { // Pass along original method type in the headers. headers['X-HTTP-Method-Override'] = method; // Fall-back to using POST method type. method = 'POST'; } // Add CSRF token to HTTP request headers if one is specified and the // request will cause side effects on the server. if (csrfToken && (method === 'POST' || method === 'PUT' || method === 'DELETE')) { headers['X-CSRF-Token'] = csrfToken; } this._sendSyncIORequest({ action : action, callback: callback, entity : entity, headers : headers, method : method, timeout : timeout, url : url }); }, // -- Protected Methods ---------------------------------------------------- /** Joins the `root` URL to the specified `url`, normalizing leading/trailing "/" characters. @example model.root = '/foo' model._joinURL('bar'); // => '/foo/bar' model._joinURL('/bar'); // => '/foo/bar' model.root = '/foo/' model._joinURL('bar'); // => '/foo/bar/' model._joinURL('/bar'); // => '/foo/bar/' @method _joinURL @param {String} url URL to append to the `root` URL. @return {String} Joined URL. @protected @since 3.6.0 **/ _joinURL: function (url) { var root = this.root; if (!(root || url)) { return ''; } if (url.charAt(0) === '/') { url = url.substring(1); } // Combines the `root` with the `url` and adds a trailing-slash if the // `root` has a trailing-slash. return root && root.charAt(root.length - 1) === '/' ? root + url + '/' : root + '/' + url; }, /** Calls both public, overrideable methods: `parseIOResponse()`, then `parse()` and returns the result. This will call into `parseIOResponse()`, if it's defined as a method, passing it the full response object from the XHR and using its return value to pass along to the `parse()`. This enables developers to easily parse data out of the response headers which should be used by the `parse()` method. @method _parse @param {Object} response Response object from `Y.io()`. @return {Object|Object[]} Attribute hash or Array of model attribute hashes. @protected @since 3.7.0 **/ _parse: function (response) { // When `parseIOResponse` is defined as a method, it will be invoked and // the result will become the new response object that the `parse()` // will be invoked with. if (typeof this.parseIOResponse === 'function') { response = this.parseIOResponse(response); } return this.parse(response); }, /** Performs the XHR and returns the resulting `Y.io()` request object. This method is called by `sync()`. @method _sendSyncIORequest @param {Object} config An object with the following properties: @param {String} config.action The `sync()` action being performed. @param {Function} [config.callback] Called when the sync operation finishes. @param {String} [config.entity] The HTTP request entity body. @param {Object} config.headers The HTTP request headers. @param {String} config.method The HTTP request method. @param {Number} [config.timeout] Time until the HTTP request is aborted. @param {String} config.url The URL of the HTTP resource. @return {Object} The resulting `Y.io()` request object. @protected @since 3.6.0 **/ _sendSyncIORequest: function (config) { return Y.io(config.url, { 'arguments': { action : config.action, callback: config.callback, url : config.url }, context: this, data : config.entity, headers: config.headers, method : config.method, timeout: config.timeout, on: { start : this._onSyncIOStart, failure: this._onSyncIOFailure, success: this._onSyncIOSuccess, end : this._onSyncIOEnd } }); }, /** Utility which takes a tokenized `url` string and substitutes its placeholders using a specified `data` object. This method will property URL-encode any values before substituting them. Also, only expect it to work with String and Number values. @example var url = this._substituteURL('/users/{name}', {id: 'Eric F'}); // => "/users/Eric%20F" @method _substituteURL @param {String} url Tokenized URL string to substitute placeholder values. @param {Object} data Set of data to fill in the `url`'s placeholders. @return {String} Substituted URL. @protected @since 3.6.0 **/ _substituteURL: function (url, data) { if (!url) { return ''; } var values = {}; // Creates a hash of the string and number values only to be used to // replace any placeholders in a tokenized `url`. Y.Object.each(data, function (v, k) { if (Lang.isString(v) || Lang.isNumber(v)) { // URL-encode any string or number values. values[k] = encodeURIComponent(v); } }); return Lang.sub(url, values); }, // -- Event Handlers ------------------------------------------------------- /** Called when the `Y.io` request has finished, after "success" or "failure" has been determined. This is a no-op by default, but provides a hook for overriding. @method _onSyncIOEnd @param {String} txId The `Y.io` transaction id. @param {Object} details Extra details carried through from `sync()`: @param {String} details.action The sync action performed. @param {Function} [details.callback] The function to call after syncing. @param {String} details.url The URL of the requested resource. @protected @since 3.6.0 **/ _onSyncIOEnd: function (txId, details) {}, /** Called when the `Y.io` request has finished unsuccessfully. By default this calls the `details.callback` function passing it the HTTP status code and message as an error object along with the response body. @method _onSyncIOFailure @param {String} txId The `Y.io` transaction id. @param {Object} res The `Y.io` response object. @param {Object} details Extra details carried through from `sync()`: @param {String} details.action The sync action performed. @param {Function} [details.callback] The function to call after syncing. @param {String} details.url The URL of the requested resource. @protected @since 3.6.0 **/ _onSyncIOFailure: function (txId, res, details) { var callback = details.callback; if (callback) { callback({ code: res.status, msg : res.statusText }, res); } }, /** Called when the `Y.io` request has finished successfully. By default this calls the `details.callback` function passing it the response body. @method _onSyncIOSuccess @param {String} txId The `Y.io` transaction id. @param {Object} res The `Y.io` response object. @param {Object} details Extra details carried through from `sync()`: @param {String} details.action The sync action performed. @param {Function} [details.callback] The function to call after syncing. @param {String} details.url The URL of the requested resource. @protected @since 3.6.0 **/ _onSyncIOSuccess: function (txId, res, details) { var callback = details.callback; if (callback) { callback(null, res); } }, /** Called when the `Y.io` request is made. This is a no-op by default, but provides a hook for overriding. @method _onSyncIOStart @param {String} txId The `Y.io` transaction id. @param {Object} details Extra details carried through from `sync()`: @param {String} details.action The sync action performed. @param {Function} [details.callback] The function to call after syncing. @param {String} details.url The URL of the requested resource. @protected @since 3.6.0 **/ _onSyncIOStart: function (txId, details) {} }; // -- Namespace ---------------------------------------------------------------- Y.namespace('ModelSync').REST = RESTSync; }, '3.16.0', {"requires": ["model", "io-base", "json-stringify"]});
akkumar/jsdelivr
files/yui/3.16.0/model-sync-rest/model-sync-rest.js
JavaScript
mit
24,839
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-hover', function (Y, NAME) { /** * Adds support for a "hover" event. The event provides a convenience wrapper * for subscribing separately to mouseenter and mouseleave. The signature for * subscribing to the event is</p> * * <pre><code>node.on("hover", overFn, outFn); * node.delegate("hover", overFn, outFn, ".filterSelector"); * Y.on("hover", overFn, outFn, ".targetSelector"); * Y.delegate("hover", overFn, outFn, "#container", ".filterSelector"); * </code></pre> * * <p>Additionally, for compatibility with a more typical subscription * signature, the following are also supported:</p> * * <pre><code>Y.on("hover", overFn, ".targetSelector", outFn); * Y.delegate("hover", overFn, "#container", outFn, ".filterSelector"); * </code></pre> * * @module event * @submodule event-hover */ var isFunction = Y.Lang.isFunction, noop = function () {}, conf = { processArgs: function (args) { // Y.delegate('hover', over, out, '#container', '.filter') // comes in as ['hover', over, out, '#container', '.filter'], but // node.delegate('hover', over, out, '.filter') // comes in as ['hover', over, containerEl, out, '.filter'] var i = isFunction(args[2]) ? 2 : 3; return (isFunction(args[i])) ? args.splice(i,1)[0] : noop; }, on: function (node, sub, notifier, filter) { var args = (sub.args) ? sub.args.slice() : []; args.unshift(null); sub._detach = node[(filter) ? "delegate" : "on"]({ mouseenter: function (e) { e.phase = 'over'; notifier.fire(e); }, mouseleave: function (e) { var thisObj = sub.context || this; args[0] = e; e.type = 'hover'; e.phase = 'out'; sub._extra.apply(thisObj, args); } }, filter); }, detach: function (node, sub, notifier) { sub._detach.detach(); } }; conf.delegate = conf.on; conf.detachDelegate = conf.detach; Y.Event.define("hover", conf); }, '3.16.0', {"requires": ["event-mouseenter"]});
rteasdale/cdnjs
ajax/libs/yui/3.16.0/event-hover/event-hover-debug.js
JavaScript
mit
2,406
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('series-bar-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked bar series. * * @module charts * @submodule series-bar-stacked */ var Y_Lang = Y.Lang; /** * The StackedBarSeries renders bar chart in which series are stacked horizontally to show * their contribution to the cumulative total. * * @class StackedBarSeries * @extends BarSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-bar-stacked */ Y.StackedBarSeries = Y.Base.create("stackedBarSeries", Y.BarSeries, [Y.StackingUtil], { /** * @protected * * Draws the series. * * @method drawSeries */ drawSeries: function() { if(this.get("xcoords").length < 1) { return; } var isNumber = Y_Lang.isNumber, style = this._copyObject(this.get("styles").marker), w = style.width, h = style.height, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), i = 0, len = xcoords.length, top = ycoords[0], seriesCollection = this.get("seriesTypeCollection"), ratio, order = this.get("order"), graphOrder = this.get("graphOrder"), left, marker, lastCollection, negativeBaseValues, positiveBaseValues, fillColors, borderColors, useOrigin = order === 0, totalHeight = len * h, dimensions = { width: [], height: [] }, xvalues = [], yvalues = [], groupMarkers = this.get("groupMarkers"); if(Y_Lang.isArray(style.fill.color)) { fillColors = style.fill.color.concat(); } if(Y_Lang.isArray(style.border.color)) { borderColors = style.border.color.concat(); } this._createMarkerCache(); if(totalHeight > this.get("height")) { ratio = this.get("height")/totalHeight; h *= ratio; h = Math.max(h, 1); } if(!useOrigin) { lastCollection = seriesCollection[order - 1]; negativeBaseValues = lastCollection.get("negativeBaseValues"); positiveBaseValues = lastCollection.get("positiveBaseValues"); if(!negativeBaseValues || !positiveBaseValues) { useOrigin = true; positiveBaseValues = []; negativeBaseValues = []; } } else { negativeBaseValues = []; positiveBaseValues = []; } this.set("negativeBaseValues", negativeBaseValues); this.set("positiveBaseValues", positiveBaseValues); for(i = 0; i < len; ++i) { top = ycoords[i]; left = xcoords[i]; if(!isNumber(top) || !isNumber(left)) { if(useOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = this._leftOrigin; } this._markers.push(null); continue; } if(useOrigin) { w = Math.abs(left - this._leftOrigin); if(left > this._leftOrigin) { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; left -= w; } else if(left < this._leftOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = left; } else { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; } } else { if(left < this._leftOrigin) { left = negativeBaseValues[i] - (this._leftOrigin - xcoords[i]); w = negativeBaseValues[i] - left; negativeBaseValues[i] = left; } else if(left >= this._leftOrigin) { left += (positiveBaseValues[i] - this._leftOrigin); w = left - positiveBaseValues[i]; positiveBaseValues[i] = left; left -= w; } } if(!isNaN(w) && w > 0) { top -= h/2; if(groupMarkers) { dimensions.width[i] = w; dimensions.height[i] = h; xvalues.push(left); yvalues.push(top); } else { style.width = w; style.height = h; style.x = left; style.y = top; if(fillColors) { style.fill.color = fillColors[i % fillColors.length]; } if(borderColors) { style.border.color = borderColors[i % borderColors.length]; } marker = this.getMarker(style, graphOrder, i); } } else if(!groupMarkers) { this._markers.push(null); } } if(groupMarkers) { this._createGroupMarker({ fill: style.fill, border: style.border, dimensions: dimensions, xvalues: xvalues, yvalues: yvalues, shape: style.shape }); } else { this._clearMarkerCache(); } }, /** * @protected * * Resizes and positions markers based on a mouse interaction. * * @method updateMarkerState * @param {String} type state of the marker * @param {Number} i index of the marker */ updateMarkerState: function(type, i) { if(this._markers[i]) { var state = this._getState(type), ycoords = this.get("ycoords"), marker = this._markers[i], styles = this.get("styles").marker, h = styles.height, markerStyles = state === "off" || !styles[state] ? this._copyObject(styles) : this._copyObject(styles[state]), fillColor, borderColor; markerStyles.y = (ycoords[i] - h/2); markerStyles.x = marker.get("x"); markerStyles.width = marker.get("width"); markerStyles.id = marker.get("id"); fillColor = markerStyles.fill.color; borderColor = markerStyles.border.color; if(Y_Lang.isArray(fillColor)) { markerStyles.fill.color = fillColor[i % fillColor.length]; } else { markerStyles.fill.color = this._getItemColor(markerStyles.fill.color, i); } if(Y_Lang.isArray(borderColor)) { markerStyles.border.color = borderColor[i % borderColor.length]; } else { markerStyles.border.color = this._getItemColor(markerStyles.border.color, i); } marker.set(markerStyles); } }, /** * @protected * * Returns default values for the `styles` attribute. * * @method _getPlotDefaults * @return Object */ _getPlotDefaults: function() { var defs = { fill:{ type: "solid", alpha: 1, colors:null, alphas: null, ratios: null }, border:{ weight: 0, alpha: 1 }, width: 24, height: 24, shape: "rect", padding:{ top: 0, left: 0, right: 0, bottom: 0 } }; defs.fill.color = this._getDefaultColor(this.get("graphOrder"), "fill"); defs.border.color = this._getDefaultColor(this.get("graphOrder"), "border"); return defs; } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedBar */ type: { value: "stackedBar" }, /** * Direction of the series * * @attribute direction * @type String * @default vertical */ direction: { value: "vertical" }, /** * @private * * @attribute negativeBaseValues * @type Array * @default null */ negativeBaseValues: { value: null }, /** * @private * * @attribute positiveBaseValues * @type Array * @default null */ positiveBaseValues: { value: null } /** * Style properties used for drawing markers. This attribute is inherited from `BarSeries`. Below are the default values: * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> * </dl> * </dd> * <dt>height</dt><dd>indicates the width of the marker. The default value is 24.</dd> * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default * values for each style is null. When an over style is not set, the non-over value will be used. For example, * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> * </dl> * * @attribute styles * @type Object */ } }); }, '3.16.0', {"requires": ["series-stacked", "series-bar"]});
Showfom/cdnjs
ajax/libs/yui/3.16.0/series-bar-stacked/series-bar-stacked-debug.js
JavaScript
mit
11,879
YUI.add('autocomplete-list', function (Y, NAME) { /** Traditional autocomplete dropdown list widget, just like Mom used to make. @module autocomplete @submodule autocomplete-list **/ /** Traditional autocomplete dropdown list widget, just like Mom used to make. @class AutoCompleteList @extends Widget @uses AutoCompleteBase @uses WidgetPosition @uses WidgetPositionAlign @constructor @param {Object} config Configuration object. **/ var Lang = Y.Lang, Node = Y.Node, YArray = Y.Array, // Whether or not we need an iframe shim. useShim = Y.UA.ie && Y.UA.ie < 7, // keyCode constants. KEY_TAB = 9, // String shorthand. _CLASS_ITEM = '_CLASS_ITEM', _CLASS_ITEM_ACTIVE = '_CLASS_ITEM_ACTIVE', _CLASS_ITEM_HOVER = '_CLASS_ITEM_HOVER', _SELECTOR_ITEM = '_SELECTOR_ITEM', ACTIVE_ITEM = 'activeItem', ALWAYS_SHOW_LIST = 'alwaysShowList', CIRCULAR = 'circular', HOVERED_ITEM = 'hoveredItem', ID = 'id', ITEM = 'item', LIST = 'list', RESULT = 'result', RESULTS = 'results', VISIBLE = 'visible', WIDTH = 'width', // Event names. EVT_SELECT = 'select', List = Y.Base.create('autocompleteList', Y.Widget, [ Y.AutoCompleteBase, Y.WidgetPosition, Y.WidgetPositionAlign ], { // -- Prototype Properties ------------------------------------------------- ARIA_TEMPLATE: '<div/>', ITEM_TEMPLATE: '<li/>', LIST_TEMPLATE: '<ul/>', // Widget automatically attaches delegated event handlers to everything in // Y.Node.DOM_EVENTS, including synthetic events. Since Widget's event // delegation won't work for the synthetic valuechange event, and since // it creates a name collision between the backcompat "valueChange" synth // event alias and AutoCompleteList's "valueChange" event for the "value" // attr, this hack is necessary in order to prevent Widget from attaching // valuechange handlers. UI_EVENTS: (function () { var uiEvents = Y.merge(Y.Node.DOM_EVENTS); delete uiEvents.valuechange; delete uiEvents.valueChange; return uiEvents; }()), // -- Lifecycle Prototype Methods ------------------------------------------ initializer: function () { var inputNode = this.get('inputNode'); if (!inputNode) { Y.error('No inputNode specified.'); return; } this._inputNode = inputNode; this._listEvents = []; // This ensures that the list is rendered inside the same parent as the // input node by default, which is necessary for proper ARIA support. this.DEF_PARENT_NODE = inputNode.get('parentNode'); // Cache commonly used classnames and selectors for performance. this[_CLASS_ITEM] = this.getClassName(ITEM); this[_CLASS_ITEM_ACTIVE] = this.getClassName(ITEM, 'active'); this[_CLASS_ITEM_HOVER] = this.getClassName(ITEM, 'hover'); this[_SELECTOR_ITEM] = '.' + this[_CLASS_ITEM]; /** Fires when an autocomplete suggestion is selected from the list, typically via a keyboard action or mouse click. @event select @param {Node} itemNode List item node that was selected. @param {Object} result AutoComplete result object. @preventable _defSelectFn **/ this.publish(EVT_SELECT, { defaultFn: this._defSelectFn }); }, destructor: function () { while (this._listEvents.length) { this._listEvents.pop().detach(); } if (this._ariaNode) { this._ariaNode.remove().destroy(true); } }, bindUI: function () { this._bindInput(); this._bindList(); }, renderUI: function () { var ariaNode = this._createAriaNode(), boundingBox = this.get('boundingBox'), contentBox = this.get('contentBox'), inputNode = this._inputNode, listNode = this._createListNode(), parentNode = inputNode.get('parentNode'); inputNode.addClass(this.getClassName('input')).setAttrs({ 'aria-autocomplete': LIST, 'aria-expanded' : false, 'aria-owns' : listNode.get('id') }); // ARIA node must be outside the widget or announcements won't be made // when the widget is hidden. parentNode.append(ariaNode); // Add an iframe shim for IE6. if (useShim) { boundingBox.plug(Y.Plugin.Shim); } this._ariaNode = ariaNode; this._boundingBox = boundingBox; this._contentBox = contentBox; this._listNode = listNode; this._parentNode = parentNode; }, syncUI: function () { // No need to call _syncPosition() here; the other _sync methods will // call it when necessary. this._syncResults(); this._syncVisibility(); }, // -- Public Prototype Methods --------------------------------------------- /** Hides the list, unless the `alwaysShowList` attribute is `true`. @method hide @see show @chainable **/ hide: function () { return this.get(ALWAYS_SHOW_LIST) ? this : this.set(VISIBLE, false); }, /** Selects the specified _itemNode_, or the current `activeItem` if _itemNode_ is not specified. @method selectItem @param {Node} [itemNode] Item node to select. @param {EventFacade} [originEvent] Event that triggered the selection, if any. @chainable **/ selectItem: function (itemNode, originEvent) { if (itemNode) { if (!itemNode.hasClass(this[_CLASS_ITEM])) { return this; } } else { itemNode = this.get(ACTIVE_ITEM); if (!itemNode) { return this; } } this.fire(EVT_SELECT, { itemNode : itemNode, originEvent: originEvent || null, result : itemNode.getData(RESULT) }); return this; }, // -- Protected Prototype Methods ------------------------------------------ /** Activates the next item after the currently active item. If there is no next item and the `circular` attribute is `true`, focus will wrap back to the input node. @method _activateNextItem @chainable @protected **/ _activateNextItem: function () { var item = this.get(ACTIVE_ITEM), nextItem; if (item) { nextItem = item.next(this[_SELECTOR_ITEM]) || (this.get(CIRCULAR) ? null : item); } else { nextItem = this._getFirstItemNode(); } this.set(ACTIVE_ITEM, nextItem); return this; }, /** Activates the item previous to the currently active item. If there is no previous item and the `circular` attribute is `true`, focus will wrap back to the input node. @method _activatePrevItem @chainable @protected **/ _activatePrevItem: function () { var item = this.get(ACTIVE_ITEM), prevItem = item ? item.previous(this[_SELECTOR_ITEM]) : this.get(CIRCULAR) && this._getLastItemNode(); this.set(ACTIVE_ITEM, prevItem || null); return this; }, /** Appends the specified result _items_ to the list inside a new item node. @method _add @param {Array|Node|HTMLElement|String} items Result item or array of result items. @return {NodeList} Added nodes. @protected **/ _add: function (items) { var itemNodes = []; YArray.each(Lang.isArray(items) ? items : [items], function (item) { itemNodes.push(this._createItemNode(item).setData(RESULT, item)); }, this); itemNodes = Y.all(itemNodes); this._listNode.append(itemNodes.toFrag()); return itemNodes; }, /** Updates the ARIA live region with the specified message. @method _ariaSay @param {String} stringId String id (from the `strings` attribute) of the message to speak. @param {Object} [subs] Substitutions for placeholders in the string. @protected **/ _ariaSay: function (stringId, subs) { var message = this.get('strings.' + stringId); this._ariaNode.set('text', subs ? Lang.sub(message, subs) : message); }, /** Binds `inputNode` events and behavior. @method _bindInput @protected **/ _bindInput: function () { var inputNode = this._inputNode, alignNode, alignWidth, tokenInput; // Null align means we can auto-align. Set align to false to prevent // auto-alignment, or a valid alignment config to customize the // alignment. if (this.get('align') === null) { // If this is a tokenInput, align with its bounding box. // Otherwise, align with the inputNode. Bit of a cheat. tokenInput = this.get('tokenInput'); alignNode = (tokenInput && tokenInput.get('boundingBox')) || inputNode; this.set('align', { node : alignNode, points: ['tl', 'bl'] }); // If no width config is set, attempt to set the list's width to the // width of the alignment node. If the alignment node's width is // falsy, do nothing. if (!this.get(WIDTH) && (alignWidth = alignNode.get('offsetWidth'))) { this.set(WIDTH, alignWidth); } } // Attach inputNode events. this._listEvents = this._listEvents.concat([ inputNode.after('blur', this._afterListInputBlur, this), inputNode.after('focus', this._afterListInputFocus, this) ]); }, /** Binds list events. @method _bindList @protected **/ _bindList: function () { this._listEvents = this._listEvents.concat([ Y.one('doc').after('click', this._afterDocClick, this), Y.one('win').after('windowresize', this._syncPosition, this), this.after({ mouseover: this._afterMouseOver, mouseout : this._afterMouseOut, activeItemChange : this._afterActiveItemChange, alwaysShowListChange: this._afterAlwaysShowListChange, hoveredItemChange : this._afterHoveredItemChange, resultsChange : this._afterResultsChange, visibleChange : this._afterVisibleChange }), this._listNode.delegate('click', this._onItemClick, this[_SELECTOR_ITEM], this) ]); }, /** Clears the contents of the tray. @method _clear @protected **/ _clear: function () { this.set(ACTIVE_ITEM, null); this._set(HOVERED_ITEM, null); this._listNode.get('children').remove(true); }, /** Creates and returns an ARIA live region node. @method _createAriaNode @return {Node} ARIA node. @protected **/ _createAriaNode: function () { var ariaNode = Node.create(this.ARIA_TEMPLATE); return ariaNode.addClass(this.getClassName('aria')).setAttrs({ 'aria-live': 'polite', role : 'status' }); }, /** Creates and returns an item node with the specified _content_. @method _createItemNode @param {Object} result Result object. @return {Node} Item node. @protected **/ _createItemNode: function (result) { var itemNode = Node.create(this.ITEM_TEMPLATE); return itemNode.addClass(this[_CLASS_ITEM]).setAttrs({ id : Y.stamp(itemNode), role: 'option' }).setAttribute('data-text', result.text).append(result.display); }, /** Creates and returns a list node. If the `listNode` attribute is already set to an existing node, that node will be used. @method _createListNode @return {Node} List node. @protected **/ _createListNode: function () { var listNode = this.get('listNode') || Node.create(this.LIST_TEMPLATE); listNode.addClass(this.getClassName(LIST)).setAttrs({ id : Y.stamp(listNode), role: 'listbox' }); this._set('listNode', listNode); this.get('contentBox').append(listNode); return listNode; }, /** Gets the first item node in the list, or `null` if the list is empty. @method _getFirstItemNode @return {Node|null} @protected **/ _getFirstItemNode: function () { return this._listNode.one(this[_SELECTOR_ITEM]); }, /** Gets the last item node in the list, or `null` if the list is empty. @method _getLastItemNode @return {Node|null} @protected **/ _getLastItemNode: function () { return this._listNode.one(this[_SELECTOR_ITEM] + ':last-child'); }, /** Synchronizes the result list's position and alignment. @method _syncPosition @protected **/ _syncPosition: function () { // Force WidgetPositionAlign to refresh its alignment. this._syncUIPosAlign(); // Resize the IE6 iframe shim to match the list's dimensions. this._syncShim(); }, /** Synchronizes the results displayed in the list with those in the _results_ argument, or with the `results` attribute if an argument is not provided. @method _syncResults @param {Array} [results] Results. @protected **/ _syncResults: function (results) { if (!results) { results = this.get(RESULTS); } this._clear(); if (results.length) { this._add(results); this._ariaSay('items_available'); } this._syncPosition(); if (this.get('activateFirstItem') && !this.get(ACTIVE_ITEM)) { this.set(ACTIVE_ITEM, this._getFirstItemNode()); } }, /** Synchronizes the size of the iframe shim used for IE6 and lower. In other browsers, this method is a noop. @method _syncShim @protected **/ _syncShim: useShim ? function () { var shim = this._boundingBox.shim; if (shim) { shim.sync(); } } : function () {}, /** Synchronizes the visibility of the tray with the _visible_ argument, or with the `visible` attribute if an argument is not provided. @method _syncVisibility @param {Boolean} [visible] Visibility. @protected **/ _syncVisibility: function (visible) { if (this.get(ALWAYS_SHOW_LIST)) { visible = true; this.set(VISIBLE, visible); } if (typeof visible === 'undefined') { visible = this.get(VISIBLE); } this._inputNode.set('aria-expanded', visible); this._boundingBox.set('aria-hidden', !visible); if (visible) { this._syncPosition(); } else { this.set(ACTIVE_ITEM, null); this._set(HOVERED_ITEM, null); // Force a reflow to work around a glitch in IE6 and 7 where some of // the contents of the list will sometimes remain visible after the // container is hidden. this._boundingBox.get('offsetWidth'); } // In some pages, IE7 fails to repaint the contents of the list after it // becomes visible. Toggling a bogus class on the body forces a repaint // that fixes the issue. if (Y.UA.ie === 7) { // Note: We don't actually need to use ClassNameManager here. This // class isn't applying any actual styles; it's just frobbing the // body element to force a repaint. The actual class name doesn't // really matter. Y.one('body') .addClass('yui3-ie7-sucks') .removeClass('yui3-ie7-sucks'); } }, // -- Protected Event Handlers --------------------------------------------- /** Handles `activeItemChange` events. @method _afterActiveItemChange @param {EventFacade} e @protected **/ _afterActiveItemChange: function (e) { var inputNode = this._inputNode, newVal = e.newVal, prevVal = e.prevVal, node; // The previous item may have disappeared by the time this handler runs, // so we need to be careful. if (prevVal && prevVal._node) { prevVal.removeClass(this[_CLASS_ITEM_ACTIVE]); } if (newVal) { newVal.addClass(this[_CLASS_ITEM_ACTIVE]); inputNode.set('aria-activedescendant', newVal.get(ID)); } else { inputNode.removeAttribute('aria-activedescendant'); } if (this.get('scrollIntoView')) { node = newVal || inputNode; if (!node.inRegion(Y.DOM.viewportRegion(), true) || !node.inRegion(this._contentBox, true)) { node.scrollIntoView(); } } }, /** Handles `alwaysShowListChange` events. @method _afterAlwaysShowListChange @param {EventFacade} e @protected **/ _afterAlwaysShowListChange: function (e) { this.set(VISIBLE, e.newVal || this.get(RESULTS).length > 0); }, /** Handles click events on the document. If the click is outside both the input node and the bounding box, the list will be hidden. @method _afterDocClick @param {EventFacade} e @protected @since 3.5.0 **/ _afterDocClick: function (e) { var boundingBox = this._boundingBox, target = e.target; if(target !== this._inputNode && target !== boundingBox && target.ancestor('#' + boundingBox.get('id'), true)){ this.hide(); } }, /** Handles `hoveredItemChange` events. @method _afterHoveredItemChange @param {EventFacade} e @protected **/ _afterHoveredItemChange: function (e) { var newVal = e.newVal, prevVal = e.prevVal; if (prevVal) { prevVal.removeClass(this[_CLASS_ITEM_HOVER]); } if (newVal) { newVal.addClass(this[_CLASS_ITEM_HOVER]); } }, /** Handles `inputNode` blur events. @method _afterListInputBlur @protected **/ _afterListInputBlur: function () { this._listInputFocused = false; if (this.get(VISIBLE) && !this._mouseOverList && (this._lastInputKey !== KEY_TAB || !this.get('tabSelect') || !this.get(ACTIVE_ITEM))) { this.hide(); } }, /** Handles `inputNode` focus events. @method _afterListInputFocus @protected **/ _afterListInputFocus: function () { this._listInputFocused = true; }, /** Handles `mouseover` events. @method _afterMouseOver @param {EventFacade} e @protected **/ _afterMouseOver: function (e) { var itemNode = e.domEvent.target.ancestor(this[_SELECTOR_ITEM], true); this._mouseOverList = true; if (itemNode) { this._set(HOVERED_ITEM, itemNode); } }, /** Handles `mouseout` events. @method _afterMouseOut @param {EventFacade} e @protected **/ _afterMouseOut: function () { this._mouseOverList = false; this._set(HOVERED_ITEM, null); }, /** Handles `resultsChange` events. @method _afterResultsChange @param {EventFacade} e @protected **/ _afterResultsChange: function (e) { this._syncResults(e.newVal); if (!this.get(ALWAYS_SHOW_LIST)) { this.set(VISIBLE, !!e.newVal.length); } }, /** Handles `visibleChange` events. @method _afterVisibleChange @param {EventFacade} e @protected **/ _afterVisibleChange: function (e) { this._syncVisibility(!!e.newVal); }, /** Delegated event handler for item `click` events. @method _onItemClick @param {EventFacade} e @protected **/ _onItemClick: function (e) { var itemNode = e.currentTarget; this.set(ACTIVE_ITEM, itemNode); this.selectItem(itemNode, e); }, // -- Protected Default Event Handlers ------------------------------------- /** Default `select` event handler. @method _defSelectFn @param {EventFacade} e @protected **/ _defSelectFn: function (e) { var text = e.result.text; // TODO: support typeahead completion, etc. this._inputNode.focus(); this._updateValue(text); this._ariaSay('item_selected', {item: text}); this.hide(); } }, { ATTRS: { /** If `true`, the first item in the list will be activated by default when the list is initially displayed and when results change. @attribute activateFirstItem @type Boolean @default false **/ activateFirstItem: { value: false }, /** Item that's currently active, if any. When the user presses enter, this is the item that will be selected. @attribute activeItem @type Node **/ activeItem: { setter: Y.one, value: null }, /** If `true`, the list will remain visible even when there are no results to display. @attribute alwaysShowList @type Boolean @default false **/ alwaysShowList: { value: false }, /** If `true`, keyboard navigation will wrap around to the opposite end of the list when navigating past the first or last item. @attribute circular @type Boolean @default true **/ circular: { value: true }, /** Item currently being hovered over by the mouse, if any. @attribute hoveredItem @type Node|null @readOnly **/ hoveredItem: { readOnly: true, value: null }, /** Node that will contain result items. @attribute listNode @type Node|null @initOnly **/ listNode: { writeOnce: 'initOnly', value: null }, /** If `true`, the viewport will be scrolled to ensure that the active list item is visible when necessary. @attribute scrollIntoView @type Boolean @default false **/ scrollIntoView: { value: false }, /** Translatable strings used by the AutoCompleteList widget. @attribute strings @type Object **/ strings: { valueFn: function () { return Y.Intl.get('autocomplete-list'); } }, /** If `true`, pressing the tab key while the list is visible will select the active item, if any. @attribute tabSelect @type Boolean @default true **/ tabSelect: { value: true }, // The "visible" attribute is documented in Widget. visible: { value: false } }, CSS_PREFIX: Y.ClassNameManager.getClassName('aclist') }); Y.AutoCompleteList = List; /** Alias for <a href="AutoCompleteList.html">`AutoCompleteList`</a>. See that class for API docs. @class AutoComplete **/ Y.AutoComplete = List; }, '@VERSION@', { "lang": [ "en", "es" ], "requires": [ "autocomplete-base", "event-resize", "node-screen", "selector-css3", "shim-plugin", "widget", "widget-position", "widget-position-align" ], "skinnable": true });
keicheng/cdnjs
ajax/libs/yui/3.9.0/autocomplete-list/autocomplete-list-debug.js
JavaScript
mit
24,302
// moment.js language configuration // language : polish (pl) // author : Rafal Hirsz : https://github.com/evoL (function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else { factory(window.moment); // Browser global } }(function (moment) { var monthsNominative = "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"), monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"); function plural(n) { return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1); } function translate(number, withoutSuffix, key) { var result = number + " "; switch (key) { case 'm': return withoutSuffix ? 'minuta' : 'minutę'; case 'mm': return result + (plural(number) ? 'minuty' : 'minut'); case 'h': return withoutSuffix ? 'godzina' : 'godzinę'; case 'hh': return result + (plural(number) ? 'godziny' : 'godzin'); case 'MM': return result + (plural(number) ? 'miesiące' : 'miesięcy'); case 'yy': return result + (plural(number) ? 'lata' : 'lat'); } } return moment.lang('pl', { months : function (momentToFormat, format) { if (/D MMMM/.test(format)) { return monthsSubjective[momentToFormat.month()]; } else { return monthsNominative[momentToFormat.month()]; } }, monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"), weekdays : "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"), weekdaysShort : "nie_pon_wt_śr_czw_pt_sb".split("_"), weekdaysMin : "N_Pn_Wt_Śr_Cz_Pt_So".split("_"), longDateFormat : { LT : "HH:mm", L : "DD.MM.YYYY", LL : "D MMMM YYYY", LLL : "D MMMM YYYY LT", LLLL : "dddd, D MMMM YYYY LT" }, calendar : { sameDay: '[Dziś o] LT', nextDay: '[Jutro o] LT', nextWeek: '[W] dddd [o] LT', lastDay: '[Wczoraj o] LT', lastWeek: function () { switch (this.day()) { case 0: return '[W zeszłą niedzielę o] LT'; case 3: return '[W zeszłą środę o] LT'; case 6: return '[W zeszłą sobotę o] LT'; default: return '[W zeszły] dddd [o] LT'; } }, sameElse: 'L' }, relativeTime : { future : "za %s", past : "%s temu", s : "kilka sekund", m : translate, mm : translate, h : translate, hh : translate, d : "1 dzień", dd : '%d dni', M : "miesiąc", MM : translate, y : "rok", yy : translate }, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week. doy : 4 // The week that contains Jan 4th is the first week of the year. } }); }));
sullivanmatt/cdnjs
ajax/libs/moment.js/2.4.0/lang/pl.js
JavaScript
mit
3,508
YUI.add('recordset-filter', function (Y, NAME) { /** * Plugin that provides the ability to filter through a recordset. * Uses the filter methods available on Y.Array (see arrayextras submodule) to filter the recordset. * @module recordset * @submodule recordset-filter */ var YArray = Y.Array, Lang = Y.Lang; /** * Plugin that provides the ability to filter through a recordset. * Uses the filter methods available on Y.Array (see arrayextras submodule) to filter the recordset. * @class RecordsetFilter */ function RecordsetFilter(config) { RecordsetFilter.superclass.constructor.apply(this, arguments); } Y.mix(RecordsetFilter, { NS: "filter", NAME: "recordsetFilter", ATTRS: { } }); Y.extend(RecordsetFilter, Y.Plugin.Base, { /** Filter through the recordset with a custom filter function, or a key-value pair. @method filter @param {Function|String} filter A custom filter function or a string representing the key to filter by. @param {Any} [value] If filtering by key (_filter_ is a string), further filter by a specific value. @return {Recordset} A new filtered Recordset instance **/ filter: function (filter, value) { var recs = this.get('host').get('records'), key; //If a key-value pair is passed in, generate a custom function if (value && Lang.isString(filter)) { key = filter; filter = function(item) { return (item.getValue(key) === value); }; } //TODO: PARENT CHILD RELATIONSHIP return new Y.Recordset({ records: YArray.filter(recs, filter) }); }, /** The inverse of filter. Executes the supplied function on each item. Returns a new Recordset containing the items that the supplied function returned `false` for. @method reject @param {Function} filter A boolean function, executed on each item. @return {Recordset} A new Recordset instance containing the items on which the supplied function returned false. **/ reject: function (filter) { return new Y.Recordset({ records: YArray.reject(this.get('host').get('records'), filter) }); }, /** Iterates over the Recordset, returning a new Recordset of all the elements that match the supplied regular expression @method grep @param {RegExp} pattern The regular expression to test against each record. @return {Recordset} A Recordset instance containing all the items in the collection that produce a match against the supplied regular expression. If no items match, an empty Recordset instance is returned. **/ grep: function (pattern) { return new Y.Recordset({ records: YArray.grep(this.get('host').get('records'), pattern) }); } //TODO: Add more pass-through methods to arrayextras }); Y.namespace("Plugin").RecordsetFilter = RecordsetFilter; }, '@VERSION@', {"requires": ["recordset-base", "array-extras", "plugin"]});
tomalec/cdnjs
ajax/libs/yui/3.13.0/recordset-filter/recordset-filter-debug.js
JavaScript
mit
3,088
YUI.add('pluginhost-config', function (Y, NAME) { /** * Adds pluginhost constructor configuration and static configuration support * @submodule pluginhost-config */ var PluginHost = Y.Plugin.Host, L = Y.Lang; /** * A protected initialization method, used by the host class to initialize * plugin configurations passed the constructor, through the config object. * * Host objects should invoke this method at the appropriate time in their * construction lifecycle. * * @method _initConfigPlugins * @param {Object} config The configuration object passed to the constructor * @protected * @for Plugin.Host */ PluginHost.prototype._initConfigPlugins = function(config) { // Class Configuration var classes = (this._getClasses) ? this._getClasses() : [this.constructor], plug = [], unplug = {}, constructor, i, classPlug, classUnplug, pluginClassName; // TODO: Room for optimization. Can we apply statically/unplug in same pass? for (i = classes.length - 1; i >= 0; i--) { constructor = classes[i]; classUnplug = constructor._UNPLUG; if (classUnplug) { // subclasses over-write Y.mix(unplug, classUnplug, true); } classPlug = constructor._PLUG; if (classPlug) { // subclasses over-write Y.mix(plug, classPlug, true); } } for (pluginClassName in plug) { if (plug.hasOwnProperty(pluginClassName)) { if (!unplug[pluginClassName]) { this.plug(plug[pluginClassName]); } } } // User Configuration if (config && config.plugins) { this.plug(config.plugins); } }; /** * Registers plugins to be instantiated at the class level (plugins * which should be plugged into every instance of the class by default). * * @method plug * @static * * @param {Function} hostClass The host class on which to register the plugins * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined) * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin * @for Plugin.Host */ PluginHost.plug = function(hostClass, plugin, config) { // Cannot plug into Base, since Plugins derive from Base [ will cause infinite recurrsion ] var p, i, l, name; if (hostClass !== Y.Base) { hostClass._PLUG = hostClass._PLUG || {}; if (!L.isArray(plugin)) { if (config) { plugin = {fn:plugin, cfg:config}; } plugin = [plugin]; } for (i = 0, l = plugin.length; i < l;i++) { p = plugin[i]; name = p.NAME || p.fn.NAME; hostClass._PLUG[name] = p; } } }; /** * Unregisters any class level plugins which have been registered by the host class, or any * other class in the hierarchy. * * @method unplug * @static * * @param {Function} hostClass The host class from which to unregister the plugins * @param {Function | Array} plugin The plugin class, or an array of plugin classes * @for Plugin.Host */ PluginHost.unplug = function(hostClass, plugin) { var p, i, l, name; if (hostClass !== Y.Base) { hostClass._UNPLUG = hostClass._UNPLUG || {}; if (!L.isArray(plugin)) { plugin = [plugin]; } for (i = 0, l = plugin.length; i < l; i++) { p = plugin[i]; name = p.NAME; if (!hostClass._PLUG[name]) { hostClass._UNPLUG[name] = p; } else { delete hostClass._PLUG[name]; } } } }; }, '@VERSION@', {"requires": ["pluginhost-base"]});
ramda/cdnjs
ajax/libs/yui/3.13.0/pluginhost-config/pluginhost-config-debug.js
JavaScript
mit
4,217
YUI.add('test-console', function (Y, NAME) { /** Provides a specialized log console widget that's pre-configured to display YUI Test output with no extra configuration. @example <div id="log" class="yui3-skin-sam"></div> <script> YUI().use('test-console', function (Y) { // ... set up your test cases here ... // Render the console inside the #log div, then run the tests. new Y.Test.Console().render('#log'); Y.Test.Runner.run(); }); </script> @module test-console @namespace Test @class Console @extends Console @constructor @param {Object} [config] Config attributes. @param {Object} [config.filters] Category filter configuration. @since 3.5.0 **/ function TestConsole() { TestConsole.superclass.constructor.apply(this, arguments); } Y.namespace('Test').Console = Y.extend(TestConsole, Y.Console, { initializer: function (config) { this.on('entry', this._onEntry); this.plug(Y.Plugin.ConsoleFilters, { category: Y.merge({ info : true, pass : false, fail : true, status: false }, (config && config.filters) || {}), defaultVisibility: false, source: { TestRunner: true } }); Y.Test.Runner.on('complete', Y.bind(this._parseCoverage, this)); }, // -- Protected Coverage Parser --------------------------------------------- /** * Scans the coverage data to determine if it's an Istanbul coverage object. * @method _isIstanbul * @param {Object} json The coverage data to scan * @return {Boolean} True if this is Istanbul Coverage */ _isIstanbul: function(json) { var first = Y.Object.keys(json)[0], ret = false; if (json[first].s !== undefined && json[first].fnMap !== undefined) { ret = true; } if (json.s !== undefined && json.fnMap !== undefined) { ret = true; } return ret; }, /** * Parses and logs a summary of YUITest coverage data. * @method parseYUITest * @param {Object} coverage The YUITest Coverage JSON data */ parseYUITestCoverage: function (coverage) { var cov = { lines: { hit: 0, miss: 0, total: 0, percent: 0 }, functions: { hit: 0, miss: 0, total: 0, percent: 0 } }, coverageLog; Y.Object.each(coverage, function(info) { cov.lines.total += info.coveredLines; cov.lines.hit += info.calledLines; cov.lines.miss += (info.coveredLines - info.calledLines); cov.lines.percent = Math.floor((cov.lines.hit / cov.lines.total) * 100); cov.functions.total += info.coveredFunctions; cov.functions.hit += info.calledFunctions; cov.functions.miss += (info.coveredFunctions - info.calledFunctions); cov.functions.percent = Math.floor((cov.functions.hit / cov.functions.total) * 100); }); coverageLog = 'Lines: Hit:' + cov.lines.hit + ' Missed:' + cov.lines.miss + ' Total:' + cov.lines.total + ' Percent:' + cov.lines.percent + '%\n'; coverageLog += 'Functions: Hit:' + cov.functions.hit + ' Missed:' + cov.functions.miss + ' Total:' + cov.functions.total + ' Percent:' + cov.functions.percent + '%'; this.log('Coverage: ' + coverageLog, 'info', 'TestRunner'); }, /** * Generates a generic summary object used for Istanbul conversions. * @method _blankSummary * @return {Object} Generic summary object */ _blankSummary: function () { return { lines: { total: 0, covered: 0, pct: 'Unknown' }, statements: { total: 0, covered: 0, pct: 'Unknown' }, functions: { total: 0, covered: 0, pct: 'Unknown' }, branches: { total: 0, covered: 0, pct: 'Unknown' } }; }, /** * Calculates line numbers from statement coverage * @method _addDerivedInfoForFile * @private * @param {Object} fileCoverage JSON coverage data */ _addDerivedInfoForFile: function (fileCoverage) { var statementMap = fileCoverage.statementMap, statements = fileCoverage.s, lineMap; if (!fileCoverage.l) { fileCoverage.l = lineMap = {}; Y.Object.each(statements, function (value, st) { var line = statementMap[st].start.line, count = statements[st], prevVal = lineMap[line]; if (typeof prevVal === 'undefined' || prevVal < count) { lineMap[line] = count; } }); } }, /** * Generic percent calculator * @method _percent * @param {Number} covered The covered amount * @param {Number} total The total * @private */ _percent: function (covered, total) { var tmp, pct = 100.00; if (total > 0) { tmp = 1000 * 100 * covered / total + 5; pct = Math.floor(tmp / 10) / 100; } return pct; }, /** * Summarize simple properties in the coverage data * @method _computSimpleTotals * @private * @param {Object} fileCoverage JSON coverage data * @param {String} property The property to summarize */ _computeSimpleTotals: function (fileCoverage, property) { var stats = fileCoverage[property], ret = { total: 0, covered: 0 }; Y.Object.each(stats, function(val) { ret.total += 1; if (val) { ret.covered += 1; } }); ret.pct = this._percent(ret.covered, ret.total); return ret; }, /** * Noramlizes branch data from Istanbul * @method _computeBranchTotals * @private * @param {Object} fileCoverage JSON coverage data */ _computeBranchTotals: function (fileCoverage) { var stats = fileCoverage.b, ret = { total: 0, covered: 0 }; Y.Object.each(stats, function (branches) { var covered = Y.Array.filter(branches, function (num) { return num > 0; }); ret.total += branches.length; ret.covered += covered.length; }); ret.pct = this._percent(ret.covered, ret.total); return ret; }, /** * Takes an Istanbul coverage object, normalizes it and prints a log with a summary * @method parseInstanbul * @param {Object} coverage The coverage object to normalize and log */ parseIstanbul: function (coverage) { var self = this, str = 'Coverage Report:\n'; Y.Object.each(coverage, function(fileCoverage, file) { var ret = self._blankSummary(); self._addDerivedInfoForFile(fileCoverage); ret.lines = self._computeSimpleTotals(fileCoverage, 'l'); ret.functions = self._computeSimpleTotals(fileCoverage, 'f'); ret.statements = self._computeSimpleTotals(fileCoverage, 's'); ret.branches = self._computeBranchTotals(fileCoverage); str += file + ':\n'; Y.Array.each(['lines','functions','statements','branches'], function(key) { str += ' ' + key +': ' + ret[key].covered + '/' + ret[key].total + ' : ' + ret[key].pct + '%\n'; }); }); this.log(str, 'info', 'TestRunner'); }, /** * Parses YUITest or Istanbul coverage results if they are available and logs them. * @method _parseCoverage * @private */ _parseCoverage: function() { var coverage = Y.Test.Runner.getCoverage(); if (!coverage) { return; } if (this._isIstanbul(coverage)) { this.parseIstanbul(coverage); } else { this.parseYUITestCoverage(coverage); } }, // -- Protected Event Handlers --------------------------------------------- _onEntry: function (e) { var msg = e.message; if (msg.category === 'info' && /\s(?:case|suite)\s|yuitests\d+|began/.test(msg.message)) { msg.category = 'status'; } else if (msg.category === 'fail') { this.printBuffer(); } } }, { NAME: 'testConsole', ATTRS: { entryTemplate: { value: '<div class="{entry_class} {cat_class} {src_class}">' + '<div class="{entry_content_class}">{message}</div>' + '</div>' }, height: { value: '350px' }, newestOnTop: { value: false }, style: { value: 'block' }, width: { value: Y.UA.ie && Y.UA.ie < 9 ? '100%' : 'inherit' } } }); }, '@VERSION@', {"requires": ["console-filters", "test", "array-extras"], "skinnable": true});
RobLoach/cdnjs
ajax/libs/yui/3.14.0/test-console/test-console-debug.js
JavaScript
mit
9,326
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "utuko", "kyiukonyi" ], "DAY": [ "Jumapilyi", "Jumatatuu", "Jumanne", "Jumatanu", "Alhamisi", "Ijumaa", "Jumamosi" ], "ERANAMES": [ "Kabla ya Kristu", "Baada ya Kristu" ], "ERAS": [ "KK", "BK" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Januari", "Februari", "Machi", "Aprilyi", "Mei", "Junyi", "Julyai", "Agusti", "Septemba", "Oktoba", "Novemba", "Desemba" ], "SHORTDAY": [ "Jpi", "Jtt", "Jnn", "Jtn", "Alh", "Iju", "Jmo" ], "SHORTMONTH": [ "Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ago", "Sep", "Okt", "Nov", "Des" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "dd/MM/y h:mm a", "shortDate": "dd/MM/y", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "TSh", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a4", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "rwk", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
itvsai/cdnjs
ajax/libs/angular-i18n/1.4.4/angular-locale_rwk.js
JavaScript
mit
2,484
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "nedjelja", "ponedjeljak", "utorak", "srijeda", "\u010detvrtak", "petak", "subota" ], "ERANAMES": [ "Prije Krista", "Poslije Krista" ], "ERAS": [ "pr. Kr.", "p. Kr." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "sije\u010dnja", "velja\u010de", "o\u017eujka", "travnja", "svibnja", "lipnja", "srpnja", "kolovoza", "rujna", "listopada", "studenoga", "prosinca" ], "SHORTDAY": [ "ned", "pon", "uto", "sri", "\u010det", "pet", "sub" ], "SHORTMONTH": [ "sij", "velj", "o\u017eu", "tra", "svi", "lip", "srp", "kol", "ruj", "lis", "stu", "pro" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d. MMMM y.", "longDate": "d. MMMM y.", "medium": "d. MMM y. HH:mm:ss", "mediumDate": "d. MMM y.", "mediumTime": "HH:mm:ss", "short": "dd.MM.y. HH:mm", "shortDate": "dd.MM.y.", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kn", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "hr-hr", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} }); }]);
gustavolavi/angular.js
src/ngLocale/angular-locale_hr-hr.js
JavaScript
mit
2,788
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "formiddag", "ettermiddag" ], "DAY": [ "s\u00f8ndag", "m\u00e5ndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag" ], "ERANAMES": [ "f.Kr.", "e.Kr." ], "ERAS": [ "f.Kr.", "e.Kr." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember" ], "SHORTDAY": [ "s\u00f8.", "m\u00e5.", "ty.", "on.", "to.", "fr.", "la." ], "SHORTMONTH": [ "jan.", "feb.", "mars", "apr.", "mai", "juni", "juli", "aug.", "sep.", "okt.", "nov.", "des." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d. MMMM y", "longDate": "d. MMMM y", "medium": "d. MMM y HH:mm:ss", "mediumDate": "d. MMM y", "mediumTime": "HH:mm:ss", "short": "dd.MM.y HH:mm", "shortDate": "dd.MM.y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "nn-no", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
him2him2/cdnjs
ajax/libs/angular-i18n/1.4.0-rc.2/angular-locale_nn-no.js
JavaScript
mit
2,509
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "da manh\u00e3", "da tarde" ], "DAY": [ "domingo", "segunda-feira", "ter\u00e7a-feira", "quarta-feira", "quinta-feira", "sexta-feira", "s\u00e1bado" ], "ERANAMES": [ "antes de Cristo", "depois de Cristo" ], "ERAS": [ "a.C.", "d.C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janeiro", "fevereiro", "mar\u00e7o", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro" ], "SHORTDAY": [ "dom", "seg", "ter", "qua", "qui", "sex", "s\u00e1b" ], "SHORTMONTH": [ "jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "dd/MM/y HH:mm:ss", "mediumDate": "dd/MM/y", "mediumTime": "HH:mm:ss", "short": "dd/MM/yy HH:mm", "shortDate": "dd/MM/yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CFA", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "pt-gw", "pluralCat": function(n, opt_precision) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
wallin/cdnjs
ajax/libs/angular.js/1.4.3/i18n/angular-locale_pt-gw.js
JavaScript
mit
2,197
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "paradite", "pasdite" ], "DAY": [ "e diel", "e h\u00ebn\u00eb", "e mart\u00eb", "e m\u00ebrkur\u00eb", "e enjte", "e premte", "e shtun\u00eb" ], "ERANAMES": [ "para er\u00ebs s\u00eb re", "er\u00ebs s\u00eb re" ], "ERAS": [ "p.e.r.", "e.r." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janar", "shkurt", "mars", "prill", "maj", "qershor", "korrik", "gusht", "shtator", "tetor", "n\u00ebntor", "dhjetor" ], "SHORTDAY": [ "Die", "H\u00ebn", "Mar", "M\u00ebr", "Enj", "Pre", "Sht" ], "SHORTMONTH": [ "Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Kor", "Gsh", "Sht", "Tet", "N\u00ebn", "Dhj" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d.M.yy HH:mm", "shortDate": "d.M.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Lek", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "sq-al", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
vetruvet/cdnjs
ajax/libs/angular.js/1.4.0/i18n/angular-locale_sq-al.js
JavaScript
mit
2,161
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "i\u0111itbeaivet", "eahketbeaivet" ], "DAY": [ "sotnabeaivi", "vuoss\u00e1rga", "ma\u014b\u014beb\u00e1rga", "gaskavahkku", "duorasdat", "bearjadat", "l\u00e1vvardat" ], "ERANAMES": [ "ovdal Kristtusa", "ma\u014b\u014bel Kristtusa" ], "ERAS": [ "o.Kr.", "m.Kr." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "o\u0111\u0111ajagem\u00e1nnu", "guovvam\u00e1nnu", "njuk\u010dam\u00e1nnu", "cuo\u014bom\u00e1nnu", "miessem\u00e1nnu", "geassem\u00e1nnu", "suoidnem\u00e1nnu", "borgem\u00e1nnu", "\u010dak\u010dam\u00e1nnu", "golggotm\u00e1nnu", "sk\u00e1bmam\u00e1nnu", "juovlam\u00e1nnu" ], "SHORTDAY": [ "sotn", "vuos", "ma\u014b", "gask", "duor", "bear", "l\u00e1v" ], "SHORTMONTH": [ "o\u0111\u0111j", "guov", "njuk", "cuo", "mies", "geas", "suoi", "borg", "\u010dak\u010d", "golg", "sk\u00e1b", "juov" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "y MMMM d, EEEE", "longDate": "y MMMM d", "medium": "y MMM d HH:mm:ss", "mediumDate": "y MMM d", "mediumTime": "HH:mm:ss", "short": "y-MM-dd HH:mm", "shortDate": "y-MM-dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "se-no", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
bspaulding/cdnjs
ajax/libs/angular-i18n/1.4.3/angular-locale_se-no.js
JavaScript
mit
2,772
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 5, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "WEEKENDRANGE": [ 4, 5 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u00a3", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-sy", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
svrhovac/videoAnnotations
public/js/libs/angular/i18n/angular-locale_fr-sy.js
JavaScript
mit
2,197
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "i\u0111itbeaivet", "eahketbeaivet" ], "DAY": [ "sotnabeaivi", "vuoss\u00e1rga", "ma\u014b\u014beb\u00e1rga", "gaskavahkku", "duorasdat", "bearjadat", "l\u00e1vvardat" ], "ERANAMES": [ "ovdal Kristtusa", "ma\u014b\u014bel Kristtusa" ], "ERAS": [ "o.Kr.", "m.Kr." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "o\u0111\u0111ajagem\u00e1nnu", "guovvam\u00e1nnu", "njuk\u010dam\u00e1nnu", "cuo\u014bom\u00e1nnu", "miessem\u00e1nnu", "geassem\u00e1nnu", "suoidnem\u00e1nnu", "borgem\u00e1nnu", "\u010dak\u010dam\u00e1nnu", "golggotm\u00e1nnu", "sk\u00e1bmam\u00e1nnu", "juovlam\u00e1nnu" ], "SHORTDAY": [ "sotn", "vuos", "ma\u014b", "gask", "duor", "bear", "l\u00e1v" ], "SHORTMONTH": [ "o\u0111\u0111j", "guov", "njuk", "cuo", "mies", "geas", "suoi", "borg", "\u010dak\u010d", "golg", "sk\u00e1b", "juov" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "y MMMM d, EEEE", "longDate": "y MMMM d", "medium": "y MMM d HH:mm:ss", "mediumDate": "y MMM d", "mediumTime": "HH:mm:ss", "short": "y-MM-dd HH:mm", "shortDate": "y-MM-dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "se", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
vetruvet/cdnjs
ajax/libs/angular-i18n/1.4.7/angular-locale_se.js
JavaScript
mit
2,769
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "s\u00e1r\u00faw\u00e1", "c\u025b\u025b\u0301nko" ], "DAY": [ "s\u0254\u0301nd\u01dd", "l\u01ddnd\u00ed", "maad\u00ed", "m\u025bkr\u025bd\u00ed", "j\u01dd\u01ddd\u00ed", "j\u00famb\u00e1", "samd\u00ed" ], "ERANAMES": [ "di Y\u025b\u0301sus ak\u00e1 y\u00e1l\u025b", "c\u00e1m\u025b\u025bn k\u01dd k\u01ddb\u0254pka Y" ], "ERAS": [ "d.Y.", "k.Y." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "\u014bw\u00ed\u00ed a nt\u0254\u0301nt\u0254", "\u014bw\u00ed\u00ed ak\u01dd b\u025b\u0301\u025b", "\u014bw\u00ed\u00ed ak\u01dd r\u00e1\u00e1", "\u014bw\u00ed\u00ed ak\u01dd nin", "\u014bw\u00ed\u00ed ak\u01dd t\u00e1an", "\u014bw\u00ed\u00ed ak\u01dd t\u00e1af\u0254k", "\u014bw\u00ed\u00ed ak\u01dd t\u00e1ab\u025b\u025b", "\u014bw\u00ed\u00ed ak\u01dd t\u00e1araa", "\u014bw\u00ed\u00ed ak\u01dd t\u00e1anin", "\u014bw\u00ed\u00ed ak\u01dd nt\u025bk", "\u014bw\u00ed\u00ed ak\u01dd nt\u025bk di b\u0254\u0301k", "\u014bw\u00ed\u00ed ak\u01dd nt\u025bk di b\u025b\u0301\u025b" ], "SHORTDAY": [ "s\u0254\u0301n", "l\u01ddn", "maa", "m\u025bk", "j\u01dd\u01dd", "j\u00fam", "sam" ], "SHORTMONTH": [ "\u014b1", "\u014b2", "\u014b3", "\u014b4", "\u014b5", "\u014b6", "\u014b7", "\u014b8", "\u014b9", "\u014b10", "\u014b11", "\u014b12" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d/M/y HH:mm", "shortDate": "d/M/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FCFA", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "ksf-cm", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
sreym/cdnjs
ajax/libs/angular-i18n/1.5.0-beta.2/angular-locale_ksf-cm.js
JavaScript
mit
3,195
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "am", "pm" ], "DAY": [ "dumingu", "sigunda-fera", "tersa-fera", "kuarta-fera", "kinta-fera", "sesta-fera", "sabadu" ], "ERANAMES": [ "Antis di Kristu", "Dispos di Kristu" ], "ERAS": [ "AK", "DK" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Janeru", "Febreru", "Marsu", "Abril", "Maiu", "Junhu", "Julhu", "Agostu", "Setenbru", "Otubru", "Nuvenbru", "Dizenbru" ], "SHORTDAY": [ "dum", "sig", "ter", "kua", "kin", "ses", "sab" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Otu", "Nuv", "Diz" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d 'di' MMMM 'di' y", "longDate": "d 'di' MMMM 'di' y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d/M/y HH:mm", "shortDate": "d/M/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CVE", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "kea-cv", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
Teino1978-Corp/Teino1978-Corp-cdnjs
ajax/libs/angular-i18n/1.4.2/angular-locale_kea-cv.js
JavaScript
mit
2,516
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "\u10d9\u10d5\u10d8\u10e0\u10d0", "\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8", "\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8" ], "ERANAMES": [ "\u10eb\u10d5\u10d4\u10da\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7", "\u10d0\u10ee\u10d0\u10da\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7" ], "ERAS": [ "\u10eb\u10d5. \u10ec.", "\u10d0\u10ee. \u10ec." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8", "\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8", "\u10db\u10d0\u10e0\u10e2\u10d8", "\u10d0\u10de\u10e0\u10d8\u10da\u10d8", "\u10db\u10d0\u10d8\u10e1\u10d8", "\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8", "\u10d8\u10d5\u10da\u10d8\u10e1\u10d8", "\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd", "\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8", "\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8", "\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8", "\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8" ], "SHORTDAY": [ "\u10d9\u10d5\u10d8", "\u10dd\u10e0\u10e8", "\u10e1\u10d0\u10db", "\u10dd\u10d7\u10ee", "\u10ee\u10e3\u10d7", "\u10de\u10d0\u10e0", "\u10e8\u10d0\u10d1" ], "SHORTMONTH": [ "\u10d8\u10d0\u10dc", "\u10d7\u10d4\u10d1", "\u10db\u10d0\u10e0", "\u10d0\u10de\u10e0", "\u10db\u10d0\u10d8", "\u10d8\u10d5\u10dc", "\u10d8\u10d5\u10da", "\u10d0\u10d2\u10d5", "\u10e1\u10d4\u10e5", "\u10dd\u10e5\u10e2", "\u10dc\u10dd\u10d4", "\u10d3\u10d4\u10d9" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, dd MMMM, y", "longDate": "d MMMM, y", "medium": "d MMM, y HH:mm:ss", "mediumDate": "d MMM, y", "mediumTime": "HH:mm:ss", "short": "dd.MM.yy HH:mm", "shortDate": "dd.MM.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "GEL", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "ka-ge", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
WebReflection/cdnjs
ajax/libs/angular.js/1.4.0-beta.6/i18n/angular-locale_ka-ge.js
JavaScript
mit
3,334
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "paradite", "pasdite" ], "DAY": [ "e diel", "e h\u00ebn\u00eb", "e mart\u00eb", "e m\u00ebrkur\u00eb", "e enjte", "e premte", "e shtun\u00eb" ], "ERANAMES": [ "para er\u00ebs s\u00eb re", "er\u00ebs s\u00eb re" ], "ERAS": [ "p.e.r.", "e.r." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janar", "shkurt", "mars", "prill", "maj", "qershor", "korrik", "gusht", "shtator", "tetor", "n\u00ebntor", "dhjetor" ], "SHORTDAY": [ "Die", "H\u00ebn", "Mar", "M\u00ebr", "Enj", "Pre", "Sht" ], "SHORTMONTH": [ "Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Kor", "Gsh", "Sht", "Tet", "N\u00ebn", "Dhj" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d.M.yy HH:mm", "shortDate": "d.M.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Lek", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "sq", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
IonicaBizauKitchen/cdnjs
ajax/libs/angular.js/1.4.7/i18n/angular-locale_sq.js
JavaScript
mit
2,158
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata" ], "ERANAMES": [ "K.a.", "K.o." ], "ERAS": [ "K.a.", "K.o." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "urtarrilak", "otsailak", "martxoak", "apirilak", "maiatzak", "ekainak", "uztailak", "abuztuak", "irailak", "urriak", "azaroak", "abenduak" ], "SHORTDAY": [ "ig.", "al.", "ar.", "az.", "og.", "or.", "lr." ], "SHORTMONTH": [ "urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "y('e')'ko' MMMM d, EEEE", "longDate": "y('e')'ko' MMMM d", "medium": "y MMM d HH:mm:ss", "mediumDate": "y MMM d", "mediumTime": "HH:mm:ss", "short": "y/MM/dd HH:mm", "shortDate": "y/MM/dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "eu", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
Abhik29/MySecondRepoTrying
src/ngLocale/angular-locale_eu.js
JavaScript
mit
2,125
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "SCR", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-sc", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
pcarrier/cdnjs
ajax/libs/angular-i18n/1.4.4/angular-locale_fr-sc.js
JavaScript
mit
2,194
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-pm", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
liubo404/cdnjs
ajax/libs/angular.js/1.4.4/i18n/angular-locale_fr-pm.js
JavaScript
mit
2,197
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "Lwamilawu", "Pashamihe" ], "DAY": [ "Mulungu", "Jumatatu", "Jumanne", "Jumatano", "Alahamisi", "Ijumaa", "Jumamosi" ], "ERANAMES": [ "Ashanali uKilisito", "Pamwandi ya Kilisto" ], "ERAS": [ "AK", "PK" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Mupalangulwa", "Mwitope", "Mushende", "Munyi", "Mushende Magali", "Mujimbi", "Mushipepo", "Mupuguto", "Munyense", "Mokhu", "Musongandembwe", "Muhaano" ], "SHORTDAY": [ "Mul", "Jtt", "Jnn", "Jtn", "Alh", "Iju", "Jmo" ], "SHORTMONTH": [ "Mup", "Mwi", "Msh", "Mun", "Mag", "Muj", "Msp", "Mpg", "Mye", "Mok", "Mus", "Muh" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "dd/MM/y h:mm a", "shortDate": "dd/MM/y", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "TSh", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a4", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "sbp-tz", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
josedab/angularjs-springboot-bookstore
src/main/webapp/bower_components/angular-i18n/angular-locale_sbp-tz.js
JavaScript
mit
2,526
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "ulloqeqqata-tungaa", "ulloqeqqata-kingorna" ], "DAY": [ "sabaat", "ataasinngorneq", "marlunngorneq", "pingasunngorneq", "sisamanngorneq", "tallimanngorneq", "arfininngorneq" ], "ERANAMES": [ "Kristusip inunngornerata siornagut", "Kristusip inunngornerata kingornagut" ], "ERAS": [ "Kr.in.si.", "Kr.in.king." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "januari", "februari", "martsi", "aprili", "maji", "juni", "juli", "augustusi", "septemberi", "oktoberi", "novemberi", "decemberi" ], "SHORTDAY": [ "sab", "ata", "mar", "pin", "sis", "tal", "arf" ], "SHORTMONTH": [ "jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE dd MMMM y", "longDate": "dd MMMM y", "medium": "MMM dd, y h:mm:ss a", "mediumDate": "MMM dd, y", "mediumTime": "h:mm:ss a", "short": "y-MM-dd h:mm a", "shortDate": "y-MM-dd", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "kl", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
menuka94/cdnjs
ajax/libs/angular.js/1.5.0-beta.2/i18n/angular-locale_kl.js
JavaScript
mit
2,612
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "Dinda", "Dilolo" ], "DAY": [ "Lumingu", "Nkodya", "Nd\u00e0ay\u00e0", "Ndang\u00f9", "Nj\u00f2wa", "Ng\u00f2vya", "Lubingu" ], "ERANAMES": [ "Kumpala kwa Yezu Kli", "Kunyima kwa Yezu Kli" ], "ERAS": [ "kmp. Y.K.", "kny. Y. K." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Ciongo", "L\u00f9ishi", "Lus\u00f2lo", "M\u00f9uy\u00e0", "Lum\u00f9ng\u00f9l\u00f9", "Lufuimi", "Kab\u00e0l\u00e0sh\u00ecp\u00f9", "L\u00f9sh\u00eck\u00e0", "Lutongolo", "Lung\u00f9di", "Kasw\u00e8k\u00e8s\u00e8", "Cisw\u00e0" ], "SHORTDAY": [ "Lum", "Nko", "Ndy", "Ndg", "Njw", "Ngv", "Lub" ], "SHORTMONTH": [ "Cio", "Lui", "Lus", "Muu", "Lum", "Luf", "Kab", "Lush", "Lut", "Lun", "Kas", "Cis" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d/M/y HH:mm", "shortDate": "d/M/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FrCD", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a4", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "lu-cd", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
jasonpang/cdnjs
ajax/libs/angular-i18n/1.4.0-rc.2/angular-locale_lu-cd.js
JavaScript
mit
2,621
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "Subbaahi", "Zaarikay b" ], "DAY": [ "Alhadi", "Atinni", "Atalaata", "Alarba", "Alhamiisa", "Alzuma", "Asibti" ], "ERANAMES": [ "Isaa jine", "Isaa zamanoo" ], "ERAS": [ "IJ", "IZ" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "\u017danwiye", "Feewiriye", "Marsi", "Awiril", "Me", "\u017duwe\u014b", "\u017duyye", "Ut", "Sektanbur", "Oktoobur", "Noowanbur", "Deesanbur" ], "SHORTDAY": [ "Alh", "Ati", "Ata", "Ala", "Alm", "Alz", "Asi" ], "SHORTMONTH": [ "\u017dan", "Fee", "Mar", "Awi", "Me", "\u017duw", "\u017duy", "Ut", "Sek", "Okt", "Noo", "Dee" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d/M/y HH:mm", "shortDate": "d/M/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CFA", "DECIMAL_SEP": ".", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a4", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "twq-ne", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
reinforced/Reinforced.Typings
Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/Scripts/i18n/angular-locale_twq-ne.js
JavaScript
mit
2,504
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "\u10d9\u10d5\u10d8\u10e0\u10d0", "\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8", "\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8", "\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8" ], "ERANAMES": [ "\u10eb\u10d5\u10d4\u10da\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7", "\u10d0\u10ee\u10d0\u10da\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7" ], "ERAS": [ "\u10eb\u10d5. \u10ec.", "\u10d0\u10ee. \u10ec." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8", "\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8", "\u10db\u10d0\u10e0\u10e2\u10d8", "\u10d0\u10de\u10e0\u10d8\u10da\u10d8", "\u10db\u10d0\u10d8\u10e1\u10d8", "\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8", "\u10d8\u10d5\u10da\u10d8\u10e1\u10d8", "\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd", "\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8", "\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8", "\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8", "\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8" ], "SHORTDAY": [ "\u10d9\u10d5\u10d8", "\u10dd\u10e0\u10e8", "\u10e1\u10d0\u10db", "\u10dd\u10d7\u10ee", "\u10ee\u10e3\u10d7", "\u10de\u10d0\u10e0", "\u10e8\u10d0\u10d1" ], "SHORTMONTH": [ "\u10d8\u10d0\u10dc", "\u10d7\u10d4\u10d1", "\u10db\u10d0\u10e0", "\u10d0\u10de\u10e0", "\u10db\u10d0\u10d8", "\u10d8\u10d5\u10dc", "\u10d8\u10d5\u10da", "\u10d0\u10d2\u10d5", "\u10e1\u10d4\u10e5", "\u10dd\u10e5\u10e2", "\u10dc\u10dd\u10d4", "\u10d3\u10d4\u10d9" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, dd MMMM, y", "longDate": "d MMMM, y", "medium": "d MMM, y HH:mm:ss", "mediumDate": "d MMM, y", "mediumTime": "HH:mm:ss", "short": "dd.MM.yy HH:mm", "shortDate": "dd.MM.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "GEL", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "ka-ge", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
tjbp/cdnjs
ajax/libs/angular-i18n/1.4.0/angular-locale_ka-ge.js
JavaScript
mit
3,334
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "am", "pm" ], "DAY": [ "\u09b0\u09ac\u09bf\u09ac\u09be\u09b0", "\u09b8\u09cb\u09ae\u09ac\u09be\u09b0", "\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0", "\u09ac\u09c1\u09a7\u09ac\u09be\u09b0", "\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0", "\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0", "\u09b6\u09a8\u09bf\u09ac\u09be\u09b0" ], "ERANAMES": [ "\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac", "\u0996\u09c3\u09b7\u09cd\u099f\u09be\u09ac\u09cd\u09a6" ], "ERAS": [ "\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac", "\u0996\u09c3\u09b7\u09cd\u099f\u09be\u09ac\u09cd\u09a6" ], "FIRSTDAYOFWEEK": 4, "MONTH": [ "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", "\u09ae\u09be\u09b0\u09cd\u099a", "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", "\u09ae\u09c7", "\u099c\u09c1\u09a8", "\u099c\u09c1\u09b2\u09be\u0987", "\u0986\u0997\u09b8\u09cd\u099f", "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" ], "SHORTDAY": [ "\u09b0\u09ac\u09bf", "\u09b8\u09cb\u09ae", "\u09ae\u0999\u09cd\u0997\u09b2", "\u09ac\u09c1\u09a7", "\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf", "\u09b6\u09c1\u0995\u09cd\u09b0", "\u09b6\u09a8\u09bf" ], "SHORTMONTH": [ "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", "\u09ae\u09be\u09b0\u09cd\u099a", "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", "\u09ae\u09c7", "\u099c\u09c1\u09a8", "\u099c\u09c1\u09b2\u09be\u0987", "\u0986\u0997\u09b8\u09cd\u099f", "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM, y", "longDate": "d MMMM, y", "medium": "d MMM, y h:mm:ss a", "mediumDate": "d MMM, y", "mediumTime": "h:mm:ss a", "short": "d/M/yy h:mm a", "shortDate": "d/M/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u09f3", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 2, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 2, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a4", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "bn", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
boneskull/cdnjs
ajax/libs/angular.js/1.4.5/i18n/angular-locale_bn.js
JavaScript
mit
3,562
/* HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</style>"; c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| "undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
ChuyuHsu/chuyuhsu.github.io
assets/js/vendor/html5shiv.min.js
JavaScript
mit
2,428
var parse = require('../'); var test = require('tape'); test('parse args', function (t) { t.deepEqual( parse([ '--no-moo' ]), { moo : false, _ : [] }, 'no' ); t.deepEqual( parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]), { v : ['a','b','c'], _ : [] }, 'multi' ); t.end(); }); test('comprehensive', function (t) { t.deepEqual( parse([ '--name=meowmers', 'bare', '-cats', 'woo', '-h', 'awesome', '--multi=quux', '--key', 'value', '-b', '--bool', '--no-meep', '--multi=baz', '--', '--not-a-flag', 'eek' ]), { c : true, a : true, t : true, s : 'woo', h : 'awesome', b : true, bool : true, key : 'value', multi : [ 'quux', 'baz' ], meep : false, name : 'meowmers', _ : [ 'bare', '--not-a-flag', 'eek' ] } ); t.end(); }); test('flag boolean', function (t) { var argv = parse([ '-t', 'moo' ], { boolean: 't' }); t.deepEqual(argv, { t : true, _ : [ 'moo' ] }); t.deepEqual(typeof argv.t, 'boolean'); t.end(); }); test('flag boolean value', function (t) { var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], { boolean: [ 't', 'verbose' ], default: { verbose: true } }); t.deepEqual(argv, { verbose: false, t: true, _: ['moo'] }); t.deepEqual(typeof argv.verbose, 'boolean'); t.deepEqual(typeof argv.t, 'boolean'); t.end(); }); test('newlines in params' , function (t) { var args = parse([ '-s', "X\nX" ]) t.deepEqual(args, { _ : [], s : "X\nX" }); // reproduce in bash: // VALUE="new // line" // node program.js --s="$VALUE" args = parse([ "--s=X\nX" ]) t.deepEqual(args, { _ : [], s : "X\nX" }); t.end(); }); test('strings' , function (t) { var s = parse([ '-s', '0001234' ], { string: 's' }).s; t.equal(s, '0001234'); t.equal(typeof s, 'string'); var x = parse([ '-x', '56' ], { string: 'x' }).x; t.equal(x, '56'); t.equal(typeof x, 'string'); t.end(); }); test('stringArgs', function (t) { var s = parse([ ' ', ' ' ], { string: '_' })._; t.same(s.length, 2); t.same(typeof s[0], 'string'); t.same(s[0], ' '); t.same(typeof s[1], 'string'); t.same(s[1], ' '); t.end(); }); test('empty strings', function(t) { var s = parse([ '-s' ], { string: 's' }).s; t.equal(s, ''); t.equal(typeof s, 'string'); var str = parse([ '--str' ], { string: 'str' }).str; t.equal(str, ''); t.equal(typeof str, 'string'); var letters = parse([ '-art' ], { string: [ 'a', 't' ] }); t.equal(letters.a, ''); t.equal(letters.r, true); t.equal(letters.t, ''); t.end(); }); test('string and alias', function(t) { var x = parse([ '--str', '000123' ], { string: 's', alias: { s: 'str' } }); t.equal(x.str, '000123'); t.equal(typeof x.str, 'string'); t.equal(x.s, '000123'); t.equal(typeof x.s, 'string'); var y = parse([ '-s', '000123' ], { string: 'str', alias: { str: 's' } }); t.equal(y.str, '000123'); t.equal(typeof y.str, 'string'); t.equal(y.s, '000123'); t.equal(typeof y.s, 'string'); t.end(); }); test('slashBreak', function (t) { t.same( parse([ '-I/foo/bar/baz' ]), { I : '/foo/bar/baz', _ : [] } ); t.same( parse([ '-xyz/foo/bar/baz' ]), { x : true, y : true, z : '/foo/bar/baz', _ : [] } ); t.end(); }); test('alias', function (t) { var argv = parse([ '-f', '11', '--zoom', '55' ], { alias: { z: 'zoom' } }); t.equal(argv.zoom, 55); t.equal(argv.z, argv.zoom); t.equal(argv.f, 11); t.end(); }); test('multiAlias', function (t) { var argv = parse([ '-f', '11', '--zoom', '55' ], { alias: { z: [ 'zm', 'zoom' ] } }); t.equal(argv.zoom, 55); t.equal(argv.z, argv.zoom); t.equal(argv.z, argv.zm); t.equal(argv.f, 11); t.end(); }); test('nested dotted objects', function (t) { var argv = parse([ '--foo.bar', '3', '--foo.baz', '4', '--foo.quux.quibble', '5', '--foo.quux.o_O', '--beep.boop' ]); t.same(argv.foo, { bar : 3, baz : 4, quux : { quibble : 5, o_O : true } }); t.same(argv.beep, { boop : true }); t.end(); });
rirakku/Biblog
node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/parse.js
JavaScript
mit
4,606
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. module.exports = PassThrough; var Transform = require('./_stream_transform'); /*<replacement>*/ var util = require('core-util-is'); util.inherits = require('inherits'); /*</replacement>*/ util.inherits(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function(chunk, encoding, cb) { cb(null, chunk); };
soltrinox/vator-api-serv
node_modules/bower/node_modules/tar-fs/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js
JavaScript
mit
1,727
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { BaseWrappedException } from './base_wrapped_exception'; export { ExceptionHandler } from './exception_handler'; /** * @stable */ export declare class BaseException extends Error { message: string; stack: any; constructor(message?: string); toString(): string; } /** * Wraps an exception and provides additional context or information. * @stable */ export declare class WrappedException extends BaseWrappedException { private _wrapperMessage; private _originalException; private _originalStack; private _context; private _wrapperStack; constructor(_wrapperMessage: string, _originalException: any, _originalStack?: any, _context?: any); wrapperMessage: string; wrapperStack: any; originalException: any; originalStack: any; context: any; message: string; toString(): string; } export declare function makeTypeError(message?: string): Error; export declare function unimplemented(): any;
tafazul/Angular
node_modules/@angular/common/src/facade/exceptions.d.ts
TypeScript
mit
1,171
/** * Created by JetBrains PhpStorm. * User: taoqili * Date: 12-2-20 * Time: 上午11:19 * To change this template use File | Settings | File Templates. */ (function(){ var video = {}, uploadVideoList = [], isModifyUploadVideo = false, uploadFile; window.onload = function(){ $focus($G("videoUrl")); initTabs(); initVideo(); initUpload(); }; /* 初始化tab标签 */ function initTabs(){ var tabs = $G('tabHeads').children; for (var i = 0; i < tabs.length; i++) { domUtils.on(tabs[i], "click", function (e) { var j, bodyId, target = e.target || e.srcElement; for (j = 0; j < tabs.length; j++) { bodyId = tabs[j].getAttribute('data-content-id'); if(tabs[j] == target){ domUtils.addClass(tabs[j], 'focus'); domUtils.addClass($G(bodyId), 'focus'); }else { domUtils.removeClasses(tabs[j], 'focus'); domUtils.removeClasses($G(bodyId), 'focus'); } } }); } } function initVideo(){ createAlignButton( ["videoFloat", "upload_alignment"] ); addUrlChangeListener($G("videoUrl")); addOkListener(); //编辑视频时初始化相关信息 (function(){ var img = editor.selection.getRange().getClosedNode(),url; if(img && img.className){ var hasFakedClass = (img.className == "edui-faked-video"), hasUploadClass = img.className.indexOf("edui-upload-video")!=-1; if(hasFakedClass || hasUploadClass) { $G("videoUrl").value = url = img.getAttribute("_url"); $G("videoWidth").value = img.width; $G("videoHeight").value = img.height; var align = domUtils.getComputedStyle(img,"float"), parentAlign = domUtils.getComputedStyle(img.parentNode,"text-align"); updateAlignButton(parentAlign==="center"?"center":align); } if(hasUploadClass) { isModifyUploadVideo = true; } } createPreviewVideo(url); })(); } /** * 监听确认和取消两个按钮事件,用户执行插入或者清空正在播放的视频实例操作 */ function addOkListener(){ dialog.onok = function(){ $G("preview").innerHTML = ""; var currentTab = findFocus("tabHeads","tabSrc"); switch(currentTab){ case "video": return insertSingle(); break; case "videoSearch": return insertSearch("searchList"); break; case "upload": return insertUpload(); break; } }; dialog.oncancel = function(){ $G("preview").innerHTML = ""; }; } /** * 依据传入的align值更新按钮信息 * @param align */ function updateAlignButton( align ) { var aligns = $G( "videoFloat" ).children; for ( var i = 0, ci; ci = aligns[i++]; ) { if ( ci.getAttribute( "name" ) == align ) { if ( ci.className !="focus" ) { ci.className = "focus"; } } else { if ( ci.className =="focus" ) { ci.className = ""; } } } } /** * 将单个视频信息插入编辑器中 */ function insertSingle(){ var width = $G("videoWidth"), height = $G("videoHeight"), url=$G('videoUrl').value, align = findFocus("videoFloat","name"); if(!url) return false; if ( !checkNum( [width, height] ) ) return false; editor.execCommand('insertvideo', { url: convert_url(url), width: width.value, height: height.value, align: align }, isModifyUploadVideo ? 'upload':null); } /** * 将元素id下的所有代表视频的图片插入编辑器中 * @param id */ function insertSearch(id){ var imgs = domUtils.getElementsByTagName($G(id),"img"), videoObjs=[]; for(var i=0,img; img=imgs[i++];){ if(img.getAttribute("selected")){ videoObjs.push({ url:img.getAttribute("ue_video_url"), width:420, height:280, align:"none" }); } } editor.execCommand('insertvideo',videoObjs); } /** * 找到id下具有focus类的节点并返回该节点下的某个属性 * @param id * @param returnProperty */ function findFocus( id, returnProperty ) { var tabs = $G( id ).children, property; for ( var i = 0, ci; ci = tabs[i++]; ) { if ( ci.className=="focus" ) { property = ci.getAttribute( returnProperty ); break; } } return property; } function convert_url(url){ if ( !url ) return ''; url = utils.trim(url) .replace(/v\.youku\.com\/v_show\/id_([\w\-=]+)\.html/i, 'player.youku.com/player.php/sid/$1/v.swf') .replace(/(www\.)?youtube\.com\/watch\?v=([\w\-]+)/i, "www.youtube.com/v/$2") .replace(/youtu.be\/(\w+)$/i, "www.youtube.com/v/$1") .replace(/v\.ku6\.com\/.+\/([\w\.]+)\.html.*$/i, "player.ku6.com/refer/$1/v.swf") .replace(/www\.56\.com\/u\d+\/v_([\w\-]+)\.html/i, "player.56.com/v_$1.swf") .replace(/www.56.com\/w\d+\/play_album\-aid\-\d+_vid\-([^.]+)\.html/i, "player.56.com/v_$1.swf") .replace(/v\.pps\.tv\/play_([\w]+)\.html.*$/i, "player.pps.tv/player/sid/$1/v.swf") .replace(/www\.letv\.com\/ptv\/vplay\/([\d]+)\.html.*$/i, "i7.imgs.letv.com/player/swfPlayer.swf?id=$1&autoplay=0") .replace(/www\.tudou\.com\/programs\/view\/([\w\-]+)\/?/i, "www.tudou.com/v/$1") .replace(/v\.qq\.com\/cover\/[\w]+\/[\w]+\/([\w]+)\.html/i, "static.video.qq.com/TPout.swf?vid=$1") .replace(/v\.qq\.com\/.+[\?\&]vid=([^&]+).*$/i, "static.video.qq.com/TPout.swf?vid=$1") .replace(/my\.tv\.sohu\.com\/[\w]+\/[\d]+\/([\d]+)\.shtml.*$/i, "share.vrs.sohu.com/my/v.swf&id=$1"); return url; } /** * 检测传入的所有input框中输入的长宽是否是正数 * @param nodes input框集合, */ function checkNum( nodes ) { for ( var i = 0, ci; ci = nodes[i++]; ) { var value = ci.value; if ( !isNumber( value ) && value) { alert( lang.numError ); ci.value = ""; ci.focus(); return false; } } return true; } /** * 数字判断 * @param value */ function isNumber( value ) { return /(0|^[1-9]\d*$)/.test( value ); } /** * 创建图片浮动选择按钮 * @param ids */ function createAlignButton( ids ) { for ( var i = 0, ci; ci = ids[i++]; ) { var floatContainer = $G( ci ), nameMaps = {"none":lang['default'], "left":lang.floatLeft, "right":lang.floatRight, "center":lang.block}; for ( var j in nameMaps ) { var div = document.createElement( "div" ); div.setAttribute( "name", j ); if ( j == "none" ) div.className="focus"; div.style.cssText = "background:url(images/" + j + "_focus.jpg);"; div.setAttribute( "title", nameMaps[j] ); floatContainer.appendChild( div ); } switchSelect( ci ); } } /** * 选择切换 * @param selectParentId */ function switchSelect( selectParentId ) { var selects = $G( selectParentId ).children; for ( var i = 0, ci; ci = selects[i++]; ) { domUtils.on( ci, "click", function () { for ( var j = 0, cj; cj = selects[j++]; ) { cj.className = ""; cj.removeAttribute && cj.removeAttribute( "class" ); } this.className = "focus"; } ) } } /** * 监听url改变事件 * @param url */ function addUrlChangeListener(url){ if (browser.ie) { url.onpropertychange = function () { createPreviewVideo( this.value ); } } else { url.addEventListener( "input", function () { createPreviewVideo( this.value ); }, false ); } } /** * 根据url生成视频预览 * @param url */ function createPreviewVideo(url){ if ( !url )return; var conUrl = convert_url(url); $G("preview").innerHTML = '<div class="previewMsg"><span>'+lang.urlError+'</span></div>'+ '<embed class="previewVideo" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"' + ' src="' + conUrl + '"' + ' width="' + 420 + '"' + ' height="' + 280 + '"' + ' wmode="transparent" play="true" loop="false" menu="false" allowscriptaccess="never" allowfullscreen="true" >' + '</embed>'; } /* 插入上传视频 */ function insertUpload(){ var videoObjs=[], uploadDir = editor.getOpt('videoUrlPrefix'), width = $G('upload_width').value || 420, height = $G('upload_height').value || 280, align = findFocus("upload_alignment","name") || 'none'; for(var key in uploadVideoList) { var file = uploadVideoList[key]; videoObjs.push({ url: uploadDir + file.url, width:width, height:height, align:align }); } var count = uploadFile.getQueueCount(); if (count) { $('.info', '#queueList').html('<span style="color:red;">' + '还有2个未上传文件'.replace(/[\d]/, count) + '</span>'); return false; } else { editor.execCommand('insertvideo', videoObjs, 'upload'); } } /*初始化上传标签*/ function initUpload(){ uploadFile = new UploadFile('queueList'); } /* 上传附件 */ function UploadFile(target) { this.$wrap = target.constructor == String ? $('#' + target) : $(target); this.init(); } UploadFile.prototype = { init: function () { this.fileList = []; this.initContainer(); this.initUploader(); }, initContainer: function () { this.$queue = this.$wrap.find('.filelist'); }, /* 初始化容器 */ initUploader: function () { var _this = this, $ = jQuery, // just in case. Make sure it's not an other libaray. $wrap = _this.$wrap, // 图片容器 $queue = $wrap.find('.filelist'), // 状态栏,包括进度和控制按钮 $statusBar = $wrap.find('.statusBar'), // 文件总体选择信息。 $info = $statusBar.find('.info'), // 上传按钮 $upload = $wrap.find('.uploadBtn'), // 上传按钮 $filePickerBtn = $wrap.find('.filePickerBtn'), // 上传按钮 $filePickerBlock = $wrap.find('.filePickerBlock'), // 没选择文件之前的内容。 $placeHolder = $wrap.find('.placeholder'), // 总体进度条 $progress = $statusBar.find('.progress').hide(), // 添加的文件数量 fileCount = 0, // 添加的文件总大小 fileSize = 0, // 优化retina, 在retina下这个值是2 ratio = window.devicePixelRatio || 1, // 缩略图大小 thumbnailWidth = 113 * ratio, thumbnailHeight = 113 * ratio, // 可能有pedding, ready, uploading, confirm, done. state = '', // 所有文件的进度信息,key为file id percentages = {}, supportTransition = (function () { var s = document.createElement('p').style, r = 'transition' in s || 'WebkitTransition' in s || 'MozTransition' in s || 'msTransition' in s || 'OTransition' in s; s = null; return r; })(), // WebUploader实例 uploader, actionUrl = editor.getActionUrl(editor.getOpt('videoActionName')), fileMaxSize = editor.getOpt('videoMaxSize'), acceptExtensions = (editor.getOpt('videoAllowFiles') || []).join('').replace(/\./g, ',').replace(/^[,]/, '');; if (!WebUploader.Uploader.support()) { $('#filePickerReady').after($('<div>').html(lang.errorNotSupport)).hide(); return; } else if (!editor.getOpt('videoActionName')) { $('#filePickerReady').after($('<div>').html(lang.errorLoadConfig)).hide(); return; } uploader = _this.uploader = WebUploader.create({ pick: { id: '#filePickerReady', label: lang.uploadSelectFile }, swf: '../../third-party/webuploader/Uploader.swf', server: actionUrl, fileVal: editor.getOpt('videoFieldName'), duplicate: true, fileSingleSizeLimit: fileMaxSize, compress: false }); uploader.addButton({ id: '#filePickerBlock' }); uploader.addButton({ id: '#filePickerBtn', label: lang.uploadAddFile }); setState('pedding'); // 当有文件添加进来时执行,负责view的创建 function addFile(file) { var $li = $('<li id="' + file.id + '">' + '<p class="title">' + file.name + '</p>' + '<p class="imgWrap"></p>' + '<p class="progress"><span></span></p>' + '</li>'), $btns = $('<div class="file-panel">' + '<span class="cancel">' + lang.uploadDelete + '</span>' + '<span class="rotateRight">' + lang.uploadTurnRight + '</span>' + '<span class="rotateLeft">' + lang.uploadTurnLeft + '</span></div>').appendTo($li), $prgress = $li.find('p.progress span'), $wrap = $li.find('p.imgWrap'), $info = $('<p class="error"></p>').hide().appendTo($li), showError = function (code) { switch (code) { case 'exceed_size': text = lang.errorExceedSize; break; case 'interrupt': text = lang.errorInterrupt; break; case 'http': text = lang.errorHttp; break; case 'not_allow_type': text = lang.errorFileType; break; default: text = lang.errorUploadRetry; break; } $info.text(text).show(); }; if (file.getStatus() === 'invalid') { showError(file.statusText); } else { $wrap.text(lang.uploadPreview); if ('|png|jpg|jpeg|bmp|gif|'.indexOf('|'+file.ext.toLowerCase()+'|') == -1) { $wrap.empty().addClass('notimage').append('<i class="file-preview file-type-' + file.ext.toLowerCase() + '"></i>' + '<span class="file-title">' + file.name + '</span>'); } else { if (browser.ie && browser.version <= 7) { $wrap.text(lang.uploadNoPreview); } else { uploader.makeThumb(file, function (error, src) { if (error || !src || (/^data:/.test(src) && browser.ie && browser.version <= 7)) { $wrap.text(lang.uploadNoPreview); } else { var $img = $('<img src="' + src + '">'); $wrap.empty().append($img); $img.on('error', function () { $wrap.text(lang.uploadNoPreview); }); } }, thumbnailWidth, thumbnailHeight); } } percentages[ file.id ] = [ file.size, 0 ]; file.rotation = 0; /* 检查文件格式 */ if (!file.ext || acceptExtensions.indexOf(file.ext.toLowerCase()) == -1) { showError('not_allow_type'); uploader.removeFile(file); } } file.on('statuschange', function (cur, prev) { if (prev === 'progress') { $prgress.hide().width(0); } else if (prev === 'queued') { $li.off('mouseenter mouseleave'); $btns.remove(); } // 成功 if (cur === 'error' || cur === 'invalid') { showError(file.statusText); percentages[ file.id ][ 1 ] = 1; } else if (cur === 'interrupt') { showError('interrupt'); } else if (cur === 'queued') { percentages[ file.id ][ 1 ] = 0; } else if (cur === 'progress') { $info.hide(); $prgress.css('display', 'block'); } else if (cur === 'complete') { } $li.removeClass('state-' + prev).addClass('state-' + cur); }); $li.on('mouseenter', function () { $btns.stop().animate({height: 30}); }); $li.on('mouseleave', function () { $btns.stop().animate({height: 0}); }); $btns.on('click', 'span', function () { var index = $(this).index(), deg; switch (index) { case 0: uploader.removeFile(file); return; case 1: file.rotation += 90; break; case 2: file.rotation -= 90; break; } if (supportTransition) { deg = 'rotate(' + file.rotation + 'deg)'; $wrap.css({ '-webkit-transform': deg, '-mos-transform': deg, '-o-transform': deg, 'transform': deg }); } else { $wrap.css('filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + (~~((file.rotation / 90) % 4 + 4) % 4) + ')'); } }); $li.insertBefore($filePickerBlock); } // 负责view的销毁 function removeFile(file) { var $li = $('#' + file.id); delete percentages[ file.id ]; updateTotalProgress(); $li.off().find('.file-panel').off().end().remove(); } function updateTotalProgress() { var loaded = 0, total = 0, spans = $progress.children(), percent; $.each(percentages, function (k, v) { total += v[ 0 ]; loaded += v[ 0 ] * v[ 1 ]; }); percent = total ? loaded / total : 0; spans.eq(0).text(Math.round(percent * 100) + '%'); spans.eq(1).css('width', Math.round(percent * 100) + '%'); updateStatus(); } function setState(val, files) { if (val != state) { var stats = uploader.getStats(); $upload.removeClass('state-' + state); $upload.addClass('state-' + val); switch (val) { /* 未选择文件 */ case 'pedding': $queue.addClass('element-invisible'); $statusBar.addClass('element-invisible'); $placeHolder.removeClass('element-invisible'); $progress.hide(); $info.hide(); uploader.refresh(); break; /* 可以开始上传 */ case 'ready': $placeHolder.addClass('element-invisible'); $queue.removeClass('element-invisible'); $statusBar.removeClass('element-invisible'); $progress.hide(); $info.show(); $upload.text(lang.uploadStart); uploader.refresh(); break; /* 上传中 */ case 'uploading': $progress.show(); $info.hide(); $upload.text(lang.uploadPause); break; /* 暂停上传 */ case 'paused': $progress.show(); $info.hide(); $upload.text(lang.uploadContinue); break; case 'confirm': $progress.show(); $info.hide(); $upload.text(lang.uploadStart); stats = uploader.getStats(); if (stats.successNum && !stats.uploadFailNum) { setState('finish'); return; } break; case 'finish': $progress.hide(); $info.show(); if (stats.uploadFailNum) { $upload.text(lang.uploadRetry); } else { $upload.text(lang.uploadStart); } break; } state = val; updateStatus(); } if (!_this.getQueueCount()) { $upload.addClass('disabled') } else { $upload.removeClass('disabled') } } function updateStatus() { var text = '', stats; if (state === 'ready') { text = lang.updateStatusReady.replace('_', fileCount).replace('_KB', WebUploader.formatSize(fileSize)); } else if (state === 'confirm') { stats = uploader.getStats(); if (stats.uploadFailNum) { text = lang.updateStatusConfirm.replace('_', stats.successNum).replace('_', stats.successNum); } } else { stats = uploader.getStats(); text = lang.updateStatusFinish.replace('_', fileCount). replace('_KB', WebUploader.formatSize(fileSize)). replace('_', stats.successNum); if (stats.uploadFailNum) { text += lang.updateStatusError.replace('_', stats.uploadFailNum); } } $info.html(text); } uploader.on('fileQueued', function (file) { fileCount++; fileSize += file.size; if (fileCount === 1) { $placeHolder.addClass('element-invisible'); $statusBar.show(); } addFile(file); }); uploader.on('fileDequeued', function (file) { fileCount--; fileSize -= file.size; removeFile(file); updateTotalProgress(); }); uploader.on('filesQueued', function (file) { if (!uploader.isInProgress() && (state == 'pedding' || state == 'finish' || state == 'confirm' || state == 'ready')) { setState('ready'); } updateTotalProgress(); }); uploader.on('all', function (type, files) { switch (type) { case 'uploadFinished': setState('confirm', files); break; case 'startUpload': /* 添加额外的GET参数 */ var params = utils.serializeParam(editor.queryCommandValue('serverparam')) || '', url = utils.formatUrl(actionUrl + (actionUrl.indexOf('?') == -1 ? '?':'&') + 'encode=utf-8&' + params); uploader.option('server', url); setState('uploading', files); break; case 'stopUpload': setState('paused', files); break; } }); uploader.on('uploadBeforeSend', function (file, data, header) { //这里可以通过data对象添加POST参数 header['X_Requested_With'] = 'XMLHttpRequest'; }); uploader.on('uploadProgress', function (file, percentage) { var $li = $('#' + file.id), $percent = $li.find('.progress span'); $percent.css('width', percentage * 100 + '%'); percentages[ file.id ][ 1 ] = percentage; updateTotalProgress(); }); uploader.on('uploadSuccess', function (file, ret) { var $file = $('#' + file.id); try { var responseText = (ret._raw || ret), json = utils.str2json(responseText); if (json.state == 'SUCCESS') { uploadVideoList.push({ 'url': json.url, 'type': json.type, 'original':json.original }); $file.append('<span class="success"></span>'); } else { $file.find('.error').text(json.state).show(); } } catch (e) { $file.find('.error').text(lang.errorServerUpload).show(); } }); uploader.on('uploadError', function (file, code) { }); uploader.on('error', function (code, file) { if (code == 'Q_TYPE_DENIED' || code == 'F_EXCEED_SIZE') { addFile(file); } }); uploader.on('uploadComplete', function (file, ret) { }); $upload.on('click', function () { if ($(this).hasClass('disabled')) { return false; } if (state === 'ready') { uploader.upload(); } else if (state === 'paused') { uploader.upload(); } else if (state === 'uploading') { uploader.stop(); } }); $upload.addClass('state-' + state); updateTotalProgress(); }, getQueueCount: function () { var file, i, status, readyFile = 0, files = this.uploader.getFiles(); for (i = 0; file = files[i++]; ) { status = file.getStatus(); if (status == 'queued' || status == 'uploading' || status == 'progress') readyFile++; } return readyFile; }, refresh: function(){ this.uploader.refresh(); } }; })();
sohenk/CI3RABC
static/ueditor/dialogs/video/video.js
JavaScript
mit
30,889
/*! * # Semantic UI 1.12.1 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Checkbox *******************************/ /*-------------- Content ---------------*/ .ui.checkbox { position: relative; display: inline-block; min-height: 17px; font-size: 1rem; line-height: 15px; min-width: 17px; -webkit-backface-visibility: hidden; backface-visibility: hidden; outline: none; vertical-align: middle; } .ui.checkbox input[type="checkbox"], .ui.checkbox input[type="radio"] { position: absolute; top: 0px; left: 0px; opacity: 0 !important; outline: none; z-index: -1; } /*-------------- Box ---------------*/ .ui.checkbox .box, .ui.checkbox label { display: block; cursor: pointer; padding-left: 1.75em; outline: none; } .ui.checkbox label { font-size: 1em; } .ui.checkbox .box:before, .ui.checkbox label:before { position: absolute; line-height: 1; width: 17px; height: 17px; top: 0em; left: 0em; content: ''; background: #ffffff; border-radius: 0.25em; -webkit-transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease; transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease; border: 1px solid #d4d4d5; } /*-------------- Checkmark ---------------*/ .ui.checkbox .box:after, .ui.checkbox label:after { position: absolute; top: 0px; left: 0px; line-height: 17px; width: 17px; height: 17px; text-align: center; opacity: 0; color: rgba(0, 0, 0, 0.8); -webkit-transition: all 0.1s ease; transition: all 0.1s ease; } /*-------------- Label ---------------*/ /* Inside */ .ui.checkbox label, .ui.checkbox + label { cursor: pointer; color: rgba(0, 0, 0, 0.8); -webkit-transition: color 0.2s ease; transition: color 0.2s ease; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Outside */ .ui.checkbox + label { vertical-align: middle; } /******************************* States *******************************/ /*-------------- Hover ---------------*/ .ui.checkbox .box:hover::before, .ui.checkbox label:hover::before { background: #ffffff; border: 1px solid rgba(39, 41, 43, 0.3); } .ui.checkbox label:hover, .ui.checkbox + label:hover { color: rgba(0, 0, 0, 0.8); } /*-------------- Down ---------------*/ .ui.checkbox .box:active::before, .ui.checkbox label:active::before { background: #f5f5f5; border: 1px solid 1px solid rgba(39, 41, 43, 0.3); } .ui.checkbox input[type="checkbox"]:active ~ label, .ui.checkbox input[type="radio"]:active ~ label { color: rgba(0, 0, 0, 0.8); } /*-------------- Focus ---------------*/ .ui.checkbox input[type="checkbox"]:focus ~ .box:before, .ui.checkbox input[type="checkbox"]:focus ~ label:before, .ui.checkbox input[type="radio"]:focus ~ .box:before, .ui.checkbox input[type="radio"]:focus ~ label:before { background: #f5f5f5; border: 1px solid 1px solid rgba(39, 41, 43, 0.3); } .ui.checkbox input[type="checkbox"]:focus ~ label, .ui.checkbox input[type="radio"]:focus ~ label { color: rgba(0, 0, 0, 0.8); } /*-------------- Active ---------------*/ .ui.checkbox input[type="checkbox"]:checked ~ .box:after, .ui.checkbox input[type="checkbox"]:checked ~ label:after, .ui.checkbox input[type="radio"]:checked ~ .box:after, .ui.checkbox input[type="radio"]:checked ~ label:after { opacity: 1; } /*-------------- Read-Only ---------------*/ .ui.read-only.checkbox, .ui.read-only.checkbox label { cursor: default; } /*-------------- Disabled ---------------*/ .ui.disabled.checkbox .box:after, .ui.disabled.checkbox label, .ui.checkbox input[type="checkbox"][disabled] ~ .box:after, .ui.checkbox input[type="checkbox"][disabled] ~ label, .ui.checkbox input[type="radio"][disabled] ~ .box:after, .ui.checkbox input[type="radio"][disabled] ~ label { cursor: default; opacity: 0.5; color: #000000; } /******************************* Types *******************************/ /*-------------- Radio ---------------*/ .ui.radio.checkbox { min-height: 14px; } /* Box */ .ui.radio.checkbox .box:before, .ui.radio.checkbox label:before { width: 14px; height: 14px; border-radius: 500rem; top: 1px; left: 0px; -webkit-transform: none; -ms-transform: none; transform: none; } /* Circle */ .ui.radio.checkbox .box:after, .ui.radio.checkbox label:after { border: none; width: 14px; height: 14px; line-height: 14px; top: 1px; left: 0px; font-size: 9px; } /* Radio Checkbox */ .ui.radio.checkbox .box:after, .ui.radio.checkbox label:after { width: 14px; height: 14px; border-radius: 500rem; -webkit-transform: scale(0.42857143); -ms-transform: scale(0.42857143); transform: scale(0.42857143); background-color: rgba(0, 0, 0, 0.8); } /*-------------- Slider ---------------*/ .ui.slider.checkbox { cursor: pointer; min-height: 1.25rem; } .ui.slider.checkbox .box, .ui.slider.checkbox label { padding-left: 4.5rem; line-height: 1rem; color: rgba(0, 0, 0, 0.4); } /* Line */ .ui.slider.checkbox .box:before, .ui.slider.checkbox label:before { cursor: pointer; display: block; position: absolute; content: ''; top: 0.4rem; left: 0em; z-index: 1; border: none !important; background-color: rgba(0, 0, 0, 0.05); width: 3.5rem; height: 0.25rem; -webkit-transform: none; -ms-transform: none; transform: none; border-radius: 500rem; -webkit-transition: background 0.3s ease ; transition: background 0.3s ease ; } /* Handle */ .ui.slider.checkbox .box:after, .ui.slider.checkbox label:after { background: #ffffff -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)); background: #ffffff linear-gradient(transparent, rgba(0, 0, 0, 0.05)); position: absolute; content: ''; opacity: 1; z-index: 2; border: none; box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15) inset; width: 1.5rem; height: 1.5rem; top: -0.25rem; left: 0em; -webkit-transform: none; -ms-transform: none; transform: none; border-radius: 500rem; -webkit-transition: left 0.3s ease 0s ; transition: left 0.3s ease 0s ; } /* Focus */ .ui.slider.checkbox input[type="checkbox"]:focus ~ .box:before, .ui.slider.checkbox input[type="checkbox"]:focus ~ label:before, .ui.slider.checkbox input[type="radio"]:focus ~ .box:before, .ui.slider.checkbox input[type="radio"]:focus ~ label:before { background-color: rgba(0, 0, 0, 0.1); border: none; } /* Hover */ .ui.slider.checkbox .box:hover, .ui.slider.checkbox label:hover { color: rgba(0, 0, 0, 0.8); } .ui.slider.checkbox .box:hover::before, .ui.slider.checkbox label:hover::before { background: rgba(0, 0, 0, 0.1); } /* Active */ .ui.slider.checkbox input[type="checkbox"]:checked ~ .box, .ui.slider.checkbox input[type="checkbox"]:checked ~ label, .ui.slider.checkbox input[type="radio"]:checked ~ .box, .ui.slider.checkbox input[type="radio"]:checked ~ label { color: rgba(0, 0, 0, 0.8); } .ui.slider.checkbox input[type="checkbox"]:checked ~ .box:before, .ui.slider.checkbox input[type="checkbox"]:checked ~ label:before, .ui.slider.checkbox input[type="radio"]:checked ~ .box:before, .ui.slider.checkbox input[type="radio"]:checked ~ label:before { background-color: rgba(0, 0, 0, 0.1); } .ui.slider.checkbox input[type="checkbox"]:checked ~ .box:after, .ui.slider.checkbox input[type="checkbox"]:checked ~ label:after, .ui.slider.checkbox input[type="radio"]:checked ~ .box:after, .ui.slider.checkbox input[type="radio"]:checked ~ label:after { left: 2rem; } /*-------------- Toggle ---------------*/ .ui.toggle.checkbox { cursor: pointer; min-height: 1.5rem; } .ui.toggle.checkbox .box, .ui.toggle.checkbox label { min-height: 1.5rem; padding-left: 4.5rem; color: rgba(0, 0, 0, 0.8); } .ui.toggle.checkbox label { padding-top: 0.15em; } /* Switch */ .ui.toggle.checkbox .box:before, .ui.toggle.checkbox label:before { cursor: pointer; display: block; position: absolute; content: ''; top: 0rem; z-index: 1; border: none; background-color: rgba(0, 0, 0, 0.05); width: 3.5rem; height: 1.5rem; border-radius: 500rem; } /* Handle */ .ui.toggle.checkbox .box:after, .ui.toggle.checkbox label:after { background: #ffffff -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)); background: #ffffff linear-gradient(transparent, rgba(0, 0, 0, 0.05)); position: absolute; content: ''; opacity: 1; z-index: 2; border: none; box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15) inset; width: 1.5rem; height: 1.5rem; top: 0rem; left: 0em; border-radius: 500rem; -webkit-transition: background 0.3s ease 0s, left 0.3s ease 0s ; transition: background 0.3s ease 0s, left 0.3s ease 0s ; } .ui.toggle.checkbox input[type="checkbox"] ~ .box:after, .ui.toggle.checkbox input[type="checkbox"] ~ label:after, .ui.toggle.checkbox input[type="radio"] ~ .box:after, .ui.toggle.checkbox input[type="radio"] ~ label:after { left: -0.05rem; } /* Focus */ .ui.toggle.checkbox input[type="checkbox"]:focus ~ .box:before, .ui.toggle.checkbox input[type="checkbox"]:focus ~ label:before, .ui.toggle.checkbox input[type="radio"]:focus ~ .box:before, .ui.toggle.checkbox input[type="radio"]:focus ~ label:before { background-color: rgba(0, 0, 0, 0.1); border: none; } /* Hover */ .ui.toggle.checkbox .box:hover::before, .ui.toggle.checkbox label:hover::before { background-color: rgba(0, 0, 0, 0.1); border: none; } /* Active */ .ui.toggle.checkbox input[type="checkbox"]:checked ~ .box, .ui.toggle.checkbox input[type="checkbox"]:checked ~ label, .ui.toggle.checkbox input[type="radio"]:checked ~ .box, .ui.toggle.checkbox input[type="radio"]:checked ~ label { color: #5bbd72; } .ui.toggle.checkbox input[type="checkbox"]:checked ~ .box:before, .ui.toggle.checkbox input[type="checkbox"]:checked ~ label:before, .ui.toggle.checkbox input[type="radio"]:checked ~ .box:before, .ui.toggle.checkbox input[type="radio"]:checked ~ label:before { background-color: #5bbd72; } .ui.toggle.checkbox input[type="checkbox"]:checked ~ .box:after, .ui.toggle.checkbox input[type="checkbox"]:checked ~ label:after, .ui.toggle.checkbox input[type="radio"]:checked ~ .box:after, .ui.toggle.checkbox input[type="radio"]:checked ~ label:after { left: 2.05rem; } /******************************* Variations *******************************/ /*-------------- Fitted ---------------*/ .ui.fitted.checkbox .box, .ui.fitted.checkbox label { padding-left: 0em !important; } .ui.fitted.toggle.checkbox, .ui.fitted.toggle.checkbox { width: 3.5rem; } .ui.fitted.slider.checkbox, .ui.fitted.slider.checkbox { width: 3.5rem; } /******************************* Theme Overrides *******************************/ @font-face { font-family: 'Checkbox'; src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwNNAAADgAAAACRobXR4CykAAAAAA6QAAAAMbG9jYQA4AFsAAAOwAAAACG1heHAApgm8AAADuAAAACBuYW1lzJ0aHAAAA9gAAALNcG9zdK69QJgAAAaoAAAAO3ByZXCSoZr/AAAQnAAAAFYAAQO4AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoAQNS/2oAWgMLAE8AAAABAAAAAAAAAAAAAwAAAAMAAAAcAAEAAAAAAEQAAwABAAAAHAAEACgAAAAGAAQAAQACAADoAf//AAAAAOgA//8AABgBAAEAAAAAAAAAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAADpAKYABUAHEAZDwEAAQFCAAIBAmoAAQABagAAAGEUFxQDEisBFAcBBiInASY0PwE2Mh8BATYyHwEWA6QP/iAQLBD+6g8PTBAsEKQBbhAsEEwPAhYWEP4gDw8BFhAsEEwQEKUBbxAQTBAAAAH//f+xA18DCwAMABJADwABAQpDAAAACwBEFRMCESsBFA4BIi4CPgEyHgEDWXLG6MhuBnq89Lp+AV51xHR0xOrEdHTEAAAAAAEAAAABAADDeRpdXw889QALA+gAAAAAzzWYjQAAAADPNWBN//3/sQOkAwsAAAAIAAIAAAAAAAAAAQAAA1L/agBaA+gAAP/3A6QAAQAAAAAAAAAAAAAAAAAAAAMD6AAAA+gAAANZAAAAAAAAADgAWwABAAAAAwAWAAEAAAAAAAIABgATAG4AAAAtCZEAAAAAAAAAEgDeAAEAAAAAAAAANQAAAAEAAAAAAAEACAA1AAEAAAAAAAIABwA9AAEAAAAAAAMACABEAAEAAAAAAAQACABMAAEAAAAAAAUACwBUAAEAAAAAAAYACABfAAEAAAAAAAoAKwBnAAEAAAAAAAsAEwCSAAMAAQQJAAAAagClAAMAAQQJAAEAEAEPAAMAAQQJAAIADgEfAAMAAQQJAAMAEAEtAAMAAQQJAAQAEAE9AAMAAQQJAAUAFgFNAAMAAQQJAAYAEAFjAAMAAQQJAAoAVgFzAAMAAQQJAAsAJgHJQ29weXJpZ2h0IChDKSAyMDE0IGJ5IG9yaWdpbmFsIGF1dGhvcnMgQCBmb250ZWxsby5jb21mb250ZWxsb1JlZ3VsYXJmb250ZWxsb2ZvbnRlbGxvVmVyc2lvbiAxLjBmb250ZWxsb0dlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAbwBwAHkAcgBpAGcAaAB0ACAAKABDACkAIAAyADAAMQA0ACAAYgB5ACAAbwByAGkAZwBpAG4AYQBsACAAYQB1AHQAaABvAHIAcwAgAEAAIABmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQBmAG8AbgB0AGUAbABsAG8AUgBlAGcAdQBsAGEAcgBmAG8AbgB0AGUAbABsAG8AZgBvAG4AdABlAGwAbABvAFYAZQByAHMAaQBvAG4AIAAxAC4AMABmAG8AbgB0AGUAbABsAG8ARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAQIBAwljaGVja21hcmsGY2lyY2xlAAAAAAEAAf//AA8AAAAAAAAAAAAAAAAAAAAAADIAMgML/7EDC/+xsAAssCBgZi2wASwgZCCwwFCwBCZasARFW1ghIyEbilggsFBQWCGwQFkbILA4UFghsDhZWSCwCkVhZLAoUFghsApFILAwUFghsDBZGyCwwFBYIGYgiophILAKUFhgGyCwIFBYIbAKYBsgsDZQWCGwNmAbYFlZWRuwACtZWSOwAFBYZVlZLbACLCBFILAEJWFkILAFQ1BYsAUjQrAGI0IbISFZsAFgLbADLCMhIyEgZLEFYkIgsAYjQrIKAAIqISCwBkMgiiCKsAArsTAFJYpRWGBQG2FSWVgjWSEgsEBTWLAAKxshsEBZI7AAUFhlWS2wBCywB0MrsgACAENgQi2wBSywByNCIyCwACNCYbCAYrABYLAEKi2wBiwgIEUgsAJFY7ABRWJgRLABYC2wBywgIEUgsAArI7ECBCVgIEWKI2EgZCCwIFBYIbAAG7AwUFiwIBuwQFlZI7AAUFhlWbADJSNhRESwAWAtsAgssQUFRbABYUQtsAkssAFgICCwCUNKsABQWCCwCSNCWbAKQ0qwAFJYILAKI0JZLbAKLCC4BABiILgEAGOKI2GwC0NgIIpgILALI0IjLbALLEtUWLEHAURZJLANZSN4LbAMLEtRWEtTWLEHAURZGyFZJLATZSN4LbANLLEADENVWLEMDEOwAWFCsAorWbAAQ7ACJUKxCQIlQrEKAiVCsAEWIyCwAyVQWLEBAENgsAQlQoqKIIojYbAJKiEjsAFhIIojYbAJKiEbsQEAQ2CwAiVCsAIlYbAJKiFZsAlDR7AKQ0dgsIBiILACRWOwAUViYLEAABMjRLABQ7AAPrIBAQFDYEItsA4ssQAFRVRYALAMI0IgYLABYbUNDQEACwBCQopgsQ0FK7BtKxsiWS2wDyyxAA4rLbAQLLEBDistsBEssQIOKy2wEiyxAw4rLbATLLEEDistsBQssQUOKy2wFSyxBg4rLbAWLLEHDistsBcssQgOKy2wGCyxCQ4rLbAZLLAIK7EABUVUWACwDCNCIGCwAWG1DQ0BAAsAQkKKYLENBSuwbSsbIlktsBossQAZKy2wGyyxARkrLbAcLLECGSstsB0ssQMZKy2wHiyxBBkrLbAfLLEFGSstsCAssQYZKy2wISyxBxkrLbAiLLEIGSstsCMssQkZKy2wJCwgPLABYC2wJSwgYLANYCBDI7ABYEOwAiVhsAFgsCQqIS2wJiywJSuwJSotsCcsICBHICCwAkVjsAFFYmAjYTgjIIpVWCBHICCwAkVjsAFFYmAjYTgbIVktsCgssQAFRVRYALABFrAnKrABFTAbIlktsCkssAgrsQAFRVRYALABFrAnKrABFTAbIlktsCosIDWwAWAtsCssALADRWOwAUVisAArsAJFY7ABRWKwACuwABa0AAAAAABEPiM4sSoBFSotsCwsIDwgRyCwAkVjsAFFYmCwAENhOC2wLSwuFzwtsC4sIDwgRyCwAkVjsAFFYmCwAENhsAFDYzgtsC8ssQIAFiUgLiBHsAAjQrACJUmKikcjRyNhIFhiGyFZsAEjQrIuAQEVFCotsDAssAAWsAQlsAQlRyNHI2GwBkUrZYouIyAgPIo4LbAxLLAAFrAEJbAEJSAuRyNHI2EgsAQjQrAGRSsgsGBQWCCwQFFYswIgAyAbswImAxpZQkIjILAIQyCKI0cjRyNhI0ZgsARDsIBiYCCwACsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsIBiYSMgILAEJiNGYTgbI7AIQ0awAiWwCENHI0cjYWAgsARDsIBiYCMgsAArI7AEQ2CwACuwBSVhsAUlsIBisAQmYSCwBCVgZCOwAyVgZFBYIRsjIVkjICCwBCYjRmE4WS2wMiywABYgICCwBSYgLkcjRyNhIzw4LbAzLLAAFiCwCCNCICAgRiNHsAArI2E4LbA0LLAAFrADJbACJUcjRyNhsABUWC4gPCMhG7ACJbACJUcjRyNhILAFJbAEJUcjRyNhsAYlsAUlSbACJWGwAUVjIyBYYhshWWOwAUViYCMuIyAgPIo4IyFZLbA1LLAAFiCwCEMgLkcjRyNhIGCwIGBmsIBiIyAgPIo4LbA2LCMgLkawAiVGUlggPFkusSYBFCstsDcsIyAuRrACJUZQWCA8WS6xJgEUKy2wOCwjIC5GsAIlRlJYIDxZIyAuRrACJUZQWCA8WS6xJgEUKy2wOSywMCsjIC5GsAIlRlJYIDxZLrEmARQrLbA6LLAxK4ogIDywBCNCijgjIC5GsAIlRlJYIDxZLrEmARQrsARDLrAmKy2wOyywABawBCWwBCYgLkcjRyNhsAZFKyMgPCAuIzixJgEUKy2wPCyxCAQlQrAAFrAEJbAEJSAuRyNHI2EgsAQjQrAGRSsgsGBQWCCwQFFYswIgAyAbswImAxpZQkIjIEewBEOwgGJgILAAKyCKimEgsAJDYGQjsANDYWRQWLACQ2EbsANDYFmwAyWwgGJhsAIlRmE4IyA8IzgbISAgRiNHsAArI2E4IVmxJgEUKy2wPSywMCsusSYBFCstsD4ssDErISMgIDywBCNCIzixJgEUK7AEQy6wJistsD8ssAAVIEewACNCsgABARUUEy6wLCotsEAssAAVIEewACNCsgABARUUEy6wLCotsEEssQABFBOwLSotsEIssC8qLbBDLLAAFkUjIC4gRoojYTixJgEUKy2wRCywCCNCsEMrLbBFLLIAADwrLbBGLLIAATwrLbBHLLIBADwrLbBILLIBATwrLbBJLLIAAD0rLbBKLLIAAT0rLbBLLLIBAD0rLbBMLLIBAT0rLbBNLLIAADkrLbBOLLIAATkrLbBPLLIBADkrLbBQLLIBATkrLbBRLLIAADsrLbBSLLIAATsrLbBTLLIBADsrLbBULLIBATsrLbBVLLIAAD4rLbBWLLIAAT4rLbBXLLIBAD4rLbBYLLIBAT4rLbBZLLIAADorLbBaLLIAATorLbBbLLIBADorLbBcLLIBATorLbBdLLAyKy6xJgEUKy2wXiywMiuwNistsF8ssDIrsDcrLbBgLLAAFrAyK7A4Ky2wYSywMysusSYBFCstsGIssDMrsDYrLbBjLLAzK7A3Ky2wZCywMyuwOCstsGUssDQrLrEmARQrLbBmLLA0K7A2Ky2wZyywNCuwNystsGgssDQrsDgrLbBpLLA1Ky6xJgEUKy2waiywNSuwNistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA=) format('truetype'), url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAoUAA4AAAAAEPQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRAAAAEQAAABWPeFJAWNtYXAAAAGIAAAAOgAAAUrQEhm3Y3Z0IAAAAcQAAAAUAAAAHAZJ/5RmcGdtAAAB2AAABPkAAAmRigp4O2dhc3AAAAbUAAAACAAAAAgAAAAQZ2x5ZgAABtwAAACuAAAAtt9nBHZoZWFkAAAHjAAAADUAAAA2ASs8e2hoZWEAAAfEAAAAIAAAACQHUwNNaG10eAAAB+QAAAAMAAAADAspAABsb2NhAAAH8AAAAAgAAAAIADgAW21heHAAAAf4AAAAIAAAACAApgm8bmFtZQAACBgAAAF3AAACzcydGhxwb3N0AAAJkAAAACoAAAA7rr1AmHByZXAAAAm8AAAAVgAAAFaSoZr/eJxjYGTewTiBgZWBg6mKaQ8DA0MPhGZ8wGDIyMTAwMTAysyAFQSkuaYwOLxgeMHIHPQ/iyGKmZvBHyjMCJIDAPe9C2B4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGF4w/v8PUvCCAURLMELVAwEjG8OIBwBk5AavAAB4nGNgQANGDEbM3P83gjAAELQD4XicnVXZdtNWFJU8ZHASOmSgoA7X3DhQ68qEKRgwaSrFdiEdHAitBB2kDHTkncc+62uOQrtWH/m07n09JLR0rbYsls++R1tn2DrnRhwjKn0aiGvUoZKXA6msPZZK90lc13Uvj5UMBnFdthJPSZuonSRKat3sUC7xWOsqWSdYJ+PlIFZPVZ5noAziFB5lSUQbRBuplyZJ4onjJ4kWZxAfJUkgJaMQp9LIUEI1GsRS1aFM6dCr1xNx00DKRqMedVhU90PFJ8c1p9SsA0YqVznCFevVRr4bpwMve5DEOsGzrYcxHnisfpQqkIqR6cg/dkpOlIaBVHHUoVbi6DCTX/eRTCrNQKaMYkWl7oG43f102xYxPXQ6vi5KlUaqurnOKJrt0fGogygP2cbppNzQ2fbw5RlTVKtdcbPtQGYNXErJbHSfRAAdJlLj6QFONZwCqRn1R8XZ588BEslclKo8VTKHegOZMzt7cTHtbiersnCknwcyb3Z2452HQ6dXh3/R+hdM4cxHj+Jifj5C+lBqfiJOJKVGWMzyp4YfcVcgQrkxiAsXyuBThDl0RdrZZl3jtTH2hs/5SqlhPQna6KP4fgr9TiQrHGdRo/VInM1j13Wt3GdQS7W7Fzsyr0OVIu7vCwuuM+eEYZ4WC1VfnvneBTT/Bohn/EDeNIVL+5YpSrRvm6JMu2iKCu0SVKVdNsUU7YoppmnPmmKG9h1TzNKeMzLj/8vc55H7HN7xkJv2XeSmfQ+5ad9HbtoPkJtWITdtHblpLyA3rUZu2lWjOnYEGgZpF1IVQdA0svph3Fab9UDWjDR8aWDyLmLI+upER521tcofxX914gsHcmmip7siF5viLq/bFj483e6rj5pG3bDV+MaR8jAeRnocmtBZ+c3hv+1N3S6a7jKqMugBFUwKwABl7UAC0zrbCaT1mqf48gdgXIZ4zkpDtVSfO4am7+V5X/exOfG+x+3GLrdcd3kJWdYNcmP28N9SZKrrH+UtrVQnR6wrJ49VaxhDKrwour6SlHu0tRu/KKmy8l6U1srnk5CbPYMbQlu27mGwI0xpyiUeXlOlKD3UUo6yQyxvKco84JSLC1qGxLgOdQ9qa8TpoXoYGwshhqG0vRBwSCldFd+0ynfxHqtr2Oj4xRXh6XpyEhGf4ir7UfBU10b96A7avGbdMoMpVaqn+4xPsa/b9lFZaaSOsxe3VAfXNOsaORXTT+Rr4HRvOGjdAz1UfDRBI1U1x+jGKGM0ljXl3wR0MVZ+w2jVYvs93E+dpFWsuUuY7JsT9+C0u/0q+7WcW0bW/dcGvW3kip8jMb8tCvw7B2K3ZA3UO5OBGAvIWdAYxhYmdxiug23EbfY/Jqf/34aFRXJXOxq7eerD1ZNRJXfZ8rjLTXZZ16M2R9VOGvsIjS0PN+bY4XIstsRgQbb+wf8x7gF3aVEC4NDIZZiI2nShnurh6h6rsW04VxIBds2x43QAegAuQd8cu9bzCYD13CPnLsB9cgh2yCH4lByCz8i5BfA5OQRfkEMwIIdgl5w7AA/IIXhIDsEeOQSPyNkE+JIcgq/IIYjJIUjIuQ3wmByCJ+QQfE0OwTdGrk5k/pYH2QD6zqKbQKmdGhzaOGRGrk3Y+zxY9oFFZB9aROqRkesT6lMeLPV7i0j9wSJSfzRyY0L9iQdL/dkiUn+xiNRnxpeZIymvDp7zjg7+BJfqrV4AAAAAAQAB//8AD3icY2BkAALmJUwzGEQZZBwk+RkZGBmdGJgYmbIYgMwsoGSiiLgIs5A2owg7I5uSOqOaiT2jmZE8I5gQY17C/09BQEfg3yt+fh8gvYQxD0j68DOJiQn8U+DnZxQDcQUEljLmCwBpBgbG/3//b2SOZ+Zm4GEQcuAH2sblDLSEm8FFVJhJEGgLH6OSHpMdo5EcI3Nk0bEXJ/LYqvZ82VXHGFd6pKTkyCsQwQAAq+QkqAAAeJxjYGRgYADiw5VSsfH8Nl8ZuJlfAEUYzpvO6IXQCb7///7fyLyEmRvI5WBgAokCAFb/DJAAAAB4nGNgZGBgDvqfxRDF/IKB4f935iUMQBEUwAwAi5YFpgPoAAAD6AAAA1kAAAAAAAAAOABbAAEAAAADABYAAQAAAAAAAgAGABMAbgAAAC0JkQAAAAB4nHWQy2rCQBSG//HSi0JbWui2sypKabxgN4IgWHTTbqS4LTHGJBIzMhkFX6Pv0IfpS/RZ+puMpShNmMx3vjlz5mQAXOMbAvnzxJGzwBmjnAs4Rc9ykf7Zcon8YrmMKt4sn9C/W67gAYHlKm7wwQqidM5ogU/LAlfi0nIBF+LOcpH+0XKJ3LNcxq14tXxC71muYCJSy1Xci6+BWm11FIRG1gZ12W62OnK6lYoqStxYumsTKp3KvpyrxPhxrBxPLfc89oN17Op9uJ8nvk4jlciW09yrkZ/42jX+bFc93QRtY+ZyrtVSDm2GXGm18D3jhMasuo3G3/MwgMIKW2hEvKoQBhI12jrnNppooUOaMkMyM8+KkMBFTONizR1htpIy7nPMGSW0PjNisgOP3+WRH5MC7o9ZRR+tHsYT0u6MKPOSfTns7jBrREqyTDezs9/eU2x4WpvWcNeuS511JTE8qCF5H7u1BY1H72S3Ymi7aPD95/9+AN1fhEsAeJxjYGKAAC4G7ICZgYGRiZGZMzkjNTk7N7Eomy05syg5J5WBAQBE1QZBAABLuADIUlixAQGOWbkIAAgAYyCwASNEsAMjcLIEKAlFUkSyCgIHKrEGAUSxJAGIUViwQIhYsQYDRLEmAYhRWLgEAIhYsQYBRFlZWVm4Af+FsASNsQUARAAA) format('woff'); } .ui.checkbox label:before, .ui.checkbox .box:before, .ui.checkbox label:after, .ui.checkbox .box:after { font-family: 'Checkbox'; } .ui.checkbox label:after, .ui.checkbox .box:after { content: '\e800'; } /* UTF Reference .check:before { content: '\e800'; } '' .circle:before { content: '\e801'; } .ok-circled:before { content: '\e806'; } .ok-circle:before { content: '\e805'; } .cancel-circle:before { content: '\e807'; } .cancel-circle-1:before { content: '\e804'; } .empty-circle:before { content: '\e802'; } .radio:before { content: '\e803'; } */ /******************************* Site Overrides *******************************/
ahocevar/cdnjs
ajax/libs/semantic-ui/1.12.1/components/checkbox.css
CSS
mit
21,248
/*! * # Semantic UI 2.0.0 - Rail * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Rails *******************************/ .ui.rail { position: absolute; top: 0%; width: 300px; height: 100%; } .ui.left.rail { left: auto; right: 100%; padding: 0em 2rem 0em 0em; margin: 0em 2rem 0em 0em; } .ui.right.rail { left: 100%; right: auto; padding: 0em 0em 0em 2rem; margin: 0em 0em 0em 2rem; } /******************************* Variations *******************************/ /*-------------- Internal ---------------*/ .ui.left.internal.rail { left: 0%; right: auto; padding: 0em 0em 0em 2rem; margin: 0em 0em 0em 2rem; } .ui.right.internal.rail { left: auto; right: 0%; padding: 0em 2rem 0em 0em; margin: 0em 2rem 0em 0em; } /*-------------- Dividing ---------------*/ .ui.dividing.rail { width: 302.5px; } .ui.left.dividing.rail { padding: 0em 2.5rem 0em 0em; margin: 0em 2.5rem 0em 0em; border-right: 1px solid rgba(34, 36, 38, 0.15); } .ui.right.dividing.rail { border-left: 1px solid rgba(34, 36, 38, 0.15); padding: 0em 0em 0em 2.5rem; margin: 0em 0em 0em 2.5rem; } /*-------------- Distance ---------------*/ .ui.close.rail { width: 301px; } .ui.close.left.rail { padding: 0em 1em 0em 0em; margin: 0em 1em 0em 0em; } .ui.close.right.rail { padding: 0em 0em 0em 1em; margin: 0em 0em 0em 1em; } .ui.very.close.rail { width: 300.5px; } .ui.very.close.left.rail { padding: 0em 0.5em 0em 0em; margin: 0em 0.5em 0em 0em; } .ui.very.close.right.rail { padding: 0em 0em 0em 0.5em; margin: 0em 0em 0em 0.5em; } /*-------------- Attached ---------------*/ .ui.attached.left.rail, .ui.attached.right.rail { padding: 0em; margin: 0em; } /*-------------- Sizing ---------------*/ .ui.rail { font-size: 1rem; } /******************************* Theme Overrides *******************************/ /******************************* Site Overrides *******************************/
beckler/semantic_for_pub
lib/2.0.0/components/rail.css
CSS
mit
2,167
/*! * # Semantic UI 1.12.1 - Feed * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributorss * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Activity Feed *******************************/ .ui.feed { margin: 1em 0em; } .ui.feed:first-child { margin-top: 0em; } .ui.feed:last-child { margin-top: 0em; } /******************************* Content *******************************/ /* Event */ .ui.feed > .event { display: table; width: 100%; padding: 0.5rem 0em; margin: 0em; background: none; border-top: none; } .ui.feed > .event:first-child { border-top: 0px; padding-top: 0em; } .ui.feed > .event:last-child { padding-bottom: 0em; } /* Event Label */ .ui.feed > .event > .label { display: table-cell; width: 2.5em; height: 2.5em; vertical-align: top; text-align: left; } .ui.feed > .event > .label .icon { opacity: 1; font-size: 1.5em; width: 100%; padding: 0.25em; background: none; border: none; border-radius: none; color: rgba(0, 0, 0, 0.6); } .ui.feed > .event > .label img { width: 100%; height: auto; border-radius: 500rem; } .ui.feed > .event > .label + .content { padding: 0.5em 0em 0.5em 1.25em; } /* Content */ .ui.feed > .event > .content { display: table-cell; vertical-align: top; text-align: left; word-wrap: break-word; } .ui.feed > .event:last-child > .content { padding-bottom: 0em; } /* Link */ .ui.feed > .event > .content a { cursor: pointer; } /*-------------- Date ---------------*/ .ui.feed > .event > .content .date { margin: -0.5rem 0em 0em; padding: 0em; font-weight: normal; font-size: 1em; font-style: normal; color: rgba(0, 0, 0, 0.4); } /*-------------- Summary ---------------*/ .ui.feed > .event > .content .summary { margin: 0em; font-size: 1em; font-weight: bold; color: rgba(0, 0, 0, 0.8); } /* Summary Image */ .ui.feed > .event > .content .summary img { display: inline-block; width: auto; height: 2em; margin: -0.25em 0.25em 0em 0em; border-radius: 0.25em; vertical-align: middle; } /*-------------- User ---------------*/ .ui.feed > .event > .content .user { display: inline-block; font-weight: bold; margin-right: 0em; vertical-align: baseline; } .ui.feed > .event > .content .user img { margin: -0.25em 0.25em 0em 0em; width: auto; height: 2em; vertical-align: middle; } /*-------------- Inline Date ---------------*/ /* Date inside Summary */ .ui.feed > .event > .content .summary > .date { display: inline-block; float: none; font-weight: normal; font-size: 0.875em; font-style: normal; margin: 0em 0em 0em 0.5em; padding: 0em; color: rgba(0, 0, 0, 0.4); } /*-------------- Extra Summary ---------------*/ .ui.feed > .event > .content .extra { margin: 0.5em 0em 0em; background: none; padding: 0em; color: rgba(0, 0, 0, 0.8); } /* Images */ .ui.feed > .event > .content .extra.images img { display: inline-block; margin: 0em 0.25em 0em 0em; width: 6em; } /* Text */ .ui.feed > .event > .content .extra.text { padding: 0.5em 1em; border-left: 3px solid rgba(0, 0, 0, 0.2); font-size: 1em; max-width: 500px; line-height: 1.33; } /*-------------- Meta ---------------*/ .ui.feed > .event > .content .meta { display: inline-block; font-size: 0.875em; margin: 0.5em 0em 0em; background: none; border: none; border-radius: 0; box-shadow: none; padding: 0em; color: rgba(0, 0, 0, 0.6); } .ui.feed > .event > .content .meta > * { position: relative; margin-left: 0.75em; } .ui.feed > .event > .content .meta > *:after { content: ''; color: rgba(0, 0, 0, 0.2); top: 0em; left: -1em; opacity: 1; position: absolute; vertical-align: top; } .ui.feed > .event > .content .meta .like { color: ''; -webkit-transition: 0.2s color ease; transition: 0.2s color ease; } .ui.feed > .event > .content .meta .like:hover .icon { color: #ff2733; } .ui.feed > .event > .content .meta .active.like .icon { color: #ef404a; } /* First element */ .ui.feed > .event > .content .meta > :first-child { margin-left: 0em; } .ui.feed > .event > .content .meta > :first-child::after { display: none; } /* Action */ .ui.feed > .event > .content .meta a, .ui.feed > .event > .content .meta > .icon { cursor: pointer; opacity: 1; color: rgba(0, 0, 0, 0.5); -webkit-transition: color 0.2s ease; transition: color 0.2s ease; } .ui.feed > .event > .content .meta a:hover, .ui.feed > .event > .content .meta a:hover .icon, .ui.feed > .event > .content .meta > .icon:hover { color: rgba(0, 0, 0, 0.8); } /******************************* Variations *******************************/ .ui.small.feed { font-size: 0.9em; } .ui.feed { font-size: 1em; } .ui.large.feed { font-size: 1.1em; } /******************************* Theme Overrides *******************************/ /******************************* User Variable Overrides *******************************/
shallaa/cdnjs
ajax/libs/semantic-ui/1.12.1/components/feed.css
CSS
mit
5,098
/** * math.js * https://github.com/josdejong/mathjs * * Math.js is an extensive math library for JavaScript and Node.js, * It features real and complex numbers, units, matrices, a large set of * mathematical functions, and a flexible expression parser. * * @version 0.25.0 * @date 2014-07-01 * * @license * Copyright (C) 2013-2014 Jos de Jong <wjosdejong@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define(factory); else if(typeof exports === 'object') exports["math"] = factory(); else root["math"] = factory(); })(this, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(1); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { var object = __webpack_require__(3); /** * math.js factory function. * * @param {Object} [config] Available configuration options: * {String} matrix * A string 'matrix' (default) or 'array'. * {String} number * A string 'number' (default) or 'bignumber' * {Number} precision * The number of significant digits for BigNumbers. * Not applicable for Numbers. */ function factory (config) { // simple test for ES5 support if (typeof Object.create !== 'function') { throw new Error('ES5 not supported by this JavaScript engine. ' + 'Please load the es5-shim and es5-sham library for compatibility.'); } // create namespace (and factory for a new instance) function math (config) { return factory(config); } // create configuration options. These are private var _config = { // type of default matrix output. Choose 'matrix' (default) or 'array' matrix: 'matrix', // type of default number output. Choose 'number' (default) or 'bignumber' number: 'number', // number of significant digits in BigNumbers precision: 64, // minimum relative difference between two compared values, // used by all comparison functions epsilon: 1e-14 }; /** * Set configuration options for math.js, and get current options * @param {Object} [options] Available options: * {String} matrix * A string 'matrix' (default) or 'array'. * {String} number * A string 'number' (default) or 'bignumber' * {Number} precision * The number of significant digits for BigNumbers. * Not applicable for Numbers. * @return {Object} Returns the current configuration */ math.config = function config(options) { if (options) { // merge options object.deepExtend(_config, options); if (options.precision) { math.type.BigNumber.config({ precision: options.precision }); } // TODO: remove deprecated setting some day (deprecated since version 0.17.0) if (options.number && options.number.defaultType) { throw new Error('setting `number.defaultType` is deprecated. Use `number` instead.') } // TODO: remove deprecated setting some day (deprecated since version 0.17.0) if (options.number && options.number.precision) { throw new Error('setting `number.precision` is deprecated. Use `precision` instead.') } // TODO: remove deprecated setting some day (deprecated since version 0.17.0) if (options.matrix && options.matrix.defaultType) { throw new Error('setting `matrix.defaultType` is deprecated. Use `matrix` instead.') } // TODO: remove deprecated setting some day (deprecated since version 0.15.0) if (options.matrix && options.matrix['default']) { throw new Error('setting `matrix.default` is deprecated. Use `matrix` instead.') } // TODO: remove deprecated setting some day (deprecated since version 0.20.0) if (options.decimals) { throw new Error('setting `decimals` is deprecated. Use `precision` instead.') } } // return a clone of the settings return object.clone(_config); }; // create a new BigNumber factory for this instance of math.js var BigNumber = __webpack_require__(123).constructor(); // extend BigNumber with a function clone if (typeof BigNumber.prototype.clone !== 'function') { /** * Clone a bignumber * @return {BigNumber} clone */ BigNumber.prototype.clone = function clone() { return new BigNumber(this); }; } // extend BigNumber with a function convert if (typeof BigNumber.convert !== 'function') { /** * Try to convert a Number in to a BigNumber. * If the number has 15 or mor significant digits, the Number cannot be * converted to BigNumber and will return the original number. * @param {Number} number * @return {BigNumber | Number} bignumber */ BigNumber.convert = function convert(number) { if (digits(number) > 15) { return number; } else { return new BigNumber(number); } }; } else { throw new Error('Cannot add function convert to BigNumber: function already exists'); } // errors math.error = __webpack_require__(4); // types (Matrix, Complex, Unit, ...) math.type = {}; math.type.Complex = __webpack_require__(5); math.type.Range = __webpack_require__(6); math.type.Index = __webpack_require__(7); math.type.Matrix = __webpack_require__(8); math.type.Unit = __webpack_require__(9); math.type.Help = __webpack_require__(10); math.type.BigNumber = BigNumber; math.collection = __webpack_require__(11); // expression (parse, Parser, nodes, docs) math.expression = {}; math.expression.node = __webpack_require__(14); math.expression.parse = __webpack_require__(12); math.expression.Parser = __webpack_require__(13); math.expression.docs = __webpack_require__(15); // expression parser __webpack_require__(17)(math, _config); __webpack_require__(18)(math, _config); __webpack_require__(19)(math, _config); __webpack_require__(20)(math, _config); // functions - arithmetic __webpack_require__(21)(math, _config); __webpack_require__(22)(math, _config); __webpack_require__(23)(math, _config); __webpack_require__(24)(math, _config); __webpack_require__(25)(math, _config); __webpack_require__(26)(math, _config); __webpack_require__(27)(math, _config); __webpack_require__(28)(math, _config); __webpack_require__(29)(math, _config); __webpack_require__(30)(math, _config); __webpack_require__(31)(math, _config); __webpack_require__(32)(math, _config); __webpack_require__(33)(math, _config); __webpack_require__(34)(math, _config); __webpack_require__(35)(math, _config); __webpack_require__(36)(math, _config); __webpack_require__(37)(math, _config); __webpack_require__(38)(math, _config); __webpack_require__(39)(math, _config); __webpack_require__(40)(math, _config); __webpack_require__(41)(math, _config); __webpack_require__(42)(math, _config); __webpack_require__(43)(math, _config); __webpack_require__(44)(math, _config); __webpack_require__(45)(math, _config); __webpack_require__(46)(math, _config); __webpack_require__(47)(math, _config); // functions - comparison __webpack_require__(48)(math, _config); __webpack_require__(49)(math, _config); __webpack_require__(50)(math, _config); __webpack_require__(51)(math, _config); __webpack_require__(52)(math, _config); __webpack_require__(53)(math, _config); __webpack_require__(54)(math, _config); __webpack_require__(55)(math, _config); // functions - complex __webpack_require__(56)(math, _config); __webpack_require__(57)(math, _config); __webpack_require__(58)(math, _config); __webpack_require__(59)(math, _config); // functions - construction __webpack_require__(60)(math, _config); __webpack_require__(61)(math, _config); __webpack_require__(62)(math, _config); __webpack_require__(63)(math, _config); __webpack_require__(64)(math, _config); __webpack_require__(65)(math, _config); __webpack_require__(66)(math, _config); __webpack_require__(67)(math, _config); __webpack_require__(68)(math, _config); __webpack_require__(69)(math, _config); // functions - matrix __webpack_require__(70)(math, _config); __webpack_require__(71)(math, _config); __webpack_require__(72)(math, _config); __webpack_require__(73)(math, _config); __webpack_require__(74)(math, _config); __webpack_require__(75)(math, _config); __webpack_require__(76)(math, _config); __webpack_require__(77)(math, _config); __webpack_require__(78)(math, _config); __webpack_require__(79)(math, _config); __webpack_require__(80)(math, _config); __webpack_require__(81)(math, _config); __webpack_require__(82)(math, _config); // functions - probability __webpack_require__(83)(math, _config); __webpack_require__(84)(math, _config); __webpack_require__(85)(math, _config); __webpack_require__(86)(math, _config); __webpack_require__(87)(math, _config); __webpack_require__(88)(math, _config); __webpack_require__(89)(math, _config); // functions - statistics __webpack_require__(90)(math, _config); __webpack_require__(91)(math, _config); __webpack_require__(92)(math, _config); __webpack_require__(93)(math, _config); __webpack_require__(94)(math, _config); __webpack_require__(95)(math, _config); __webpack_require__(96)(math, _config); __webpack_require__(97)(math, _config); // functions - trigonometry __webpack_require__(98)(math, _config); __webpack_require__(99)(math, _config); __webpack_require__(100)(math, _config); __webpack_require__(101)(math, _config); __webpack_require__(102)(math, _config); __webpack_require__(103)(math, _config); __webpack_require__(104)(math, _config); __webpack_require__(105)(math, _config); __webpack_require__(106)(math, _config); __webpack_require__(107)(math, _config); __webpack_require__(108)(math, _config); __webpack_require__(109)(math, _config); __webpack_require__(110)(math, _config); __webpack_require__(111)(math, _config); __webpack_require__(112)(math, _config); __webpack_require__(113)(math, _config); // functions - units __webpack_require__(114)(math, _config); // functions - utils __webpack_require__(115)(math, _config); __webpack_require__(116)(math, _config); __webpack_require__(117)(math, _config); __webpack_require__(118)(math, _config); __webpack_require__(119)(math, _config); __webpack_require__(120)(math, _config); __webpack_require__(121)(math, _config); // TODO: deprecated since version 0.25.0, remove some day. math.ifElse = function () { throw new Error('Function ifElse is deprecated. Use the conditional operator instead.'); }; // constants __webpack_require__(2)(math, _config); // selector (we initialize after all functions are loaded) math.chaining = {}; math.chaining.Selector = __webpack_require__(16)(math, _config); // apply provided configuration options math.config(_config); // apply the default options math.config(config); // apply custom options // return the new instance return math; } // create a default instance of math.js var math = factory(); if (typeof window !== 'undefined') { window.mathjs = math; // TODO: deprecate the mathjs namespace some day (replaced with 'math' since version 0.25.0) } // export the default instance module.exports = factory(); /***/ }, /* 2 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Complex = __webpack_require__(5); math.version = __webpack_require__(122); math.pi = Math.PI; math.e = Math.E; math.tau = Math.PI * 2; math.phi = 1.61803398874989484820458683436563811772030917980576286213545; // golden ratio, (1+sqrt(5))/2 math.i = new Complex(0, 1); math['Infinity'] = Infinity; math['NaN'] = NaN; math['true'] = true; math['false'] = false; math['null'] = null; // uppercase constants (for compatibility with built-in Math) math.E = Math.E; math.LN2 = Math.LN2; math.LN10 = Math.LN10; math.LOG2E = Math.LOG2E; math.LOG10E = Math.LOG10E; math.PI = Math.PI; math.SQRT1_2 = Math.SQRT1_2; math.SQRT2 = Math.SQRT2; }; /***/ }, /* 3 */ /***/ function(module, exports, __webpack_require__) { /** * Clone an object * * clone(x) * * Can clone any primitive type, array, and object. * If x has a function clone, this function will be invoked to clone the object. * * @param {*} x * @return {*} clone */ exports.clone = function clone(x) { var type = typeof x; // immutable primitive types if (type === 'number' || type === 'string' || type === 'boolean' || x === null || x === undefined) { return x; } // use clone function of the object when available if (typeof x.clone === 'function') { return x.clone(); } // array if (Array.isArray(x)) { return x.map(function (value) { return clone(value); }); } if (x instanceof Number) return new Number(x.valueOf()); if (x instanceof String) return new String(x.valueOf()); if (x instanceof Boolean) return new Boolean(x.valueOf()); if (x instanceof Date) return new Date(x.valueOf()); if (x instanceof RegExp) throw new TypeError('Cannot clone ' + x); // TODO: clone a RegExp // object var m = {}; for (var key in x) { if (x.hasOwnProperty(key)) { m[key] = clone(x[key]); } } return m; }; /** * Extend object a with the properties of object b * @param {Object} a * @param {Object} b * @return {Object} a */ exports.extend = function extend (a, b) { for (var prop in b) { if (b.hasOwnProperty(prop)) { a[prop] = b[prop]; } } return a; }; /** * Deep extend an object a with the properties of object b * @param {Object} a * @param {Object} b * @returns {Object} */ exports.deepExtend = function deepExtend (a, b) { // TODO: add support for Arrays to deepExtend if (Array.isArray(b)) { throw new TypeError('Arrays are not supported by deepExtend'); } for (var prop in b) { if (b.hasOwnProperty(prop)) { if (b[prop] && b[prop].constructor === Object) { if (a[prop] === undefined) { a[prop] = {}; } if (a[prop].constructor === Object) { deepExtend(a[prop], b[prop]); } else { a[prop] = b[prop]; } } else if (Array.isArray(b[prop])) { throw new TypeError('Arrays are not supported by deepExtend'); } else { a[prop] = b[prop]; } } } return a; }; /** * Deep test equality of all fields in two pairs of arrays or objects. * @param {Array | Object} a * @param {Array | Object} b * @returns {boolean} */ exports.deepEqual = function deepEqual (a, b) { var prop, i, len; if (Array.isArray(a)) { if (!Array.isArray(b)) { return false; } if (a.length != b.length) { return false; } for (i = 0, len = a.length; i < len; i++) { if (!exports.deepEqual(a[i], b[i])) { return false; } } return true; } else if (a instanceof Object) { if (Array.isArray(b) || !(b instanceof Object)) { return false; } for (prop in a) { //noinspection JSUnfilteredForInLoop if (!exports.deepEqual(a[prop], b[prop])) { return false; } } for (prop in b) { //noinspection JSUnfilteredForInLoop if (!exports.deepEqual(a[prop], b[prop])) { return false; } } return true; } else { return (typeof a === typeof b) && (a == b); } }; /***/ }, /* 4 */ /***/ function(module, exports, __webpack_require__) { exports.ArgumentsError = __webpack_require__(124); exports.DimensionError = __webpack_require__(125); exports.IndexError = __webpack_require__(126); exports.UnsupportedTypeError = __webpack_require__(127); // TODO: implement an InvalidValueError? /***/ }, /* 5 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), Unit = __webpack_require__(9), number = util.number, isNumber = util.number.isNumber, isUnit = Unit.isUnit, isString = util.string.isString; /** * @constructor Complex * * A complex value can be constructed in the following ways: * var a = new Complex(); * var b = new Complex(re, im); * var c = Complex.parse(str); * * Example usage: * var a = new Complex(3, -4); // 3 - 4i * a.re = 5; // a = 5 - 4i * var i = a.im; // -4; * var b = Complex.parse('2 + 6i'); // 2 + 6i * var c = new Complex(); // 0 + 0i * var d = math.add(a, b); // 5 + 2i * * @param {Number} re The real part of the complex value * @param {Number} [im] The imaginary part of the complex value */ function Complex(re, im) { if (!(this instanceof Complex)) { throw new SyntaxError('Constructor must be called with the new operator'); } switch (arguments.length) { case 0: this.re = 0; this.im = 0; break; case 1: var arg = arguments[0]; if (typeof arg === 'object') { if('re' in arg && 'im' in arg) { var construct = new Complex(arg.re, arg.im); // pass on input validation this.re = construct.re; this.im = construct.im; break; } else if ('r' in arg && 'phi' in arg) { var construct = Complex.fromPolar(arg.r, arg.phi); this.re = construct.re; this.im = construct.im; break; } } throw new SyntaxError('Object with the re and im or r and phi properties expected.'); case 2: if (!isNumber(re) || !isNumber(im)) { throw new TypeError('Two numbers expected in Complex constructor'); } this.re = re; this.im = im; break; default: throw new SyntaxError('One, two or three arguments expected in Complex constructor'); } } /** * Test whether value is a Complex value * @param {*} value * @return {Boolean} isComplex */ Complex.isComplex = function (value) { return (value instanceof Complex); }; // private variables and functions for the parser var text, index, c; function skipWhitespace() { while (c == ' ' || c == '\t') { next(); } } function isDigitDot (c) { return ((c >= '0' && c <= '9') || c == '.'); } function isDigit (c) { return ((c >= '0' && c <= '9')); } function next() { index++; c = text.charAt(index); } function revert(oldIndex) { index = oldIndex; c = text.charAt(index); } function parseNumber () { var number = ''; var oldIndex; oldIndex = index; if (c == '+') { next(); } else if (c == '-') { number += c; next(); } if (!isDigitDot(c)) { // a + or - must be followed by a digit revert(oldIndex); return null; } // get number, can have a single dot if (c == '.') { number += c; next(); if (!isDigit(c)) { // this is no legal number, it is just a dot revert(oldIndex); return null; } } else { while (isDigit(c)) { number += c; next(); } if (c == '.') { number += c; next(); } } while (isDigit(c)) { number += c; next(); } // check for exponential notation like "2.3e-4" or "1.23e50" if (c == 'E' || c == 'e') { number += c; next(); if (c == '+' || c == '-') { number += c; next(); } // Scientific notation MUST be followed by an exponent if (!isDigit(c)) { // this is no legal number, exponent is missing. revert(oldIndex); return null; } while (isDigit(c)) { number += c; next(); } } return number; } function parseComplex () { // check for 'i', '-i', '+i' var cnext = text.charAt(index + 1); if (c == 'I' || c == 'i') { next(); return '1'; } else if ((c == '+' || c == '-') && (cnext == 'I' || cnext == 'i')) { var number = (c == '+') ? '1' : '-1'; next(); next(); return number; } return null; } /** * Parse a complex number from a string. For example Complex.parse("2 + 3i") * will return a Complex value where re = 2, im = 3. * Returns null if provided string does not contain a valid complex number. * @param {String} str * @returns {Complex | null} complex */ Complex.parse = function (str) { text = str; index = -1; c = ''; if (!isString(text)) { return null; } next(); skipWhitespace(); var first = parseNumber(); if (first) { if (c == 'I' || c == 'i') { // pure imaginary number next(); skipWhitespace(); if (c) { // garbage at the end. not good. return null; } return new Complex(0, Number(first)); } else { // complex and real part skipWhitespace(); var separator = c; if (separator != '+' && separator != '-') { // pure real number skipWhitespace(); if (c) { // garbage at the end. not good. return null; } return new Complex(Number(first), 0); } else { // complex and real part next(); skipWhitespace(); var second = parseNumber(); if (second) { if (c != 'I' && c != 'i') { // 'i' missing at the end of the complex number return null; } next(); } else { second = parseComplex(); if (!second) { // imaginary number missing after separator return null; } } if (separator == '-') { if (second[0] == '-') { second = '+' + second.substring(1); } else { second = '-' + second; } } next(); skipWhitespace(); if (c) { // garbage at the end. not good. return null; } return new Complex(Number(first), Number(second)); } } } else { // check for 'i', '-i', '+i' first = parseComplex(); if (first) { skipWhitespace(); if (c) { // garbage at the end. not good. return null; } return new Complex(0, Number(first)); } } return null; }; /** * Create a complex number from polar coordinates * * Usage: * * Complex.fromPolar(r: Number, phi: Number) : Complex * Complex.fromPolar({r: Number, phi: Number}) : Complex * * @param {*} args... * @return {Complex} */ Complex.fromPolar = function (args) { switch (arguments.length) { case 1: var arg = arguments[0]; if(typeof arg === 'object') { return Complex.fromPolar(arg.r, arg.phi); } throw new TypeError('Input has to be an object with r and phi keys.'); case 2: var r = arguments[0], phi = arguments[1]; if(isNumber(r)) { if (isUnit(phi) && phi.hasBase(Unit.BASE_UNITS.ANGLE)) { // convert unit to a number in radians phi = phi.toNumber('rad'); } if(isNumber(phi)) { return new Complex(r * Math.cos(phi), r * Math.sin(phi)); } throw new TypeError('Phi is not a number nor an angle unit.'); } else { throw new TypeError('Radius r is not a number.'); } default: throw new SyntaxError('Wrong number of arguments in function fromPolar'); } }; /* * Return the value of the complex number in polar notation * The angle phi will be set in the interval of [-pi, pi]. * @return {{r: number, phi: number}} Returns and object with properties r and phi. */ Complex.prototype.toPolar = function() { return { r: Math.sqrt(this.re * this.re + this.im * this.im), phi: Math.atan2(this.im, this.re) }; }; /** * Create a copy of the complex value * @return {Complex} clone */ Complex.prototype.clone = function () { return new Complex(this.re, this.im); }; /** * Test whether this complex number equals an other complex value. * Two complex numbers are equal when both their real and imaginary parts * are equal. * @param {Complex} other * @return {boolean} isEqual */ Complex.prototype.equals = function (other) { return (this.re === other.re) && (this.im === other.im); }; /** * Get a string representation of the complex number, * with optional formatting options. * @param {Object | Number | Function} [options] Formatting options. See * lib/util/number:format for a * description of the available * options. * @return {String} str */ Complex.prototype.format = function (options) { var str = '', strRe = number.format(this.re, options), strIm = number.format(this.im, options); if (this.im == 0) { // real value str = strRe; } else if (this.re == 0) { // purely complex value if (this.im == 1) { str = 'i'; } else if (this.im == -1) { str = '-i'; } else { str = strIm + 'i'; } } else { // complex value if (this.im > 0) { if (this.im == 1) { str = strRe + ' + i'; } else { str = strRe + ' + ' + strIm + 'i'; } } else { if (this.im == -1) { str = strRe + ' - i'; } else { str = strRe + ' - ' + strIm.substring(1) + 'i'; } } } return str; }; /** * Get a string representation of the complex number. * @return {String} str */ Complex.prototype.toString = function () { return this.format(); }; /** * Returns a string representation of the complex number. * @return {String} str */ Complex.prototype.valueOf = Complex.prototype.toString; // exports module.exports = Complex; /***/ }, /* 6 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), number = util.number, string = util.string, array = util.array; /** * @constructor Range * Create a range. A range has a start, step, and end, and contains functions * to iterate over the range. * * A range can be constructed as: * var range = new Range(start, end); * var range = new Range(start, end, step); * * To get the result of the range: * range.forEach(function (x) { * console.log(x); * }); * range.map(function (x) { * return math.sin(x); * }); * range.toArray(); * * Example usage: * var c = new Range(2, 6); // 2:1:5 * c.toArray(); // [2, 3, 4, 5] * var d = new Range(2, -3, -1); // 2:-1:-2 * d.toArray(); // [2, 1, 0, -1, -2] * * @param {Number} start included lower bound * @param {Number} end excluded upper bound * @param {Number} [step] step size, default value is 1 */ function Range(start, end, step) { if (!(this instanceof Range)) { throw new SyntaxError('Constructor must be called with the new operator'); } if (start != null && !number.isNumber(start)) { throw new TypeError('Parameter start must be a number'); } if (end != null && !number.isNumber(end)) { throw new TypeError('Parameter end must be a number'); } if (step != null && !number.isNumber(step)) { throw new TypeError('Parameter step must be a number'); } this.start = (start != null) ? parseFloat(start) : 0; this.end = (end != null) ? parseFloat(end) : 0; this.step = (step != null) ? parseFloat(step) : 1; } /** * Parse a string into a range, * The string contains the start, optional step, and end, separated by a colon. * If the string does not contain a valid range, null is returned. * For example str='0:2:11'. * @param {String} str * @return {Range | null} range */ Range.parse = function (str) { if (!string.isString(str)) { return null; } var args = str.split(':'); var nums = args.map(function (arg) { return parseFloat(arg); }); var invalid = nums.some(function (num) { return isNaN(num); }); if(invalid) { return null; } switch (nums.length) { case 2: return new Range(nums[0], nums[1]); case 3: return new Range(nums[0], nums[2], nums[1]); default: return null; } }; /** * Create a clone of the range * @return {Range} clone */ Range.prototype.clone = function () { return new Range(this.start, this.end, this.step); }; /** * Test whether an object is a Range * @param {*} object * @return {Boolean} isRange */ Range.isRange = function (object) { return (object instanceof Range); }; /** * Retrieve the size of the range. * Returns an array containing one number, the number of elements in the range. * @returns {Number[]} size */ Range.prototype.size = function () { var len = 0, start = this.start, step = this.step, end = this.end, diff = end - start; if (number.sign(step) == number.sign(diff)) { len = Math.ceil((diff) / step); } else if (diff == 0) { len = 0; } if (isNaN(len)) { len = 0; } return [len]; }; /** * Calculate the minimum value in the range * @return {Number | undefined} min */ Range.prototype.min = function () { var size = this.size()[0]; if (size > 0) { if (this.step > 0) { // positive step return this.start; } else { // negative step return this.start + (size - 1) * this.step; } } else { return undefined; } }; /** * Calculate the maximum value in the range * @return {Number | undefined} max */ Range.prototype.max = function () { var size = this.size()[0]; if (size > 0) { if (this.step > 0) { // positive step return this.start + (size - 1) * this.step; } else { // negative step return this.start; } } else { return undefined; } }; /** * Execute a callback function for each value in the range. * @param {function} callback The callback method is invoked with three * parameters: the value of the element, the index * of the element, and the Matrix being traversed. */ Range.prototype.forEach = function (callback) { var x = this.start; var step = this.step; var end = this.end; var i = 0; if (step > 0) { while (x < end) { callback(x, i, this); x += step; i++; } } else if (step < 0) { while (x > end) { callback(x, i, this); x += step; i++; } } }; /** * Execute a callback function for each value in the Range, and return the * results as an array * @param {function} callback The callback method is invoked with three * parameters: the value of the element, the index * of the element, and the Matrix being traversed. * @returns {Array} array */ Range.prototype.map = function (callback) { var array = []; this.forEach(function (value, index, obj) { array[index] = callback(value, index, obj); }); return array; }; /** * Create an Array with a copy of the Ranges data * @returns {Array} array */ Range.prototype.toArray = function () { var array = []; this.forEach(function (value, index) { array[index] = value; }); return array; }; /** * Get the primitive value of the Range, a one dimensional array * @returns {Array} array */ Range.prototype.valueOf = function () { // TODO: implement a caching mechanism for range.valueOf() return this.toArray(); }; /** * Get a string representation of the range, with optional formatting options. * Output is formatted as 'start:step:end', for example '2:6' or '0:0.2:11' * @param {Object | Number | Function} [options] Formatting options. See * lib/util/number:format for a * description of the available * options. * @returns {String} str */ Range.prototype.format = function (options) { var str = number.format(this.start, options); if (this.step != 1) { str += ':' + number.format(this.step, options); } str += ':' + number.format(this.end, options); return str; }; /** * Get a string representation of the range. * @returns {String} */ Range.prototype.toString = function () { return this.format(); }; // exports module.exports = Range; /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), Range = __webpack_require__(6), number = util.number, isNumber = number.isNumber, isInteger = number.isInteger, isArray = Array.isArray, validateIndex = util.array.validateIndex; /** * @Constructor Index * Create an index. An Index can store ranges having start, step, and end * for multiple dimensions. * Matrix.get, Matrix.set, and math.subset accept an Index as input. * * Usage: * var index = new Index(range1, range2, ...); * * Where each range can be any of: * An array [start, end] * An array [start, end, step] * A number * An instance of Range * * The parameters start, end, and step must be integer numbers. * * @param {...*} ranges */ function Index(ranges) { if (!(this instanceof Index)) { throw new SyntaxError('Constructor must be called with the new operator'); } this._ranges = []; for (var i = 0, ii = arguments.length; i < ii; i++) { var arg = arguments[i]; if (arg instanceof Range) { this._ranges.push(arg); } else { if (isArray(arg)) { this._ranges.push(_createRange(arg)); } else if (isNumber(arg)) { this._ranges.push(_createRange([arg, arg + 1])); } // TODO: implement support for wildcard '*' else { throw new TypeError('Ranges must be an Array, Number, or Range'); } } } } /** * Parse an argument into a range and validate the range * @param {Array} arg An array with [start: Number, end: Number] and * optional a third element step:Number * @return {Range} range * @private */ function _createRange(arg) { // TODO: make function _createRange simpler/faster // test whether all arguments are integers var num = arg.length; for (var i = 0; i < num; i++) { if (!isNumber(arg[i]) || !isInteger(arg[i])) { throw new TypeError('Index parameters must be integer numbers'); } } switch (arg.length) { case 2: return new Range(arg[0], arg[1]); // start, end case 3: return new Range(arg[0], arg[1], arg[2]); // start, end, step default: // TODO: improve error message throw new SyntaxError('Wrong number of arguments in Index (2 or 3 expected)'); } } /** * Create a clone of the index * @return {Index} clone */ Index.prototype.clone = function () { var index = new Index(); index._ranges = util.object.clone(this._ranges); return index; }; /** * Test whether an object is an Index * @param {*} object * @return {Boolean} isIndex */ Index.isIndex = function (object) { return (object instanceof Index); }; /** * Create an index from an array with ranges/numbers * @param {Array.<Array | Number>} ranges * @return {Index} index * @private */ Index.create = function (ranges) { var index = new Index(); Index.apply(index, ranges); return index; }; /** * Retrieve the size of the index, the number of elements for each dimension. * @returns {Number[]} size */ Index.prototype.size = function () { var size = []; for (var i = 0, ii = this._ranges.length; i < ii; i++) { var range = this._ranges[i]; size[i] = range.size()[0]; } return size; }; /** * Get the maximum value for each of the indexes ranges. * @returns {Number[]} max */ Index.prototype.max = function () { var values = []; for (var i = 0, ii = this._ranges.length; i < ii; i++) { var range = this._ranges[i]; values[i] = range.max(); } return values; }; /** * Get the minimum value for each of the indexes ranges. * @returns {Number[]} min */ Index.prototype.min = function () { var values = []; for (var i = 0, ii = this._ranges.length; i < ii; i++) { var range = this._ranges[i]; values[i] = range.min(); } return values; }; /** * Loop over each of the ranges of the index * @param {function} callback Called for each range with a Range as first * argument, the dimension as second, and the * index object as third. */ Index.prototype.forEach = function (callback) { for (var i = 0, ii = this._ranges.length; i < ii; i++) { callback(this._ranges[i], i, this); } }; /** * Retrieve the range for a given dimension number from the index * @param {Number} dim Number of the dimension * @returns {Range | null} range */ Index.prototype.range = function range (dim) { return this._ranges[dim] || null; }; /** * Test whether this index contains only a single value * @return {boolean} isScalar */ Index.prototype.isScalar = function () { var size = this.size(); for (var i = 0, ii = size.length; i < ii; i++) { if (size[i] !== 1) { return false; } } return true; }; /** * Expand the Index into an array. * For example new Index([0,3], [2,7]) returns [[0,1,2], [2,3,4,5,6]] * @returns {Array} array */ Index.prototype.toArray = function () { var array = []; for (var i = 0, ii = this._ranges.length; i < ii; i++) { var range = this._ranges[i], row = [], x = range.start, end = range.end, step = range.step; if (step > 0) { while (x < end) { row.push(x); x += step; } } else if (step < 0) { while (x > end) { row.push(x); x += step; } } array.push(row); } return array; }; /** * Get the primitive value of the Index, a two dimensional array. * Equivalent to Index.toArray(). * @returns {Array} array */ Index.prototype.valueOf = Index.prototype.toArray; /** * Get the string representation of the index, for example '[2:6]' or '[0:2:10, 4:7]' * @returns {String} str */ Index.prototype.toString = function () { var strings = []; for (var i = 0, ii = this._ranges.length; i < ii; i++) { var range = this._ranges[i]; var str = number.format(range.start); if (range.step != 1) { str += ':' + number.format(range.step); } str += ':' + number.format(range.end); strings.push(str); } return '[' + strings.join(', ') + ']'; }; // exports module.exports = Index; /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), DimensionError = __webpack_require__(125), Index = __webpack_require__(7), number = util.number, string = util.string, array = util.array, object = util.object, isArray = Array.isArray, validateIndex = array.validateIndex; /** * @constructor Matrix * * A Matrix is a wrapper around an Array. A matrix can hold a multi dimensional * array. A matrix can be constructed as: * var matrix = new Matrix(data) * * Matrix contains the functions to resize, get and set values, get the size, * clone the matrix and to convert the matrix to a vector, array, or scalar. * Furthermore, one can iterate over the matrix using map and forEach. * The internal Array of the Matrix can be accessed using the function valueOf. * * Example usage: * var matrix = new Matrix([[1, 2], [3, 4]); * matix.size(); // [2, 2] * matrix.resize([3, 2], 5); * matrix.valueOf(); // [[1, 2], [3, 4], [5, 5]] * matrix.subset([1,2]) // 3 (indexes are zero-based) * * @param {Array | Matrix} [data] A multi dimensional array */ function Matrix(data) { if (!(this instanceof Matrix)) { throw new SyntaxError('Constructor must be called with the new operator'); } if (data instanceof Matrix) { // clone data from a Matrix this._data = data.clone()._data; } else if (isArray(data)) { // use array // replace nested Matrices with Arrays this._data = preprocess(data); } else if (data != null) { // unsupported type throw new TypeError('Unsupported type of data (' + util.types.type(data) + ')'); } else { // nothing provided this._data = []; } // verify the size of the array this._size = array.size(this._data); } /** * Test whether an object is a Matrix * @param {*} object * @return {Boolean} isMatrix */ Matrix.isMatrix = function (object) { return (object instanceof Matrix); }; /** * Get a subset of the matrix, or replace a subset of the matrix. * * Usage: * var subset = matrix.subset(index) // retrieve subset * var value = matrix.subset(index, replacement) // replace subset * * @param {Index} index * @param {Array | Matrix | *} [replacement] * @param {*} [defaultValue] Default value, filled in on new entries when * the matrix is resized. If not provided, * new matrix elements will be left undefined. */ Matrix.prototype.subset = function (index, replacement, defaultValue) { switch (arguments.length) { case 1: return _get(this, index); // intentional fall through case 2: case 3: return _set(this, index, replacement, defaultValue); default: throw new SyntaxError('Wrong number of arguments'); } }; /** * Get a single element from the matrix. * @param {Number[]} index Zero-based index * @return {*} value */ Matrix.prototype.get = function (index) { if (!isArray(index)) { throw new TypeError('Array expected'); } if (index.length != this._size.length) { throw new DimensionError(index.length, this._size.length); } var data = this._data; for (var i = 0, ii = index.length; i < ii; i++) { var index_i = index[i]; validateIndex(index_i, data.length); data = data[index_i]; } return object.clone(data); }; /** * Replace a single element in the matrix. * @param {Number[]} index Zero-based index * @param {*} value * @param {*} [defaultValue] Default value, filled in on new entries when * the matrix is resized. If not provided, * new matrix elements will be left undefined. * @return {Matrix} self */ Matrix.prototype.set = function (index, value, defaultValue) { var i, ii; // validate input type and dimensions if (!isArray(index)) { throw new Error('Array expected'); } if (index.length < this._size.length) { throw new DimensionError(index.length, this._size.length, '<'); } // enlarge matrix when needed var size = index.map(function (i) { return i + 1; }); _fit(this, size, defaultValue); // traverse over the dimensions var data = this._data; for (i = 0, ii = index.length - 1; i < ii; i++) { var index_i = index[i]; validateIndex(index_i, data.length); data = data[index_i]; } // set new value index_i = index[index.length - 1]; validateIndex(index_i, data.length); data[index_i] = value; return this; }; /** * Get a submatrix of this matrix * @param {Matrix} matrix * @param {Index} index Zero-based index * @private */ function _get (matrix, index) { if (!(index instanceof Index)) { throw new TypeError('Invalid index'); } var isScalar = index.isScalar(); if (isScalar) { // return a scalar return matrix.get(index.min()); } else { // validate dimensions var size = index.size(); if (size.length != matrix._size.length) { throw new DimensionError(size.length, matrix._size.length); } // retrieve submatrix var submatrix = new Matrix(_getSubmatrix(matrix._data, index, size.length, 0)); // TODO: more efficient when creating an empty matrix and setting _data and _size manually // squeeze matrix output while (isArray(submatrix._data) && submatrix._data.length == 1) { submatrix._data = submatrix._data[0]; submatrix._size.shift(); } return submatrix; } } /** * Recursively get a submatrix of a multi dimensional matrix. * Index is not checked for correct number of dimensions. * @param {Array} data * @param {Index} index * @param {number} dims Total number of dimensions * @param {number} dim Current dimension * @return {Array} submatrix * @private */ function _getSubmatrix (data, index, dims, dim) { var last = (dim == dims - 1); var range = index.range(dim); if (last) { return range.map(function (i) { validateIndex(i, data.length); return data[i]; }); } else { return range.map(function (i) { validateIndex(i, data.length); var child = data[i]; return _getSubmatrix(child, index, dims, dim + 1); }); } } /** * Replace a submatrix in this matrix * Indexes are zero-based. * @param {Matrix} matrix * @param {Index} index * @param {Matrix | Array | *} submatrix * @param {*} [defaultValue] Default value, filled in on new entries when * the matrix is resized. If not provided, * new matrix elements will be left undefined. * @return {Matrix} matrix * @private */ function _set (matrix, index, submatrix, defaultValue) { if (!(index instanceof Index)) { throw new TypeError('Invalid index'); } // get index size and check whether the index contains a single value var iSize = index.size(), isScalar = index.isScalar(); // calculate the size of the submatrix, and convert it into an Array if needed var sSize; if (submatrix instanceof Matrix) { sSize = submatrix.size(); submatrix = submatrix.valueOf(); } else { sSize = array.size(submatrix); } if (isScalar) { // set a scalar // check whether submatrix is a scalar if (sSize.length != 0) { throw new TypeError('Scalar expected'); } matrix.set(index.min(), submatrix, defaultValue); } else { // set a submatrix // validate dimensions if (iSize.length < matrix._size.length) { throw new DimensionError(iSize.length, matrix._size.length, '<'); } // unsqueeze the submatrix when needed for (var i = 0, ii = iSize.length - sSize.length; i < ii; i++) { submatrix = [submatrix]; sSize.unshift(1); } // check whether the size of the submatrix matches the index size if (!object.deepEqual(iSize, sSize)) { throw new DimensionError(iSize, sSize); } // enlarge matrix when needed var size = index.max().map(function (i) { return i + 1; }); _fit(matrix, size, defaultValue); // insert the sub matrix var dims = iSize.length, dim = 0; _setSubmatrix (matrix._data, index, submatrix, dims, dim); } return matrix; } /** * Replace a submatrix of a multi dimensional matrix. * @param {Array} data * @param {Index} index * @param {Array} submatrix * @param {number} dims Total number of dimensions * @param {number} dim * @private */ function _setSubmatrix (data, index, submatrix, dims, dim) { var last = (dim == dims - 1), range = index.range(dim); if (last) { range.forEach(function (dataIndex, subIndex) { validateIndex(dataIndex); data[dataIndex] = submatrix[subIndex]; }); } else { range.forEach(function (dataIndex, subIndex) { validateIndex(dataIndex); _setSubmatrix(data[dataIndex], index, submatrix[subIndex], dims, dim + 1); }); } } /** * Resize the matrix * @param {Number[]} size * @param {*} [defaultValue] Default value, filled in on new entries. * If not provided, the matrix elements will * be left undefined. * @return {Matrix} self The matrix itself is returned */ Matrix.prototype.resize = function (size, defaultValue) { this._size = object.clone(size); this._data = array.resize(this._data, this._size, defaultValue); // return the matrix itself return this; }; /** * Enlarge the matrix when it is smaller than given size. * If the matrix is larger or equal sized, nothing is done. * @param {Matrix} matrix The matrix to be resized * @param {Number[]} size * @param {*} [defaultValue] Default value, filled in on new entries. * If not provided, the matrix elements will * be left undefined. * @private */ function _fit(matrix, size, defaultValue) { var newSize = object.clone(matrix._size), changed = false; // add dimensions when needed while (newSize.length < size.length) { newSize.unshift(0); changed = true; } // enlarge size when needed for (var i = 0, ii = size.length; i < ii; i++) { if (size[i] > newSize[i]) { newSize[i] = size[i]; changed = true; } } if (changed) { // resize only when size is changed matrix.resize(newSize, defaultValue); } } /** * Create a clone of the matrix * @return {Matrix} clone */ Matrix.prototype.clone = function () { var matrix = new Matrix(); matrix._data = object.clone(this._data); matrix._size = object.clone(this._size); return matrix; }; /** * Retrieve the size of the matrix. * @returns {Number[]} size */ Matrix.prototype.size = function size() { return this._size; }; /** * Create a new matrix with the results of the callback function executed on * each entry of the matrix. * @param {function} callback The callback function is invoked with three * parameters: the value of the element, the index * of the element, and the Matrix being traversed. * @return {Matrix} matrix */ Matrix.prototype.map = function (callback) { var me = this; var matrix = new Matrix(); var index = []; var recurse = function (value, dim) { if (isArray(value)) { return value.map(function (child, i) { index[dim] = i; return recurse(child, dim + 1); }); } else { return callback(value, index, me); } }; matrix._data = recurse(this._data, 0); matrix._size = object.clone(this._size); return matrix; }; /** * Execute a callback function on each entry of the matrix. * @param {function} callback The callback function is invoked with three * parameters: the value of the element, the index * of the element, and the Matrix being traversed. */ Matrix.prototype.forEach = function (callback) { var me = this; var index = []; var recurse = function (value, dim) { if (isArray(value)) { value.forEach(function (child, i) { index[dim] = i; recurse(child, dim + 1); }); } else { callback(value, index, me); } }; recurse(this._data, 0); }; /** * Create an Array with a copy of the data of the Matrix * @returns {Array} array */ Matrix.prototype.toArray = function () { return object.clone(this._data); }; /** * Get the primitive value of the Matrix: a multidimensional array * @returns {Array} array */ Matrix.prototype.valueOf = function () { return this._data; }; /** * Get a string representation of the matrix, with optional formatting options. * @param {Object | Number | Function} [options] Formatting options. See * lib/util/number:format for a * description of the available * options. * @returns {String} str */ Matrix.prototype.format = function (options) { return string.format(this._data, options); }; /** * Get a string representation of the matrix * @returns {String} str */ Matrix.prototype.toString = function () { return string.format(this._data); }; /** * Preprocess data, which can be an Array or Matrix with nested Arrays and * Matrices. Replaces all nested Matrices with Arrays * @param {Array} data * @return {Array} data */ function preprocess(data) { for (var i = 0, ii = data.length; i < ii; i++) { var elem = data[i]; if (isArray(elem)) { data[i] = preprocess(elem); } else if (elem instanceof Matrix) { data[i] = preprocess(elem._data); } } return data; } // exports module.exports = Matrix; /***/ }, /* 9 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), number = util.number, string = util.string, isNumber = util.number.isNumber, isString = util.string.isString; /** * @constructor Unit * * A unit can be constructed in the following ways: * var a = new Unit(value, name); * var b = new Unit(null, name); * var c = Unit.parse(str); * * Example usage: * var a = new Unit(5, 'cm'); // 50 mm * var b = Unit.parse('23 kg'); // 23 kg * var c = math.in(a, new Unit(null, 'm'); // 0.05 m * * @param {Number} [value] A value like 5.2 * @param {String} [name] A unit name like "cm" or "inch". Can include a prefix */ function Unit(value, name) { if (!(this instanceof Unit)) { throw new Error('Constructor must be called with the new operator'); } if (value != undefined && !isNumber(value)) { throw new TypeError('First parameter in Unit constructor must be a number'); } if (name != undefined && (!isString(name) || name == '')) { throw new TypeError('Second parameter in Unit constructor must be a string'); } if (name != undefined) { // find the unit and prefix from the string var res = _findUnit(name); if (!res) { throw new SyntaxError('Unknown unit "' + name + '"'); } this.unit = res.unit; this.prefix = res.prefix; } else { this.unit = UNIT_NONE; this.prefix = PREFIX_NONE; // link to a list with supported prefixes } this.value = (value != undefined) ? this._normalize(value) : null; this.fixPrefix = false; // if true, function format will not search for the // best prefix but leave it as initially provided. // fixPrefix is set true by the method Unit.to } // private variables and functions for the Unit parser var text, index, c; function skipWhitespace() { while (c == ' ' || c == '\t') { next(); } } function isDigitDot (c) { return ((c >= '0' && c <= '9') || c == '.'); } function isDigit (c) { return ((c >= '0' && c <= '9')); } function next() { index++; c = text.charAt(index); } function revert(oldIndex) { index = oldIndex; c = text.charAt(index); } function parseNumber () { var number = ''; var oldIndex; oldIndex = index; if (c == '+') { next(); } else if (c == '-') { number += c; next(); } if (!isDigitDot(c)) { // a + or - must be followed by a digit revert(oldIndex); return null; } // get number, can have a single dot if (c == '.') { number += c; next(); if (!isDigit(c)) { // this is no legal number, it is just a dot revert(oldIndex); return null; } } else { while (isDigit(c)) { number += c; next(); } if (c == '.') { number += c; next(); } } while (isDigit(c)) { number += c; next(); } // check for exponential notation like "2.3e-4" or "1.23e50" if (c == 'E' || c == 'e') { number += c; next(); if (c == '+' || c == '-') { number += c; next(); } // Scientific notation MUST be followed by an exponent if (!isDigit(c)) { // this is no legal number, exponent is missing. revert(oldIndex); return null; } while (isDigit(c)) { number += c; next(); } } return number; } function parseUnit() { var unitName = ''; skipWhitespace(); while (c && c != ' ' && c != '\t') { unitName += c; next(); } return unitName || null; } /** * Parse a string into a unit. Returns null if the provided string does not * contain a valid unit. * @param {String} str A string like "5.2 inch", "4e2 kg" * @return {Unit | null} unit */ Unit.parse = function parse(str) { text = str; index = -1; c = ''; if (!isString(text)) { return null; } next(); skipWhitespace(); var value = parseNumber(); var name; if (value) { name = parseUnit(); next(); skipWhitespace(); if (c) { // garbage at the end. not good. return null; } if (value && name) { try { // constructor will throw an error when unit is not found return new Unit(Number(value), name); } catch (err) {} } } else { name = parseUnit(); next(); skipWhitespace(); if (c) { // garbage at the end. not good. return null; } if (name) { try { // constructor will throw an error when unit is not found return new Unit(null, name); } catch (err) {} } } return null; }; /** * Test whether value is of type Unit * @param {*} value * @return {Boolean} isUnit */ Unit.isUnit = function isUnit(value) { return (value instanceof Unit); }; /** * create a copy of this unit * @return {Unit} clone */ Unit.prototype.clone = function () { var clone = new Unit(); for (var p in this) { if (this.hasOwnProperty(p)) { clone[p] = this[p]; } } return clone; }; /** * Normalize a value, based on its currently set unit * @param {Number} value * @return {Number} normalized value * @private */ Unit.prototype._normalize = function(value) { return (value + this.unit.offset) * this.unit.value * this.prefix.value; }; /** * Unnormalize a value, based on its currently set unit * @param {Number} value * @param {Number} [prefixValue] Optional prefix value to be used * @return {Number} unnormalized value * @private */ Unit.prototype._unnormalize = function (value, prefixValue) { if (prefixValue == undefined) { return value / this.unit.value / this.prefix.value - this.unit.offset; } else { return value / this.unit.value / prefixValue - this.unit.offset; } }; /** * Find a unit from a string * @param {String} str A string like 'cm' or 'inch' * @returns {Object | null} result When found, an object with fields unit and * prefix is returned. Else, null is returned. * @private */ function _findUnit(str) { for (var name in UNITS) { if (UNITS.hasOwnProperty(name)) { if (string.endsWith(str, name) ) { var unit = UNITS[name]; var prefixLen = (str.length - name.length); var prefixName = str.substring(0, prefixLen); var prefix = unit.prefixes[prefixName]; if (prefix !== undefined) { // store unit, prefix, and value return { unit: unit, prefix: prefix }; } } } } return null; } /** * Test if the given expression is a unit. * The unit can have a prefix but cannot have a value. * @param {String} name A string to be tested whether it is a value less unit. * The unit can have prefix, like "cm" * @return {Boolean} true if the given string is a unit */ Unit.isValuelessUnit = function (name) { return (_findUnit(name) != null); }; /** * check if this unit has given base unit * @param {BASE_UNITS | undefined} base */ Unit.prototype.hasBase = function(base) { return (this.unit.base === base); }; /** * Check if this unit has a base equal to another base * @param {Unit} other * @return {Boolean} true if equal base */ Unit.prototype.equalBase = function(other) { return (this.unit.base === other.unit.base); }; /** * Check if this unit equals another unit * @param {Unit} other * @return {Boolean} true if both units are equal */ Unit.prototype.equals = function(other) { return (this.equalBase(other) && this.value == other.value); }; /** * Create a clone of this unit with a representation * @param {String | Unit} valuelessUnit A unit without value. Can have prefix, like "cm" * @returns {Unit} unit having fixed, specified unit */ Unit.prototype.to = function (valuelessUnit) { var other; if (isString(valuelessUnit)) { other = new Unit(null, valuelessUnit); if (!this.equalBase(other)) { throw new Error('Units do not match'); } other.value = this.value; other.fixPrefix = true; return other; } else if (valuelessUnit instanceof Unit) { if (!this.equalBase(valuelessUnit)) { throw new Error('Units do not match'); } if (valuelessUnit.value !== null) { throw new Error('Cannot convert to a unit with a value'); } other = valuelessUnit.clone(); other.value = this.value; other.fixPrefix = true; return other; } else { throw new Error('String or Unit expected as parameter'); } }; /** * Return the value of the unit when represented with given valueless unit * @param {String | Unit} valuelessUnit For example 'cm' or 'inch' * @return {Number} value */ Unit.prototype.toNumber = function (valuelessUnit) { var other = this.to(valuelessUnit); return other._unnormalize(other.value, other.prefix.value); }; /** * Get a string representation of the unit. * @return {String} */ Unit.prototype.toString = function() { return this.format(); }; /** * Returns the string representation of the unit. * @return {String} */ Unit.prototype.valueOf = Unit.prototype.toString; /** * Get a string representation of the Unit, with optional formatting options. * @param {Object | Number | Function} [options] Formatting options. See * lib/util/number:format for a * description of the available * options. * @return {String} */ Unit.prototype.format = function format(options) { var value, str; if (this.value !== null && !this.fixPrefix) { var bestPrefix = this._bestPrefix(); value = this._unnormalize(this.value, bestPrefix.value); str = number.format(value, options) + ' '; str += bestPrefix.name + this.unit.name; } else { value = this._unnormalize(this.value); str = (this.value !== null) ? (number.format(value, options) + ' ') : ''; str += this.prefix.name + this.unit.name; } return str; }; /** * Calculate the best prefix using current value. * @returns {Object} prefix * @private */ Unit.prototype._bestPrefix = function () { // find the best prefix value (resulting in the value of which // the absolute value of the log10 is closest to zero, // though with a little offset of 1.2 for nicer values: you get a // sequence 1mm 100mm 500mm 0.6m 1m 10m 100m 500m 0.6km 1km ... var absValue = Math.abs(this.value / this.unit.value); var bestPrefix = PREFIX_NONE; var bestDiff = Math.abs( Math.log(absValue / bestPrefix.value) / Math.LN10 - 1.2); var prefixes = this.unit.prefixes; for (var p in prefixes) { if (prefixes.hasOwnProperty(p)) { var prefix = prefixes[p]; if (prefix.scientific) { var diff = Math.abs( Math.log(absValue / prefix.value) / Math.LN10 - 1.2); if (diff < bestDiff) { bestPrefix = prefix; bestDiff = diff; } } } } return bestPrefix; }; var PREFIXES = { NONE: { '': {name: '', value: 1, scientific: true} }, SHORT: { '': {name: '', value: 1, scientific: true}, 'da': {name: 'da', value: 1e1, scientific: false}, 'h': {name: 'h', value: 1e2, scientific: false}, 'k': {name: 'k', value: 1e3, scientific: true}, 'M': {name: 'M', value: 1e6, scientific: true}, 'G': {name: 'G', value: 1e9, scientific: true}, 'T': {name: 'T', value: 1e12, scientific: true}, 'P': {name: 'P', value: 1e15, scientific: true}, 'E': {name: 'E', value: 1e18, scientific: true}, 'Z': {name: 'Z', value: 1e21, scientific: true}, 'Y': {name: 'Y', value: 1e24, scientific: true}, 'd': {name: 'd', value: 1e-1, scientific: false}, 'c': {name: 'c', value: 1e-2, scientific: false}, 'm': {name: 'm', value: 1e-3, scientific: true}, 'u': {name: 'u', value: 1e-6, scientific: true}, 'n': {name: 'n', value: 1e-9, scientific: true}, 'p': {name: 'p', value: 1e-12, scientific: true}, 'f': {name: 'f', value: 1e-15, scientific: true}, 'a': {name: 'a', value: 1e-18, scientific: true}, 'z': {name: 'z', value: 1e-21, scientific: true}, 'y': {name: 'y', value: 1e-24, scientific: true} }, LONG: { '': {name: '', value: 1, scientific: true}, 'deca': {name: 'deca', value: 1e1, scientific: false}, 'hecto': {name: 'hecto', value: 1e2, scientific: false}, 'kilo': {name: 'kilo', value: 1e3, scientific: true}, 'mega': {name: 'mega', value: 1e6, scientific: true}, 'giga': {name: 'giga', value: 1e9, scientific: true}, 'tera': {name: 'tera', value: 1e12, scientific: true}, 'peta': {name: 'peta', value: 1e15, scientific: true}, 'exa': {name: 'exa', value: 1e18, scientific: true}, 'zetta': {name: 'zetta', value: 1e21, scientific: true}, 'yotta': {name: 'yotta', value: 1e24, scientific: true}, 'deci': {name: 'deci', value: 1e-1, scientific: false}, 'centi': {name: 'centi', value: 1e-2, scientific: false}, 'milli': {name: 'milli', value: 1e-3, scientific: true}, 'micro': {name: 'micro', value: 1e-6, scientific: true}, 'nano': {name: 'nano', value: 1e-9, scientific: true}, 'pico': {name: 'pico', value: 1e-12, scientific: true}, 'femto': {name: 'femto', value: 1e-15, scientific: true}, 'atto': {name: 'atto', value: 1e-18, scientific: true}, 'zepto': {name: 'zepto', value: 1e-21, scientific: true}, 'yocto': {name: 'yocto', value: 1e-24, scientific: true} }, SQUARED: { '': {name: '', value: 1, scientific: true}, 'da': {name: 'da', value: 1e2, scientific: false}, 'h': {name: 'h', value: 1e4, scientific: false}, 'k': {name: 'k', value: 1e6, scientific: true}, 'M': {name: 'M', value: 1e12, scientific: true}, 'G': {name: 'G', value: 1e18, scientific: true}, 'T': {name: 'T', value: 1e24, scientific: true}, 'P': {name: 'P', value: 1e30, scientific: true}, 'E': {name: 'E', value: 1e36, scientific: true}, 'Z': {name: 'Z', value: 1e42, scientific: true}, 'Y': {name: 'Y', value: 1e48, scientific: true}, 'd': {name: 'd', value: 1e-2, scientific: false}, 'c': {name: 'c', value: 1e-4, scientific: false}, 'm': {name: 'm', value: 1e-6, scientific: true}, 'u': {name: 'u', value: 1e-12, scientific: true}, 'n': {name: 'n', value: 1e-18, scientific: true}, 'p': {name: 'p', value: 1e-24, scientific: true}, 'f': {name: 'f', value: 1e-30, scientific: true}, 'a': {name: 'a', value: 1e-36, scientific: true}, 'z': {name: 'z', value: 1e-42, scientific: true}, 'y': {name: 'y', value: 1e-42, scientific: true} }, CUBIC: { '': {name: '', value: 1, scientific: true}, 'da': {name: 'da', value: 1e3, scientific: false}, 'h': {name: 'h', value: 1e6, scientific: false}, 'k': {name: 'k', value: 1e9, scientific: true}, 'M': {name: 'M', value: 1e18, scientific: true}, 'G': {name: 'G', value: 1e27, scientific: true}, 'T': {name: 'T', value: 1e36, scientific: true}, 'P': {name: 'P', value: 1e45, scientific: true}, 'E': {name: 'E', value: 1e54, scientific: true}, 'Z': {name: 'Z', value: 1e63, scientific: true}, 'Y': {name: 'Y', value: 1e72, scientific: true}, 'd': {name: 'd', value: 1e-3, scientific: false}, 'c': {name: 'c', value: 1e-6, scientific: false}, 'm': {name: 'm', value: 1e-9, scientific: true}, 'u': {name: 'u', value: 1e-18, scientific: true}, 'n': {name: 'n', value: 1e-27, scientific: true}, 'p': {name: 'p', value: 1e-36, scientific: true}, 'f': {name: 'f', value: 1e-45, scientific: true}, 'a': {name: 'a', value: 1e-54, scientific: true}, 'z': {name: 'z', value: 1e-63, scientific: true}, 'y': {name: 'y', value: 1e-72, scientific: true} }, BINARY_SHORT: { '': {name: '', value: 1, scientific: true}, 'k': {name: 'k', value: 1024, scientific: true}, 'M': {name: 'M', value: Math.pow(1024, 2), scientific: true}, 'G': {name: 'G', value: Math.pow(1024, 3), scientific: true}, 'T': {name: 'T', value: Math.pow(1024, 4), scientific: true}, 'P': {name: 'P', value: Math.pow(1024, 5), scientific: true}, 'E': {name: 'E', value: Math.pow(1024, 6), scientific: true}, 'Z': {name: 'Z', value: Math.pow(1024, 7), scientific: true}, 'Y': {name: 'Y', value: Math.pow(1024, 8), scientific: true}, 'Ki': {name: 'Ki', value: 1024, scientific: true}, 'Mi': {name: 'Mi', value: Math.pow(1024, 2), scientific: true}, 'Gi': {name: 'Gi', value: Math.pow(1024, 3), scientific: true}, 'Ti': {name: 'Ti', value: Math.pow(1024, 4), scientific: true}, 'Pi': {name: 'Pi', value: Math.pow(1024, 5), scientific: true}, 'Ei': {name: 'Ei', value: Math.pow(1024, 6), scientific: true}, 'Zi': {name: 'Zi', value: Math.pow(1024, 7), scientific: true}, 'Yi': {name: 'Yi', value: Math.pow(1024, 8), scientific: true} }, BINARY_LONG: { '': {name: '', value: 1, scientific: true}, 'kilo': {name: 'kilo', value: 1024, scientific: true}, 'mega': {name: 'mega', value: Math.pow(1024, 2), scientific: true}, 'giga': {name: 'giga', value: Math.pow(1024, 3), scientific: true}, 'tera': {name: 'tera', value: Math.pow(1024, 4), scientific: true}, 'peta': {name: 'peta', value: Math.pow(1024, 5), scientific: true}, 'exa': {name: 'exa', value: Math.pow(1024, 6), scientific: true}, 'zetta': {name: 'zetta', value: Math.pow(1024, 7), scientific: true}, 'yotta': {name: 'yotta', value: Math.pow(1024, 8), scientific: true}, 'kibi': {name: 'kibi', value: 1024, scientific: true}, 'mebi': {name: 'mebi', value: Math.pow(1024, 2), scientific: true}, 'gibi': {name: 'gibi', value: Math.pow(1024, 3), scientific: true}, 'tebi': {name: 'tebi', value: Math.pow(1024, 4), scientific: true}, 'pebi': {name: 'pebi', value: Math.pow(1024, 5), scientific: true}, 'exi': {name: 'exi', value: Math.pow(1024, 6), scientific: true}, 'zebi': {name: 'zebi', value: Math.pow(1024, 7), scientific: true}, 'yobi': {name: 'yobi', value: Math.pow(1024, 8), scientific: true} } }; var PREFIX_NONE = {name: '', value: 1, scientific: true}; var BASE_UNITS = { NONE: {}, LENGTH: {}, // meter MASS: {}, // kilogram TIME: {}, // second CURRENT: {}, // ampere TEMPERATURE: {}, // kelvin LUMINOUS_INTENSITY: {}, // candela AMOUNT_OF_SUBSTANCE: {}, // mole FORCE: {}, // Newton SURFACE: {}, // m2 VOLUME: {}, // m3 ANGLE: {}, // rad BIT: {} // bit (digital) }; BASE_UNIT_NONE = {}; UNIT_NONE = {name: '', base: BASE_UNIT_NONE, value: 1, offset: 0}; var UNITS = { // length meter: {name: 'meter', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.LONG, value: 1, offset: 0}, inch: {name: 'inch', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.0254, offset: 0}, foot: {name: 'foot', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.3048, offset: 0}, yard: {name: 'yard', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.9144, offset: 0}, mile: {name: 'mile', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 1609.344, offset: 0}, link: {name: 'link', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.201168, offset: 0}, rod: {name: 'rod', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 5.029210, offset: 0}, chain: {name: 'chain', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 20.1168, offset: 0}, angstrom: {name: 'angstrom', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 1e-10, offset: 0}, m: {name: 'm', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.SHORT, value: 1, offset: 0}, 'in': {name: 'in', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.0254, offset: 0}, ft: {name: 'ft', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.3048, offset: 0}, yd: {name: 'yd', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.9144, offset: 0}, mi: {name: 'mi', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 1609.344, offset: 0}, li: {name: 'li', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.201168, offset: 0}, rd: {name: 'rd', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 5.029210, offset: 0}, ch: {name: 'ch', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 20.1168, offset: 0}, mil: {name: 'mil', base: BASE_UNITS.LENGTH, prefixes: PREFIXES.NONE, value: 0.0000254, offset: 0}, // 1/1000 inch // Surface m2: {name: 'm2', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.SQUARED, value: 1, offset: 0}, sqin: {name: 'sqin', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 0.00064516, offset: 0}, // 645.16 mm2 sqft: {name: 'sqft', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 0.09290304, offset: 0}, // 0.09290304 m2 sqyd: {name: 'sqyd', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 0.83612736, offset: 0}, // 0.83612736 m2 sqmi: {name: 'sqmi', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 2589988.110336, offset: 0}, // 2.589988110336 km2 sqrd: {name: 'sqrd', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 25.29295, offset: 0}, // 25.29295 m2 sqch: {name: 'sqch', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 404.6873, offset: 0}, // 404.6873 m2 sqmil: {name: 'sqmil', base: BASE_UNITS.SURFACE, prefixes: PREFIXES.NONE, value: 6.4516e-10, offset: 0}, // 6.4516 * 10^-10 m2 // Volume m3: {name: 'm3', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.CUBIC, value: 1, offset: 0}, L: {name: 'L', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.SHORT, value: 0.001, offset: 0}, // litre l: {name: 'l', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.SHORT, value: 0.001, offset: 0}, // litre litre: {name: 'litre', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.LONG, value: 0.001, offset: 0}, cuin: {name: 'cuin', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 1.6387064e-5, offset: 0}, // 1.6387064e-5 m3 cuft: {name: 'cuft', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.028316846592, offset: 0}, // 28.316 846 592 L cuyd: {name: 'cuyd', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.764554857984, offset: 0}, // 764.554 857 984 L teaspoon: {name: 'teaspoon', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.000005, offset: 0}, // 5 mL tablespoon: {name: 'tablespoon', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.000015, offset: 0}, // 15 mL //{name: 'cup', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.000240, offset: 0}, // 240 mL // not possible, we have already another cup drop: {name: 'drop', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 5e-8, offset: 0}, // 0.05 mL = 5e-8 m3 gtt: {name: 'gtt', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 5e-8, offset: 0}, // 0.05 mL = 5e-8 m3 // Liquid volume minim: {name: 'minim', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00000006161152, offset: 0}, // 0.06161152 mL fluiddram: {name: 'fluiddram', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0000036966911, offset: 0}, // 3.696691 mL fluidounce: {name: 'fluidounce', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00002957353, offset: 0}, // 29.57353 mL gill: {name: 'gill', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0001182941, offset: 0}, // 118.2941 mL cc: {name: 'cc', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 1e-6, offset: 0}, // 1e-6 L cup: {name: 'cup', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0002365882, offset: 0}, // 236.5882 mL pint: {name: 'pint', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0004731765, offset: 0}, // 473.1765 mL quart: {name: 'quart', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0009463529, offset: 0}, // 946.3529 mL gallon: {name: 'gallon', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.003785412, offset: 0}, // 3.785412 L beerbarrel: {name: 'beerbarrel', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.1173478, offset: 0}, // 117.3478 L oilbarrel: {name: 'oilbarrel', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.1589873, offset: 0}, // 158.9873 L hogshead: {name: 'hogshead', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.2384810, offset: 0}, // 238.4810 L //{name: 'min', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00000006161152, offset: 0}, // 0.06161152 mL // min is already in use as minute fldr: {name: 'fldr', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0000036966911, offset: 0}, // 3.696691 mL floz: {name: 'floz', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00002957353, offset: 0}, // 29.57353 mL gi: {name: 'gi', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0001182941, offset: 0}, // 118.2941 mL cp: {name: 'cp', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0002365882, offset: 0}, // 236.5882 mL pt: {name: 'pt', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0004731765, offset: 0}, // 473.1765 mL qt: {name: 'qt', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.0009463529, offset: 0}, // 946.3529 mL gal: {name: 'gal', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.003785412, offset: 0}, // 3.785412 L bbl: {name: 'bbl', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.1173478, offset: 0}, // 117.3478 L obl: {name: 'obl', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.1589873, offset: 0}, // 158.9873 L //{name: 'hogshead', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.2384810, offset: 0}, // 238.4810 L // TODO: hh? // Mass g: {name: 'g', base: BASE_UNITS.MASS, prefixes: PREFIXES.SHORT, value: 0.001, offset: 0}, gram: {name: 'gram', base: BASE_UNITS.MASS, prefixes: PREFIXES.LONG, value: 0.001, offset: 0}, ton: {name: 'ton', base: BASE_UNITS.MASS, prefixes: PREFIXES.SHORT, value: 907.18474, offset: 0}, tonne: {name: 'tonne', base: BASE_UNITS.MASS, prefixes: PREFIXES.SHORT, value: 1000, offset: 0}, grain: {name: 'grain', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 64.79891e-6, offset: 0}, dram: {name: 'dram', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 1.7718451953125e-3, offset: 0}, ounce: {name: 'ounce', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 28.349523125e-3, offset: 0}, poundmass: {name: 'poundmass', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 453.59237e-3, offset: 0}, hundredweight: {name: 'hundredweight', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 45.359237, offset: 0}, stick: {name: 'stick', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 115e-3, offset: 0}, gr: {name: 'gr', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 64.79891e-6, offset: 0}, dr: {name: 'dr', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 1.7718451953125e-3, offset: 0}, oz: {name: 'oz', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 28.349523125e-3, offset: 0}, lbm: {name: 'lbm', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 453.59237e-3, offset: 0}, cwt: {name: 'cwt', base: BASE_UNITS.MASS, prefixes: PREFIXES.NONE, value: 45.359237, offset: 0}, // Time s: {name: 's', base: BASE_UNITS.TIME, prefixes: PREFIXES.SHORT, value: 1, offset: 0}, min: {name: 'min', base: BASE_UNITS.TIME, prefixes: PREFIXES.NONE, value: 60, offset: 0}, h: {name: 'h', base: BASE_UNITS.TIME, prefixes: PREFIXES.NONE, value: 3600, offset: 0}, second: {name: 'second', base: BASE_UNITS.TIME, prefixes: PREFIXES.LONG, value: 1, offset: 0}, sec: {name: 'sec', base: BASE_UNITS.TIME, prefixes: PREFIXES.LONG, value: 1, offset: 0}, minute: {name: 'minute', base: BASE_UNITS.TIME, prefixes: PREFIXES.NONE, value: 60, offset: 0}, hour: {name: 'hour', base: BASE_UNITS.TIME, prefixes: PREFIXES.NONE, value: 3600, offset: 0}, day: {name: 'day', base: BASE_UNITS.TIME, prefixes: PREFIXES.NONE, value: 86400, offset: 0}, // Angle rad: {name: 'rad', base: BASE_UNITS.ANGLE, prefixes: PREFIXES.NONE, value: 1, offset: 0}, // deg = rad / (2*pi) * 360 = rad / 0.017453292519943295769236907684888 deg: {name: 'deg', base: BASE_UNITS.ANGLE, prefixes: PREFIXES.NONE, value: 0.017453292519943295769236907684888, offset: 0}, // grad = rad / (2*pi) * 400 = rad / 0.015707963267948966192313216916399 grad: {name: 'grad', base: BASE_UNITS.ANGLE, prefixes: PREFIXES.NONE, value: 0.015707963267948966192313216916399, offset: 0}, // cycle = rad / (2*pi) = rad / 6.2831853071795864769252867665793 cycle: {name: 'cycle', base: BASE_UNITS.ANGLE, prefixes: PREFIXES.NONE, value: 6.2831853071795864769252867665793, offset: 0}, // Electric current A: {name: 'A', base: BASE_UNITS.CURRENT, prefixes: PREFIXES.SHORT, value: 1, offset: 0}, ampere: {name: 'ampere', base: BASE_UNITS.CURRENT, prefixes: PREFIXES.LONG, value: 1, offset: 0}, // Temperature // K(C) = °C + 273.15 // K(F) = (°F + 459.67) / 1.8 // K(R) = °R / 1.8 K: {name: 'K', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1, offset: 0}, degC: {name: 'degC', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1, offset: 273.15}, degF: {name: 'degF', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1/1.8, offset: 459.67}, degR: {name: 'degR', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1/1.8, offset: 0}, kelvin: {name: 'kelvin', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1, offset: 0}, celsius: {name: 'celsius', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1, offset: 273.15}, fahrenheit: {name: 'fahrenheit', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1/1.8, offset: 459.67}, rankine: {name: 'rankine', base: BASE_UNITS.TEMPERATURE, prefixes: PREFIXES.NONE, value: 1/1.8, offset: 0}, // amount of substance mol: {name: 'mol', base: BASE_UNITS.AMOUNT_OF_SUBSTANCE, prefixes: PREFIXES.NONE, value: 1, offset: 0}, mole: {name: 'mole', base: BASE_UNITS.AMOUNT_OF_SUBSTANCE, prefixes: PREFIXES.NONE, value: 1, offset: 0}, // luminous intensity cd: {name: 'cd', base: BASE_UNITS.LUMINOUS_INTENSITY, prefixes: PREFIXES.NONE, value: 1, offset: 0}, candela: {name: 'candela', base: BASE_UNITS.LUMINOUS_INTENSITY, prefixes: PREFIXES.NONE, value: 1, offset: 0}, // TODO: units STERADIAN //{name: 'sr', base: BASE_UNITS.STERADIAN, prefixes: PREFIXES.NONE, value: 1, offset: 0}, //{name: 'steradian', base: BASE_UNITS.STERADIAN, prefixes: PREFIXES.NONE, value: 1, offset: 0}, // Force N: {name: 'N', base: BASE_UNITS.FORCE, prefixes: PREFIXES.SHORT, value: 1, offset: 0}, newton: {name: 'newton', base: BASE_UNITS.FORCE, prefixes: PREFIXES.LONG, value: 1, offset: 0}, lbf: {name: 'lbf', base: BASE_UNITS.FORCE, prefixes: PREFIXES.NONE, value: 4.4482216152605, offset: 0}, poundforce: {name: 'poundforce', base: BASE_UNITS.FORCE, prefixes: PREFIXES.NONE, value: 4.4482216152605, offset: 0}, // Binary b: {name: 'b', base: BASE_UNITS.BIT, prefixes: PREFIXES.BINARY_SHORT, value: 1, offset: 0}, bits: {name: 'bits', base: BASE_UNITS.BIT, prefixes: PREFIXES.BINARY_LONG, value: 1, offset: 0}, B: {name: 'B', base: BASE_UNITS.BIT, prefixes: PREFIXES.BINARY_SHORT, value: 8, offset: 0}, bytes: {name: 'bytes', base: BASE_UNITS.BIT, prefixes: PREFIXES.BINARY_LONG, value: 8, offset: 0} }; // plurals var PLURALS = { meters: 'meter', inches: 'inch', feet: 'foot', yards: 'yard', miles: 'mile', links: 'link', rods: 'rod', chains: 'chain', angstroms: 'angstrom', litres: 'litre', teaspoons: 'teaspoon', tablespoons: 'tablespoon', minims: 'minim', fluiddrams: 'fluiddram', fluidounces: 'fluidounce', gills: 'gill', cups: 'cup', pints: 'pint', quarts: 'quart', gallons: 'gallon', beerbarrels: 'beerbarrel', oilbarrels: 'oilbarrel', hogsheads: 'hogshead', gtts: 'gtt', grams: 'gram', tons: 'ton', tonnes: 'tonne', grains: 'grain', drams: 'dram', ounces: 'ounce', poundmasses: 'poundmass', hundredweights: 'hundredweight', sticks: 'stick', seconds: 'second', minutes: 'minute', hours: 'hour', days: 'day', radians: 'rad', degrees: 'deg', gradients: 'grad', cycles: 'cycle', amperes: 'ampere', moles: 'mole' }; for (var name in PLURALS) { /* istanbul ignore next (we cannot really test next statement) */ if (PLURALS.hasOwnProperty(name)) { var unit = UNITS[PLURALS[name]]; var plural = Object.create(unit); plural.name = name; UNITS[name] = plural; } } // aliases UNITS.lt = UNITS.l; UNITS.liter = UNITS.litre; UNITS.liters = UNITS.litres; UNITS.lb = UNITS.lbm; UNITS.lbs = UNITS.lbm; Unit.PREFIXES = PREFIXES; Unit.BASE_UNITS = BASE_UNITS; Unit.UNITS = UNITS; // end of unit aliases // exports module.exports = Unit; /***/ }, /* 10 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), object = util.object, string = util.string; /** * Documentation object * @param {Object} math The math.js namespace * @param {Object} doc Object containing properties: * {String} name * {String} category * {String[]} syntax * {String[]} examples * {String[]} seealso * @constructor */ function Help (math, doc) { if (!(this instanceof Help)) { throw new SyntaxError('Constructor must be called with the new operator'); } // TODO: throw an error when math or doc is not provided this.math = math; this.doc = doc; } /** * Test whether a value is an instance of Help * @param {*} value * @return {Boolean} isHelp */ Help.isHelp = function (value) { return (value instanceof Help); }; /** * Generate readable description from a Help object * @return {String} readableDoc * @private */ Help.prototype.toString = function () { var doc = this.doc || {}; var desc = '\n'; if (doc.name) { desc += 'Name: ' + doc.name + '\n\n'; } if (doc.category) { desc += 'Category: ' + doc.category + '\n\n'; } if (doc.description) { desc += 'Description:\n ' + doc.description + '\n\n'; } if (doc.syntax) { desc += 'Syntax:\n ' + doc.syntax.join('\n ') + '\n\n'; } if (doc.examples) { var parser = this.math.parser(); desc += 'Examples:\n'; for (var i = 0; i < doc.examples.length; i++) { var expr = doc.examples[i]; var res; try { res = parser.eval(expr); } catch (e) { res = e; } desc += ' ' + expr + '\n'; if (res && !(res instanceof Help)) { desc += ' ' + string.format(res) + '\n'; } } desc += '\n'; } if (doc.seealso) { desc += 'See also: ' + doc.seealso.join(', ') + '\n'; } return desc; }; // TODO: implement a toHTML function in Help /** * Export the help object to JSON */ Help.prototype.toJSON = function () { return object.clone(this.doc); }; /** * Returns a string representation of the Help object */ Help.prototype.valueOf = Help.prototype.toString; // exports module.exports = Help; /***/ }, /* 11 */ /***/ function(module, exports, __webpack_require__) { // utility methods for arrays and matrices var util = __webpack_require__(128), DimensionError = __webpack_require__(125), Matrix = __webpack_require__(8), isArray = util.array.isArray, isString = util.string.isString; /** * Convert function arguments to an array. Arguments can have the following * signature: * fn() * fn(n) * fn(m, n, p, ...) * fn([m, n, p, ...]) * @param {...Number | Array | Matrix} args * @returns {Array} array */ exports.argsToArray = function argsToArray(args) { var array; if (args.length == 0) { // fn() array = []; } else if (args.length == 1) { // fn(n) // fn([m, n, p, ...]) array = args[0]; if (array instanceof Matrix) { array = array.valueOf(); } if (!isArray(array)) { array = [array]; } } else { // fn(m, n, p, ...) array = Array.prototype.slice.apply(args); } return array; }; /** * Test whether a value is a collection: an Array or Matrix * @param {*} x * @returns {boolean} isCollection */ exports.isCollection = function isCollection (x) { return (isArray(x) || (x instanceof Matrix)); }; /** * Execute the callback function element wise for each element in array and any * nested array * Returns an array with the results * @param {Array | Matrix} array * @param {function} callback The callback is called with two parameters: * value1 and value2, which contain the current * element of both arrays. * @return {Array | Matrix} res */ exports.deepMap = function deepMap(array, callback) { if (array && (typeof array.map === 'function')) { return array.map(function (x) { return deepMap(x, callback); }); } else { return callback(array); } }; /** * Execute the callback function element wise for each entry in two given arrays, * and for any nested array. Objects can also be scalar objects. * Returns an array with the results. * @param {Array | Matrix | Object} array1 * @param {Array | Matrix | Object} array2 * @param {function} callback The callback is called with two parameters: * value1 and value2, which contain the current * element of both arrays. * @return {Array | Matrix} res */ exports.deepMap2 = function deepMap2(array1, array2, callback) { var res, len, i; if (isArray(array1)) { if (isArray(array2)) { // callback(array, array) if (array1.length != array2.length) { throw new DimensionError(array1.length, array2.length); } res = []; len = array1.length; for (i = 0; i < len; i++) { res[i] = deepMap2(array1[i], array2[i], callback); } } else if (array2 instanceof Matrix) { // callback(array, matrix) res = deepMap2(array1, array2.valueOf(), callback); return new Matrix(res); } else { // callback(array, object) res = []; len = array1.length; for (i = 0; i < len; i++) { res[i] = deepMap2(array1[i], array2, callback); } } } else if (array1 instanceof Matrix) { if (array2 instanceof Matrix) { // callback(matrix, matrix) res = deepMap2(array1.valueOf(), array2.valueOf(), callback); return new Matrix(res); } else { // callback(matrix, array) // callback(matrix, object) res = deepMap2(array1.valueOf(), array2, callback); return new Matrix(res); } } else { if (isArray(array2)) { // callback(object, array) res = []; len = array2.length; for (i = 0; i < len; i++) { res[i] = deepMap2(array1, array2[i], callback); } } else if (array2 instanceof Matrix) { // callback(object, matrix) res = deepMap2(array1, array2.valueOf(), callback); return new Matrix(res); } else { // callback(object, object) res = callback(array1, array2); } } return res; }; /** * Reduce a given matrix or array to a new matrix or * array with one less dimension, applying the given * callback in the selected dimension. * @param {Array | Matrix} mat * @param {Number} dim * @param {function} callback * @return {Array | Matrix} res */ exports.reduce = function reduce (mat, dim, callback) { if (mat instanceof Matrix) { return new Matrix(_reduce(mat.valueOf(), dim, callback)); }else { return _reduce(mat, dim, callback); } }; /** * Recursively reduce a matrix * @param {Array} mat * @param {Number} dim * @param {Function} callback * @returns {Array} ret * @private */ function _reduce(mat, dim, callback){ var i, ret, val, tran; if(dim<=0){ if( !isArray(mat[0]) ){ val = mat[0]; for(i=1; i<mat.length; i++){ val = callback(val, mat[i]); } return val; }else{ tran = _switch(mat); ret = []; for(i=0; i<tran.length; i++){ ret[i] = _reduce(tran[i], dim-1, callback); } return ret } }else{ ret = []; for(i=0; i<mat.length; i++){ ret[i] = _reduce(mat[i], dim-1, callback); } return ret; } } /** * Transpose a matrix * @param {Array} mat * @returns {Array} ret * @private */ function _switch(mat){ var I = mat.length; var J = mat[0].length; var i, j; var ret = []; for( j=0; j<J; j++) { var tmp = []; for( i=0; i<I; i++) { tmp.push(mat[i][j]); } ret.push(tmp); } return ret; } /** * Recursively loop over all elements in a given multi dimensional array * and invoke the callback on each of the elements. * @param {Array | Matrix} array * @param {function} callback The callback method is invoked with one * parameter: the current element in the array */ exports.deepForEach = function deepForEach (array, callback) { if (array instanceof Matrix) { array = array.valueOf(); } for (var i = 0, ii = array.length; i < ii; i++) { var value = array[i]; if (isArray(value)) { deepForEach(value, callback); } else { callback(value); } } }; /***/ }, /* 12 */ /***/ function(module, exports, __webpack_require__) { var util = __webpack_require__(128), ArgumentsError = __webpack_require__(124), isString = util.string.isString, isArray = Array.isArray, type = util.types.type, // types Complex = __webpack_require__(5), Matrix = __webpack_require__(8), Unit = __webpack_require__(9), collection = __webpack_require__(11), // scope and nodes ArrayNode = __webpack_require__(129), AssignmentNode = __webpack_require__(130), BlockNode = __webpack_require__(131), ConditionalNode = __webpack_require__(132), ConstantNode = __webpack_require__(133), FunctionNode = __webpack_require__(135), IndexNode = __webpack_require__(134), OperatorNode = __webpack_require__(137), ParamsNode = __webpack_require__(138), RangeNode = __webpack_require__(139), SymbolNode = __webpack_require__(140), UpdateNode = __webpack_require__(141); /** * Parse an expression. Returns a node tree, which can be evaluated by * invoking node.eval(); * * Syntax: * * parse(expr) * parse(expr, options) * parse([expr1, expr2, expr3, ...]) * parse([expr1, expr2, expr3, ...], options) * * Example: * * var node = parse('sqrt(3^2 + 4^2)'); * node.compile(math).eval(); // 5 * * var scope = {a:3, b:4} * var node = parse('a * b'); // 12 * var code = node.compile(math); * code.eval(scope); // 12 * scope.a = 5; * code.eval(scope); // 20 * * var nodes = math.parse(['a = 3', 'b = 4', 'a * b']); * nodes[2].compile(math).eval(); // 12 * * @param {String | String[] | Matrix} expr * @param {{nodes: Object<String, Node>}} [options] Available options: * - `nodes` a set of custom nodes * @return {Node | Node[]} node * @throws {Error} */ function parse (expr, options) { if (arguments.length != 1 && arguments.length != 2) { throw new ArgumentsError('parse', arguments.length, 1, 2); } // pass extra nodes extra_nodes = (options && options.nodes) ? options.nodes : {}; if (isString(expr)) { // parse a single expression expression = expr; return parseStart(); } else if (isArray(expr) || expr instanceof Matrix) { // parse an array or matrix with expressions return collection.deepMap(expr, function (elem) { if (!isString(elem)) throw new TypeError('String expected'); expression = elem; return parseStart(); }); } else { // oops throw new TypeError('String or matrix expected'); } } // token types enumeration var TOKENTYPE = { NULL : 0, DELIMITER : 1, NUMBER : 2, SYMBOL : 3, UNKNOWN : 4 }; // map with all delimiters var DELIMITERS = { ',': true, '(': true, ')': true, '[': true, ']': true, '\"': true, '\n': true, ';': true, '+': true, '-': true, '*': true, '.*': true, '/': true, './': true, '%': true, '^': true, '.^': true, '!': true, '\'': true, '=': true, ':': true, '?': true, '==': true, '!=': true, '<': true, '>': true, '<=': true, '>=': true }; // map with all named delimiters var NAMED_DELIMITERS = { 'mod': true, 'to': true, 'in': true }; var extra_nodes = {}; // current extra nodes var expression = ''; // current expression var index = 0; // current index in expr var c = ''; // current token character in expr var token = ''; // current token var token_type = TOKENTYPE.NULL; // type of the token /** * Get the first character from the expression. * The character is stored into the char c. If the end of the expression is * reached, the function puts an empty string in c. * @private */ function first() { index = 0; c = expression.charAt(0); } /** * Get the next character from the expression. * The character is stored into the char c. If the end of the expression is * reached, the function puts an empty string in c. * @private */ function next() { index++; c = expression.charAt(index); } /** * Preview the next character from the expression. * @return {String} cNext * @private */ function nextPreview() { return expression.charAt(index + 1); } /** * Get next token in the current string expr. * The token and token type are available as token and token_type * @private */ function getToken() { token_type = TOKENTYPE.NULL; token = ''; // skip over whitespaces while (c == ' ' || c == '\t') { // space, tab // TODO: also take '\r' carriage return as newline? Or does that give problems on mac? next(); } // skip comment if (c == '#') { while (c != '\n' && c != '') { next(); } } // check for end of expression if (c == '') { // token is still empty token_type = TOKENTYPE.DELIMITER; return; } // check for delimiters consisting of 2 characters var c2 = c + nextPreview(); if (c2.length == 2 && DELIMITERS[c2]) { token_type = TOKENTYPE.DELIMITER; token = c2; next(); next(); return; } // check for delimiters consisting of 1 character if (DELIMITERS[c]) { token_type = TOKENTYPE.DELIMITER; token = c; next(); return; } // check for a number if (isDigitDot(c)) { token_type = TOKENTYPE.NUMBER; // get number, can have a single dot if (c == '.') { token += c; next(); if (!isDigit(c)) { // this is no legal number, it is just a dot token_type = TOKENTYPE.UNKNOWN; } } else { while (isDigit(c)) { token += c; next(); } if (c == '.') { token += c; next(); } } while (isDigit(c)) { token += c; next(); } // check for exponential notation like "2.3e-4" or "1.23e50" if (c == 'E' || c == 'e') { token += c; next(); if (c == '+' || c == '-') { token += c; next(); } // Scientific notation MUST be followed by an exponent if (!isDigit(c)) { // this is no legal number, exponent is missing. token_type = TOKENTYPE.UNKNOWN; } while (isDigit(c)) { token += c; next(); } } return; } // check for variables, functions, named operators if (isAlpha(c)) { while (isAlpha(c) || isDigit(c)) { token += c; next(); } if (NAMED_DELIMITERS[token]) { token_type = TOKENTYPE.DELIMITER; } else { token_type = TOKENTYPE.SYMBOL; } return; } // something unknown is found, wrong characters -> a syntax error token_type = TOKENTYPE.UNKNOWN; while (c != '') { token += c; next(); } throw createSyntaxError('Syntax error in part "' + token + '"'); } /** * Skip newline tokens */ function skipNewlines () { while (token == '\n') { getToken(); } } /** * checks if the given char c is a letter (upper or lower case) * or underscore * @param {String} c a string with one character * @return {Boolean} * @private */ function isAlpha (c) { return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_'); } /** * checks if the given char c is a digit or dot * @param {String} c a string with one character * @return {Boolean} * @private */ function isDigitDot (c) { return ((c >= '0' && c <= '9') || c == '.'); } /** * checks if the given char c is a digit * @param {String} c a string with one character * @return {Boolean} * @private */ function isDigit (c) { return ((c >= '0' && c <= '9')); } /** * Start of the parse levels below, in order of precedence * @return {Node} node * @private */ function parseStart () { // get the first character in expression first(); getToken(); var node = parseBlock(); // check for garbage at the end of the expression // an expression ends with a empty character '' and token_type DELIMITER if (token != '') { if (token_type == TOKENTYPE.DELIMITER) { // user entered a not existing operator like "//" // TODO: give hints for aliases, for example with "<>" give as hint " did you mean != ?" throw createError('Unexpected operator ' + token); } else { throw createSyntaxError('Unexpected part "' + token + '"'); } } return node; } /** * Parse a block with expressions. Expressions can be separated by a newline * character '\n', or by a semicolon ';'. In case of a semicolon, no output * of the preceding line is returned. * @return {Node} node * @private */ function parseBlock () { var node, block, visible; if (token == '') { // empty expression return new ConstantNode('undefined', 'undefined'); } if (token != '\n' && token != ';') { node = parseFunctionAssignment(); } while (token == '\n' || token == ';') { if (!block) { // initialize the block block = new BlockNode(); if (node) { visible = (token != ';'); block.add(node, visible); } } getToken(); if (token != '\n' && token != ';' && token != '') { node = parseFunctionAssignment(); visible = (token != ';'); block.add(node, visible); } } if (block) { return block; } return node; } /** * Parse a function assignment like "function f(a,b) = a*b" * @return {Node} node * @private */ function parseFunctionAssignment () { // TODO: function assignment using keyword 'function' is deprecated since version 0.18.0, cleanup some day if (token_type == TOKENTYPE.SYMBOL && token == 'function') { throw createSyntaxError('Deprecated keyword "function". ' + 'Functions can now be assigned without it, like "f(x) = x^2".'); } return parseAssignment(); } /** * Assignment of a variable, can be a variable like "a=2.3" or a updating an * existing variable like "matrix(2,3:5)=[6,7,8]" * @return {Node} node * @private */ function parseAssignment () { var name, args, expr; var node = parseConditional(); if (token == '=') { if (node instanceof SymbolNode) { // parse a variable assignment like 'a = 2/3' name = node.name; getToken(); expr = parseAssignment(); return new AssignmentNode(name, expr); } else if (node instanceof IndexNode) { // parse a matrix subset assignment like 'A[1,2] = 4' getToken(); expr = parseAssignment(); return new UpdateNode(node, expr); } else if (node instanceof ParamsNode) { // parse function assignment like 'f(x) = x^2' var valid = true; args = []; if (node.object instanceof SymbolNode) { name = node.object.name; node.params.forEach(function (param, index) { if (param instanceof SymbolNode) { args[index] = param.name; } else { valid = false; } }); } else { valid = false; } if (valid) { getToken(); expr = parseAssignment(); return new FunctionNode(name, args, expr); } } throw createSyntaxError('Invalid left hand side of assignment operator ='); } return node; } /** * conditional operation * * condition ? truePart : falsePart * * Note: conditional operator is right-associative * * @return {Node} node * @private */ function parseConditional () { var node = parseRange(); while (token == '?') { getToken(); var condition = node; var trueExpr = parseConditions(); // Note: we don't do parseRange here if (token != ':') throw createSyntaxError('False part of conditional expression expected'); getToken(); var falseExpr = parseConditional(); node = new ConditionalNode(condition, trueExpr, falseExpr); } return node; } /** * conditional operators and bitshift * @return {Node} node * @private */ /* TODO: implement bitwise conditions. put on right place for precedence function parseBitwiseConditions () { var node = parseRange(); var operators = { '&' : 'bitwiseand', '|' : 'bitwiseor', // todo: bitwise xor? '<<': 'bitshiftleft', '>>': 'bitshiftright' }; while (token in operators) { var name = token; getToken(); var params = [node, parseComparison()]; node = new OperatorNode(name, fn, params); } return node; } */ /** * parse range, "start:end", "start:step:end", ":", "start:", ":end", etc * @return {Node} node * @private */ function parseRange () { var node, params = []; if (token == ':') { // implicit start=1 (one-based) node = new ConstantNode('1', 'number'); } else { // explicit start node = parseConditions(); } if (token == ':') { params.push(node); // parse step and end while (token == ':') { getToken(); if (token == ')' || token == ']' || token == ',' || token == '') { // implicit end params.push(new SymbolNode('end')); } else { // explicit end params.push(parseConditions()); } } // swap step and end if (params.length == 3) { var step = params[2]; params[2] = params[1]; params[1] = step; } node = new RangeNode(params); } return node; } /** * conditions like and, or, in * @return {Node} node * @private */ function parseConditions () { var node, operators, name, fn, params; node = parseComparison(); // TODO: precedence of And above Or? // TODO: implement a method for unit to number conversion operators = { 'to' : 'to', 'in' : 'to' // alias of to /* TODO: implement conditions 'and' : 'and', '&&' : 'and', 'or': 'or', '||': 'or', 'xor': 'xor' */ }; while (token in operators) { name = token; fn = operators[name]; getToken(); params = [node, parseComparison()]; node = new OperatorNode(name, fn, params); } return node; } /** * comparison operators * @return {Node} node * @private */ function parseComparison () { var node, operators, name, fn, params; node = parseAddSubtract(); operators = { '==': 'equal', '!=': 'unequal', '<': 'smaller', '>': 'larger', '<=': 'smallerEq', '>=': 'largerEq' }; while (token in operators) { name = token; fn = operators[name]; getToken(); params = [node, parseAddSubtract()]; node = new OperatorNode(name, fn, params); } return node; } /** * add or subtract * @return {Node} node * @private */ function parseAddSubtract () { var node, operators, name, fn, params; node = parseMultiplyDivide(); operators = { '+': 'add', '-': 'subtract' }; while (token in operators) { name = token; fn = operators[name]; getToken(); params = [node, parseMultiplyDivide()]; node = new OperatorNode(name, fn, params); } return node; } /** * multiply, divide, modulus * @return {Node} node * @private */ function parseMultiplyDivide () { var node, operators, name, fn, params; node = parseUnary(); operators = { '*': 'multiply', '.*': 'dotMultiply', '/': 'divide', './': 'dotDivide', '%': 'mod', 'mod': 'mod' }; if (token in operators) { while (token in operators) { name = token; fn = operators[name]; getToken(); params = [node, parseUnary()]; node = new OperatorNode(name, fn, params); } } // parse implicit multiplication if ((token_type == TOKENTYPE.SYMBOL) || (token == 'in' && (node instanceof ConstantNode)) || (token_type == TOKENTYPE.NUMBER && !(node instanceof ConstantNode)) || (token == '(' || token == '[')) { // symbol: implicit multiplication like '2a', '(2+3)a', 'a b' // number: implicit multiplication like '(2+3)2' // Note: we don't allow implicit multiplication between numbers, // like '2 3'. I'm not sure whether that is a good idea. // parenthesis: implicit multiplication like '2(3+4)', '(3+4)(1+2)', '2[1,2,3]' node = new OperatorNode('*', 'multiply', [node, parseMultiplyDivide()]); } return node; } /** * Unary plus and minus * @return {Node} node * @private */ function parseUnary () { var name, fn, params; if (token == '-' || token == '+') { name = token; fn = name == '+' ? 'unaryPlus' : 'unaryMinus'; getToken(); params = [parseUnary()]; return new OperatorNode(name, fn, params); } return parsePow(); } /** * power * Note: power operator is right associative * @return {Node} node * @private */ function parsePow () { var node, name, fn, params; node = parseLeftHandOperators(); if (token == '^' || token == '.^') { name = token; fn = (name == '^') ? 'pow' : 'dotPow'; getToken(); params = [node, parseUnary()]; // Go back to unary, we can have '2^-3' node = new OperatorNode(name, fn, params); } return node; } /** * Left hand operators: factorial x!, transpose x' * @return {Node} node * @private */ function parseLeftHandOperators () { var node, operators, name, fn, params; node = parseCustomNodes(); operators = { '!': 'factorial', '\'': 'transpose' }; while (token in operators) { name = token; fn = operators[name]; getToken(); params = [node]; node = new OperatorNode(name, fn, params); } return node; } /** * Parse a custom node handler. A node handler can be used to process * nodes in a custom way, for example for handling a plot. * * A handler must be passed as second argument of the parse function. * - must extend math.expression.node.Node * - must contain a function _compile(defs: Object) : String * - must contain a function find(filter: Object) : Node[] * - must contain a function toString() : String * - the constructor is called with a single argument containing all parameters * * For example: * * nodes = { * 'plot': PlotHandler * }; * * The constructor of the handler is called as: * * node = new PlotHandler(params); * * The handler will be invoked when evaluating an expression like: * * node = math.parse('plot(sin(x), x)', nodes); * * @return {Node} node * @private */ function parseCustomNodes () { var params = [], handler; if (token_type == TOKENTYPE.SYMBOL && extra_nodes[token]) { handler = extra_nodes[token]; getToken(); // parse parameters if (token == '(') { params = []; getToken(); if (token != ')') { params.push(parseConditional()); // parse a list with parameters while (token == ',') { getToken(); params.push(parseConditional()); } } if (token != ')') { throw createSyntaxError('Parenthesis ) expected'); } getToken(); } // create a new node handler //noinspection JSValidateTypes return new handler(params); } return parseSymbol(); } /** * parse symbols: functions, variables, constants, units * @return {Node} node * @private */ function parseSymbol () { var node, name; if (token_type == TOKENTYPE.SYMBOL || (token_type == TOKENTYPE.DELIMITER && token in NAMED_DELIMITERS)) { name = token; getToken(); // create a symbol node = new SymbolNode(name); // parse function parameters and matrix index node = parseParams(node); node = parseIndex(node); return node; } return parseString(); } /** * parse parameters, a function call like fn(a, b, c) * @param {Node} node Node on which to apply the parameters. If there * are no parameters in the expression, the node * itself is returned * @return {Node} node * @private */ function parseParams (node) { var params; if (token == '(') { params = []; getToken(); if (token != ')') { params.push(parseConditional()); // parse a list with parameters while (token == ',') { getToken(); params.push(parseConditional()); } } if (token != ')') { throw createSyntaxError('Parenthesis ) expected'); } getToken(); node = new ParamsNode(node, params); } return node; } /** * parse index parameters, enclosed in square brackets [...], for example A[2,3] * @param {Node} node Node on which to apply the parameters. If there * are no parameters in the expression, the node * itself is returned * @return {Node} node * @private */ function parseIndex (node) { var params; while (token == '[') { params = []; getToken(); if (token != ']') { params.push(parseConditional()); // parse a list with parameters while (token == ',') { getToken(); params.push(parseConditional()); } } if (token != ']') { throw createSyntaxError('Parenthesis ] expected'); } getToken(); node = new IndexNode(node, params); } return node; } /** * parse a string. * A string is enclosed by double quotes * @return {Node} node * @private */ function parseString () { var node, str, tPrev; if (token == '"') { // string "..." str = ''; tPrev = ''; while (c != '' && (c != '\"' || tPrev == '\\')) { // also handle escape character str += c; tPrev = c; next(); } getToken(); if (token != '"') { throw createSyntaxError('End of string " expected'); } getToken(); // create constant node = new ConstantNode(str, 'string'); // parse index parameters node = parseIndex(node); return node; } return parseMatrix(); } /** * parse the matrix * @return {Node} node * @private */ function parseMatrix () { var array, params, rows, cols; if (token == '[') { // matrix [...] getToken(); skipNewlines(); if (token != ']') { // this is a non-empty matrix var row = parseRow(); if (token == ';') { // 2 dimensional array rows = 1; params = [row]; // the rows of the matrix are separated by dot-comma's while (token == ';') { getToken(); skipNewlines(); params[rows] = parseRow(); rows++; skipNewlines(); } if (token != ']') { throw createSyntaxError('End of matrix ] expected'); } getToken(); // check if the number of columns matches in all rows cols = params[0].nodes.length; for (var r = 1; r < rows; r++) { if (params[r].nodes.length != cols) { throw createError('Column dimensions mismatch ' + '(' + params[r].nodes.length + ' != ' + cols + ')'); } } array = new ArrayNode(params); } else { // 1 dimensional vector if (token != ']') { throw createSyntaxError('End of matrix ] expected'); } getToken(); array = row; } } else { // this is an empty matrix "[ ]" getToken(); array = new ArrayNode([]); } return array; } return parseNumber(); } /** * Parse a single comma-separated row from a matrix, like 'a, b, c' * @return {ArrayNode} node */ function parseRow () { var params = [parseAssignment()]; var len = 1; while (token == ',') { getToken(); skipNewlines(); // parse expression params[len] = parseAssignment(); len++; skipNewlines(); } return new ArrayNode(params); } /** * parse a number * @return {Node} node * @private */ function parseNumber () { var node, complex, number; if (token_type == TOKENTYPE.NUMBER) { // this is a number number = token; getToken(); /* if (token == 'i' || token == 'I') { // create a complex number getToken(); node = new ConstantNode(number, 'complex'); } else { // a number node = new ConstantNode(number, 'number'); } */ node = new ConstantNode(number, 'number'); return node; } return parseParentheses(); } /** * parentheses * @return {Node} node * @private */ function parseParentheses () { var node; // check if it is a parenthesized expression if (token == '(') { // parentheses (...) getToken(); node = parseAssignment(); // start again if (token != ')') { throw createSyntaxError('Parenthesis ) expected'); } getToken(); return node; } return parseEnd(); } /** * Evaluated when the expression is not yet ended but expected to end * @return {Node} res * @private */ function parseEnd () { if (token == '') { // syntax error or unexpected end of expression throw createSyntaxError('Unexpected end of expression'); } else { throw createSyntaxError('Value expected'); } } /** * Shortcut for getting the current row value (one based) * Returns the line of the currently handled expression * @private */ /* TODO: implement keeping track on the row number function row () { return null; } */ /** * Shortcut for getting the current col value (one based) * Returns the column (position) where the last token starts * @private */ function col () { return index - token.length + 1; } /** * Create an error * @param {String} message * @return {SyntaxError} instantiated error * @private */ function createSyntaxError (message) { var c = col(); var error = new SyntaxError(message + ' (char ' + c + ')'); error['char'] = c; return error; } /** * Create an error * @param {String} message * @return {Error} instantiated error * @private */ function createError (message) { var c = col(); var error = new Error(message + ' (char ' + c + ')'); error['char'] = c; return error; } module.exports = parse; /***/ }, /* 13 */ /***/ function(module, exports, __webpack_require__) { var _parse = __webpack_require__(12); /** * @constructor Parser * Parser contains methods to evaluate or parse expressions, and has a number * of convenience methods to get, set, and remove variables from memory. Parser * keeps a scope containing variables in memory, which is used for all * evaluations. * * Methods: * var result = parser.eval(expr); // evaluate an expression * var value = parser.get(name); // retrieve a variable from the parser * parser.set(name, value); // set a variable in the parser * parser.remove(name); // clear a variable from the * // parsers scope * parser.clear(); // clear the parsers scope * * Example usage: * var parser = new Parser(math); * // Note: there is a convenience method which can be used instead: * // var parser = new math.parser(); * * // evaluate expressions * parser.eval('sqrt(3^2 + 4^2)'); // 5 * parser.eval('sqrt(-4)'); // 2i * parser.eval('2 inch in cm'); // 5.08 cm * parser.eval('cos(45 deg)'); // 0.7071067811865476 * * // define variables and functions * parser.eval('x = 7 / 2'); // 3.5 * parser.eval('x + 3'); // 6.5 * parser.eval('function f(x, y) = x^y'); // f(x, y) * parser.eval('f(2, 3)'); // 8 * * // get and set variables and functions * var x = parser.get('x'); // 7 * var f = parser.get('f'); // function * var g = f(3, 2); // 9 * parser.set('h', 500); * var i = parser.eval('h / 2'); // 250 * parser.set('hello', function (name) { * return 'hello, ' + name + '!'; * }); * parser.eval('hello("user")'); // "hello, user!" * * // clear defined functions and variables * parser.clear(); * * * @param {Object} math Link to the math.js namespace */ function Parser(math) { if (!(this instanceof Parser)) { throw new SyntaxError( 'Constructor must be called with the new operator'); } if (!(math instanceof Object)) { throw new TypeError('Object expected as parameter math'); } this.math = math; this.scope = {}; } /** * Parse an expression and return the parsed function node. * The node tree can be compiled via `code = node.compile(math)`, * and the compiled code can be executed as `code.eval([scope])` * @param {String} expr * @return {Node} node * @throws {Error} */ Parser.prototype.parse = function (expr) { throw new Error('Parser.parse is deprecated. Use math.parse instead.'); }; /** * Parse and compile an expression, return the compiled javascript code. * The node can be evaluated via code.eval([scope]) * @param {String} expr * @return {{eval: function}} code * @throws {Error} */ Parser.prototype.compile = function (expr) { throw new Error('Parser.compile is deprecated. Use math.compile instead.'); }; /** * Parse and evaluate the given expression * @param {String} expr A string containing an expression, for example "2+3" * @return {*} result The result, or undefined when the expression was empty * @throws {Error} */ Parser.prototype.eval = function (expr) { // TODO: validate arguments return _parse(expr) .compile(this.math) .eval(this.scope); }; /** * Get a variable (a function or variable) by name from the parsers scope. * Returns undefined when not found * @param {String} name * @return {* | undefined} value */ Parser.prototype.get = function (name) { // TODO: validate arguments return this.scope[name]; }; /** * Set a symbol (a function or variable) by name from the parsers scope. * @param {String} name * @param {* | undefined} value */ Parser.prototype.set = function (name, value) { // TODO: validate arguments return this.scope[name] = value; }; /** * Remove a variable from the parsers scope * @param {String} name */ Parser.prototype.remove = function (name) { // TODO: validate arguments delete this.scope[name]; }; /** * Clear the scope with variables and functions */ Parser.prototype.clear = function () { for (var name in this.scope) { if (this.scope.hasOwnProperty(name)) { delete this.scope[name]; } } }; module.exports = Parser; /***/ }, /* 14 */ /***/ function(module, exports, __webpack_require__) { exports.ArrayNode = __webpack_require__(129); exports.AssignmentNode = __webpack_require__(130); exports.BlockNode = __webpack_require__(131); exports.ConditionalNode = __webpack_require__(132); exports.ConstantNode = __webpack_require__(133); exports.IndexNode = __webpack_require__(134); exports.FunctionNode = __webpack_require__(135); exports.Node = __webpack_require__(136); exports.OperatorNode = __webpack_require__(137); exports.ParamsNode = __webpack_require__(138); exports.RangeNode = __webpack_require__(139); exports.SymbolNode = __webpack_require__(140); exports.UpdateNode = __webpack_require__(141); /***/ }, /* 15 */ /***/ function(module, exports, __webpack_require__) { // constants exports.e = __webpack_require__(143); exports.E = __webpack_require__(143); exports['false'] = __webpack_require__(144); exports.i = __webpack_require__(145); exports['Infinity'] = __webpack_require__(146); exports.LN2 = __webpack_require__(147); exports.LN10 = __webpack_require__(148); exports.LOG2E = __webpack_require__(149); exports.LOG10E = __webpack_require__(150); exports.NaN = __webpack_require__(151); exports['null'] = __webpack_require__(152); exports.pi = __webpack_require__(153); exports.PI = __webpack_require__(153); exports.phi = __webpack_require__(154); exports.SQRT1_2 = __webpack_require__(155); exports.SQRT2 = __webpack_require__(156); exports.tau = __webpack_require__(157); exports['true'] = __webpack_require__(158); exports.version = __webpack_require__(159); // functions - arithmetic exports.abs = __webpack_require__(164); exports.add = __webpack_require__(165); exports.ceil = __webpack_require__(166); exports.cube = __webpack_require__(167); exports.divide = __webpack_require__(168); exports.dotDivide = __webpack_require__(169); exports.dotMultiply = __webpack_require__(170); exports.dotPow = __webpack_require__(171); exports.exp = __webpack_require__(172); exports.fix = __webpack_require__(173); exports.floor = __webpack_require__(174); exports.gcd = __webpack_require__(175); exports.lcm = __webpack_require__(176); exports.log = __webpack_require__(177); exports.log10 = __webpack_require__(178); exports.mod = __webpack_require__(179); exports.multiply = __webpack_require__(180); exports.norm = __webpack_require__(181); exports.pow = __webpack_require__(182); exports.round = __webpack_require__(183); exports.sign = __webpack_require__(184); exports.sqrt = __webpack_require__(185); exports.square = __webpack_require__(186); exports.subtract = __webpack_require__(187); exports.unaryMinus = __webpack_require__(188); exports.unaryPlus = __webpack_require__(189); exports.xgcd = __webpack_require__(190); // functions - comparison exports.compare = __webpack_require__(191); exports.deepEqual = __webpack_require__(192); exports['equal'] = __webpack_require__(193); exports.larger = __webpack_require__(194); exports.largerEq = __webpack_require__(195); exports.smaller = __webpack_require__(196); exports.smallerEq = __webpack_require__(197); exports.unequal = __webpack_require__(198); // functions - complex exports.arg = __webpack_require__(199); exports.conj = __webpack_require__(200); exports.re = __webpack_require__(201); exports.im = __webpack_require__(202); // functions - construction exports.bignumber = __webpack_require__(203); exports['boolean'] = __webpack_require__(204); exports.complex = __webpack_require__(205); exports.index = __webpack_require__(206); exports.matrix = __webpack_require__(207); exports.number = __webpack_require__(208); exports.string = __webpack_require__(209); exports.unit = __webpack_require__(210); // functions - epxression exports['eval'] = __webpack_require__(211); exports.help = __webpack_require__(212); // functions - matrix exports['concat'] = __webpack_require__(213); exports.det = __webpack_require__(214); exports.diag = __webpack_require__(215); exports.eye = __webpack_require__(216); exports.inv = __webpack_require__(217); exports.ones = __webpack_require__(218); exports.range = __webpack_require__(219); exports.resize = __webpack_require__(220); exports.size = __webpack_require__(221); exports.squeeze = __webpack_require__(222); exports.subset = __webpack_require__(223); exports.transpose = __webpack_require__(224); exports.zeros = __webpack_require__(225); // functions - probability exports.combinations = __webpack_require__(226); exports.distribution = __webpack_require__(227); exports.factorial = __webpack_require__(228); exports.permutations = __webpack_require__(229); exports.pickRandom = __webpack_require__(230); exports.random = __webpack_require__(231); exports.randomInt = __webpack_require__(232); // functions - statistics exports.max = __webpack_require__(233); exports.mean = __webpack_require__(234); exports.median = __webpack_require__(235); exports.min = __webpack_require__(236); exports.prod = __webpack_require__(237); exports.std = __webpack_require__(238); exports.sum = __webpack_require__(239); exports['var'] = __webpack_require__(240); // functions - trigonometry exports.acos = __webpack_require__(241); exports.asin = __webpack_require__(242); exports.atan = __webpack_require__(243); exports.atan2 = __webpack_require__(244); exports.cos = __webpack_require__(245); exports.cosh = __webpack_require__(246); exports.cot = __webpack_require__(247); exports.coth = __webpack_require__(248); exports.csc = __webpack_require__(249); exports.csch = __webpack_require__(250); exports.sec = __webpack_require__(251); exports.sech = __webpack_require__(252); exports.sin = __webpack_require__(253); exports.sinh = __webpack_require__(254); exports.tan = __webpack_require__(255); exports.tanh = __webpack_require__(256); // functions - units exports.to = __webpack_require__(257); // functions - utils exports.clone = __webpack_require__(258); exports.map = __webpack_require__(259); exports.forEach = __webpack_require__(260); exports.format = __webpack_require__(261); // exports.print = require('./function/utils/print'); // TODO: add documentation for print as soon as the parser supports objects. exports['import'] = __webpack_require__(262); exports['typeof'] = __webpack_require__(263); /***/ }, /* 16 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var string = __webpack_require__(142); /** * @constructor Selector * Wrap any value in a Selector, allowing to perform chained operations on * the value. * * All methods available in the math.js library can be called upon the selector, * and then will be evaluated with the value itself as first argument. * The selector can be closed by executing selector.done(), which will return * the final value. * * The Selector has a number of special functions: * - done() Finalize the chained operation and return the * selectors value. * - valueOf() The same as done() * - toString() Returns a string representation of the selectors value. * * @param {*} [value] */ function Selector (value) { if (!(this instanceof Selector)) { throw new SyntaxError('Constructor must be called with the new operator'); } if (value instanceof Selector) { this.value = value.value; } else { this.value = value; } } /** * Close the selector. Returns the final value. * Does the same as method valueOf() * @returns {*} value */ Selector.prototype.done = function () { return this.value; }; /** * Close the selector. Returns the final value. * Does the same as method done() * @returns {*} value */ Selector.prototype.valueOf = function () { return this.value; }; /** * Get a string representation of the value in the selector * @returns {String} */ Selector.prototype.toString = function () { return string.format(this.value); }; /** * Create a proxy method for the selector * @param {String} name * @param {*} value The value or function to be proxied */ function createProxy(name, value) { var slice = Array.prototype.slice; if (typeof value === 'function') { // a function Selector.prototype[name] = function () { var args = [this.value].concat(slice.call(arguments, 0)); return new Selector(value.apply(this, args)); } } else { // a constant Selector.prototype[name] = new Selector(value); } } Selector.createProxy = createProxy; /** * initialise the Chain prototype with all functions and constants in math */ for (var prop in math) { if (math.hasOwnProperty(prop)) { createProxy(prop, math[prop]); } } return Selector; }; /***/ }, /* 17 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), _parse = __webpack_require__(12), collection = __webpack_require__(11), isString = util.string.isString, isCollection = collection.isCollection; /** * Parse and compile an expression. * Returns a an object with a function `eval([scope])` to evaluate the * compiled expression. * * Syntax: * * math.compile(expr) // returns one node * math.compile([expr1, expr2, expr3, ...]) // returns an array with nodes * * Examples: * * var code = math.compile('sqrt(3^2 + 4^2)'); * code.eval(); // 5 * * var scope = {a: 3, b: 4} * var code = math.compile('a * b'); // 12 * code.eval(scope); // 12 * scope.a = 5; * code.eval(scope); // 20 * * var nodes = math.compile(['a = 3', 'b = 4', 'a * b']); * nodes[2].eval(); // 12 * * See also: * * parse, eval * * @param {String | String[] | Matrix} expr * The expression to be compiled * @return {{eval: Function} | Array.<{eval: Function}>} code * An object with the compiled expression * @throws {Error} */ math.compile = function compile (expr) { if (arguments.length != 1) { throw new math.error.ArgumentsError('compile', arguments.length, 1); } if (isString(expr)) { // evaluate a single expression return _parse(expr).compile(math); } else if (isCollection(expr)) { // evaluate an array or matrix with expressions return collection.deepMap(expr, function (elem) { return _parse(elem).compile(math); }); } else { // oops throw new TypeError('String, array, or matrix expected'); } } }; /***/ }, /* 18 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), _parse = __webpack_require__(12), collection = __webpack_require__(11), isString = util.string.isString, isCollection = collection.isCollection; /** * Evaluate an expression. * * Syntax: * * math.eval(expr) * math.eval(expr, scope) * math.eval([expr1, expr2, expr3, ...]) * math.eval([expr1, expr2, expr3, ...], scope) * * Example: * * math.eval('(2+3)/4'); // 1.25 * math.eval('sqrt(3^2 + 4^2)'); // 5 * math.eval('sqrt(-4)'); // 2i * math.eval(['a=3', 'b=4', 'a*b']);, // [3, 4, 12] * * var scope = {a:3, b:4}; * math.eval('a * b', scope); // 12 * * See also: * * parse, compile * * @param {String | String[] | Matrix} expr The expression to be evaluated * @param {Object} [scope] Scope to read/write variables * @return {*} The result of the expression * @throws {Error} */ math.eval = function _eval (expr, scope) { if (arguments.length != 1 && arguments.length != 2) { throw new math.error.ArgumentsError('eval', arguments.length, 1, 2); } // instantiate a scope scope = scope || {}; if (isString(expr)) { // evaluate a single expression return _parse(expr) .compile(math) .eval(scope); } else if (isCollection(expr)) { // evaluate an array or matrix with expressions return collection.deepMap(expr, function (elem) { return _parse(elem) .compile(math).eval(scope); }); } else { // oops throw new TypeError('String, array, or matrix expected'); } }; }; /***/ }, /* 19 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Help = __webpack_require__(10); /** * Retrieve help on a function or data type. * Help files are retrieved from the documentation in math.expression.docs. * * Syntax: * * math.help(search) * * Examples: * * console.log(math.help('sin').toString()); * console.log(math.help(math.add).toString()); * console.log(math.help(math.add).toJSON()); * * @param {function | string | Object} search A function or function name * for which to get help * @return {Help} A help object */ math.help = function help(search) { if (arguments.length != 1) { throw new SyntaxError('Wrong number of arguments in function help ' + '(' + arguments.length + ' provided, 1 expected)'); } var text = null; if ((search instanceof String) || (typeof(search) === 'string')) { text = search; } else { var prop; for (prop in math) { // search in functions and constants if (math.hasOwnProperty(prop) && (search === math[prop])) { text = prop; break; } } /* TODO: implement help for data types if (!text) { // search data type for (prop in math.type) { if (math.type.hasOwnProperty(prop)) { if (search === math.type[prop]) { text = prop; break; } } } } */ } var doc = math.expression.docs[text]; if (!text || !doc) { throw new Error('No documentation found on "' + text + '"'); } return new Help(math, doc); }; }; /***/ }, /* 20 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var _parse = __webpack_require__(12); /** * Parse an expression. * Returns a node tree which can be compiled and evaluated. * * Syntax: * * math.parse(expr) * math.parse(expr, nodes) * math.parse([expr1, expr2, expr3, ...]) * math.parse([expr1, expr2, expr3, ...], nodes) * * Example: * * var node = math.parse('sqrt(3^2 + 4^2)'); * node.compile(math).eval(); // 5 * * var scope = {a: 3, b: 4} * var node = math.parse('a * b'); // 12 * var code = node.compile(math); * code.eval(scope); // 12 * scope.a = 5; * code.eval(scope); // 20 * * var nodes = math.parse(['a = 3', 'b = 4', 'a * b']); * var scope2 = {}; * nodes.map(function(node) { * return node.compile(math).eval(scope2); * }); // returns [3, 4, 12] * * @param {String | String[] | Matrix} expr Expression to be parsed * @param {Object<String, Node>} [nodes] Optional custom nodes * @return {Node | Node[]} A node tree * @throws {Error} */ math.parse = function parse (expr, nodes) { return _parse.apply(_parse, arguments); } }; /***/ }, /* 21 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the absolute value of a number. For matrices, the function is * evaluated element wise. * * Syntax: * * math.abs(x) * * Examples: * * math.abs(3.5); // returns Number 3.5 * math.abs(-4.2); // returns Number 4.2 * * math.abs([3, -5, -1, 0, 2]); // returns Array [3, 5, 1, 0, 2] * * See also: * * sign * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x * A number or matrix for which to get the absolute value * @return {Number | BigNumber | Complex | Array | Matrix} * Absolute value of `x` */ math.abs = function abs(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('abs', arguments.length, 1); } if (isNumber(x)) { return Math.abs(x); } if (isComplex(x)) { return Math.sqrt(x.re * x.re + x.im * x.im); } if (x instanceof BigNumber) { return x.abs(); } if (isCollection(x)) { return collection.deepMap(x, abs); } if (isBoolean(x)) { return Math.abs(x); } throw new math.error.UnsupportedTypeError('abs', math['typeof'](x)); }; }; /***/ }, /* 22 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), Unit = __webpack_require__(9), collection = __webpack_require__(11), isBoolean = util['boolean'].isBoolean, isNumber = util.number.isNumber, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Add two values, `x + y`. * For matrices, the function is evaluated element wise. * * Syntax: * * math.add(x, y) * * Examples: * * math.add(2, 3); // returns Number 5 * * var a = math.complex(2, 3); * var b = math.complex(-4, 1); * math.add(a, b); // returns Complex -2 + 4i * * math.add([1, 2, 3], 4); // returns Array [5, 6, 7] * * var c = math.unit('5 cm'); * var d = math.unit('2.1 mm'); * math.add(c, d); // returns Unit 52.1 mm * * See also: * * subtract * * @param {Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix} x First value to add * @param {Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix} y Second value to add * @return {Number | BigNumber | Complex | Unit | String | Array | Matrix} Sum of `x` and `y` */ math.add = function add(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('add', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { // number + number return x + y; } else if (isComplex(y)) { // number + complex return new Complex( x + y.re, y.im ) } } if (isComplex(x)) { if (isComplex(y)) { // complex + complex return new Complex( x.re + y.re, x.im + y.im ); } else if (isNumber(y)) { // complex + number return new Complex( x.re + y, x.im ) } } if (isUnit(x)) { if (isUnit(y)) { if (x.value == null) { throw new Error('Parameter x contains a unit with undefined value'); } if (y.value == null) { throw new Error('Parameter y contains a unit with undefined value'); } if (!x.equalBase(y)) { throw new Error('Units do not match'); } var res = x.clone(); res.value += y.value; res.fixPrefix = false; return res; } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.plus(y); } // downgrade to Number return add(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.plus(y) } // downgrade to Number return add(x, y.toNumber()); } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, add); } if (isString(x) || isString(y)) { return x + y; } if (isBoolean(x)) { return add(+x, y); } if (isBoolean(y)) { return add(x, +y); } throw new math.error.UnsupportedTypeError('add', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isCollection =collection.isCollection, isComplex = Complex.isComplex; /** * Round a value towards plus infinity * If `x` is complex, both real and imaginary part are rounded towards plus infinity. * For matrices, the function is evaluated element wise. * * Syntax: * * math.ceil(x) * * Examples: * * math.ceil(3.2); // returns Number 4 * math.ceil(3.8); // returns Number 4 * math.ceil(-4.2); // returns Number -4 * math.ceil(-4.7); // returns Number -4 * * var c = math.complex(3.2, -2.7); * math.ceil(c); // returns Complex 4 - 2i * * math.ceil([3.2, 3.8, -4.7]); // returns Array [4, 4, -4] * * See also: * * floor, fix, round * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x Number to be rounded * @return {Number | BigNumber | Complex | Array | Matrix} Rounded value */ math.ceil = function ceil(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('ceil', arguments.length, 1); } if (isNumber(x)) { return Math.ceil(x); } if (isComplex(x)) { return new Complex ( Math.ceil(x.re), Math.ceil(x.im) ); } if (x instanceof BigNumber) { return x.ceil(); } if (isCollection(x)) { return collection.deepMap(x, ceil); } if (isBoolean(x)) { return Math.ceil(x); } throw new math.error.UnsupportedTypeError('ceil', math['typeof'](x)); }; }; /***/ }, /* 24 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Compute the cube of a value, `x * x * x`. * For matrices, the function is evaluated element wise. * * Syntax: * * math.cube(x) * * Examples: * * math.cube(2); // returns Number 8 * math.pow(2, 3); // returns Number 8 * math.cube(4); // returns Number 64 * 4 * 4 * 4; // returns Number 64 * * math.cube([1, 2, 3, 4]); // returns Array [1, 8, 27, 64] * * See also: * * multiply, square, pow * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x Number for which to calculate the cube * @return {Number | BigNumber | Complex | Array | Matrix} Cube of x */ math.cube = function cube(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('cube', arguments.length, 1); } if (isNumber(x)) { return x * x * x; } if (isComplex(x)) { return math.multiply(math.multiply(x, x), x); } if (x instanceof BigNumber) { return x.times(x).times(x); } if (isCollection(x)) { return collection.deepMap(x, cube); } if (isBoolean(x)) { return cube(+x); } throw new math.error.UnsupportedTypeError('cube', math['typeof'](x)); }; }; /***/ }, /* 25 */ /***/ function(module, exports, __webpack_require__) { module.exports = function(math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Divide two values, `x / y`. * To divide matrices, `x` is multiplied with the inverse of `y`: `x * inv(y)`. * * Syntax: * * math.divide(x, y) * * Examples: * * math.divide(2, 3); // returns Number 0.6666666666666666 * * var a = math.complex(5, 14); * var b = math.complex(4, 1); * math.divide(a, b); // returns Complex 2 + 3i * * var c = [[7, -6], [13, -4]]; * var d = [[1, 2], [4, 3]]; * math.divide(c, d); // returns Array [[-9, 4], [-11, 6]] * * var e = math.unit('18 km'); * math.divide(e, 4.5); // returns Unit 4 km * * See also: * * multiply * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x Numerator * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} y Denominator * @return {Number | BigNumber | Complex | Unit | Array | Matrix} Quotient, `x / y` */ math.divide = function divide(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('divide', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { // number / number return x / y; } else if (isComplex(y)) { // number / complex return _divideComplex(new Complex(x, 0), y); } } if (isComplex(x)) { if (isComplex(y)) { // complex / complex return _divideComplex(x, y); } else if (isNumber(y)) { // complex / number return _divideComplex(x, new Complex(y, 0)); } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.div(y); } // downgrade to Number return divide(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.div(y) } // downgrade to Number return divide(x, y.toNumber()); } if (isUnit(x)) { if (isNumber(y)) { var res = x.clone(); res.value /= y; return res; } } if (isCollection(x)) { if (isCollection(y)) { // TODO: implement matrix right division using pseudo inverse // http://www.mathworks.nl/help/matlab/ref/mrdivide.html // http://www.gnu.org/software/octave/doc/interpreter/Arithmetic-Ops.html // http://stackoverflow.com/questions/12263932/how-does-gnu-octave-matrix-division-work-getting-unexpected-behaviour return math.multiply(x, math.inv(y)); } else { // matrix / scalar return collection.deepMap2(x, y, divide); } } if (isCollection(y)) { // TODO: implement matrix right division using pseudo inverse return math.multiply(x, math.inv(y)); } if (isBoolean(x)) { return divide(+x, y); } if (isBoolean(y)) { return divide(x, +y); } throw new math.error.UnsupportedTypeError('divide', math['typeof'](x), math['typeof'](y)); }; /** * Divide two complex numbers. x / y or divide(x, y) * @param {Complex} x * @param {Complex} y * @return {Complex} res * @private */ function _divideComplex (x, y) { var den = y.re * y.re + y.im * y.im; if (den != 0) { return new Complex( (x.re * y.re + x.im * y.im) / den, (x.im * y.re - x.re * y.im) / den ); } else { // both y.re and y.im are zero return new Complex( (x.re != 0) ? (x.re / 0) : 0, (x.im != 0) ? (x.im / 0) : 0 ); } } }; /***/ }, /* 26 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var collection = __webpack_require__(11); /** * Divide two matrices element wise. The function accepts both matrices and * scalar values. * * Syntax: * * math.dotDivide(x, y) * * Examples: * * math.dotDivide(2, 4); // returns 0.5 * * a = [[9, 5], [6, 1]]; * b = [[3, 2], [5, 2]]; * * math.dotDivide(a, b); // returns [[3, 2.5], [1.2, 0.5]] * math.divide(a, b); // returns [[1.75, 0.75], [-1.75, 2.25]] * * See also: * * divide, multiply, dotMultiply * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x Numerator * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} y Denominator * @return {Number | BigNumber | Complex | Unit | Array | Matrix} Quotient, `x ./ y` */ math.dotDivide = function dotDivide(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('dotDivide', arguments.length, 2); } return collection.deepMap2(x, y, math.divide); }; // TODO: deprecated since version 0.23.0, clean up some day math.edivide = function () { throw new Error('Function edivide is renamed to dotDivide'); } }; /***/ }, /* 27 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), collection = __webpack_require__(11); /** * Multiply two matrices element wise. The function accepts both matrices and * scalar values. * * Syntax: * * math.dotMultiply(x, y) * * Examples: * * math.dotMultiply(2, 4); // returns 8 * * a = [[9, 5], [6, 1]]; * b = [[3, 2], [5, 2]]; * * math.dotMultiply(a, b); // returns [[27, 10], [30, 2]] * math.multiply(a, b); // returns [[52, 28], [23, 14]] * * See also: * * multiply, divide, dotDivide * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x Left hand value * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} y Right hand value * @return {Number | BigNumber | Complex | Unit | Array | Matrix} Multiplication of `x` and `y` */ math.dotMultiply = function dotMultiply(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('dotMultiply', arguments.length, 2); } return collection.deepMap2(x, y, math.multiply); }; // TODO: deprecated since version 0.23.0, clean up some day math.emultiply = function () { throw new Error('Function emultiply is renamed to dotMultiply'); } }; /***/ }, /* 28 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), collection = __webpack_require__(11); /** * Calculates the power of x to y element wise. * * Syntax: * * math.dotPow(x, y) * * Examples: * * math.dotPow(2, 3); // returns Number 8 * * var a = [[1, 2], [4, 3]]; * math.dotPow(a, 2); // returns Array [[1, 4], [16, 9]] * math.pow(a, 2); // returns Array [[9, 8], [16, 17]] * * See also: * * pow, sqrt, multiply * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x The base * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} y The exponent * @return {Number | BigNumber | Complex | Unit | Array | Matrix} The value of `x` to the power `y` */ math.dotPow = function dotPow(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('dotPow', arguments.length, 2); } return collection.deepMap2(x, y, math.pow); }; // TODO: deprecated since version 0.23.0, clean up some day math.epow = function () { throw new Error('Function epow is renamed to dotPow'); } }; /***/ }, /* 29 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the exponent of a value. * For matrices, the function is evaluated element wise. * * Syntax: * * math.exp(x) * * Examples: * * math.exp(2); // returns Number 7.3890560989306495 * math.pow(math.e, 2); // returns Number 7.3890560989306495 * math.log(math.exp(2)); // returns Number 2 * * math.exp([1, 2, 3]); * // returns Array [ * // 2.718281828459045, * // 7.3890560989306495, * // 20.085536923187668 * // ] * * See also: * * log, pow * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x A number or matrix to exponentiate * @return {Number | BigNumber | Complex | Array | Matrix} Exponent of `x` */ math.exp = function exp (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('exp', arguments.length, 1); } if (isNumber(x)) { return Math.exp(x); } if (isComplex(x)) { var r = Math.exp(x.re); return new Complex( r * Math.cos(x.im), r * Math.sin(x.im) ); } if (x instanceof BigNumber) { return x.exp(); } if (isCollection(x)) { return collection.deepMap(x, exp); } if (isBoolean(x)) { return Math.exp(x); } throw new math.error.UnsupportedTypeError('exp', math['typeof'](x)); }; }; /***/ }, /* 30 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Round a value towards zero. * For matrices, the function is evaluated element wise. * * Syntax: * * math.fix(x) * * Examples: * * math.fix(3.2); // returns Number 3 * math.fix(3.8); // returns Number 3 * math.fix(-4.2); // returns Number -4 * math.fix(-4.7); // returns Number -4 * * var c = math.complex(3.2, -2.7); * math.fix(c); // returns Complex 3 - 2i * * math.fix([3.2, 3.8, -4.7]); // returns Array [3, 3, -4] * * See also: * * ceil, floor, round * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x Number to be rounded * @return {Number | BigNumber | Complex | Array | Matrix} Rounded value */ math.fix = function fix(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('fix', arguments.length, 1); } if (isNumber(x)) { return (x > 0) ? Math.floor(x) : Math.ceil(x); } if (isComplex(x)) { return new Complex( (x.re > 0) ? Math.floor(x.re) : Math.ceil(x.re), (x.im > 0) ? Math.floor(x.im) : Math.ceil(x.im) ); } if (x instanceof BigNumber) { return x.isNegative() ? x.ceil() : x.floor(); } if (isCollection(x)) { return collection.deepMap(x, fix); } if (isBoolean(x)) { return fix(+x); } throw new math.error.UnsupportedTypeError('fix', math['typeof'](x)); }; }; /***/ }, /* 31 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Round a value towards minus infinity. * For matrices, the function is evaluated element wise. * * Syntax: * * math.floor(x) * * Examples: * * math.floor(3.2); // returns Number 3 * math.floor(3.8); // returns Number 3 * math.floor(-4.2); // returns Number -5 * math.floor(-4.7); // returns Number -5 * * var c = math.complex(3.2, -2.7); * math.floor(c); // returns Complex 3 - 3i * * math.floor([3.2, 3.8, -4.7]); // returns Array [3, 3, -5] * * See also: * * ceil, fix, round * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x Number to be rounded * @return {Number | BigNumber | Complex | Array | Matrix} Rounded value */ math.floor = function floor(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('floor', arguments.length, 1); } if (isNumber(x)) { return Math.floor(x); } if (isComplex(x)) { return new Complex ( Math.floor(x.re), Math.floor(x.im) ); } if (x instanceof BigNumber) { return x.floor(); } if (isCollection(x)) { return collection.deepMap(x, floor); } if (isBoolean(x)) { return floor(+x); } throw new math.error.UnsupportedTypeError('floor', math['typeof'](x)); }; }; /***/ }, /* 32 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isInteger = util.number.isInteger, isCollection = collection.isCollection; /** * Calculate the greatest common divisor for two or more values or arrays. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.gcd(a, b) * math.gcd(a, b, c, ...) * * Examples: * * math.gcd(8, 12); // returns 4 * math.gcd(-4, 6); // returns 2 * math.gcd(25, 15, -10); // returns 5 * * math.gcd([8, -4], [12, 6]); // returns [4, 2] * * See also: * * lcm, xgcd * * @param {... Number | Boolean | Array | Matrix} args Two or more integer numbers * @return {Number | Array | Matrix} The greatest common divisor */ math.gcd = function gcd(args) { var a = arguments[0], b = arguments[1], r; // remainder if (arguments.length == 2) { // two arguments if (isNumber(a) && isNumber(b)) { if (!isInteger(a) || !isInteger(b)) { throw new Error('Parameters in function gcd must be integer numbers'); } // http://en.wikipedia.org/wiki/Euclidean_algorithm while (b != 0) { r = a % b; a = b; b = r; } return (a < 0) ? -a : a; } // evaluate gcd element wise if (isCollection(a) || isCollection(b)) { return collection.deepMap2(a, b, gcd); } // TODO: implement BigNumber support for gcd // downgrade bignumbers to numbers if (a instanceof BigNumber) { return gcd(a.toNumber(), b); } if (b instanceof BigNumber) { return gcd(a, b.toNumber()); } if (isBoolean(a)) { return gcd(+a, b); } if (isBoolean(b)) { return gcd(a, +b); } throw new math.error.UnsupportedTypeError('gcd', math['typeof'](a), math['typeof'](b)); } if (arguments.length > 2) { // multiple arguments. Evaluate them iteratively for (var i = 1; i < arguments.length; i++) { a = gcd(a, arguments[i]); } return a; } // zero or one argument throw new SyntaxError('Function gcd expects two or more arguments'); }; }; /***/ }, /* 33 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isInteger = util.number.isInteger, isCollection = collection.isCollection; /** * Calculate the least common multiple for two or more values or arrays. * * lcm is defined as: * * lcm(a, b) = abs(a * b) / gcd(a, b) * * For matrices, the function is evaluated element wise. * * Syntax: * * math.lcm(a, b) * math.lcm(a, b, c, ...) * * Examples: * * math.lcm(4, 6); // returns 12 * math.lcm(6, 21); // returns 42 * math.lcm(6, 21, 5); // returns 210 * * math.lcm([4, 6], [6, 21]); // returns [12, 42] * * See also: * * gcd, xgcd * * @param {... Number | Boolean | Array | Matrix} args Two or more integer numbers * @return {Number | Array | Matrix} The least common multiple */ math.lcm = function lcm(args) { var a = arguments[0], b = arguments[1], t; if (arguments.length == 2) { // two arguments if (isNumber(a) && isNumber(b)) { if (!isInteger(a) || !isInteger(b)) { throw new Error('Parameters in function lcm must be integer numbers'); } if (a == 0 || b == 0) { return 0; } // http://en.wikipedia.org/wiki/Euclidean_algorithm // evaluate gcd here inline to reduce overhead var prod = a * b; while (b != 0) { t = b; b = a % t; a = t; } return Math.abs(prod / a); } // evaluate lcm element wise if (isCollection(a) || isCollection(b)) { return collection.deepMap2(a, b, lcm); } if (isBoolean(a)) { return lcm(+a, b); } if (isBoolean(b)) { return lcm(a, +b); } // TODO: implement BigNumber support for lcm // downgrade bignumbers to numbers if (a instanceof BigNumber) { return lcm(a.toNumber(), b); } if (b instanceof BigNumber) { return lcm(a, b.toNumber()); } throw new math.error.UnsupportedTypeError('lcm', math['typeof'](a), math['typeof'](b)); } if (arguments.length > 2) { // multiple arguments. Evaluate them iteratively for (var i = 1; i < arguments.length; i++) { a = lcm(a, arguments[i]); } return a; } // zero or one argument throw new SyntaxError('Function lcm expects two or more arguments'); }; }; /***/ }, /* 34 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the logarithm of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.log(x) * math.log(x, base) * * Examples: * * math.log(3.5); // returns 1.252762968495368 * math.exp(math.log(2.4)); // returns 2.4 * * math.pow(10, 4); // returns 10000 * math.log(10000, 10); // returns 4 * math.log(10000) / math.log(10); // returns 4 * * math.log(1024, 2); // returns 10 * math.pow(2, 10); // returns 1024 * * See also: * * exp, log10 * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x * Value for which to calculate the logarithm. * @param {Number | BigNumber | Boolean | Complex} [base=e] * Optional base for the logarithm. If not provided, the natural * logarithm of `x` is calculated. * @return {Number | BigNumber | Complex | Array | Matrix} * Returns the logarithm of `x` */ math.log = function log(x, base) { if (arguments.length == 1) { // calculate natural logarithm, log(x) if (isNumber(x)) { if (x >= 0) { return Math.log(x); } else { // negative value -> complex value computation return log(new Complex(x, 0)); } } if (isComplex(x)) { return new Complex ( Math.log(Math.sqrt(x.re * x.re + x.im * x.im)), Math.atan2(x.im, x.re) ); } if (x instanceof BigNumber) { if (x.isNegative()) { // negative value -> downgrade to number to do complex value computation return log(x.toNumber()); } else { return x.ln(); } } if (isCollection(x)) { return collection.deepMap(x, log); } if (isBoolean(x)) { return log(+x); } throw new math.error.UnsupportedTypeError('log', math['typeof'](x)); } else if (arguments.length == 2) { // calculate logarithm for a specified base, log(x, base) return math.divide(log(x), log(base)); } else { throw new math.error.ArgumentsError('log', arguments.length, 1, 2); } }; }; /***/ }, /* 35 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the 10-base of a value. This is the same as calculating `log(x, 10)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.log10(x) * * Examples: * * math.log10(0.00001); // returns -5 * math.log10(10000); // returns 4 * math.log(10000) / math.log(10); // returns 4 * math.pow(10, 4); // returns 10000 * * See also: * * exp, log * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x * Value for which to calculate the logarithm. * @return {Number | BigNumber | Complex | Array | Matrix} * Returns the 10-base logarithm of `x` */ math.log10 = function log10(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('log10', arguments.length, 1); } if (isNumber(x)) { if (x >= 0) { return Math.log(x) / Math.LN10; } else { // negative value -> complex value computation return log10(new Complex(x, 0)); } } if (x instanceof BigNumber) { if (x.isNegative()) { // negative value -> downgrade to number to do complex value computation return log10(x.toNumber()); } else { return x.log(); } } if (isComplex(x)) { return new Complex ( Math.log(Math.sqrt(x.re * x.re + x.im * x.im)) / Math.LN10, Math.atan2(x.im, x.re) / Math.LN10 ); } if (isCollection(x)) { return collection.deepMap(x, log10); } if (isBoolean(x)) { return log10(+x); } throw new math.error.UnsupportedTypeError('log10', math['typeof'](x)); }; }; /***/ }, /* 36 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isCollection = collection.isCollection; /** * Calculates the modulus, the remainder of an integer division. * * For matrices, the function is evaluated element wise. * * The modulus is defined as: * * x - y * floor(x / y) * * See http://en.wikipedia.org/wiki/Modulo_operation. * * Syntax: * * math.mod(x, y) * * Examples: * * math.mod(8, 3); // returns 2 * math.mod(11, 2); // returns 1 * * function isOdd(x) { * return math.mod(x, 2) != 0; * } * * isOdd(2); // returns false * isOdd(3); // returns true * * See also: * * divide * * @param {Number | BigNumber | Boolean | Array | Matrix} x Dividend * @param {Number | BigNumber | Boolean | Array | Matrix} y Divisor * @return {Number | BigNumber | Array | Matrix} Returns the remainder of `x` divided by `y`. */ math.mod = function mod(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('mod', arguments.length, 2); } // see http://functions.wolfram.com/IntegerFunctions/Mod/ if (isNumber(x)) { if (isNumber(y)) { // number % number return _mod(x, y); } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return y.isZero() ? x : x.mod(y); } // downgrade x to Number return mod(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return y.isZero() ? x : x.mod(y); } // downgrade y to Number return mod(x, y.toNumber()); } // TODO: implement mod for complex values if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, mod); } if (isBoolean(x)) { return mod(+x, y); } if (isBoolean(y)) { return mod(x, +y); } throw new math.error.UnsupportedTypeError('mod', math['typeof'](x), math['typeof'](y)); }; /** * Calculate the modulus of two numbers * @param {Number} x * @param {Number} y * @returns {number} res * @private */ function _mod(x, y) { if (y > 0) { // We don't use JavaScript's % operator here as this doesn't work // correctly for x < 0 and x == 0 // see http://en.wikipedia.org/wiki/Modulo_operation return x - y * Math.floor(x / y); } else if (y == 0) { return x; } else { // y < 0 // TODO: implement mod for a negative divisor throw new Error('Cannot calculate mod for a negative divisor'); } } }; /***/ }, /* 37 */ /***/ function(module, exports, __webpack_require__) { module.exports = function(math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), Unit = __webpack_require__(9), collection = __webpack_require__(11), array = util.array, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isArray = Array.isArray, isUnit = Unit.isUnit; /** * Multiply two values, `x * y`. The result is squeezed. * For matrices, the matrix product is calculated. * * Syntax: * * math.multiply(x, y) * * Examples: * * math.multiply(4, 5.2); // returns Number 20.8 * * var a = math.complex(2, 3); * var b = math.complex(4, 1); * math.multiply(a, b); // returns Complex 5 + 14i * * var c = [[1, 2], [4, 3]]; * var d = [[1, 2, 3], [3, -4, 7]]; * math.multiply(c, d); // returns Array [[7, -6, 17], [13, -4, 33]] * * var e = math.unit('2.1 km'); * math.multiply(3, e); // returns Unit 6.3 km * * See also: * * divide * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x First value to multiply * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} y Second value to multiply * @return {Number | BigNumber | Complex | Unit | Array | Matrix} Multiplication of `x` and `y` */ math.multiply = function multiply(x, y) { var res; if (arguments.length != 2) { throw new math.error.ArgumentsError('multiply', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { // number * number return x * y; } else if (isComplex(y)) { // number * complex return _multiplyComplex (new Complex(x, 0), y); } else if (isUnit(y)) { res = y.clone(); res.value = (res.value === null) ? res._normalize(x) : (res.value * x); return res; } } if (isComplex(x)) { if (isNumber(y)) { // complex * number return _multiplyComplex (x, new Complex(y, 0)); } else if (isComplex(y)) { // complex * complex return _multiplyComplex (x, y); } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.times(y); } // downgrade to Number return multiply(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.times(y) } // downgrade to Number return multiply(x, y.toNumber()); } if (isUnit(x)) { if (isNumber(y)) { res = x.clone(); res.value = (res.value === null) ? res._normalize(y) : (res.value * y); return res; } } if (isArray(x)) { if (isArray(y)) { // array * array var sizeX = array.size(x); var sizeY = array.size(y); if (sizeX.length == 1) { if (sizeY.length == 1) { // vector * vector if (sizeX[0] != sizeY[0]) { throw new RangeError('Dimension mismatch in multiplication. ' + 'Length of A must match length of B ' + '(A is ' + sizeX[0] + ', B is ' + sizeY[0] + sizeX[0] + ' != ' + sizeY[0] + ')'); } return _multiplyVectorVector(x, y); } else if (sizeY.length == 2) { // vector * matrix if (sizeX[0] != sizeY[0]) { throw new RangeError('Dimension mismatch in multiplication. ' + 'Length of A must match rows of B ' + '(A is ' + sizeX[0] + ', B is ' + sizeY[0] + 'x' + sizeY[1] + ', ' + sizeX[0] + ' != ' + sizeY[0] + ')'); } return _multiplyVectorMatrix(x, y); } else { throw new Error('Can only multiply a 1 or 2 dimensional matrix ' + '(B has ' + sizeY.length + ' dimensions)'); } } else if (sizeX.length == 2) { if (sizeY.length == 1) { // matrix * vector if (sizeX[1] != sizeY[0]) { throw new RangeError('Dimension mismatch in multiplication. ' + 'Columns of A must match length of B ' + '(A is ' + sizeX[0] + 'x' + sizeX[0] + ', B is ' + sizeY[0] + ', ' + sizeX[1] + ' != ' + sizeY[0] + ')'); } return _multiplyMatrixVector(x, y); } else if (sizeY.length == 2) { // matrix * matrix if (sizeX[1] != sizeY[0]) { throw new RangeError('Dimension mismatch in multiplication. ' + 'Columns of A must match rows of B ' + '(A is ' + sizeX[0] + 'x' + sizeX[1] + ', B is ' + sizeY[0] + 'x' + sizeY[1] + ', ' + sizeX[1] + ' != ' + sizeY[0] + ')'); } return _multiplyMatrixMatrix(x, y); } else { throw new Error('Can only multiply a 1 or 2 dimensional matrix ' + '(B has ' + sizeY.length + ' dimensions)'); } } else { throw new Error('Can only multiply a 1 or 2 dimensional matrix ' + '(A has ' + sizeX.length + ' dimensions)'); } } else if (y instanceof Matrix) { // array * matrix res = multiply(x, y.valueOf()); return isArray(res) ? new Matrix(res) : res; } else { // array * scalar return collection.deepMap2(x, y, multiply); } } if (x instanceof Matrix) { if (y instanceof Matrix) { // matrix * matrix res = multiply(x.valueOf(), y.valueOf()); return isArray(res) ? new Matrix(res) : res; } else { // matrix * array // matrix * scalar res = multiply(x.valueOf(), y); return isArray(res) ? new Matrix(res) : res; } } if (isArray(y)) { // scalar * array return collection.deepMap2(x, y, multiply); } else if (y instanceof Matrix) { // scalar * matrix return new Matrix(collection.deepMap2(x, y.valueOf(), multiply)); } if (isBoolean(x)) { return multiply(+x, y); } if (isBoolean(y)) { return multiply(x, +y); } throw new math.error.UnsupportedTypeError('multiply', math['typeof'](x), math['typeof'](y)); }; /** * Multiply two 2-dimensional matrices. * The size of the matrices is not validated. * @param {Array} x A 2d matrix * @param {Array} y A 2d matrix * @return {Array | Number} result * @private */ function _multiplyMatrixMatrix(x, y) { // TODO: performance of matrix multiplication can be improved var res = [], rows = x.length, cols = y[0].length, num = x[0].length; for (var r = 0; r < rows; r++) { res[r] = []; for (var c = 0; c < cols; c++) { var result = null; for (var n = 0; n < num; n++) { var p = math.multiply(x[r][n], y[n][c]); result = (result === null) ? p : math.add(result, p); } res[r][c] = result; } } return array.squeeze(res); } /** * Multiply a vector with a 2-dimensional matrix * The size of the matrices is not validated. * @param {Array} x A vector * @param {Array} y A 2d matrix * @return {Array | Number} result * @private */ function _multiplyVectorMatrix(x, y) { // TODO: performance of matrix multiplication can be improved var res = [], rows = y.length, cols = y[0].length; for (var c = 0; c < cols; c++) { var result = null; for (var r = 0; r < rows; r++) { var p = math.multiply(x[r], y[r][c]); result = (r === 0) ? p : math.add(result, p); } res[c] = result; } return array.squeeze(res); } /** * Multiply a 2-dimensional matrix with a vector * The size of the matrices is not validated. * @param {Array} x A 2d matrix * @param {Array} y A vector * @return {Array | Number} result * @private */ function _multiplyMatrixVector(x, y) { // TODO: performance of matrix multiplication can be improved var res = [], rows = x.length, cols = x[0].length; for (var r = 0; r < rows; r++) { var result = null; for (var c = 0; c < cols; c++) { var p = math.multiply(x[r][c], y[c]); result = (c === 0) ? p : math.add(result, p); } res[r] = result; } return array.squeeze(res); } /** * Multiply two vectors, calculate the dot product * The size of the matrices is not validated. * @param {Array} x A vector * @param {Array} y A vector * @return {Number} dotProduct * @private */ function _multiplyVectorVector(x, y) { // TODO: performance of matrix multiplication can be improved var len = x.length; if (!len) { throw new Error('Cannot multiply two empty vectors'); } var dot = 0; for (var i = 0; i < len; i++) { dot = math.add(dot, math.multiply(x[i], y[i])); } return dot; } /** * Multiply two complex numbers. x * y or multiply(x, y) * @param {Complex} x * @param {Complex} y * @return {Complex | Number} res * @private */ function _multiplyComplex (x, y) { // Note: we test whether x or y are pure real or pure complex, // to prevent unnecessary NaN values. For example, Infinity*i should // result in Infinity*i, and not in NaN+Infinity*i if (x.im == 0) { // x is pure real if (y.im == 0) { // y is pure real return new Complex(x.re * y.re, 0); } else if (y.re == 0) { // y is pure complex return new Complex( 0, x.re * y.im ); } else { // y has a real and complex part return new Complex( x.re * y.re, x.re * y.im ); } } else if (x.re == 0) { // x is pure complex if (y.im == 0) { // y is pure real return new Complex( 0, x.im * y.re ); } else if (y.re == 0) { // y is pure complex return new Complex(-x.im * y.im, 0); } else { // y has a real and complex part return new Complex( -x.im * y.im, x.im * y.re ); } } else { // x has a real and complex part if (y.im == 0) { // y is pure real return new Complex( x.re * y.re, x.im * y.re ); } else if (y.re == 0) { // y is pure complex return new Complex( -x.im * y.im, x.re * y.im ); } else { // y has a real and complex part return new Complex( x.re * y.re - x.im * y.im, x.re * y.im + x.im * y.re ); } } } }; /***/ }, /* 38 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), array = __webpack_require__(160), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the norm of a number, vector or matrix. * * The second parameter p is optional. If not provided, it defaults to 2. * * Syntax: * * math.norm(x) * math.norm(x, p) * * Examples: * * math.abs(-3.5); // returns 3.5 * math.norm(-3.5); // returns 3.5 * * math.norm(math.complex(3, -4)); // returns 5 * * math.norm([1, 2, -3], Infinity); // returns 3 * math.norm([1, 2, -3], -Infinity); // returns 1 * * math.norm([3, 4], 2); // returns 5 * * math.norm([[1, 2], [3, 4]], 1) // returns 6 * math.norm([[1, 2], [3, 4]], 'inf'); // returns 7 * math.norm([[1, 2], [3, 4]], 'fro'); // returns 5.477225575051661 * * See also: * * abs * * @param {Number | BigNumber | Complex | Boolean | Array | Matrix} x * Value for which to calculate the norm * @param {Number | String} [p=2] * Vector space. * Supported numbers include Infinity and -Infinity. * Supported strings are: 'inf', '-inf', and 'fro' (The Frobenius norm) * @return {Number} the p-norm */ math.norm = function norm(x, p) { if (arguments.length < 1 || arguments.length > 2) { throw new math.error.ArgumentsError('abs', arguments.length, 1, 2); } if (isNumber(x)) { // norm(x) = abs(x) return Math.abs(x); } if (isComplex(x)) { // ignore p, complex numbers return Math.sqrt(x.re * x.re + x.im * x.im); } if (x instanceof BigNumber) { // norm(x) = abs(x) return x.abs(); } if (isBoolean(x)) { // norm(x) = abs(x) return Math.abs(x); } if (isArray(x)) { // size var sizeX = array.size(x); // missing p if (p == null) p = 2; // check it is a Vector if (sizeX.length == 1) { // check p if (p === Number.POSITIVE_INFINITY || p === 'inf') { // norm(x, Infinity) = max(abs(x)) var n; math.forEach(x, function (value) { var v = math.abs(value); if (!n || math.larger(v, n)) n = v; }); return n; } if (p === Number.NEGATIVE_INFINITY || p === '-inf') { // norm(x, -Infinity) = min(abs(x)) var n; math.forEach(x, function (value) { var v = math.abs(value); if (!n || math.smaller(v, n)) n = v; }); return n; } if (p === 'fro') return norm(x); if (isNumber(p) && !isNaN(p)) { // check p != 0 if (!math.equal(p, 0)) { // norm(x, p) = sum(abs(xi) ^ p) ^ 1/p var n = 0; math.forEach(x, function (value) { n = math.add(math.pow(math.abs(value), p), n); }); return math.pow(n, 1 / p); } return Number.POSITIVE_INFINITY; } // invalid parameter value throw new Error('Unsupported parameter value'); } else if (sizeX.length == 2) { // check p if (p == 1) { // norm(x) = the largest column sum var c = []; // loop rows for (var i = 0; i < x.length; i++) { var r = x[i]; // loop columns for (var j = 0; j < r.length; j++) { c[j] = math.add(c[j] || 0, math.abs(r[j])); } } return math.max(c); } if (p == Number.POSITIVE_INFINITY || p === 'inf') { // norm(x) = the largest row sum var n = 0; // loop rows for (var i = 0; i < x.length; i++) { var rs = 0; var r = x[i]; // loop columns for (var j = 0; j < r.length; j++) { rs = math.add(rs, math.abs(r[j])); } if (math.larger(rs, n)) n = rs; } return n; } if (p === 'fro') { // norm(x) = sqrt(sum(diag(x'x))) var d = math.diag(math.multiply(math.transpose(x), x)); var s = 0; math.forEach(d, function (value) { s = math.add(value, s); }); return math.sqrt(s); } if (p == 2) { // not implemented throw new Error('Unsupported parameter value, missing implementation of matrix singular value decomposition'); } // invalid parameter value throw new Error('Unsupported parameter value'); } } if (x instanceof Matrix) { return norm(x.valueOf(), p); } throw new math.error.UnsupportedTypeError('norm', x); }; }; /***/ }, /* 39 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), collection = __webpack_require__(11), array = util.array, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isArray = Array.isArray, isInteger = util.number.isInteger, isComplex = Complex.isComplex; /** * Calculates the power of x to y, `x ^ y`. * Matrix exponentiation is supported for square matrices `x`, and positive * integer exponents `y`. * * Syntax: * * math.pow(x, y) * * Examples: * * math.pow(2, 3); // returns Number 8 * * var a = math.complex(2, 3); * math.pow(a, 2) // returns Complex -5 + 12i * * var b = [[1, 2], [4, 3]]; * math.pow(b, 2); // returns Array [[9, 8], [16, 17]] * * See also: * * multiply, sqrt * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x The base * @param {Number | BigNumber | Boolean | Complex} y The exponent * @return {Number | BigNumber | Complex | Array | Matrix} The value of `x` to the power `y` */ math.pow = function pow(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('pow', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { if (isInteger(y) || x >= 0) { // real value computation return Math.pow(x, y); } else { return powComplex(new Complex(x, 0), new Complex(y, 0)); } } else if (isComplex(y)) { return powComplex(new Complex(x, 0), y); } } if (isComplex(x)) { if (isNumber(y)) { return powComplex(x, new Complex(y, 0)); } else if (isComplex(y)) { return powComplex(x, y); } } if (x instanceof BigNumber) { // try to upgrade y to to bignumber if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { if (y.isInteger() && !x.isNegative()) { return x.pow(y); } else { // downgrade to number to do complex valued computation return pow(x.toNumber(), y.toNumber()) } } else { // failed to upgrade y to bignumber, lets downgrade x to number return pow(x.toNumber(), y); } } if (y instanceof BigNumber) { // try to convert x to bignumber if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { if (y.isInteger() && !x.isNegative()) { return x.pow(y); } else { // downgrade to number to do complex valued computation return pow(x.toNumber(), y.toNumber()) } } else { // failed to upgrade x to bignumber, lets downgrade y to number return pow(x, y.toNumber()); } } if (isArray(x)) { if (!isNumber(y) || !isInteger(y) || y < 0) { throw new TypeError('For A^b, b must be a positive integer ' + '(value is ' + y + ')'); } // verify that A is a 2 dimensional square matrix var s = array.size(x); if (s.length != 2) { throw new Error('For A^b, A must be 2 dimensional ' + '(A has ' + s.length + ' dimensions)'); } if (s[0] != s[1]) { throw new Error('For A^b, A must be square ' + '(size is ' + s[0] + 'x' + s[1] + ')'); } // compute power of matrix var res = math.eye(s[0]).valueOf(); var px = x; while (y >= 1) { if ((y & 1) == 1) { res = math.multiply(px, res); } y >>= 1; px = math.multiply(px, px); } return res; } else if (x instanceof Matrix) { return new Matrix(pow(x.valueOf(), y)); } if (isBoolean(x)) { return pow(+x, y); } if (isBoolean(y)) { return pow(x, +y); } throw new math.error.UnsupportedTypeError('pow', math['typeof'](x), math['typeof'](y)); }; /** * Calculates the power of x to y, x^y, for two complex numbers. * @param {Complex} x * @param {Complex} y * @return {Complex} res * @private */ function powComplex (x, y) { // complex computation // x^y = exp(log(x)*y) = exp((abs(x)+i*arg(x))*y) var temp1 = math.log(x); var temp2 = math.multiply(temp1, y); return math.exp(temp2); } }; /***/ }, /* 40 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isInteger = util.number.isInteger, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Round a value towards the nearest integer. * For matrices, the function is evaluated element wise. * * Syntax: * * math.round(x) * math.round(x, n) * * Examples: * * math.round(3.2); // returns Number 3 * math.round(3.8); // returns Number 4 * math.round(-4.2); // returns Number -4 * math.round(-4.7); // returns Number -5 * math.round(math.pi, 3); // returns Number 3.14 * math.round(123.45678, 2); // returns Number 123.46 * * var c = math.complex(3.2, -2.7); * math.round(c); // returns Complex 3 - 3i * * math.round([3.2, 3.8, -4.7]); // returns Array [3, 4, -5] * * See also: * * ceil, fix, floor * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x Number to be rounded * @param {Number | BigNumber | Boolean | Array} [n=0] Number of decimals * @return {Number | BigNumber | Complex | Array | Matrix} Rounded value */ math.round = function round(x, n) { if (arguments.length != 1 && arguments.length != 2) { throw new math.error.ArgumentsError('round', arguments.length, 1, 2); } if (n == undefined) { // round (x) if (isNumber(x)) { return Math.round(x); } if (isComplex(x)) { return new Complex ( Math.round(x.re), Math.round(x.im) ); } if (x instanceof BigNumber) { return x.toDecimalPlaces(0); } if (isCollection(x)) { return collection.deepMap(x, round); } if (isBoolean(x)) { return Math.round(x); } throw new math.error.UnsupportedTypeError('round', math['typeof'](x)); } else { // round (x, n) if (!isNumber(n) || !isInteger(n)) { if (n instanceof BigNumber) { n = parseFloat(n.valueOf()); } else if (isBoolean(n)) { return round(x, +n); } else { throw new TypeError('Number of decimals in function round must be an integer'); } } if (n < 0 || n > 15) { throw new Error ('Number of decimals in function round must be in te range of 0-15'); } if (isNumber(x)) { return roundNumber(x, n); } if (isComplex(x)) { return new Complex ( roundNumber(x.re, n), roundNumber(x.im, n) ); } if (x instanceof BigNumber) { return x.toDecimalPlaces(n); } if (isCollection(x) || isCollection(n)) { return collection.deepMap2(x, n, round); } if (isBoolean(x)) { return round(+x, n); } throw new math.error.UnsupportedTypeError('round', math['typeof'](x), math['typeof'](n)); } }; /** * round a number to the given number of decimals, or to zero if decimals is * not provided * @param {Number} value * @param {Number} decimals number of decimals, between 0 and 15 (0 by default) * @return {Number} roundedValue */ function roundNumber (value, decimals) { var p = Math.pow(10, decimals); return Math.round(value * p) / p; } }; /***/ }, /* 41 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), number = util.number, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Compute the sign of a value. The sign of a value x is: * * - 1 when x > 1 * - -1 when x < 0 * - 0 when x == 0 * * For matrices, the function is evaluated element wise. * * Syntax: * * math.sign(x) * * Examples: * * math.sign(3.5); // returns 1 * math.sign(-4.2); // returns -1 * math.sign(0); // returns 0 * * math.sign([3, 5, -2, 0, 2]); // returns [1, 1, -1, 0, 1] * * See also: * * abs * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x * The number for which to determine the sign * @return {Number | BigNumber | Complex | Array | Matrix}e * The sign of `x` */ math.sign = function sign(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('sign', arguments.length, 1); } if (isNumber(x)) { return number.sign(x); } if (isComplex(x)) { var abs = Math.sqrt(x.re * x.re + x.im * x.im); return new Complex(x.re / abs, x.im / abs); } if (x instanceof BigNumber) { return new BigNumber(x.cmp(0)); } if (isCollection(x)) { return collection.deepMap(x, sign); } if (isBoolean(x)) { return number.sign(x); } throw new math.error.UnsupportedTypeError('sign', math['typeof'](x)); }; }; /***/ }, /* 42 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the square root of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.sqrt(x) * * Examples: * * math.sqrt(25); // returns 5 * math.square(5); // returns 25 * math.sqrt(-4); // returns Complex -2i * * See also: * * square, multiply * * @param {Number | Boolean | Complex | Array | Matrix} x * Value for which to calculate the square root. * @return {Number | Complex | Array | Matrix} * Returns the square root of `x` */ math.sqrt = function sqrt (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('sqrt', arguments.length, 1); } if (isNumber(x)) { if (x >= 0) { return Math.sqrt(x); } else { return sqrt(new Complex(x, 0)); } } if (isComplex(x)) { var r = Math.sqrt(x.re * x.re + x.im * x.im); if (x.im >= 0) { return new Complex( 0.5 * Math.sqrt(2.0 * (r + x.re)), 0.5 * Math.sqrt(2.0 * (r - x.re)) ); } else { return new Complex( 0.5 * Math.sqrt(2.0 * (r + x.re)), -0.5 * Math.sqrt(2.0 * (r - x.re)) ); } } if (x instanceof BigNumber) { if (x.isNegative()) { // negative value -> downgrade to number to do complex value computation return sqrt(x.toNumber()); } else { return x.sqrt(); } } if (isCollection(x)) { return collection.deepMap(x, sqrt); } if (isBoolean(x)) { return sqrt(+x); } throw new math.error.UnsupportedTypeError('sqrt', math['typeof'](x)); }; }; /***/ }, /* 43 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Compute the square of a value, `x * x`. * For matrices, the function is evaluated element wise. * * Syntax: * * math.square(x) * * Examples: * * math.square(2); // returns Number 4 * math.square(3); // returns Number 9 * math.pow(3, 2); // returns Number 9 * math.multiply(3, 3); // returns Number 9 * * math.square([1, 2, 3, 4]); // returns Array [1, 4, 9, 16] * * See also: * * multiply, cube, sqrt, pow * * @param {Number | BigNumber | Boolean | Complex | Array | Matrix} x * Number for which to calculate the square * @return {Number | BigNumber | Complex | Array | Matrix} * Squared value */ math.square = function square(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('square', arguments.length, 1); } if (isNumber(x)) { return x * x; } if (isComplex(x)) { return math.multiply(x, x); } if (x instanceof BigNumber) { return x.times(x); } if (isCollection(x)) { return collection.deepMap(x, square); } if (isBoolean(x)) { return x * x; } throw new math.error.UnsupportedTypeError('square', math['typeof'](x)); }; }; /***/ }, /* 44 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Matrix = __webpack_require__(8), Unit = __webpack_require__(9), collection = __webpack_require__(11), isBoolean = util['boolean'].isBoolean, isNumber = util.number.isNumber, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Subtract two values, `x - y`. * For matrices, the function is evaluated element wise. * * Syntax: * * math.subtract(x, y) * * Examples: * * math.subtract(5.3, 2); // returns Number 3.3 * * var a = math.complex(2, 3); * var b = math.complex(4, 1); * math.subtract(a, b); // returns Complex -2 + 2i * * math.subtract([5, 7, 4], 4); // returns Array [1, 3, 0] * * var c = math.unit('2.1 km'); * var d = math.unit('500m'); * math.subtract(c, d); // returns Unit 1.6 km * * See also: * * add * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x * Initial value * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} y * Value to subtract from `x` * @return {Number | BigNumber | Complex | Unit | Array | Matrix} * Subtraction of `x` and `y` */ math.subtract = function subtract(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('subtract', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { // number - number return x - y; } else if (isComplex(y)) { // number - complex return new Complex ( x - y.re, - y.im ); } } else if (isComplex(x)) { if (isNumber(y)) { // complex - number return new Complex ( x.re - y, x.im ) } else if (isComplex(y)) { // complex - complex return new Complex ( x.re - y.re, x.im - y.im ) } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.minus(y); } // downgrade to Number return subtract(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.minus(y) } // downgrade to Number return subtract(x, y.toNumber()); } if (isUnit(x)) { if (isUnit(y)) { if (x.value == null) { throw new Error('Parameter x contains a unit with undefined value'); } if (y.value == null) { throw new Error('Parameter y contains a unit with undefined value'); } if (!x.equalBase(y)) { throw new Error('Units do not match'); } var res = x.clone(); res.value -= y.value; res.fixPrefix = false; return res; } } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, subtract); } if (isBoolean(x)) { return subtract(+x, y); } if (isBoolean(y)) { return subtract(x, +y); } throw new math.error.UnsupportedTypeError('subtract', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 45 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Inverse the sign of a value, apply a unary minus operation. * * For matrices, the function is evaluated element wise. Boolean values and * strings will be converted to a number. For complex numbers, both real and * complex value are inverted. * * Syntax: * * math.unaryMinus(x) * * Examples: * * math.unaryMinus(3.5); // returns -3.5 * math.unaryMinus(-4.2); // returns 4.2 * * See also: * * add, subtract, unaryPlus * * @param {Number | BigNumber | Boolean | String | Complex | Unit | Array | Matrix} x Number to be inverted. * @return {Number | BigNumber | Complex | Unit | Array | Matrix} Returns the value with inverted sign. */ math.unaryMinus = function unaryMinus(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('unaryMinus', arguments.length, 1); } if (isNumber(x)) { return -x; } if (isComplex(x)) { return new Complex( -x.re, -x.im ); } if (x instanceof BigNumber) { return x.neg(); } if (isUnit(x)) { var res = x.clone(); res.value = -x.value; return res; } if (isCollection(x)) { return collection.deepMap(x, unaryMinus); } if (isBoolean(x) || isString(x)) { // convert to a number or bignumber return (config.number == 'bignumber') ? new BigNumber(-x): -x; } throw new math.error.UnsupportedTypeError('unaryMinus', math['typeof'](x)); }; // TODO: function unary is renamed to unaryMinus since version 0.23.0. Cleanup some day math.unary = function unary() { throw new Error('Function unary is deprecated. Use unaryMinus instead.'); } }; /***/ }, /* 46 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Unary plus operation. * Boolean values and strings will be converted to a number, numeric values will be returned as is. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.unaryPlus(x) * * Examples: * * math.unaryPlus(3.5); // returns 3.5 * math.unaryPlus(1); // returns 1 * * See also: * * unaryMinus, add, subtract * * @param {Number | BigNumber | Boolean | String | Complex | Unit | Array | Matrix} x * Input value * @return {Number | BigNumber | Complex | Unit | Array | Matrix} * Returns the input value when numeric, converts to a number when input is non-numeric. */ math.unaryPlus = function unaryPlus(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('unaryPlus', arguments.length, 1); } if (isNumber(x)) { return x; } if (isComplex(x)) { return x.clone(); } if (x instanceof BigNumber) { return x; } if (isUnit(x)) { return x.clone(); } if (isCollection(x)) { return collection.deepMap(x, unaryPlus); } if (isBoolean(x) || isString(x)) { // convert to a number or bignumber return (config.number == 'bignumber') ? new BigNumber(+x): +x; } throw new math.error.UnsupportedTypeError('unaryPlus', math['typeof'](x)); }; }; /***/ }, /* 47 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isInteger = util.number.isInteger; /** * Calculate the extended greatest common divisor for two values. * See http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm. * * Syntax: * * math.xgcd(a, b) * * Examples: * * math.xgcd(8, 12); // returns [4, -1, 1] * math.gcd(8, 12); // returns 4 * math.xgcd(36163, 21199); // returns [1247, -7, 12] * * See also: * * gcd, lcm * * @param {Number | Boolean} a An integer number * @param {Number | Boolean} b An integer number * @return {Array} Returns an array containing 3 integers `[div, m, n]` * where `div = gcd(a, b)` and `a*m + b*n = div` */ math.xgcd = function xgcd(a, b) { if (arguments.length == 2) { // two arguments if (isNumber(a) && isNumber(b)) { if (!isInteger(a) || !isInteger(b)) { throw new Error('Parameters in function xgcd must be integer numbers'); } return _xgcd(a, b); } // TODO: implement BigNumber support for xgcd // downgrade bignumbers to numbers if (a instanceof BigNumber) { return xgcd(a.toNumber(), b); } if (b instanceof BigNumber) { return xgcd(a, b.toNumber()); } if (isBoolean(a)) { return xgcd(+a, b); } if (isBoolean(b)) { return xgcd(a, +b); } throw new math.error.UnsupportedTypeError('xgcd', math['typeof'](a), math['typeof'](b)); } // zero or one argument throw new SyntaxError('Function xgcd expects two arguments'); }; /** * Calculate xgcd for two numbers * @param {Number} a * @param {Number} b * @private */ function _xgcd(a, b) { // source: http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm var t, // used to swap two variables q, // quotient r, // remainder x = 0, lastx = 1, y = 1, lasty = 0; while (b) { q = Math.floor(a / b); r = a % b; t = x; x = lastx - q * x; lastx = t; t = y; y = lasty - q * y; lasty = t; a = b; b = r; } if (a < 0) { return [-a, -lastx, -lasty]; } else { return [a, a ? lastx : 0, lasty]; } } }; /***/ }, /* 48 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y. * * x and y are considered equal when the relative difference between x and y * is smaller than the configured epsilon. The function cannot be used to * compare values smaller than approximately 2.22e-16. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.compare(x, y) * * Examples: * * math.compare(6, 1); // returns 1 * math.compare(2, 3); // returns -1 * math.compare(7, 7); // returns 0 * * var a = math.unit('5 cm'); * var b = math.unit('40 mm'); * math.compare(a, b); // returns 1 * * math.compare(2, [1, 2, 3]); // returns [1, 0, -1] * * See also: * * equal, unequal, smaller, smallerEq, larger, largerEq * * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} x First value to compare * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} y Second value to compare * @return {Number | BigNumber | Array | Matrix} Returns the result of the comparison: 1, 0 or -1. */ math.compare = function compare(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('compare', arguments.length, 2); } if (isNumber(x) && isNumber(y)) { return nearlyEqual(x, y, config.epsilon) ? 0 : (x > y ? 1 : -1); } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return new BigNumber(x.cmp(y)); } // downgrade to Number return compare(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return new BigNumber(x.cmp(y)); } // downgrade to Number return compare(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return (x.value > y.value) ? 1 : ((x.value < y.value) ? -1 : 0); } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, compare); } // Note: test strings after testing collections, // else we can't compare a string with a matrix if (isString(x) || isString(y)) { return (x > y) ? 1 : ((x < y) ? -1 : 0); } if (isBoolean(x)) { return compare(+x, y); } if (isBoolean(y)) { return compare(x, +y); } if (isComplex(x) || isComplex(y)) { throw new TypeError('No ordering relation is defined for complex numbers'); } throw new math.error.UnsupportedTypeError('compare', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 49 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var collection = __webpack_require__(11), isCollection = collection.isCollection, isArray = Array.isArray; /** * Test element wise whether two matrices are equal. * The function accepts both matrices and scalar values. * * Syntax: * * math.deepEqual(x, y) * * Examples: * * math.deepEqual(2, 4); // returns false * * a = [2, 5, 1]; * b = [2, 7, 1]; * * math.deepEqual(a, b); // returns false * math.equal(a, b); // returns [true, false, true] * * See also: * * equal, unequal * * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} x First matrix to compare * @param {Number | BigNumber | Boolean | Complex | Unit | Array | Matrix} y Second matrix to compare * @return {Number | BigNumber | Complex | Unit | Array | Matrix} * Returns true when the input matrices have the same size and each of their elements is equal. */ math.deepEqual = function deepEqual(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('deepEqual', arguments.length, 2); } if (isCollection(x) || isCollection(y)) { return _deepEqual(x.valueOf(), y.valueOf()); } return math.equal(x, y); }; /** * Test whether two arrays have the same size and all elements are equal * @param {Array | *} x * @param {Array | *} y * @return {boolean} Returns true if both arrays are deep equal */ function _deepEqual(x, y) { if (isArray(x)) { if (isArray(y)) { var len = x.length; if (len !== y.length) return false; for (var i = 0; i < len; i++) { if (!_deepEqual(x[i], y[i])) return false; } return true; } else { return false; } } else { if (isArray(y)) { return false; } else { return math.equal(x, y); } } } }; /***/ }, /* 50 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Test whether two values are equal. * * The function tests whether the relative difference between x and y is * smaller than the configured epsilon. The function cannot be used to * compare values smaller than approximately 2.22e-16. * * For matrices, the function is evaluated element wise. * In case of complex numbers, x.re must equal y.re, and x.im must equal y.im. * * Syntax: * * math.equal(x, y) * * Examples: * * math.equal(2 + 2, 3); // returns false * math.equal(2 + 2, 4); // returns true * * var a = math.unit('50 cm'); * var b = math.unit('5 m'); * math.equal(a, b); // returns true * * var c = [2, 5, 1]; * var d = [2, 7, 1]; * * math.equal(c, d); // returns [true, false, true] * math.deepEqual(c, d); // returns false * * See also: * * unequal, smaller, smallerEq, larger, largerEq, compare, deepEqual * * @param {Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix | null | undefined} x First value to compare * @param {Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix | null | undefined} y Second value to compare * @return {Boolean | Array | Matrix} Returns true when the compared values are equal, else returns false */ math.equal = function equal(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('equal', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { return nearlyEqual(x, y, config.epsilon); } else if (isComplex(y)) { return nearlyEqual(x, y.re, config.epsilon) && nearlyEqual(y.im, 0, config.epsilon); } } if (isComplex(x)) { if (isNumber(y)) { return nearlyEqual(x.re, y, config.epsilon) && nearlyEqual(x.im, 0, config.epsilon); } else if (isComplex(y)) { return nearlyEqual(x.re, y.re, config.epsilon) && nearlyEqual(x.im, y.im, config.epsilon); } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.eq(y); } // downgrade to Number return equal(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.eq(y); } // downgrade to Number return equal(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return x.value == y.value; } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, equal); } // Note: test strings after testing collections, // else we can accidentally compare a stringified array with a string if (isString(x) || isString(y)) { return x == y; } if (isBoolean(x)) { return equal(+x, y); } if (isBoolean(y)) { return equal(x, +y); } if (x === null) { return y === null; } if (y === null) { return x === null; } if (x === undefined) { return y === undefined; } if (y === undefined) { return x === undefined; } throw new math.error.UnsupportedTypeError('equal', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 51 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Test whether value x is larger than y. * * The function returns true when x is larger than y and the relative * difference between x and y is larger than the configured epsilon. The * function cannot be used to compare values smaller than approximately 2.22e-16. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.larger(x, y) * * Examples: * * math.larger(2, 3); // returns false * math.larger(5, 2 + 2); // returns true * * var a = math.unit('5 cm'); * var b = math.unit('2 inch'); * math.larger(a, b); // returns false * * See also: * * equal, unequal, smaller, smallerEq, largerEq, compare * * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} x First value to compare * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} y Second value to compare * @return {Boolean | Array | Matrix} Returns true when the x is larger than y, else returns false */ math.larger = function larger(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('larger', arguments.length, 2); } if (isNumber(x) && isNumber(y)) { return !nearlyEqual(x, y, config.epsilon) && x > y; } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.gt(y); } // downgrade to Number return larger(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.gt(y) } // downgrade to Number return larger(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return x.value > y.value; } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, larger); } // Note: test strings after testing collections, // else we can't compare a string with a matrix if (isString(x) || isString(y)) { return x > y; } if (isBoolean(x)) { return larger(+x, y); } if (isBoolean(y)) { return larger(x, +y); } if (isComplex(x) || isComplex(y)) { throw new TypeError('No ordering relation is defined for complex numbers'); } throw new math.error.UnsupportedTypeError('larger', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 52 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Test whether value x is larger or equal to y. * * The function returns true when x is larger than y or the relative * difference between x and y is smaller than the configured epsilon. The * function cannot be used to compare values smaller than approximately 2.22e-16. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.largerEq(x, y) * * Examples: * * math.larger(2, 1 + 1); // returns false * math.largerEq(2, 1 + 1); // returns true * * See also: * * equal, unequal, smaller, smallerEq, larger, compare * * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} x First value to compare * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} y Second value to compare * @return {Boolean | Array | Matrix} Returns true when the x is larger or equal to y, else returns false */ math.largerEq = function largerEq(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('largerEq', arguments.length, 2); } if (isNumber(x) && isNumber(y)) { return nearlyEqual(x, y, config.epsilon) || x > y; } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.gte(y); } // downgrade to Number return largerEq(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.gte(y) } // downgrade to Number return largerEq(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return x.value >= y.value; } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, largerEq); } // Note: test strings after testing collections, // else we can't compare a string with a matrix if (isString(x) || isString(y)) { return x >= y; } if (isBoolean(x)) { return largerEq(+x, y); } if (isBoolean(y)) { return largerEq(x, +y); } if (isComplex(x) || isComplex(y)) { throw new TypeError('No ordering relation is defined for complex numbers'); } throw new math.error.UnsupportedTypeError('largerEq', math['typeof'](x), math['typeof'](y)); }; // TODO: deprecated since version 0.23.0, cleanup some day math.largereq = function () { throw new Error('Function largereq is renamed to largerEq'); } }; /***/ }, /* 53 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Test whether value x is smaller than y. * * The function returns true when x is smaller than y and the relative * difference between x and y is larger than the configured epsilon. The * function cannot be used to compare values smaller than approximately 2.22e-16. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.smaller(x, y) * * Examples: * * math.smaller(2, 3); // returns true * math.smaller(5, 2 * 2); // returns false * * var a = math.unit('5 cm'); * var b = math.unit('2 inch'); * math.smaller(a, b); // returns true * * See also: * * equal, unequal, smallerEq, larger, largerEq, compare * * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} x First value to compare * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} y Second value to compare * @return {Boolean | Array | Matrix} Returns true when the x is smaller than y, else returns false */ math.smaller = function smaller(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('smaller', arguments.length, 2); } if (isNumber(x) && isNumber(y)) { return !nearlyEqual(x, y, config.epsilon) && x < y; } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.lt(y); } // downgrade to Number return smaller(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.lt(y) } // downgrade to Number return smaller(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return x.value < y.value; } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, smaller); } // Note: test strings after testing collections, // else we can't compare a string with a matrix if (isString(x) || isString(y)) { return x < y; } if (isBoolean(x)) { return smaller(+x, y); } if (isBoolean(y)) { return smaller(x, +y); } if (isComplex(x) || isComplex(y)) { throw new TypeError('No ordering relation is defined for complex numbers'); } throw new math.error.UnsupportedTypeError('smaller', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 54 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Test whether value x is smaller or equal to y. * * The function returns true when x is smaller than y or the relative * difference between x and y is smaller than the configured epsilon. The * function cannot be used to compare values smaller than approximately 2.22e-16. * For matrices, the function is evaluated element wise. * * Syntax: * * math.smallerEq(x, y) * * Examples: * * math.smaller(1 + 2, 3); // returns false * math.smallerEq(1 + 2, 3); // returns true * * See also: * * equal, unequal, smaller, larger, largerEq, compare * * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} x First value to compare * @param {Number | BigNumber | Boolean | Unit | String | Array | Matrix} y Second value to compare * @return {Boolean | Array | Matrix} Returns true when the x is smaller than y, else returns false */ math.smallerEq = function smallerEq(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('smallerEq', arguments.length, 2); } if (isNumber(x) && isNumber(y)) { return nearlyEqual(x, y, config.epsilon) || x < y; } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return x.lte(y); } // downgrade to Number return smallerEq(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return x.lte(y) } // downgrade to Number return smallerEq(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return x.value <= y.value; } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, smallerEq); } // Note: test strings after testing collections, // else we can't compare a string with a matrix if (isString(x) || isString(y)) { return x <= y; } if (isBoolean(x)) { return smallerEq(+x, y); } if (isBoolean(y)) { return smallerEq(x, +y); } if (isComplex(x) || isComplex(y)) { throw new TypeError('No ordering relation is defined for complex numbers'); } throw new math.error.UnsupportedTypeError('smallerEq', math['typeof'](x), math['typeof'](y)); }; // TODO: deprecated since version 0.23.0, cleanup some day math.smallereq = function () { throw new Error('Function smallereq is renamed to smallerEq'); } }; /***/ }, /* 55 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, nearlyEqual = util.number.nearlyEqual, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Test whether two values are unequal. * * The function tests whether the relative difference between x and y is * larger than the configured epsilon. The function cannot be used to compare * values smaller than approximately 2.22e-16. * * For matrices, the function is evaluated element wise. * In case of complex numbers, x.re must unequal y.re, or x.im must unequal y.im. * * Syntax: * * math.unequal(x, y) * * Examples: * * math.unequal(2 + 2, 3); // returns true * math.unequal(2 + 2, 4); // returns false * * var a = math.unit('50 cm'); * var b = math.unit('5 m'); * math.unequal(a, b); // returns false * * var c = [2, 5, 1]; * var d = [2, 7, 1]; * * math.unequal(c, d); // returns [false, true, false] * math.deepEqual(c, d); // returns false * * See also: * * equal, deepEqual, smaller, smallerEq, larger, largerEq, compare * * @param {Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix | null | undefined} x First value to compare * @param {Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix | null | undefined} y Second value to compare * @return {Boolean | Array | Matrix} Returns true when the compared values are unequal, else returns false */ math.unequal = function unequal(x, y) { if (arguments.length != 2) { throw new math.error.ArgumentsError('unequal', arguments.length, 2); } if (isNumber(x)) { if (isNumber(y)) { return !nearlyEqual(x, y, config.epsilon); } else if (isComplex(y)) { return !nearlyEqual(x, y.re, config.epsilon) || !nearlyEqual(y.im, 0, config.epsilon); } } if (isComplex(x)) { if (isNumber(y)) { return !nearlyEqual(x.re, y, config.epsilon) || !nearlyEqual(x.im, 0, config.epsilon); } else if (isComplex(y)) { return !nearlyEqual(x.re, y.re, config.epsilon) || !nearlyEqual(x.im, y.im, config.epsilon); } } if (x instanceof BigNumber) { // try to convert to big number if (isNumber(y)) { y = BigNumber.convert(y); } else if (isBoolean(y)) { y = new BigNumber(y ? 1 : 0); } if (y instanceof BigNumber) { return !x.eq(y); } // downgrade to Number return unequal(x.toNumber(), y); } if (y instanceof BigNumber) { // try to convert to big number if (isNumber(x)) { x = BigNumber.convert(x); } else if (isBoolean(x)) { x = new BigNumber(x ? 1 : 0); } if (x instanceof BigNumber) { return !x.eq(y) } // downgrade to Number return unequal(x, y.toNumber()); } if ((isUnit(x)) && (isUnit(y))) { if (!x.equalBase(y)) { throw new Error('Cannot compare units with different base'); } return x.value != y.value; } if (isCollection(x) || isCollection(y)) { return collection.deepMap2(x, y, unequal); } // Note: test strings after testing collections, // else we can accidentally compare a stringified array with a string if (isString(x) || isString(y)) { return x != y; } if (isBoolean(x)) { return unequal(+x, y); } if (isBoolean(y)) { return unequal(x, +y); } if (x === null) { return y !== null; } if (y === null) { return x !== null; } if (x === undefined) { return y !== undefined; } if (y === undefined) { return x !== undefined; } throw new math.error.UnsupportedTypeError('unequal', math['typeof'](x), math['typeof'](y)); }; }; /***/ }, /* 56 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isCollection = collection.isCollection, isComplex = Complex.isComplex; /** * Compute the argument of a complex value. * For a complex number `a + bi`, the argument is computed as `atan2(b, a)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.arg(x) * * Examples: * * var a = math.complex(2, 2); * math.arg(a) / math.pi; // returns Number 0.25 * * var b = math.complex('2 + 3i'); * math.arg(b); // returns Number 0.982793723247329 * math.atan2(3, 2); // returns Number 0.982793723247329 * * See also: * * re, im, conj, abs * * @param {Number | Complex | Array | Matrix | Boolean} x * A complex number or array with complex numbers * @return {Number | Array | Matrix} The argument of x */ math.arg = function arg(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('arg', arguments.length, 1); } if (isNumber(x)) { return Math.atan2(0, x); } if (isComplex(x)) { return Math.atan2(x.im, x.re); } if (isCollection(x)) { return collection.deepMap(x, arg); } if (isBoolean(x)) { return arg(+x); } if (x instanceof BigNumber) { // downgrade to Number // TODO: implement BigNumber support return arg(x.toNumber()); } throw new math.error.UnsupportedTypeError('arg', math['typeof'](x)); }; }; /***/ }, /* 57 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), object = util.object, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isCollection =collection.isCollection, isComplex = Complex.isComplex; /** * Compute the complex conjugate of a complex value. * If `x = a+bi`, the complex conjugate of `x` is `a - bi`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.conj(x) * * Examples: * * math.conj(math.complex('2 + 3i')); // returns Complex 2 - 3i * math.conj(math.complex('2 - 3i')); // returns Complex 2 + 3i * math.conj(math.complex('-5.2i')); // returns Complex 5.2i * * See also: * * re, im, arg, abs * * @param {Number | BigNumber | Complex | Array | Matrix | Boolean} x * A complex number or array with complex numbers * @return {Number | BigNumber | Complex | Array | Matrix} * The complex conjugate of x */ math.conj = function conj(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('conj', arguments.length, 1); } if (isNumber(x)) { return x; } if (x instanceof BigNumber) { return new BigNumber(x); } if (isComplex(x)) { return new Complex(x.re, -x.im); } if (isCollection(x)) { return collection.deepMap(x, conj); } if (isBoolean(x)) { return +x; } // return a clone of the value for non-complex values return object.clone(x); }; }; /***/ }, /* 58 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), object = util.object, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isCollection = collection.isCollection, isComplex = Complex.isComplex; /** * Get the real part of a complex number. * For a complex number `a + bi`, the function returns `a`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.re(x) * * Examples: * * var a = math.complex(2, 3); * math.re(a); // returns Number 2 * math.im(a); // returns Number 3 * * math.re(math.complex('-5.2i')); // returns Number 0 * math.re(math.complex(2.4)); // returns Number 2.4 * * See also: * * im, conj, abs, arg * * @param {Number | BigNumber | Complex | Array | Matrix | Boolean} x * A complex number or array with complex numbers * @return {Number | BigNumber | Array | Matrix} The real part of x */ math.re = function re(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('re', arguments.length, 1); } if (isNumber(x)) { return x; } if (x instanceof BigNumber) { return new BigNumber(x); } if (isComplex(x)) { return x.re; } if (isCollection(x)) { return collection.deepMap(x, re); } if (isBoolean(x)) { return +x; } // return a clone of the value itself for all non-complex values return object.clone(x); }; }; /***/ }, /* 59 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isCollection =collection.isCollection, isComplex = Complex.isComplex; /** * Get the imaginary part of a complex number. * For a complex number `a + bi`, the function returns `b`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.im(x) * * Examples: * * var a = math.complex(2, 3); * math.re(a); // returns Number 2 * math.im(a); // returns Number 3 * * math.re(math.complex('-5.2i')); // returns Number -5.2 * math.re(math.complex(2.4)); // returns Number 0 * * See also: * * re, conj, abs, arg * * @param {Number | BigNumber | Complex | Array | Matrix | Boolean} x * A complex number or array with complex numbers * @return {Number | BigNumber | Array | Matrix} The imaginary part of x */ math.im = function im(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('im', arguments.length, 1); } if (isNumber(x)) { return 0; } if (x instanceof BigNumber) { return new BigNumber(0); } if (isComplex(x)) { return x.im; } if (isCollection(x)) { return collection.deepMap(x, im); } if (isBoolean(x)) { return 0; } // return 0 for all non-complex values return 0; }; }; /***/ }, /* 60 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), // take the BigNumber instance the provided math.js instance BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isCollection = collection.isCollection, isNumber = util.number.isNumber, isString = util.string.isString, isBoolean = util['boolean'].isBoolean; /** * Create a BigNumber, which can store numbers with arbitrary precision. * When a matrix is provided, all elements will be converted to BigNumber. * * Syntax: * * math.bignumber(x) * * Examples: * * 0.1 + 0.2; // returns Number 0.30000000000000004 * math.bignumber(0.1) + math.bignumber(0.2); // returns BigNumber 0.3 * * * 7.2e500; // returns Number Infinity * math.bignumber('7.2e500'); // returns BigNumber 7.2e500 * * See also: * * boolean, complex, index, matrix, string, unit * * @param {Number | String | Array | Matrix} [value] Value for the big number, * 0 by default. * @returns {BigNumber} The created bignumber */ math.bignumber = function bignumber(value) { if (arguments.length > 1) { throw new math.error.ArgumentsError('bignumber', arguments.length, 0, 1); } if ((value instanceof BigNumber) || isNumber(value) || isString(value)) { return new BigNumber(value); } if (isBoolean(value)) { return new BigNumber(+value); } if (isCollection(value)) { return collection.deepMap(value, bignumber); } if (arguments.length == 0) { return new BigNumber(0); } throw new math.error.UnsupportedTypeError('bignumber', math['typeof'](value)); }; }; /***/ }, /* 61 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isCollection = collection.isCollection, isNumber = util.number.isNumber, isString = util.string.isString; /** * Create a boolean or convert a string or number to a boolean. * In case of a number, `true` is returned for non-zero numbers, and `false` in * case of zero. * Strings can be `'true'` or `'false'`, or can contain a number. * When value is a matrix, all elements will be converted to boolean. * * Syntax: * * math.boolean(x) * * Examples: * * math.boolean(0); // returns false * math.boolean(1); // returns true * math.boolean(-3); // returns true * math.boolean('true'); // returns true * math.boolean('false'); // returns false * math.boolean([1, 0, 1, 1]); // returns [true, false, true, true] * * See also: * * bignumber, complex, index, matrix, string, unit * * @param {String | Number | Boolean | Array | Matrix} value A value of any type * @return {Boolean | Array | Matrix} The boolean value */ math['boolean'] = function bool (value) { if (arguments.length != 1) { throw new math.error.ArgumentsError('boolean', arguments.length, 0, 1); } if (value === 'true' || value === true) { return true; } if (value === 'false' || value === false) { return false; } if (value instanceof Boolean) { return value == true; } if (isNumber(value)) { return (value !== 0); } if (value instanceof BigNumber) { return !value.isZero(); } if (isString(value)) { // try case insensitive var lcase = value.toLowerCase(); if (lcase === 'true') { return true; } else if (lcase === 'false') { return false; } // test whether value is a valid number var num = Number(value); if (value != '' && !isNaN(num)) { return (num !== 0); } } if (isCollection(value)) { return collection.deepMap(value, bool); } throw new SyntaxError(value.toString() + ' is no valid boolean'); }; }; /***/ }, /* 62 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isCollection = collection.isCollection, isNumber = util.number.isNumber, isString = util.string.isString, isComplex = Complex.isComplex; /** * Create a complex value or convert a value to a complex value. * * Syntax: * * math.complex() // creates a complex value with zero * // as real and imaginary part. * math.complex(re : number, im : string) // creates a complex value with provided * // values for real and imaginary part. * math.complex(re : number) // creates a complex value with provided * // real value and zero imaginary part. * math.complex(complex : Complex) // clones the provided complex value. * math.complex(arg : string) // parses a string into a complex value. * math.complex(array : Array) // converts the elements of the array * // or matrix element wise into a * // complex value. * math.complex({re: number, im: number}) // creates a complex value with provided * // values for real an imaginary part. * math.complex({r: number, phi: number}) // creates a complex value with provided * // polar coordinates * * Examples: * * var a = math.complex(3, -4); // a = Complex 3 - 4i * a.re = 5; // a = Complex 5 - 4i * var i = a.im; // Number -4; * var b = math.complex('2 + 6i'); // Complex 2 + 6i * var c = math.complex(); // Complex 0 + 0i * var d = math.add(a, b); // Complex 5 + 2i * * See also: * * bignumber, boolean, index, matrix, number, string, unit * * @param {* | Array | Matrix} [args] * Arguments specifying the real and imaginary part of the complex number * @return {Complex | Array | Matrix} Returns a complex value */ math.complex = function complex(args) { switch (arguments.length) { case 0: // no parameters. Set re and im zero return new Complex(0, 0); case 1: // parse string into a complex number var arg = arguments[0]; if (isNumber(arg)) { return new Complex(arg, 0); } if (arg instanceof BigNumber) { // convert to Number return new Complex(arg.toNumber(), 0); } if (isComplex(arg)) { // create a clone return arg.clone(); } if (isString(arg)) { var c = Complex.parse(arg); if (c) { return c; } else { throw new SyntaxError('String "' + arg + '" is no valid complex number'); } } if (isCollection(arg)) { return collection.deepMap(arg, complex); } if (typeof arg === 'object') { if('re' in arg && 'im' in arg) { return new Complex(arg.re, arg.im); } else if ('r' in arg && 'phi' in arg) { return Complex.fromPolar(arg.r, arg.phi); } } throw new TypeError('Two numbers, single string or an fitting object expected in function complex'); case 2: // re and im provided var re = arguments[0], im = arguments[1]; // convert re to number if (re instanceof BigNumber) { re = re.toNumber(); } // convert im to number if (im instanceof BigNumber) { im = im.toNumber(); } if (isNumber(re) && isNumber(im)) { return new Complex(re, im); } else { throw new TypeError('Two numbers or a single string expected in function complex'); } default: throw new math.error.ArgumentsError('complex', arguments.length, 0, 2); } }; }; /***/ }, /* 63 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Index = __webpack_require__(7); /** * Create an index. An Index can store ranges having start, step, and end * for multiple dimensions. * Matrix.get, Matrix.set, and math.subset accept an Index as input. * * Syntax: * * math.index(range1, range2, ...) * * Where: * * Each range can be any of: * * - An array [start, end] * - An array [start, end, step] * - A number * - An instance of `Range` * * The parameters start, end, and step must be integer numbers. Start and end * are zero based. The start of a range is included, the end is excluded. * * Examples: * * var math = math.js * * var b = [1, 2, 3, 4, 5]; * math.subset(b, math.index([1, 3])); // returns [2, 3] * * var a = math.matrix([[1, 2], [3, 4]]); * a.subset(math.index(0, 1)); // returns 2 * a.subset(math.index(1, null)); // returns [3, 4] * * See also: * * bignumber, boolean, complex, matrix, number, string, unit * * @param {...*} ranges Zero or more ranges or numbers. * @return {Index} Returns the created index */ math.index = function matrix(ranges) { var i = new Index(); // downgrade BigNumber to Number var args = Array.prototype.slice.apply(arguments).map(function (arg) { if (arg instanceof BigNumber) { return arg.toNumber(); } else if (Array.isArray(arg)) { return arg.map(function (elem) { return (elem instanceof BigNumber) ? elem.toNumber() : elem; }); } else { return arg; } }); Index.apply(i, args); return i; }; }; /***/ }, /* 64 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Matrix = __webpack_require__(8); /** * Create a Matrix. The function creates a new `math.type.Matrix` object from * an `Array`. A Matrix has utility functions to manipulate the data in the * matrix, like getting the size and getting or setting values in the matrix. * * Syntax: * * math.matrix() // creates an empty matrix * math.matrix(data) // creates a matrix with initial data. * * Examples: * * var m = math.matrix([[1, 2], [3, 4]); * m.size(); // Array [2, 2] * m.resize([3, 2], 5); * m.valueOf(); // Array [[1, 2], [3, 4], [5, 5]] * m.get([1, 0]) // number 3 * * See also: * * bignumber, boolean, complex, index, number, string, unit * * @param {Array | Matrix} [data] A multi dimensional array * @return {Matrix} The created matrix */ math.matrix = function matrix(data) { if (arguments.length > 1) { throw new math.error.ArgumentsError('matrix', arguments.length, 0, 1); } return new Matrix(data); }; }; /***/ }, /* 65 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isCollection = collection.isCollection, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isString = util.string.isString; /** * Create a number or convert a string to a number. * When value is a matrix, all elements will be converted to number. * * Syntax: * * math.number(value) * * Examples: * * math.number(2); // returns number 2 * math.number('7.2'); // returns number 7.2 * math.number(true); // returns number 1 * math.number([true, false, true, true]); // returns [1, 0, 1, 1] * * See also: * * bignumber, boolean, complex, index, matrix, string, unit * * @param {String | Number | Boolean | Array | Matrix} [value] Value to be converted * @return {Number | Array | Matrix} The created number */ math.number = function number (value) { switch (arguments.length) { case 0: return 0; case 1: if (isCollection(value)) { return collection.deepMap(value, number); } if (value instanceof BigNumber) { return value.toNumber(); } if (isString(value)) { var num = Number(value); if (isNaN(num)) { num = Number(value.valueOf()); } if (isNaN(num)) { throw new SyntaxError(value.toString() + ' is no valid number'); } return num; } if (isBoolean(value)) { return value + 0; } if (isNumber(value)) { return value; } throw new math.error.UnsupportedTypeError('number', math['typeof'](value)); default: throw new math.error.ArgumentsError('number', arguments.length, 0, 1); } }; }; /***/ }, /* 66 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Parser = __webpack_require__(13); /** * Create a parser. The function creates a new `math.expression.Parser` object. * * Syntax: * * math.parser() * * Examples: * * var parser = new math.parser(); * * // evaluate expressions * var a = parser.eval('sqrt(3^2 + 4^2)'); // 5 * var b = parser.eval('sqrt(-4)'); // 2i * var c = parser.eval('2 inch in cm'); // 5.08 cm * var d = parser.eval('cos(45 deg)'); // 0.7071067811865476 * * // define variables and functions * parser.eval('x = 7 / 2'); // 3.5 * parser.eval('x + 3'); // 6.5 * parser.eval('function f(x, y) = x^y'); // f(x, y) * parser.eval('f(2, 3)'); // 8 * * // get and set variables and functions * var x = parser.get('x'); // 7 * var f = parser.get('f'); // function * var g = f(3, 2); // 9 * parser.set('h', 500); * var i = parser.eval('h / 2'); // 250 * parser.set('hello', function (name) { * return 'hello, ' + name + '!'; * }); * parser.eval('hello("user")'); // "hello, user!" * * // clear defined functions and variables * parser.clear(); * * See also: * * eval, compile, parse * * @return {Parser} Parser */ math.parser = function parser() { return new Parser(math); }; }; /***/ }, /* 67 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { /** * Wrap any value in a Selector, allowing to perform chained operations on * the value. * * All methods available in the math.js library can be called upon the selector, * and then will be evaluated with the value itself as first argument. * The selector can be closed by executing `selector.done()`, which returns * the final value. * * The Selector has a number of special functions: * * - `done()` Finalize the chained operation and return the selectors value. * - `valueOf()` The same as `done()` * - `toString()` Executes `math.format()` onto the selectors value, returning * a string representation of the value. * * Syntax: * * math.select(value) * * Examples: * * math.select(3) * .add(4) * .subtract(2) * .done(); // 5 * * math.select( [[1, 2], [3, 4]] ) * .set([1, 1], 8) * .multiply(3) * .done(); // [[24, 6], [9, 12]] * * @param {*} [value] A value of any type on which to start a chained operation. * @return {math.chaining.Selector} The created selector */ math.select = function select(value) { // TODO: check number of arguments return new math.chaining.Selector(value); }; }; /***/ }, /* 68 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), collection = __webpack_require__(11), number = util.number, isNumber = util.number.isNumber, isCollection = collection.isCollection; /** * Create a string or convert any object into a string. * Elements of Arrays and Matrices are processed element wise. * * Syntax: * * math.string(value) * * Examples: * * math.string(4.2); // returns string '4.2' * math.string(math.complex(3, 2); // returns string '3 + 2i' * * var u = math.unit(5, 'km'); * math.string(u.to('m')); // returns string '5000 m' * * math.string([true, false]); // returns ['true', 'false'] * * See also: * * bignumber, boolean, complex, index, matrix, number, unit * * @param {* | Array | Matrix} [value] A value to convert to a string * @return {String | Array | Matrix} The created string */ math.string = function string (value) { switch (arguments.length) { case 0: return ''; case 1: if (isNumber(value)) { return number.format(value); } if (isCollection(value)) { return collection.deepMap(value, string); } if (value === null) { return 'null'; } return value.toString(); default: throw new math.error.ArgumentsError('string', arguments.length, 0, 1); } }; }; /***/ }, /* 69 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Unit = __webpack_require__(9), collection = __webpack_require__(11), isCollection = collection.isCollection, isString = util.string.isString; /** * Create a unit. Depending on the passed arguments, the function * will create and return a new math.type.Unit object. * When a matrix is provided, all elements will be converted to units. * * Syntax: * * math.unit(unit : string) * math.unit(value : number, unit : string) * * Examples: * * var a = math.unit(5, 'cm'); // returns Unit 50 mm * var b = math.unit('23 kg'); // returns Unit 23 kg * a.to('m'); // returns Unit 0.05 m * * See also: * * bignumber, boolean, complex, index, matrix, number, string * * @param {* | Array | Matrix} args A number and unit. * @return {Unit | Array | Matrix} The created unit */ math.unit = function unit(args) { switch(arguments.length) { case 1: // parse a string var arg = arguments[0]; if (arg instanceof Unit) { // create a clone of the unit return arg.clone(); } if (isString(arg)) { if (Unit.isValuelessUnit(arg)) { return new Unit(null, arg); // a pure unit } var u = Unit.parse(arg); // a unit with value, like '5cm' if (u) { return u; } throw new SyntaxError('String "' + arg + '" is no valid unit'); } if (isCollection(args)) { return collection.deepMap(args, unit); } throw new TypeError('A string or a number and string expected in function unit'); case 2: // a number and a unit if (arguments[0] instanceof BigNumber) { // convert value to number return new Unit(arguments[0].toNumber(), arguments[1]); } else { return new Unit(arguments[0], arguments[1]); } default: throw new math.error.ArgumentsError('unit', arguments.length, 1, 2); } }; }; /***/ }, /* 70 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Matrix = __webpack_require__(8), collection = __webpack_require__(11), object = util.object, array = util.array, isNumber = util.number.isNumber, isInteger = util.number.isInteger, isCollection = collection.isCollection; /** * Concatenate two or more matrices. * * Syntax: * * math.concat(A, B, C, ...) * math.concat(A, B, C, ..., dim) * * Where: * * - `dim: number` is a zero-based dimension over which to concatenate the matrices. * By default the last dimension of the matrices. * * Examples: * * var A = [[1, 2], [5, 6]]; * var B = [[3, 4], [7, 8]]; * * math.concat(A, B); // returns [[1, 2, 3, 4], [5, 6, 7, 8]] * math.concat(A, B, 0); // returns [[1, 2], [5, 6], [3, 4], [7, 8]] * * See also: * * size, squeeze, subset, transpose * * @param {... Array | Matrix} args Two or more matrices * @return {Array | Matrix} Concatenated matrix */ math.concat = function concat (args) { var i, len = arguments.length, dim = -1, // zero-based dimension prevDim, asMatrix = false, matrices = []; // contains multi dimensional arrays for (i = 0; i < len; i++) { var arg = arguments[i]; // test whether we need to return a Matrix (if not we return an Array) if (arg instanceof Matrix) { asMatrix = true; } if ((i == len - 1) && isNumber(arg)) { // last argument contains the dimension on which to concatenate prevDim = dim; dim = arg; if (!isInteger(dim) || dim < 0) { throw new TypeError('Dimension number must be a positive integer ' + '(dim = ' + dim + ')'); } if (i > 0 && dim > prevDim) { throw new math.error.DimensionError(dim, prevDim, '>'); } } else if (isCollection(arg)) { // this is a matrix or array var matrix = object.clone(arg).valueOf(); var size = array.size(arg.valueOf()); matrices[i] = matrix; prevDim = dim; dim = size.length - 1; // verify whether each of the matrices has the same number of dimensions if (i > 0 && dim != prevDim) { throw new math.error.DimensionError(dim, prevDim); } } else { throw new math.error.UnsupportedTypeError('concat', math['typeof'](arg)); } } if (matrices.length == 0) { throw new SyntaxError('At least one matrix expected'); } var res = matrices.shift(); while (matrices.length) { res = _concat(res, matrices.shift(), dim, 0); } return asMatrix ? new Matrix(res) : res; }; /** * Recursively concatenate two matrices. * The contents of the matrices is not cloned. * @param {Array} a Multi dimensional array * @param {Array} b Multi dimensional array * @param {Number} concatDim The dimension on which to concatenate (zero-based) * @param {Number} dim The current dim (zero-based) * @return {Array} c The concatenated matrix * @private */ function _concat(a, b, concatDim, dim) { if (dim < concatDim) { // recurse into next dimension if (a.length != b.length) { throw new math.error.DimensionError(a.length, b.length); } var c = []; for (var i = 0; i < a.length; i++) { c[i] = _concat(a[i], b[i], concatDim, dim + 1); } return c; } else { // concatenate this dimension return a.concat(b); } } }; /***/ }, /* 71 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Matrix = __webpack_require__(8), object = util.object, string = util.string; /** * Calculate the determinant of a matrix. * * Syntax: * * math.det(x) * * Examples: * * math.det([[1, 2], [3, 4]]); // returns -2 * * var A = [ * [-2, 2, 3], * [-1, 1, 3], * [2, 0, -1] * ] * math.det(A); // returns 6 * * See also: * * inv * * @param {Array | Matrix} x A matrix * @return {Number} The determinant of `x` */ math.det = function det (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('det', arguments.length, 1); } var size; if (x instanceof Matrix) { size = x.size(); } else if (x instanceof Array) { x = new Matrix(x); size = x.size(); } else { // a scalar size = []; } switch (size.length) { case 0: // scalar return object.clone(x); case 1: // vector if (size[0] == 1) { return object.clone(x.valueOf()[0]); } else { throw new RangeError('Matrix must be square ' + '(size: ' + string.format(size) + ')'); } case 2: // two dimensional array var rows = size[0]; var cols = size[1]; if (rows == cols) { return _det(x.clone().valueOf(), rows, cols); } else { throw new RangeError('Matrix must be square ' + '(size: ' + string.format(size) + ')'); } default: // multi dimensional array throw new RangeError('Matrix must be two dimensional ' + '(size: ' + string.format(size) + ')'); } }; /** * Calculate the determinant of a matrix * @param {Array[]} matrix A square, two dimensional matrix * @param {Number} rows Number of rows of the matrix (zero-based) * @param {Number} cols Number of columns of the matrix (zero-based) * @returns {Number} det * @private */ function _det (matrix, rows, cols) { if (rows == 1) { // this is a 1 x 1 matrix return object.clone(matrix[0][0]); } else if (rows == 2) { // this is a 2 x 2 matrix // the determinant of [a11,a12;a21,a22] is det = a11*a22-a21*a12 return math.subtract( math.multiply(matrix[0][0], matrix[1][1]), math.multiply(matrix[1][0], matrix[0][1]) ); } else { // this is an n x n matrix function compute_mu(matrix) { var i, j; // Compute the matrix with zero lower triangle, same upper triangle, // and diagonals given by the negated sum of the below diagonal // elements. var mu = new Array(matrix.length); var sum = 0; for (i = 1; i < matrix.length; i++) { sum = math.add(sum, matrix[i][i]); } for (i = 0; i < matrix.length; i++) { mu[i] = new Array(matrix.length); mu[i][i] = math.unaryMinus(sum); for (j = 0; j < i; j++) { mu[i][j] = 0; // TODO: make bignumber 0 in case of bignumber computation } for (j = i + 1; j < matrix.length; j++) { mu[i][j] = matrix[i][j]; } if (i+1 < matrix.length) { sum = math.subtract(sum, matrix[i + 1][i + 1]); } } return mu; } var fa = matrix; for (var i = 0; i < rows - 1; i++) { fa = math.multiply(compute_mu(fa), matrix); } if (rows % 2 == 0) { return math.unaryMinus(fa[0][0]); } else { return fa[0][0]; } } } }; /***/ }, /* 72 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Matrix = __webpack_require__(8), object = util.object, isArray = util.array.isArray, isNumber = util.number.isNumber, isInteger = util.number.isInteger; /** * Create a diagonal matrix or retrieve the diagonal of a matrix * * When `x` is a vector, a matrix with vector `x` on the diagonal will be returned. * When `x` is a two dimensional matrix, the matrixes `k`th diagonal will be returned as vector. * When k is positive, the values are placed on the super diagonal. * When k is negative, the values are placed on the sub diagonal. * * Syntax: * * math.diag(X) * math.diag(X, k) * * Examples: * * // create a diagonal matrix * math.diag([1, 2, 3]); // returns [[1, 0, 0], [0, 2, 0], [0, 0, 3]] * math.diag([1, 2, 3], 1); // returns [[0, 1, 0, 0], [0, 0, 2, 0], [0, 0, 0, 3]] * math.diag([1, 2, 3], -1); // returns [[0, 0, 0], [1, 0, 0], [0, 2, 0], [0, 0, 3]] * * // retrieve the diagonal from a matrix * var a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; * math.diag(a); // returns [1, 5, 9] * * See also: * * ones, zeros, eye * * @param {Matrix | Array} x A two dimensional matrix or a vector * @param {Number | BigNumber} [k=0] The diagonal where the vector will be filled * in or retrieved. * @returns {Matrix | Array} Diagonal matrix from input vector, or diagonal from input matrix. */ math.diag = function diag (x, k) { var data, vector, i, iMax; if (arguments.length != 1 && arguments.length != 2) { throw new math.error.ArgumentsError('diag', arguments.length, 1, 2); } if (k) { // convert BigNumber to a number if (k instanceof BigNumber) k = k.toNumber(); if (!isNumber(k) || !isInteger(k)) { throw new TypeError ('Second parameter in function diag must be an integer'); } } else { k = 0; } var kSuper = k > 0 ? k : 0; var kSub = k < 0 ? -k : 0; // check type of input var asArray; if (x instanceof Matrix) { asArray = false; } else if (isArray(x)) { // convert to matrix x = new Matrix(x); asArray = true; } else { throw new TypeError ('First parameter in function diag must be a Matrix or Array'); } var s = x.size(); switch (s.length) { case 1: // x is a vector. create diagonal matrix vector = x.valueOf(); var matrix = new Matrix(); var defaultValue = (vector[0] instanceof BigNumber) ? new BigNumber(0) : 0; matrix.resize([vector.length + kSub, vector.length + kSuper], defaultValue); data = matrix.valueOf(); iMax = vector.length; for (i = 0; i < iMax; i++) { data[i + kSub][i + kSuper] = object.clone(vector[i]); } return asArray ? matrix.valueOf() : matrix; case 2: // x is a matrix get diagonal from matrix vector = []; data = x.valueOf(); iMax = Math.min(s[0] - kSub, s[1] - kSuper); for (i = 0; i < iMax; i++) { vector[i] = object.clone(data[i + kSub][i + kSuper]); } return asArray ? vector : new Matrix(vector); default: throw new RangeError('Matrix for function diag must be 2 dimensional'); } }; }; /***/ }, /* 73 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Matrix = __webpack_require__(8), collection = __webpack_require__(11), isNumber = util.number.isNumber, isInteger = util.number.isInteger, isArray = Array.isArray; /** * Create a 2-dimensional identity matrix with size m x n or n x n. * The matrix has ones on the diagonal and zeros elsewhere. * * Syntax: * * math.eye(n) * math.eye(m, n) * math.eye([m, n]) * * Examples: * * math.eye(3); // returns [[1, 0, 0], [0, 1, 0], [0, 0, 1]] * math.eye(3, 2); // returns [[1, 0], [0, 1], [0, 0]] * * var A = [[1, 2, 3], [4, 5, 6]]; * math.eye(math.size(b)); // returns [[1, 0, 0], [0, 1, 0]] * * See also: * * diag, ones, zeros, size, range * * @param {...Number | Matrix | Array} size The size for the matrix * @return {Matrix | Array | Number} A matrix with ones on the diagonal. */ math.eye = function eye (size) { var args = collection.argsToArray(arguments), asMatrix = (size instanceof Matrix) ? true : (isArray(size) ? false : (config.matrix === 'matrix')); if (args.length == 0) { // return an empty array return asMatrix ? new Matrix() : []; } else if (args.length == 1) { // change to a 2-dimensional square args[1] = args[0]; } else if (args.length > 2) { // error in case of an n-dimensional size throw new math.error.ArgumentsError('eye', args.length, 0, 2); } var rows = args[0], cols = args[1]; if (rows instanceof BigNumber) rows = rows.toNumber(); if (cols instanceof BigNumber) cols = cols.toNumber(); if (!isNumber(rows) || !isInteger(rows) || rows < 1) { throw new Error('Parameters in function eye must be positive integers'); } if (!isNumber(cols) || !isInteger(cols) || cols < 1) { throw new Error('Parameters in function eye must be positive integers'); } // convert arguments from bignumber to numbers if needed var asBigNumber = false; args = args.map(function (value) { if (value instanceof BigNumber) { asBigNumber = true; return value.toNumber(); } else { return value; } }); // create the matrix var matrix = new Matrix(); var one = asBigNumber ? new BigNumber(1) : 1; var defaultValue = asBigNumber ? new BigNumber(0) : 0; matrix.resize(args, defaultValue); // fill in ones on the diagonal var minimum = math.min(args); var data = matrix.valueOf(); for (var d = 0; d < minimum; d++) { data[d][d] = one; } return asMatrix ? matrix : matrix.valueOf(); }; }; /***/ }, /* 74 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), string = util.string, Matrix = __webpack_require__(8); /** * Calculate the inverse of a square matrix. * * Syntax: * * math.inv(x) * * Examples: * * math.inv([[1, 2], [3, 4]]); // returns [[-2, 1], [1.5, -0.5]] * math.inv(4); // returns 0.25 * 1 / 4; // returns 0.25 * * See also: * * det, transpose * * @param {Number | Complex | Array | Matrix} x Matrix to be inversed * @return {Number | Complex | Array | Matrix} The inverse of `x`. */ math.inv = function inv (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('inv', arguments.length, 1); } var size = math.size(x).valueOf(); switch (size.length) { case 0: // scalar return math.divide(1, x); case 1: // vector if (size[0] == 1) { if (x instanceof Matrix) { return new Matrix([ math.divide(1, x.valueOf()[0]) ]); } else { return [ math.divide(1, x[0]) ]; } } else { throw new RangeError('Matrix must be square ' + '(size: ' + string.format(size) + ')'); } case 2: // two dimensional array var rows = size[0]; var cols = size[1]; if (rows == cols) { if (x instanceof Matrix) { return new Matrix( _inv(x.valueOf(), rows, cols) ); } else { // return an Array return _inv(x, rows, cols); } } else { throw new RangeError('Matrix must be square ' + '(size: ' + string.format(size) + ')'); } default: // multi dimensional array throw new RangeError('Matrix must be two dimensional ' + '(size: ' + string.format(size) + ')'); } }; /** * Calculate the inverse of a square matrix * @param {Array[]} matrix A square matrix * @param {Number} rows Number of rows * @param {Number} cols Number of columns, must equal rows * @return {Array[]} inv Inverse matrix * @private */ function _inv (matrix, rows, cols){ var r, s, f, value, temp; if (rows == 1) { // this is a 1 x 1 matrix value = matrix[0][0]; if (value == 0) { throw Error('Cannot calculate inverse, determinant is zero'); } return [[ math.divide(1, value) ]]; } else if (rows == 2) { // this is a 2 x 2 matrix var d = math.det(matrix); if (d == 0) { throw Error('Cannot calculate inverse, determinant is zero'); } return [ [ math.divide(matrix[1][1], d), math.divide(math.unaryMinus(matrix[0][1]), d) ], [ math.divide(math.unaryMinus(matrix[1][0]), d), math.divide(matrix[0][0], d) ] ]; } else { // this is a matrix of 3 x 3 or larger // calculate inverse using gauss-jordan elimination // http://en.wikipedia.org/wiki/Gaussian_elimination // http://mathworld.wolfram.com/MatrixInverse.html // http://math.uww.edu/~mcfarlat/inverse.htm // make a copy of the matrix (only the arrays, not of the elements) var A = matrix.concat(); for (r = 0; r < rows; r++) { A[r] = A[r].concat(); } // create an identity matrix which in the end will contain the // matrix inverse var B = math.eye(rows).valueOf(); // loop over all columns, and perform row reductions for (var c = 0; c < cols; c++) { // element Acc should be non zero. if not, swap content // with one of the lower rows r = c; while (r < rows && A[r][c] == 0) { r++; } if (r == rows || A[r][c] == 0) { // TODO: in case of zero det, just return a matrix wih Infinity values? (like octave) throw Error('Cannot calculate inverse, determinant is zero'); } if (r != c) { temp = A[c]; A[c] = A[r]; A[r] = temp; temp = B[c]; B[c] = B[r]; B[r] = temp; } // eliminate non-zero values on the other rows at column c var Ac = A[c], Bc = B[c]; for (r = 0; r < rows; r++) { var Ar = A[r], Br = B[r]; if(r != c) { // eliminate value at column c and row r if (Ar[c] != 0) { f = math.divide(math.unaryMinus(Ar[c]), Ac[c]); // add (f * row c) to row r to eliminate the value // at column c for (s = c; s < cols; s++) { Ar[s] = math.add(Ar[s], math.multiply(f, Ac[s])); } for (s = 0; s < cols; s++) { Br[s] = math.add(Br[s], math.multiply(f, Bc[s])); } } } else { // normalize value at Acc to 1, // divide each value on row r with the value at Acc f = Ac[c]; for (s = c; s < cols; s++) { Ar[s] = math.divide(Ar[s], f); } for (s = 0; s < cols; s++) { Br[s] = math.divide(Br[s], f); } } } } return B; } } }; /***/ }, /* 75 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Matrix = __webpack_require__(8), collection = __webpack_require__(11), array = util.array, isArray = Array.isArray; /** * Create a matrix filled with ones. The created matrix can have one or * multiple dimensions. * * Syntax: * * math.ones(m) * math.ones(m, n) * math.ones([m, n]) * math.ones([m, n, p, ...]) * * Examples: * * math.ones(3); // returns [1, 1, 1] * math.ones(3, 2); // returns [[1, 1], [1, 1], [1, 1]] * * var A = [[1, 2, 3], [4, 5, 6]]; * math.zeros(math.size(A)); // returns [[1, 1, 1], [1, 1, 1]] * * See also: * * zeros, eye, size, range * * @param {...Number | Array} size The size of each dimension of the matrix * @return {Array | Matrix | Number} A matrix filled with ones */ math.ones = function ones (size) { var args = collection.argsToArray(arguments); var asMatrix = (size instanceof Matrix) ? true : (isArray(size) ? false : (config.matrix === 'matrix')); if (args.length == 0) { // output an empty matrix return asMatrix ? new Matrix() : []; } else { // output an array or matrix // convert arguments from bignumber to numbers if needed var asBigNumber = false; args = args.map(function (value) { if (value instanceof BigNumber) { asBigNumber = true; return value.toNumber(); } else { return value; } }); // resize the matrix var res = []; var defaultValue = asBigNumber ? new BigNumber(1) : 1; res = array.resize(res, args, defaultValue); return asMatrix ? new Matrix(res) : res; } }; }; /***/ }, /* 76 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Matrix = __webpack_require__(8), collection = __webpack_require__(11), isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isNumber = util.number.isNumber; /** * Create an array from a range. * By default, the range end is excluded. This can be customized by providing * an extra parameter `includeEnd`. * * Syntax: * * math.range(str [, includeEnd]) // Create a range from a string, * // where the string contains the * // start, optional step, and end, * // separated by a colon. * math.range(start, end [, includeEnd]) // Create a range with start and * // end and a step size of 1. * math.range(start, end, step [, includeEnd]) // Create a range with start, step, * // and end. * * Where: * * - `str: String` * A string 'start:end' or 'start:step:end' * - `start: {Number | BigNumber}` * Start of the range * - `end: Number | BigNumber` * End of the range, excluded by default, included when parameter includeEnd=true * - `step: Number | BigNumber` * Step size. Default value is 1. * - `includeEnd: boolean` * Option to specify whether to include the end or not. False by default. * * Examples: * * math.range(2, 6); // [2, 3, 4, 5] * math.range(2, -3, -1); // [2, 1, 0, -1, -2] * math.range('2:1:6'); // [2, 3, 4, 5] * math.range(2, 6, true); // [2, 3, 4, 5, 6] * * See also: * * ones, zeros, size, subset * * @param {*} args Parameters describing the ranges `start`, `end`, and optional `step`. * @return {Array | Matrix} range */ math.range = function range(args) { var params = Array.prototype.slice.call(arguments), start, end, step, includeEnd = false; // read the includeEnd parameter if (isBoolean(params[params.length - 1])) { includeEnd = params.pop() ? true : false; } switch (params.length) { case 1: // range(str) // parse string into a range if (isString(params[0])) { var r = _parse(params[0]); if (!r){ throw new SyntaxError('String "' + params[0] + '" is no valid range'); } start = r.start; end = r.end; step = r.step; } else { throw new TypeError('Two or three numbers or a single string expected in function range'); } break; case 2: // range(str, end) // range(start, end) start = params[0]; end = params[1]; step = 1; break; case 3: // range(start, end, step) start = params[0]; end = params[1]; step = params[2]; break; case 4: throw new TypeError('Parameter includeEnd must be a boolean'); default: throw new math.error.ArgumentsError('range', arguments.length, 2, 4); } // verify type of parameters if (!isNumber(start) && !(start instanceof BigNumber)) { throw new TypeError('Parameter start must be a number'); } if (!isNumber(end) && !(end instanceof BigNumber)) { throw new TypeError('Parameter end must be a number'); } if (!isNumber(step) && !(step instanceof BigNumber)) { throw new TypeError('Parameter step must be a number'); } // go big if (start instanceof BigNumber || end instanceof BigNumber || step instanceof BigNumber) { // create a range with big numbers var asBigNumber = true; // convert start, end, step to BigNumber if (!(start instanceof BigNumber)) start = BigNumber.convert(start); if (!(end instanceof BigNumber)) end = BigNumber.convert(end); if (!(step instanceof BigNumber)) step = BigNumber.convert(step); if (!(start instanceof BigNumber) || !(end instanceof BigNumber) || !(step instanceof BigNumber)) { // not all values can be converted to big number :( // fall back to numbers asBigNumber = false; if (start instanceof BigNumber) start = start.toNumber(); if (end instanceof BigNumber) end = end.toNumber(); if (step instanceof BigNumber) step = step.toNumber(); } } // generate the range var fn = asBigNumber ? (includeEnd ? _bigRangeInc : _bigRange) : (includeEnd ? _rangeInc : _range); var array = fn(start, end, step); // return as array or matrix return (config.matrix === 'array') ? array : new Matrix(array); }; /** * Create a range with numbers. End is excluded * @param {Number} start * @param {Number} end * @param {Number} step * @returns {Array} range * @private */ function _range (start, end, step) { var array = [], x = start; if (step > 0) { while (x < end) { array.push(x); x += step; } } else if (step < 0) { while (x > end) { array.push(x); x += step; } } return array; } /** * Create a range with numbers. End is included * @param {Number} start * @param {Number} end * @param {Number} step * @returns {Array} range * @private */ function _rangeInc (start, end, step) { var array = [], x = start; if (step > 0) { while (x <= end) { array.push(x); x += step; } } else if (step < 0) { while (x >= end) { array.push(x); x += step; } } return array; } /** * Create a range with big numbers. End is excluded * @param {BigNumber} start * @param {BigNumber} end * @param {BigNumber} step * @returns {Array} range * @private */ function _bigRange (start, end, step) { var array = [], x = start.clone(), zero = new BigNumber(0); if (step.gt(zero)) { while (x.lt(end)) { array.push(x); x = x.plus(step); } } else if (step.lt(zero)) { while (x.gt(end)) { array.push(x); x = x.plus(step); } } return array; } /** * Create a range with big numbers. End is included * @param {BigNumber} start * @param {BigNumber} end * @param {BigNumber} step * @returns {Array} range * @private */ function _bigRangeInc (start, end, step) { var array = [], x = start.clone(), zero = new BigNumber(0); if (step.gt(zero)) { while (x.lte(end)) { array.push(x); x = x.plus(step); } } else if (step.lt(zero)) { while (x.gte(end)) { array.push(x); x = x.plus(step); } } return array; } /** * Parse a string into a range, * The string contains the start, optional step, and end, separated by a colon. * If the string does not contain a valid range, null is returned. * For example str='0:2:11'. * @param {String} str * @return {Object | null} range Object containing properties start, end, step * @private */ function _parse (str) { var args = str.split(':'), nums = null; if (config.number === 'bignumber') { // bignumber try { nums = args.map(function (arg) { return new BigNumber(arg); }); } catch (err) { return null; } } else { // number nums = args.map(function (arg) { // use Number and not parseFloat as Number returns NaN on invalid garbage in the string return Number(arg); }); var invalid = nums.some(function (num) { return isNaN(num); }); if(invalid) { return null; } } switch (nums.length) { case 2: return { start: nums[0], end: nums[1], step: 1 }; case 3: return { start: nums[0], end: nums[2], step: nums[1] }; default: return null; } } }; /***/ }, /* 77 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Matrix = __webpack_require__(8), array = util.array, clone = util.object.clone, string = util.string, isString = util.string.isString, isNumber = util.number.isNumber, isInteger = util.number.isInteger, isArray = array.isArray; /** * Resize a matrix * * Syntax: * * math.resize(x, size) * math.resize(x, size, defaultValue) * * Examples: * * math.resize([1, 2, 3, 4, 5], [3]); // returns Array [1, 2, 3] * math.resize([1, 2, 3], [5], 0); // returns Array [1, 2, 3, 0, 0] * math.resize(2, [2, 3], 0); // returns Matrix [[2, 0, 0], [0, 0, 0]] * math.resize("hello", [8], "!"); // returns String 'hello!!!' * * See also: * * size, squeeze, subset * * @param {* | Array | Matrix} x Matrix to be resized * @param {Array | Matrix} size One dimensional array with numbers * @param {Number | String} [defaultValue] Undefined by default, except in * case of a string, in that case * defaultValue = ' ' * @return {* | Array | Matrix} A resized clone of matrix `x` */ math.resize = function resize (x, size, defaultValue) { if (arguments.length != 2 && arguments.length != 3) { throw new math.error.ArgumentsError('resize', arguments.length, 2, 3); } var asMatrix = (x instanceof Matrix) ? true : isArray(x) ? false : (config.matrix !== 'array'); if (x instanceof Matrix) { x = x.valueOf(); // get Array } if (size instanceof Matrix) { size = size.valueOf(); // get Array } if (size.length && size[0] instanceof BigNumber) { // convert bignumbers to numbers size = size.map(function (value) { return (value instanceof BigNumber) ? value.toNumber() : value; }); } if (isString(x)) { return _resizeString(x, size, defaultValue); } else { if (size.length == 0) { // output a scalar while (isArray(x)) { x = x[0]; } return clone(x); } else { // output an array/matrix if (!isArray(x)) { x = [x]; } x = clone(x); var res = array.resize(x, size, defaultValue); return asMatrix ? new Matrix(res) : res; } } }; /** * Resize a string * @param {String} str * @param {Number[]} size * @param {string} defaultChar * @private */ function _resizeString(str, size, defaultChar) { if (defaultChar !== undefined) { if (!isString(defaultChar) || defaultChar.length !== 1) { throw new TypeError('Single character expected as defaultValue'); } } else { defaultChar = ' '; } if (size.length !== 1) { throw new math.error.DimensionError(size.length, 1); } var len = size[0]; if (!isNumber(len) || !isInteger(len)) { throw new TypeError('Invalid size, must contain positive integers ' + '(size: ' + string.format(size) + ')'); } if (str.length > len) { return str.substring(0, len); } else if (str.length < len) { var res = str; for (var i = 0, ii = len - str.length; i < ii; i++) { res += defaultChar; } return res; } else { return str; } } }; /***/ }, /* 78 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), Matrix = __webpack_require__(8), array = util.array, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit; /** * Calculate the size of a matrix or scalar. * * Syntax: * * math.size(x) * * Examples: * * math.size(2.3); // returns [] * math.size('hello world'); // returns [11] * * var A = [[1, 2, 3], [4, 5, 6]]; * math.size(A); // returns [2, 3] * math.size(math.range(1,6)); // returns [5] * * See also: * * resize, squeeze, subset * * @param {Boolean | Number | Complex | Unit | String | Array | Matrix} x A matrix * @return {Array | Matrix} A vector with size of `x`. */ math.size = function size (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('size', arguments.length, 1); } var asArray = (config.matrix === 'array'); if (isNumber(x) || isComplex(x) || isUnit(x) || isBoolean(x) || x == null || x instanceof BigNumber) { return asArray ? [] : new Matrix([]); } if (isString(x)) { return asArray ? [x.length] : new Matrix([x.length]); } if (Array.isArray(x)) { return array.size(x); } if (x instanceof Matrix) { return new Matrix(x.size()); } throw new math.error.UnsupportedTypeError('size', math['typeof'](x)); }; }; /***/ }, /* 79 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Matrix = __webpack_require__(8), object = util.object, array = util.array, isArray = Array.isArray; /** * Squeeze a matrix, remove outer singleton dimensions from a matrix. * * Syntax: * * math.squeeze(x) * * Examples: * * math.squeeze([3]); // returns 3 * math.squeeze([[3]]); // returns 3 * * var A = math.zeros(1, 3, 2); // returns [[[0, 0], [0, 0], [0, 0]]] (size 1x3x2) * math.squeeze(A); // returns [[0, 0], [0, 0], [0, 0]] (size 3x2) * * // only outer dimensions will be squeezed, so the following B will be left as as * var B = math.zeros(3, 1, 1); // returns [[[0]], [[0]], [[0]]] (size 3x1x1) * math.squeeze(B); // returns [[[0]], [[0]], [[0]]] (size 3x1x1) * * See also: * * subset * * @param {Matrix | Array} x Matrix to be squeezed * @return {Matrix | Array} Squeezed matrix */ math.squeeze = function squeeze (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('squeeze', arguments.length, 1); } if (isArray(x)) { return array.squeeze(object.clone(x)); } else if (x instanceof Matrix) { var res = array.squeeze(x.toArray()); return isArray(res) ? new Matrix(res) : res; } else { // scalar return object.clone(x); } }; }; /***/ }, /* 80 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Matrix = __webpack_require__(8), Index = __webpack_require__(7), array = util.array, isString = util.string.isString, isArray = Array.isArray; /** * Get or set a subset of a matrix or string. * * Syntax: * math.subset(value, index) // retrieve a subset * math.subset(value, index, replacement [, defaultValue]) // replace a subset * * Examples: * * // get a subset * var d = [[1, 2], [3, 4]]; * math.subset(d, math.index(1, 0)); // returns 3 * math.subset(d, math.index([0, 2], 1)); // returns [[2], [4]] * * // replace a subset * var e = []; * var f = math.subset(e, math.index(0, [0, 2]), [5, 6]); // f = [[5, 6]] * var g = math.subset(f, math.index(1, 1), 7, 0); // g = [[5, 6], [0, 7]] * * See also: * * size, resize, squeeze, index * * @param {Array | Matrix | String} matrix An array, matrix, or string * @param {Index} index An index containing ranges for each * dimension * @param {*} [replacement] An array, matrix, or scalar. * If provided, the subset is replaced with replacement. * If not provided, the subset is returned * @param {*} [defaultValue=undefined] Default value, filled in on new entries when * the matrix is resized. If not provided, * new matrix elements will be left undefined. * @return {Array | Matrix | String} Either the retrieved subset or the updated matrix. */ math.subset = function subset (matrix, index, replacement, defaultValue) { switch (arguments.length) { case 2: // get subset return _getSubset(arguments[0], arguments[1]); // intentional fall through case 3: // set subset case 4: // set subset with default value return _setSubset(arguments[0], arguments[1], arguments[2], arguments[3]); default: // wrong number of arguments throw new math.error.ArgumentsError('subset', arguments.length, 2, 4); } }; /** * Retrieve a subset of an value such as an Array, Matrix, or String * @param {Array | Matrix | String} value Object from which to get a subset * @param {Index} index An index containing ranges for each * dimension * @returns {Array | Matrix | *} subset * @private */ function _getSubset(value, index) { var m, subset; if (isArray(value)) { m = new Matrix(value); subset = m.subset(index); return subset.valueOf(); } else if (value instanceof Matrix) { return value.subset(index); } else if (isString(value)) { return _getSubstring(value, index); } else { throw new math.error.UnsupportedTypeError('subset', math['typeof'](value)); } } /** * Retrieve a subset of a string * @param {String} str String from which to get a substring * @param {Index} index An index containing ranges for each dimension * @returns {string} substring * @private */ function _getSubstring(str, index) { if (!(index instanceof Index)) { // TODO: better error message throw new TypeError('Index expected'); } if (index.size().length != 1) { throw new math.error.DimensionError(index.size().length, 1); } var range = index.range(0); var substr = ''; var strLen = str.length; range.forEach(function (v) { array.validateIndex(v, strLen); substr += str.charAt(v); }); return substr; } /** * Replace a subset in an value such as an Array, Matrix, or String * @param {Array | Matrix | String} value Object to be replaced * @param {Index} index An index containing ranges for each * dimension * @param {Array | Matrix | *} replacement * @param {*} [defaultValue] Default value, filled in on new entries when * the matrix is resized. If not provided, * new matrix elements will be left undefined. * @returns {*} result * @private */ function _setSubset(value, index, replacement, defaultValue) { var m; if (isArray(value)) { m = new Matrix(math.clone(value)); m.subset(index, replacement, defaultValue); return m.valueOf(); } else if (value instanceof Matrix) { return value.clone().subset(index, replacement, defaultValue); } else if (isString(value)) { return _setSubstring(value, index, replacement, defaultValue); } else { throw new math.error.UnsupportedTypeError('subset', math['typeof'](value)); } } /** * Replace a substring in a string * @param {String} str String to be replaced * @param {Index} index An index containing ranges for each dimension * @param {String} replacement Replacement string * @param {String} [defaultValue] Default value to be uses when resizing * the string. is ' ' by default * @returns {string} result * @private */ function _setSubstring(str, index, replacement, defaultValue) { if (!(index instanceof Index)) { // TODO: better error message throw new TypeError('Index expected'); } if (index.size().length != 1) { throw new math.error.DimensionError(index.size().length, 1); } if (defaultValue !== undefined) { if (!isString(defaultValue) || defaultValue.length !== 1) { throw new TypeError('Single character expected as defaultValue'); } } else { defaultValue = ' '; } var range = index.range(0); var len = range.size()[0]; if (len != replacement.length) { throw new math.error.DimensionError(range.size()[0], replacement.length); } // copy the string into an array with characters var strLen = str.length; var chars = []; for (var i = 0; i < strLen; i++) { chars[i] = str.charAt(i); } range.forEach(function (v, i) { array.validateIndex(v); chars[v] = replacement.charAt(i); }); // initialize undefined characters with a space if (chars.length > strLen) { for (i = strLen - 1, len = chars.length; i < len; i++) { if (!chars[i]) { chars[i] = defaultValue; } } } return chars.join(''); } }; /***/ }, /* 81 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Matrix = __webpack_require__(8), object = util.object, string = util.string; /** * Transpose a matrix. All values of the matrix are reflected over its * main diagonal. Only two dimensional matrices are supported. * * Syntax: * * math.transpose(x) * * Examples: * * var A = [[1, 2, 3], [4, 5, 6]]; * math.transpose(A); // returns [[1, 4], [2, 5], [3, 6]] * * See also: * * diag, inv, subset, squeeze * * @param {Array | Matrix} x Matrix to be transposed * @return {Array | Matrix} The transposed matrix */ math.transpose = function transpose (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('transpose', arguments.length, 1); } var size = math.size(x).valueOf(); switch (size.length) { case 0: // scalar return object.clone(x); case 1: // vector return object.clone(x); case 2: // two dimensional array var rows = size[1], cols = size[0], asMatrix = (x instanceof Matrix), data = x.valueOf(), transposed = [], transposedRow, clone = object.clone; if (rows === 0) { // whoops throw new RangeError('Cannot transpose a 2D matrix with no rows' + '(size: ' + string.format(size) + ')'); } for (var r = 0; r < rows; r++) { transposedRow = transposed[r] = []; for (var c = 0; c < cols; c++) { transposedRow[c] = clone(data[c][r]); } } return asMatrix ? new Matrix(transposed) : transposed; default: // multi dimensional array throw new RangeError('Matrix must be two dimensional ' + '(size: ' + string.format(size) + ')'); } }; }; /***/ }, /* 82 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math, config) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Matrix = __webpack_require__(8), collection = __webpack_require__(11), array = util.array, isArray = Array.isArray; /** * Create a matrix filled with zeros. The created matrix can have one or * multiple dimensions. * * Syntax: * * math.zeros(m) * math.zeros(m, n) * math.zeros([m, n]) * math.zeros([m, n, p, ...]) * * Examples: * * math.zeros(3); // returns [0, 0, 0] * math.zeros(3, 2); // returns [[0, 0], [0, 0], [0, 0]] * * var A = [[1, 2, 3], [4, 5, 6]]; * math.zeros(math.size(A)); // returns [[0, 0, 0], [0, 0, 0]] * * See also: * * ones, eye, size, range * * @param {...Number | Array} size The size of each dimension of the matrix * @return {Array | Matrix | Number} A matrix filled with zeros */ math.zeros = function zeros (size) { var args = collection.argsToArray(arguments); var asMatrix = (size instanceof Matrix) ? true : (isArray(size) ? false : (config.matrix === 'matrix')); if (args.length == 0) { // output an empty matrix return asMatrix ? new Matrix() : []; } else { // output an array or matrix // convert arguments from bignumber to numbers if needed var asBigNumber = false; args = args.map(function (value) { if (value instanceof BigNumber) { asBigNumber = true; return value.toNumber(); } else { return value; } }); // resize the matrix var res = []; var defaultValue = asBigNumber ? new BigNumber(0) : 0; res = array.resize(res, args, defaultValue); return asMatrix ? new Matrix(res) : res; } }; }; /***/ }, /* 83 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), array = __webpack_require__(160), collection = __webpack_require__(11), isCollection = collection.isCollection; // TODO: implement BigNumber support for random /** * Create a distribution object with a set of random functions for given * random distribution. * * Syntax: * * math.distribution(name) * * Examples: * * var normalDist = math.distribution('normal'); // create a normal distribution * normalDist.random(0, 10); // get a random value between 0 and 10 * * See also: * * random, randomInt, pickRandom * * @param {String} name Name of a distribution. Choose from 'uniform', 'normal'. * @return {Object} Returns a distribution object containing functions: * `random([size] [, min] [, max])`, * `randomInt([min] [, max])`, * `pickRandom(array)` */ math.distribution = function(name) { if (!distributions.hasOwnProperty(name)) throw new Error('Unknown distribution ' + name); var args = Array.prototype.slice.call(arguments, 1), distribution = distributions[name].apply(this, args); return (function(distribution) { // This is the public API for all distributions var randFunctions = { random: function(arg1, arg2, arg3) { var size, min, max; if (arguments.length > 3) { throw new math.error.ArgumentsError('random', arguments.length, 0, 3); // `random(max)` or `random(size)` } else if (arguments.length === 1) { if (isCollection(arg1)) { size = arg1; } else { max = arg1; } // `random(min, max)` or `random(size, max)` } else if (arguments.length === 2) { if (isCollection(arg1)) { size = arg1; max = arg2; } else { min = arg1; max = arg2; } // `random(size, min, max)` } else { size = arg1; min = arg2; max = arg3; } // TODO: validate type of min, max, and size if (max === undefined) max = 1; if (min === undefined) min = 0; if (size !== undefined) { var res = _randomDataForMatrix(size.valueOf(), min, max, _random); return (size instanceof Matrix) ? new Matrix(res) : res; } else return _random(min, max); }, randomInt: function(arg1, arg2, arg3) { var size, min, max; if (arguments.length > 3 || arguments.length < 1) throw new math.error.ArgumentsError('randomInt', arguments.length, 1, 3); // `random(max)` or `random(size)` else if (arguments.length === 1) if (isCollection(arg1)) { size = arg1; } else { max = arg1; } // `randomInt(min, max)` or `randomInt(size, max)` else if (arguments.length === 2) { if (isCollection(arg1)) { size = arg1; max = arg2; } else { min = arg1; max = arg2; } // `randomInt(size, min, max)` } else { size = arg1; min = arg2; max = arg3; } // TODO: validate type of min, max, and size if (min === undefined) min = 0; if (size !== undefined) { var res = _randomDataForMatrix(size.valueOf(), min, max, _randomInt); return (size instanceof Matrix) ? new Matrix(res) : res; } else return _randomInt(min, max); }, pickRandom: function(possibles) { if (arguments.length !== 1) { throw new math.error.ArgumentsError('pickRandom', arguments.length, 1); } if (possibles instanceof Matrix) { possibles = possibles.valueOf(); // get Array } else if (!Array.isArray(possibles)) { throw new math.error.UnsupportedTypeError('pickRandom', math['typeof'](possibles)); } if (array.size(possibles).length > 1) { throw new math.error.DimensionError('Only one dimensional vectors supported'); } // TODO: add support for multi dimensional matrices return possibles[Math.floor(Math.random() * possibles.length)]; } }; var _random = function(min, max) { return min + distribution() * (max - min); }; var _randomInt = function(min, max) { return Math.floor(min + distribution() * (max - min)); }; // This is a function for generating a random matrix recursively. var _randomDataForMatrix = function(size, min, max, randFunc) { var data = [], length, i; size = size.slice(0); if (size.length > 1) { for (i = 0, length = size.shift(); i < length; i++) data.push(_randomDataForMatrix(size, min, max, randFunc)); } else { for (i = 0, length = size.shift(); i < length; i++) data.push(randFunc(min, max)); } return data; }; return randFunctions; })(distribution); }; // Each distribution is a function that takes no argument and when called returns // a number between 0 and 1. var distributions = { uniform: function() { return Math.random; }, // Implementation of normal distribution using Box-Muller transform // ref : http://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform // We take : mean = 0.5, standard deviation = 1/6 // so that 99.7% values are in [0, 1]. normal: function() { return function() { var u1, u2, picked = -1; // We reject values outside of the interval [0, 1] // TODO: check if it is ok to do that? while (picked < 0 || picked > 1) { u1 = Math.random(); u2 = Math.random(); picked = 1/6 * Math.pow(-2 * Math.log(u1), 0.5) * Math.cos(2 * Math.PI * u2) + 0.5; } return picked; } } }; }; /***/ }, /* 84 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isInteger = util.number.isInteger, isCollection = collection.isCollection; /** * Compute the factorial of a value * * Factorial only supports an integer value as argument. * For matrices, the function is evaluated element wise. * * Syntax: * * math.factorial(n) * * Examples: * * math.factorial(5); // returns 120 * math.factorial(3); // returns 6 * * See also: * * combinations, permutations * * @param {Number | BigNumber | Array | Matrix} n An integer number * @return {Number | BigNumber | Array | Matrix} The factorial of `n` */ math.factorial = function factorial (n) { var value, res; if (arguments.length != 1) { throw new math.error.ArgumentsError('factorial', arguments.length, 1); } if (isNumber(n)) { if (!isInteger(n) || n < 0) { throw new TypeError('Positive integer value expected in function factorial'); } value = n - 1; res = n; while (value > 1) { res *= value; value--; } if (res == 0) { res = 1; // 0! is per definition 1 } return res; } if (n instanceof BigNumber) { if (!(isPositiveInteger(n))) { throw new TypeError('Positive integer value expected in function factorial'); } var one = new BigNumber(1); value = n.minus(one); res = n; while (value.gt(one)) { res = res.times(value); value = value.minus(one); } if (res.equals(0)) { res = one; // 0! is per definition 1 } return res; } if (isBoolean(n)) { return 1; // factorial(1) = 1, factorial(0) = 1 } if (isCollection(n)) { return collection.deepMap(n, factorial); } throw new math.error.UnsupportedTypeError('factorial', math['typeof'](n)); }; /** * Test whether BigNumber n is a positive integer * @param {BigNumber} n * @returns {boolean} isPositiveInteger */ var isPositiveInteger = function(n) { return n.isInteger() && n.gte(0); }; }; /***/ }, /* 85 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { /** * Return a random number between `min` and `max` using a uniform distribution. * * Syntax: * * math.random() // generate a random number between 0 and 1 * math.random(max) // generate a random number between 0 and max * math.random(min, max) // generate a random number between min and max * math.random(size) // generate a matrix with random numbers between 0 and 1 * math.random(size, max) // generate a matrix with random numbers between 0 and max * math.random(size, min, max) // generate a matrix with random numbers between min and max * * Examples: * * math.random(); // returns a random number between 0 and 1 * math.random(100); // returns a random number between 0 and 100 * math.random(30, 40); // returns a random number between 30 and 40 * math.random([2, 3]); // returns a 2x3 matrix with random numbers between 0 and 1 * * See also: * * randomInt, pickRandom, distribution * * @param {Number} [size] If provided, an array with `size` number of random values is returned * @param {Number} [min] Minimum boundary for the random value * @param {Number} [max] Maximum boundary for the random value * @return {Number | Array | Matrix} A random number */ math.random = math.distribution('uniform').random; }; /***/ }, /* 86 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { /** * Return a random integer number between `min` and `max` using a uniform distribution. * * Syntax: * * math.randomInt() // generate a random integer between 0 and 1 * math.randomInt(max) // generate a random integer between 0 and max * math.randomInt(min, max) // generate a random integer between min and max * math.randomInt(size) // generate a matrix with random integer between 0 and 1 * math.randomInt(size, max) // generate a matrix with random integer between 0 and max * math.randomInt(size, min, max) // generate a matrix with random integer between min and max * * Examples: * * math.randomInt(); // returns a random integer between 0 and 1 * math.randomInt(100); // returns a random integer between 0 and 100 * math.randomInt(30, 40); // returns a random integer between 30 and 40 * math.randomInt([2, 3]); // returns a 2x3 matrix with random integers between 0 and 1 * * See also: * * randomInt, pickRandom, distribution * * @param {Number} [size] If provided, an array with `size` number of random values is returned * @param {Number} [min] Minimum boundary for the random value * @param {Number} [max] Maximum boundary for the random value * @return {Number | Array | Matrix} A random integer value */ math.randomInt = math.distribution('uniform').randomInt; }; /***/ }, /* 87 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var uniformRandFunctions = math.distribution('uniform'); /** * Random pick a value from a one dimensional array. * Array element is picked using a random function with uniform distribution. * * Syntax: * * math.pickRandom(array) * * Examples: * * math.pickRandom([3, 6, 12, 2]); // returns one of the values in the array * * See also: * * random, randomInt, distribution * * @param {Array} array A one dimensional array * @return {Number} One of the elements of the provided input array */ math.pickRandom = math.distribution('uniform').pickRandom; }; /***/ }, /* 88 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, isNumber = util.number.isNumber, isInteger = util.number.isInteger; /** * Compute the number of ways of obtaining an ordered subset of `k` elements * from a set of `n` elements. * * Permutations only takes integer arguments. * The following condition must be enforced: k <= n. * * Syntax: * * math.permutations(n) * math.permutations(n, k) * * Examples: * * math.permutations(5); // 120 * math.permutations(5, 3); // 60 * * See also: * * combinations, factorial * * @param {Number | BigNumber} n The number of objects in total * @param {Number | BigNumber} k The number of objects in the subset * @return {Number | BigNumber} The number of permutations */ math.permutations = function permutations (n, k) { var result, i; var arity = arguments.length; if (arity > 2) { throw new math.error.ArgumentsError('permutations', arguments.length, 2); } if (isNumber(n)) { if (!isInteger(n) || n < 0) { throw new TypeError('Positive integer value expected in function permutations'); } // Permute n objects if (arity == 1) { return math.factorial(n); } // Permute n objects, k at a time if (arity == 2) { if (isNumber(k)) { if (!isInteger(k) || k < 0) { throw new TypeError('Positive integer value expected in function permutations'); } if (k > n) { throw new TypeError('second argument k must be less than or equal to first argument n'); } result = 1; for (i = n - k + 1; i <= n; i++) { result = result * i; } return result; } } } if (n instanceof BigNumber) { if (k === undefined && isPositiveInteger(n)) { return math.factorial(n); } // make sure k is a BigNumber as well // not all numbers can be converted to BigNumber k = BigNumber.convert(k); if (!(k instanceof BigNumber) || !isPositiveInteger(n) || !isPositiveInteger(k)) { throw new TypeError('Positive integer value expected in function permutations'); } if (k.gt(n)) { throw new TypeError('second argument k must be less than or equal to first argument n'); } result = new BigNumber(1); for (i = n.minus(k).plus(1); i.lte(n); i = i.plus(1)) { result = result.times(i); } return result; } throw new math.error.UnsupportedTypeError('permutations', math['typeof'](n)); }; /** * Test whether BigNumber n is a positive integer * @param {BigNumber} n * @returns {boolean} isPositiveInteger */ var isPositiveInteger = function(n) { return n.isInteger() && n.gte(0); }; }; /***/ }, /* 89 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isNumber = util.number.isNumber, isInteger = util.number.isInteger; /** * Compute the number of ways of picking `k` unordered outcomes from `n` * possibilities. * * Combinations only takes integer arguments. * The following condition must be enforced: k <= n. * * Syntax: * * math.combinations(n, k) * * Examples: * * math.combinations(7, 5); // returns 21 * * See also: * * permutations, factorial * * @param {Number | BigNumber} n Total number of objects in the set * @param {Number | BigNumber} k Number of objects in the subset * @return {Number | BigNumber} Number of possible combinations. */ math.combinations = function combinations (n, k) { var max, result, i,ii; var arity = arguments.length; if (arity != 2) { throw new math.error.ArgumentsError('combinations', arguments.length, 2); } if (isNumber(n)) { if (!isInteger(n) || n < 0) { throw new TypeError('Positive integer value enpected in function combinations'); } if (k > n) { throw new TypeError('k must be less than or equal to n'); } max = Math.max(k, n - k); result = 1; for (i = 1; i <= n - max; i++) { result = result * (max + i) / i; } return result; } if (n instanceof BigNumber) { // make sure k is a BigNumber as well // not all numbers can be converted to BigNumber k = BigNumber.convert(k); if (!(k instanceof BigNumber) || !isPositiveInteger(n) || !isPositiveInteger(k)) { throw new TypeError('Positive integer value expected in function combinations'); } if (k.gt(n)) { throw new TypeError('k must be less than n in function combinations'); } max = n.minus(k); if (k.lt(max)) max = k; result = new BigNumber(1); for (i = new BigNumber(1), ii = n.minus(max); i.lte(ii); i = i.plus(1)) { result = result.times(max.plus(i)).dividedBy(i); } return result; } throw new math.error.UnsupportedTypeError('combinations', math['typeof'](n)); }; /** * Test whether BigNumber n is a positive integer * @param {BigNumber} n * @returns {boolean} isPositiveInteger */ var isPositiveInteger = function(n) { return n.isInteger() && n.gte(0); }; }; /***/ }, /* 90 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), collection = __webpack_require__(11), isCollection = collection.isCollection; /** * Compute the maximum value of a matrix or a list of values. * In case of a multi dimensional array, the maximum of the flattened array * will be calculated. When `dim` is provided, the maximum over the selected * dimension will be calculated. Parameter `dim` is zero-based. * * Syntax: * * math.min(a, b, c, ...) * math.min(A) * math.min(A, dim) * * Examples: * * math.min(2, 1, 4, 3); // returns 1 * math.min([2, 1, 4, 3]); // returns 1 * * // maximum over a specified dimension (zero-based) * math.min([[2, 5], [4, 3], [1, 7]], 0); // returns [1, 3] * math.min([[2, 5], [4, 3], [1, 7]], 1); // returns [2, 3, 1] * * math.max(2.7, 7.1, -4.5, 2.0, 4.1); // returns 7.1 * math.min(2.7, 7.1, -4.5, 2.0, 4.1); // returns -4.5 * * See also: * * mean, median, max, prod, std, sum, var * * @param {... *} args A single matrix or or multiple scalar values * @return {*} The minimum value */ math.min = function min(args) { if (arguments.length == 0) { throw new SyntaxError('Function min requires one or more parameters (0 provided)'); } if (isCollection(args)) { if (arguments.length == 1) { // min([a, b, c, d, ...]) return _min(args); } else if (arguments.length == 2) { // min([a, b, c, d, ...], dim) return collection.reduce(arguments[0], arguments[1], _getSmaller); } else { throw new SyntaxError('Wrong number of parameters'); } } else { // min(a, b, c, d, ...) return _min(arguments); } }; function _getSmaller(x, y){ return math.smaller(x, y) ? x : y; } /** * Recursively calculate the minimum value in an n-dimensional array * @param {Array} array * @return {Number} min * @private */ function _min(array) { var min = undefined; collection.deepForEach(array, function (value) { if (min === undefined || math.smaller(value, min)) { min = value; } }); if (min === undefined) { throw new Error('Cannot calculate min of an empty array'); } return min; } }; /***/ }, /* 91 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), collection = __webpack_require__(11), isCollection = collection.isCollection; /** * Compute the maximum value of a matrix or a list with values. * In case of a multi dimensional array, the maximum of the flattened array * will be calculated. When `dim` is provided, the maximum over the selected * dimension will be calculated. Parameter `dim` is zero-based. * * Syntax: * * math.max(a, b, c, ...) * math.max(A) * math.max(A, dim) * * Examples: * * math.max(2, 1, 4, 3); // returns 4 * math.max([2, 1, 4, 3]); // returns 4 * * // maximum over a specified dimension (zero-based) * math.max([[2, 5], [4, 3], [1, 7]], 0); // returns [4, 7] * math.max([[2, 5], [4, 3]], [1, 7], 1); // returns [5, 4, 7] * * math.max(2.7, 7.1, -4.5, 2.0, 4.1); // returns 7.1 * math.min(2.7, 7.1, -4.5, 2.0, 4.1); // returns -4.5 * * See also: * * mean, median, min, prod, std, sum, var * * @param {... *} args A single matrix or or multiple scalar values * @return {*} The maximum value */ math.max = function max(args) { if (arguments.length == 0) { throw new SyntaxError('Function max requires one or more parameters (0 provided)'); } if (isCollection(args)) { if (arguments.length == 1) { // max([a, b, c, d, ...]) return _max(args); } else if (arguments.length == 2) { // max([a, b, c, d, ...], dim) return collection.reduce(arguments[0], arguments[1], _getLarger); } else { throw new SyntaxError('Wrong number of parameters'); } } else { // max(a, b, c, d, ...) return _max(arguments); } }; function _getLarger(x, y){ return math.larger(x, y) ? x : y; } /** * Recursively calculate the maximum value in an n-dimensional array * @param {Array} array * @return {Number} max * @private */ function _max(array) { var max = undefined; collection.deepForEach(array, function (value) { if (max === undefined || math.larger(value, max)) { max = value; } }); if (max === undefined) { throw new Error('Cannot calculate max of an empty array'); } return max; } }; /***/ }, /* 92 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), collection = __webpack_require__(11), isCollection = collection.isCollection, size = __webpack_require__(160).size; /** * Compute the mean value of matrix or a list with values. * In case of a multi dimensional array, the mean of the flattened array * will be calculated. When `dim` is provided, the maximum over the selected * dimension will be calculated. Parameter `dim` is zero-based. * * Syntax: * * mean.mean(a, b, c, ...) * mean.mean(A) * mean.mean(A, dim) * * Examples: * * math.mean(2, 1, 4, 3); // returns 2.5 * math.mean([1, 2.7, 3.2, 4]); // returns 2.725 * * math.mean([[2, 5], [6, 3], [1, 7]], 0); // returns [3, 5] * math.mean([[2, 5], [6, 3], [1, 7]], 1); // returns [3.5, 4.5, 4] * * See also: * * median, min, max, sum, prod, std, var * * @param {... *} args A single matrix or or multiple scalar values * @return {*} The mean of all values */ math.mean = function mean(args) { if (arguments.length == 0) { throw new SyntaxError('Function mean requires one or more parameters (0 provided)'); } if (isCollection(args)) { if (arguments.length == 1) { // mean([a, b, c, d, ...]) return _mean(args); } else if (arguments.length == 2) { // mean([a, b, c, d, ...], dim) return _nmean(arguments[0], arguments[1]); } else { throw new SyntaxError('Wrong number of parameters'); } } else { // mean(a, b, c, d, ...) return _mean(arguments); } }; /** * Calculate the mean value in an n-dimensional array, returning a * n-1 dimensional array * @param {Array} array * @param {Number} dim * @return {Number} mean * @private */ function _nmean(array, dim){ var sum; sum = collection.reduce(array, dim, math.add); return math.divide(sum, size(array)[dim]); } /** * Recursively calculate the mean value in an n-dimensional array * @param {Array} array * @return {Number} mean * @private */ function _mean(array) { var sum = 0; var num = 0; collection.deepForEach(array, function (value) { sum = math.add(sum, value); num++; }); if (num === 0) { throw new Error('Cannot calculate mean of an empty array'); } return math.divide(sum, num); } }; /***/ }, /* 93 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), Unit = __webpack_require__(9), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isNumber = __webpack_require__(161).isNumber, isCollection = collection.isCollection, flatten = __webpack_require__(160).flatten; /** * Compute the median of a matrix or a list with values. The values are * sorted and the middle value is returned. In case of an even number of * values, the average of the two middle values is returned. * Supported types of values are: Number, BigNumber, Unit * * In case of a (multi dimensional) array or matrix, the median of all * elements will be calculated. * * Syntax: * * mean.median(a, b, c, ...) * mean.median(A) * * Examples: * * math.median(5, 2, 7); // returns 5 * math.median([3, -1, 5, 7]); // returns 4 * * See also: * * mean, min, max, sum, prod, std, var * * @param {... *} args A single matrix or or multiple scalar values * @return {*} The median */ math.median = function median(args) { if (arguments.length == 0) { throw new SyntaxError('Function median requires one or more parameters (0 provided)'); } if (isCollection(args)) { if (arguments.length == 1) { // median([a, b, c, d, ...]) return _median(args.valueOf()); } else if (arguments.length == 2) { // median([a, b, c, d, ...], dim) // TODO: implement median(A, dim) throw new Error('median(A, dim) is not yet supported'); //return collection.reduce(arguments[0], arguments[1], ...); } else { throw new SyntaxError('Wrong number of parameters'); } } else { // median(a, b, c, d, ...) return _median(Array.prototype.slice.call(arguments)); } }; /** * Recursively calculate the median of an n-dimensional array * @param {Array} array * @return {Number} median * @private */ function _median(array) { var flat = flatten(array); flat.sort(math.compare); var num = flat.length; if (num == 0) { throw new Error('Cannot calculate median of an empty array'); } if (num % 2 == 0) { // even: return the average of the two middle values var left = flat[num / 2 - 1]; var right = flat[num / 2]; if (!isNumber(left) && !(left instanceof BigNumber) && !(left instanceof Unit)) { throw new math.error.UnsupportedTypeError('median', math['typeof'](left)); } if (!isNumber(right) && !(right instanceof BigNumber) && !(right instanceof Unit)) { throw new math.error.UnsupportedTypeError('median', math['typeof'](right)); } return math.divide(math.add(left, right), 2); } else { // odd: return the middle value var middle = flat[(num - 1) / 2]; if (!isNumber(middle) && !(middle instanceof BigNumber) && !(middle instanceof Unit)) { throw new math.error.UnsupportedTypeError('median', math['typeof'](middle)); } return middle; } } }; /***/ }, /* 94 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), collection = __webpack_require__(11), isCollection = collection.isCollection; /** * Compute the product of a matrix or a list with values. * In case of a (multi dimensional) array or matrix, the sum of all * elements will be calculated. * * Syntax: * * math.prod(a, b, c, ...) * math.prod(A) * * Examples: * * math.multiply(2, 3); // returns 6 * math.prod(2, 3); // returns 6 * math.prod(2, 3, 4); // returns 24 * math.prod([2, 3, 4]); // returns 24 * math.prod([[2, 5], [4, 3]]); // returns 120 * * See also: * * mean, median, min, max, sum, std, var * * @param {... *} args A single matrix or or multiple scalar values * @return {*} The product of all values */ math.prod = function prod(args) { if (arguments.length == 0) { throw new SyntaxError('Function prod requires one or more parameters (0 provided)'); } if (isCollection(args)) { if (arguments.length == 1) { // prod([a, b, c, d, ...]) return _prod(args); } else if (arguments.length == 2) { // prod([a, b, c, d, ...], dim) // TODO: implement prod(A, dim) throw new Error('prod(A, dim) is not yet supported'); //return collection.reduce(arguments[0], arguments[1], math.prod); } else { throw new SyntaxError('Wrong number of parameters'); } } else { // prod(a, b, c, d, ...) return _prod(arguments); } }; /** * Recursively calculate the product of an n-dimensional array * @param {Array} array * @return {Number} prod * @private */ function _prod(array) { var prod = undefined; collection.deepForEach(array, function (value) { prod = (prod === undefined) ? value : math.multiply(prod, value); }); if (prod === undefined) { throw new Error('Cannot calculate prod of an empty array'); } return prod; } }; /***/ }, /* 95 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { /** * Compute the standard deviation of a matrix or a list with values. * The standard deviations is defined as the square root of the variance: * `std(A) = sqrt(var(A))`. * In case of a (multi dimensional) array or matrix, the standard deviation * over all elements will be calculated. * * Optionally, the type of normalization can be specified as second * parameter. The parameter `normalization` can be one of the following values: * * - 'unbiased' (default) The sum of squared errors is divided by (n - 1) * - 'uncorrected' The sum of squared errors is divided by n * - 'biased' The sum of squared errors is divided by (n + 1) * * Syntax: * * math.std(a, b, c, ...) * math.std(A) * math.std(A, normalization) * * Examples: * * math.std(2, 4, 6); // returns 2 * math.std([2, 4, 6, 8]); // returns 2.581988897471611 * math.std([2, 4, 6, 8], 'uncorrected'); // returns 2.23606797749979 * math.std([2, 4, 6, 8], 'biased'); // returns 2 * * math.std([[1, 2, 3], [4, 5, 6]]); // returns 1.8708286933869707 * * See also: * * mean, median, max, min, prod, sum, var * * @param {Array | Matrix} array * A single matrix or or multiple scalar values * @param {String} [normalization='unbiased'] * Determines how to normalize the variance. * Choose 'unbiased' (default), 'uncorrected', or 'biased'. * @return {*} The standard deviation */ math.std = function std(array, normalization) { if (arguments.length == 0) { throw new SyntaxError('Function std requires one or more parameters (0 provided)'); } var variance = math['var'].apply(null, arguments); return math.sqrt(variance); }; }; /***/ }, /* 96 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), collection = __webpack_require__(11), isCollection = collection.isCollection; /** * Compute the sum of a matrix or a list with values. * In case of a (multi dimensional) array or matrix, the sum of all * elements will be calculated. * * Syntax: * * math.sum(a, b, c, ...) * math.sum(A) * * Examples: * * math.sum(2, 1, 4, 3); // returns 10 * math.sum([2, 1, 4, 3]); // returns 10 * math.sum([[2, 5], [4, 3], [1, 7]]); // returns 22 * * See also: * * mean, median, min, max, prod, std, var * * @param {... *} args A single matrix or or multiple scalar values * @return {*} The sum of all values */ math.sum = function sum(args) { if (arguments.length == 0) { throw new SyntaxError('Function sum requires one or more parameters (0 provided)'); } if (isCollection(args)) { if (arguments.length == 1) { // sum([a, b, c, d, ...]) return _sum(args); } else if (arguments.length == 2) { // sum([a, b, c, d, ...], dim) // TODO: implement sum(A, dim) throw new Error('sum(A, dim) is not yet supported'); //return collection.reduce(arguments[0], arguments[1], math.add); } else { throw new SyntaxError('Wrong number of parameters'); } } else { // sum(a, b, c, d, ...) return _sum(arguments); } }; /** * Recursively calculate the sum of an n-dimensional array * @param {Array} array * @return {Number} sum * @private */ function _sum(array) { var sum = undefined; collection.deepForEach(array, function (value) { sum = (sum === undefined) ? value : math.add(sum, value); }); if (sum === undefined) { throw new Error('Cannot calculate sum of an empty array'); } return sum; } }; /***/ }, /* 97 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var Matrix = __webpack_require__(8), BigNumber = math.type.BigNumber, collection = __webpack_require__(11), isCollection = collection.isCollection, isString = __webpack_require__(142).isString, DEFAULT_NORMALIZATION = 'unbiased'; /** * Compute the variance of a matrix or a list with values. * In case of a (multi dimensional) array or matrix, the variance over all * elements will be calculated. * * Optionally, the type of normalization can be specified as second * parameter. The parameter `normalization` can be one of the following values: * * - 'unbiased' (default) The sum of squared errors is divided by (n - 1) * - 'uncorrected' The sum of squared errors is divided by n * - 'biased' The sum of squared errors is divided by (n + 1) * Note that older browser may not like the variable name `var`. In that * case, the function can be called as `math['var'](...)` instead of * `math.var(...)`. * * Syntax: * * math.var(a, b, c, ...) * math.var(A) * math.var(A, normalization) * * Examples: * * math.var(2, 4, 6); // returns 4 * math.var([2, 4, 6, 8]); // returns 6.666666666666667 * math.var([2, 4, 6, 8], 'uncorrected'); // returns 5 * math.var([2, 4, 6, 8], 'biased'); // returns 4 * * math.var([[1, 2, 3], [4, 5, 6]]); // returns 3.5 * * See also: * * mean, median, max, min, prod, std, sum * * @param {Array | Matrix} array * A single matrix or or multiple scalar values * @param {String} [normalization='unbiased'] * Determines how to normalize the variance. * Choose 'unbiased' (default), 'uncorrected', or 'biased'. * @return {*} The variance */ math['var'] = function variance(array, normalization) { if (arguments.length == 0) { throw new SyntaxError('Function var requires one or more parameters (0 provided)'); } if (isCollection(array)) { if (arguments.length == 1) { // var([a, b, c, d, ...]) return _var(array, DEFAULT_NORMALIZATION); } else if (arguments.length == 2) { // var([a, b, c, d, ...], normalization) if (!isString(normalization)) { throw new Error('String expected for parameter normalization'); } return _var(array, normalization); } /* TODO: implement var(A [, normalization], dim) else if (arguments.length == 3) { // var([a, b, c, d, ...], dim) // var([a, b, c, d, ...], normalization, dim) //return collection.reduce(arguments[0], arguments[1], ...); } */ else { throw new SyntaxError('Wrong number of parameters'); } } else { // var(a, b, c, d, ...) return _var(arguments, DEFAULT_NORMALIZATION); } }; /** * Recursively calculate the variance of an n-dimensional array * @param {Array} array * @param {String} normalization * Determines how to normalize the variance: * - 'unbiased' The sum of squared errors is divided by (n - 1) * - 'uncorrected' The sum of squared errors is divided by n * - 'biased' The sum of squared errors is divided by (n + 1) * @return {Number | BigNumber} variance * @private */ function _var(array, normalization) { var sum = 0; var num = 0; // calculate the mean and number of elements collection.deepForEach(array, function (value) { sum = math.add(sum, value); num++; }); if (num === 0) throw new Error('Cannot calculate var of an empty array'); var mean = math.divide(sum, num); // calculate the variance sum = 0; collection.deepForEach(array, function (value) { var diff = math.subtract(value, mean); sum = math.add(sum, math.multiply(diff, diff)); }); switch (normalization) { case 'uncorrected': return math.divide(sum, num); case 'biased': return math.divide(sum, num + 1); case 'unbiased': var zero = (sum instanceof BigNumber) ? new BigNumber(0) : 0; return (num == 1) ? zero : math.divide(sum, num - 1); default: throw new Error('Unknown normalization "' + normalization + '". ' + 'Choose "unbiased" (default), "uncorrected", or "biased".'); } } }; /***/ }, /* 98 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the inverse cosine of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.acos(x) * * Examples: * * math.acos(0.5); // returns Number 1.0471975511965979 * math.acos(math.cos(1.5)); // returns Number 1.5 * * math.acos(2); // returns Complex 0 + 1.3169578969248166 i * * See also: * * cos, atan, asin * * @param {Number | Boolean | Complex | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} The arc cosine of x */ math.acos = function acos(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('acos', arguments.length, 1); } if (isNumber(x)) { if (x >= -1 && x <= 1) { return Math.acos(x); } else { return acos(new Complex(x, 0)); } } if (isComplex(x)) { // acos(z) = 0.5*pi + i*log(iz + sqrt(1-z^2)) var temp1 = new Complex( x.im * x.im - x.re * x.re + 1.0, -2.0 * x.re * x.im ); var temp2 = math.sqrt(temp1); var temp3 = new Complex( temp2.re - x.im, temp2.im + x.re ); var temp4 = math.log(temp3); // 0.5*pi = 1.5707963267948966192313216916398 return new Complex( 1.57079632679489661923 - temp4.im, temp4.re ); } if (isCollection(x)) { return collection.deepMap(x, acos); } if (isBoolean(x)) { return Math.acos(x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return acos(x.toNumber()); } throw new math.error.UnsupportedTypeError('acos', math['typeof'](x)); }; }; /***/ }, /* 99 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the inverse sine of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.asin(x) * * Examples: * * math.asin(0.5); // returns Number 0.5235987755982989 * math.asin(math.sin(1.5)); // returns Number ~1.5 * * math.asin(2); // returns Complex 1.5707963267948966 -1.3169578969248166 i * * See also: * * sin, atan, acos * * @param {Number | Boolean | Complex | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} The arc sine of x */ math.asin = function asin(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('asin', arguments.length, 1); } if (isNumber(x)) { if (x >= -1 && x <= 1) { return Math.asin(x); } else { return asin(new Complex(x, 0)); } } if (isComplex(x)) { // asin(z) = -i*log(iz + sqrt(1-z^2)) var re = x.re; var im = x.im; var temp1 = new Complex( im * im - re * re + 1.0, -2.0 * re * im ); var temp2 = math.sqrt(temp1); var temp3 = new Complex( temp2.re - im, temp2.im + re ); var temp4 = math.log(temp3); return new Complex(temp4.im, -temp4.re); } if (isCollection(x)) { return collection.deepMap(x, asin); } if (isBoolean(x)) { return Math.asin(x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return asin(x.toNumber()); } throw new math.error.UnsupportedTypeError('asin', math['typeof'](x)); }; }; /***/ }, /* 100 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the inverse tangent of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.atan(x) * * Examples: * * math.atan(0.5); // returns Number 0.4636476090008061 * math.atan(math.tan(1.5)); // returns Number 1.5 * * math.atan(2); // returns Complex 1.5707963267948966 -1.3169578969248166 i * * See also: * * tan, asin, acos * * @param {Number | Boolean | Complex | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} The arc tangent of x */ math.atan = function atan(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('atan', arguments.length, 1); } if (isNumber(x)) { return Math.atan(x); } if (isComplex(x)) { // atan(z) = 1/2 * i * (ln(1-iz) - ln(1+iz)) var re = x.re; var im = x.im; var den = re * re + (1.0 - im) * (1.0 - im); var temp1 = new Complex( (1.0 - im * im - re * re) / den, (-2.0 * re) / den ); var temp2 = math.log(temp1); return new Complex( -0.5 * temp2.im, 0.5 * temp2.re ); } if (isCollection(x)) { return collection.deepMap(x, atan); } if (isBoolean(x)) { return Math.atan(x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return atan(x.toNumber()); } throw new math.error.UnsupportedTypeError('atan', math['typeof'](x)); }; }; /***/ }, /* 101 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isCollection = collection.isCollection; /** * Calculate the inverse tangent function with two arguments, y/x. * By providing two arguments, the right quadrant of the computed angle can be * determined. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.atan2(y, x) * * Examples: * * math.atan2(2, 2) / math.pi; // returns number 0.25 * * var angle = math.unit(60, 'deg'); // returns Unit 60 deg * var x = math.cos(angle); * var y = math.sin(angle); * * math.atan(2); // returns Complex 1.5707963267948966 -1.3169578969248166 i * * See also: * * tan, atan, sin, cos * * @param {Number | Boolean | Complex | Array | Matrix} y Second dimension * @param {Number | Boolean | Complex | Array | Matrix} x First dimension * @return {Number | Complex | Array | Matrix} Four-quadrant inverse tangent */ math.atan2 = function atan2(y, x) { if (arguments.length != 2) { throw new math.error.ArgumentsError('atan2', arguments.length, 2); } if (isNumber(y)) { if (isNumber(x)) { return Math.atan2(y, x); } } // TODO: support for complex computation of atan2 if (isCollection(y) || isCollection(x)) { return collection.deepMap2(y, x, atan2); } if (isBoolean(y)) { return atan2(+y, x); } if (isBoolean(x)) { return atan2(y, +x); } // TODO: implement bignumber support if (y instanceof BigNumber) { return atan2(y.toNumber(), x); } if (x instanceof BigNumber) { return atan2(y, x.toNumber()); } throw new math.error.UnsupportedTypeError('atan2', math['typeof'](y), math['typeof'](x)); }; }; /***/ }, /* 102 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the cosine of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.cos(x) * * Examples: * * math.cos(2); // returns Number -0.4161468365471422 * math.cos(math.pi / 4); // returns Number 0.7071067811865475 * math.cos(math.unit(180, 'deg')); // returns Number -1 * math.cos(math.unit(60, 'deg')); // returns Number 0.5 * * var angle = 0.2; * math.pow(math.sin(angle), 2) + math.pow(math.cos(angle), 2); // returns Number ~1 * * See also: * * cos, tan * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Cosine of x */ math.cos = function cos(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('cos', arguments.length, 1); } if (isNumber(x)) { return Math.cos(x); } if (isComplex(x)) { // cos(z) = (exp(iz) + exp(-iz)) / 2 return new Complex( 0.5 * Math.cos(x.re) * (Math.exp(-x.im) + Math.exp(x.im)), 0.5 * Math.sin(x.re) * (Math.exp(-x.im) - Math.exp(x.im)) ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function cos is no angle'); } return Math.cos(x.value); } if (isCollection(x)) { return collection.deepMap(x, cos); } if (isBoolean(x)) { return Math.cos(x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return cos(x.toNumber()); } throw new math.error.UnsupportedTypeError('cos', math['typeof'](x)); }; }; /***/ }, /* 103 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the hyperbolic cosine of a value, * defined as `cosh(x) = 1/2 * (exp(x) + exp(-x))`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.cosh(x) * * Examples: * * math.cosh(0.5); // returns Number 1.1276259652063807 * * See also: * * sinh, tanh * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Hyperbolic cosine of x */ math.cosh = function cosh(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('cosh', arguments.length, 1); } if (isNumber(x)) { return (Math.exp(x) + Math.exp(-x)) / 2; } if (isComplex(x)) { var ep = Math.exp(x.re); var en = Math.exp(-x.re); return new Complex(Math.cos(x.im) * (ep + en) / 2, Math.sin(x.im) * (ep - en) / 2); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function cosh is no angle'); } return cosh(x.value); } if (isCollection(x)) { return collection.deepMap(x, cosh); } if (isBoolean(x)) { return cosh(x ? 1 : 0); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return cosh(x.toNumber()); } throw new math.error.UnsupportedTypeError('cosh', math['typeof'](x)); }; }; /***/ }, /* 104 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the cotangent of a value. `cot(x)` is defined as `1 / tan(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.cot(x) * * Examples: * * math.cot(2); // returns Number -0.45765755436028577 * 1 / math.tan(2); // returns Number -0.45765755436028577 * * See also: * * tan, sec, csc * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Cotangent of x */ math.cot = function cot(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('cot', arguments.length, 1); } if (isNumber(x)) { return 1 / Math.tan(x); } if (isComplex(x)) { var den = Math.exp(-4.0 * x.im) - 2.0 * Math.exp(-2.0 * x.im) * Math.cos(2.0 * x.re) + 1.0; return new Complex( 2.0 * Math.exp(-2.0 * x.im) * Math.sin(2.0 * x.re) / den, (Math.exp(-4.0 * x.im) - 1.0) / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function cot is no angle'); } return 1 / Math.tan(x.value); } if (isCollection(x)) { return collection.deepMap(x, cot); } if (isBoolean(x)) { return cot(+x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return cot(x.toNumber()); } throw new math.error.UnsupportedTypeError('cot', math['typeof'](x)); }; }; /***/ }, /* 105 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the hyperbolic cotangent of a value, * defined as `coth(x) = 1 / tanh(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.coth(x) * * Examples: * * // coth(x) = 1 / tanh(x) * math.coth(2); // returns 1.0373147207275482 * 1 / math.tanh(2); // returns 1.0373147207275482 * * See also: * * sinh, tanh, cosh * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Hyperbolic cotangent of x */ math.coth = function coth(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('coth', arguments.length, 1); } if (isNumber(x)) { var e = Math.exp(2 * x); return (e + 1) / (e - 1); } if (isComplex(x)) { var r = Math.exp(2 * x.re); var re = r * Math.cos(2 * x.im); var im = r * Math.sin(2 * x.im); var den = (re - 1) * (re - 1) + im * im; return new Complex( ((re + 1) * (re - 1) + im * im) / den, -2 * im / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function coth is no angle'); } return coth(x.value); } if (isCollection(x)) { return collection.deepMap(x, coth); } if (isBoolean(x)) { return coth(x ? 1 : 0); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return coth(x.toNumber()); } throw new math.error.UnsupportedTypeError('coth', math['typeof'](x)); }; }; /***/ }, /* 106 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the cosecant of a value, defined as `csc(x) = 1/sin(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.csc(x) * * Examples: * * math.csc(2); // returns Number 1.099750170294617 * 1 / math.sin(2); // returns Number 1.099750170294617 * * See also: * * sin, sec, cot * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Cosecant of x */ math.csc = function csc(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('csc', arguments.length, 1); } if (isNumber(x)) { return 1 / Math.sin(x); } if (isComplex(x)) { // csc(z) = 1/sin(z) = (2i) / (exp(iz) - exp(-iz)) var den = 0.25 * (Math.exp(-2.0 * x.im) + Math.exp(2.0 * x.im)) - 0.5 * Math.cos(2.0 * x.re); return new Complex ( 0.5 * Math.sin(x.re) * (Math.exp(-x.im) + Math.exp(x.im)) / den, 0.5 * Math.cos(x.re) * (Math.exp(-x.im) - Math.exp(x.im)) / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function csc is no angle'); } return 1 / Math.sin(x.value); } if (isCollection(x)) { return collection.deepMap(x, csc); } if (isBoolean(x)) { return csc(+x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return csc(x.toNumber()); } throw new math.error.UnsupportedTypeError('csc', math['typeof'](x)); }; }; /***/ }, /* 107 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), number = util.number, isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the hyperbolic cosecant of a value, * defined as `csch(x) = 1 / sinh(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.csch(x) * * Examples: * * // csch(x) = 1/ sinh(x) * math.csch(0.5); // returns 1.9190347513349437 * 1 / math.sinh(0.5); // returns 1.9190347513349437 * * See also: * * sinh, sech, coth * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Hyperbolic cosecant of x */ math.csch = function csch(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('csch', arguments.length, 1); } if (isNumber(x)) { // x == 0 if (x == 0) return Number.NaN; // consider values close to zero (+/-) return Math.abs(2 / (Math.exp(x) - Math.exp(-x))) * number.sign(x); } if (isComplex(x)) { var ep = Math.exp(x.re); var en = Math.exp(-x.re); var re = Math.cos(x.im) * (ep - en); var im = Math.sin(x.im) * (ep + en); var den = re * re + im * im; return new Complex(2 * re / den, -2 * im /den); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function csch is no angle'); } return csch(x.value); } if (isCollection(x)) { return collection.deepMap(x, csch); } if (isBoolean(x)) { return csch(x ? 1 : 0); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return csch(x.toNumber()); } throw new math.error.UnsupportedTypeError('csch', math['typeof'](x)); }; }; /***/ }, /* 108 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the secant of a value, defined as `sec(x) = 1/cos(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.sec(x) * * Examples: * * math.sec(2); // returns Number -2.4029979617223822 * 1 / math.cos(2); // returns Number -2.4029979617223822 * * See also: * * cos, csc, cot * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Secant of x */ math.sec = function sec(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('sec', arguments.length, 1); } if (isNumber(x)) { return 1 / Math.cos(x); } if (isComplex(x)) { // sec(z) = 1/cos(z) = 2 / (exp(iz) + exp(-iz)) var den = 0.25 * (Math.exp(-2.0 * x.im) + Math.exp(2.0 * x.im)) + 0.5 * Math.cos(2.0 * x.re); return new Complex( 0.5 * Math.cos(x.re) * (Math.exp(-x.im) + Math.exp( x.im)) / den, 0.5 * Math.sin(x.re) * (Math.exp( x.im) - Math.exp(-x.im)) / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function sec is no angle'); } return 1 / Math.cos(x.value); } if (isCollection(x)) { return collection.deepMap(x, sec); } if (isBoolean(x)) { return sec(+x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return sec(x.toNumber()); } throw new math.error.UnsupportedTypeError('sec', math['typeof'](x)); }; }; /***/ }, /* 109 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the hyperbolic secant of a value, * defined as `sech(x) = 1 / cosh(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.sech(x) * * Examples: * * // sech(x) = 1/ cosh(x) * math.sech(0.5); // returns 0.886818883970074 * 1 / math.cosh(0.5); // returns 1.9190347513349437 * * See also: * * cosh, csch, coth * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Hyperbolic secant of x */ math.sech = function sech(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('sech', arguments.length, 1); } if (isNumber(x)) { return 2 / (Math.exp(x) + Math.exp(-x)); } if (isComplex(x)) { var ep = Math.exp(x.re); var en = Math.exp(-x.re); var re = Math.cos(x.im) * (ep + en); var im = Math.sin(x.im) * (ep - en); var den = re * re + im * im; return new Complex(2 * re / den, -2 * im / den); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function sech is no angle'); } return sech(x.value); } if (isCollection(x)) { return collection.deepMap(x, sech); } if (isBoolean(x)) { return sech(x ? 1 : 0); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return sech(x.toNumber()); } throw new math.error.UnsupportedTypeError('sech', math['typeof'](x)); }; }; /***/ }, /* 110 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the sine of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.sin(x) * * Examples: * * math.sin(2); // returns Number 0.9092974268256813 * math.sin(math.pi / 4); // returns Number 0.7071067811865475 * math.sin(math.unit(90, 'deg')); // returns Number 1 * math.sin(math.unit(30, 'deg')); // returns Number 0.5 * * var angle = 0.2; * math.pow(math.sin(angle), 2) + math.pow(math.cos(angle), 2); // returns Number ~1 * * See also: * * cos, tan * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Sine of x */ /** * Calculate the sine of a value * * sin(x) * * For matrices, the function is evaluated element wise. * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x * @return {Number | Complex | Array | Matrix} res * * @see http://mathworld.wolfram.com/Sine.html */ math.sin = function sin(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('sin', arguments.length, 1); } if (isNumber(x)) { return Math.sin(x); } if (isComplex(x)) { return new Complex( 0.5 * Math.sin(x.re) * (Math.exp(-x.im) + Math.exp( x.im)), 0.5 * Math.cos(x.re) * (Math.exp( x.im) - Math.exp(-x.im)) ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function sin is no angle'); } return Math.sin(x.value); } if (isCollection(x)) { return collection.deepMap(x, sin); } if (isBoolean(x)) { return Math.sin(x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return sin(x.toNumber()); } throw new math.error.UnsupportedTypeError('sin', math['typeof'](x)); }; }; /***/ }, /* 111 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the hyperbolic sine of a value, * defined as `sinh(x) = 1/2 * (exp(x) - exp(-x))`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.sinh(x) * * Examples: * * math.sinh(0.5); // returns Number 0.5210953054937474 * * See also: * * cosh, tanh * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Hyperbolic sine of x */ math.sinh = function sinh(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('sinh', arguments.length, 1); } if (isNumber(x)) { return (Math.exp(x) - Math.exp(-x)) / 2; } if (isComplex(x)) { var cim = Math.cos(x.im); var sim = Math.sin(x.im); var ep = Math.exp(x.re); var en = Math.exp(-x.re); return new Complex(cim * (ep - en) / 2, sim * (ep + en) / 2); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function sinh is no angle'); } return sinh(x.value); } if (isCollection(x)) { return collection.deepMap(x, sinh); } if (isBoolean(x)) { return sinh(x ? 1 : 0); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return sinh(x.toNumber()); } throw new math.error.UnsupportedTypeError('sinh', math['typeof'](x)); }; }; /***/ }, /* 112 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the tangent of a value. `tan(x)` is equal to `sin(x) / cos(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.tan(x) * * Examples: * * math.tan(0.5); // returns Number 0.5463024898437905 * math.sin(0.5) / math.cos(0.5); // returns Number 0.5463024898437905 * math.tan(math.pi / 4); // returns Number 1 * math.tan(math.unit(45, 'deg')); // returns Number 1 * * See also: * * atan, sin, cos * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Tangent of x */ math.tan = function tan(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('tan', arguments.length, 1); } if (isNumber(x)) { return Math.tan(x); } if (isComplex(x)) { var den = Math.exp(-4.0 * x.im) + 2.0 * Math.exp(-2.0 * x.im) * Math.cos(2.0 * x.re) + 1.0; return new Complex( 2.0 * Math.exp(-2.0 * x.im) * Math.sin(2.0 * x.re) / den, (1.0 - Math.exp(-4.0 * x.im)) / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function tan is no angle'); } return Math.tan(x.value); } if (isCollection(x)) { return collection.deepMap(x, tan); } if (isBoolean(x)) { return Math.tan(x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return tan(x.toNumber()); } throw new math.error.UnsupportedTypeError('tan', math['typeof'](x)); }; }; /***/ }, /* 113 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), BigNumber = math.type.BigNumber, Complex = __webpack_require__(5), Unit = __webpack_require__(9), collection = __webpack_require__(11), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the hyperbolic tangent of a value, * defined as `tanh(x) = (exp(2 * x) - 1) / (exp(2 * x) + 1)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.tanh(x) * * Examples: * * // tanh(x) = sinh(x) / cosh(x) = 1 / coth(x) * math.tanh(0.5); // returns 0.46211715726000974 * math.sinh(0.5) / math.cosh(0.5); // returns 0.46211715726000974 * 1 / math.coth(0.5); // returns 0.46211715726000974 * * See also: * * sinh, cosh, coth * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x Function input * @return {Number | Complex | Array | Matrix} Hyperbolic tangent of x */ math.tanh = function tanh(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('tanh', arguments.length, 1); } if (isNumber(x)) { var e = Math.exp(2 * x); return (e - 1) / (e + 1); } if (isComplex(x)) { var r = Math.exp(2 * x.re); var re = r * Math.cos(2 * x.im); var im = r * Math.sin(2 * x.im); var den = (re + 1) * (re + 1) + im * im; return new Complex( ((re - 1) * (re + 1) + im * im) / den, im * 2 / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function tanh is no angle'); } return tanh(x.value); } if (isCollection(x)) { return collection.deepMap(x, tanh); } if (isBoolean(x)) { return tanh(x ? 1 : 0); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return tanh(x.toNumber()); } throw new math.error.UnsupportedTypeError('tanh', math['typeof'](x)); }; }; /***/ }, /* 114 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Unit = __webpack_require__(9), collection = __webpack_require__(11), isString = util.string.isString, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Change the unit of a value. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.to(x, unit) * * Examples: * * math.to(math.unit('2 inch'), 'cm'); // returns Unit 5.08 cm * math.to(math.unit('2 inch'), math.unit(null, 'cm')); // returns Unit 5.08 cm * math.to(math.unit(16, 'bytes'), 'bits'); // returns Unit 128 bits * * See also: * * unit * * @param {Unit | Array | Matrix} x The unit to be converted. * @param {Unit | Array | Matrix} unit New unit. Can be a string like "cm" * or a unit without value. * @return {Unit | Array | Matrix} value with changed, fixed unit. */ math.to = function to(x, unit) { if (arguments.length != 2) { throw new math.error.ArgumentsError('to', arguments.length, 2); } if (isUnit(x)) { if (isUnit(unit) || isString(unit)) { return x.to(unit); } } // TODO: add support for string, in that case, convert to unit if (isCollection(x) || isCollection(unit)) { return collection.deepMap2(x, unit, to); } throw new math.error.UnsupportedTypeError('to', math['typeof'](x), math['typeof'](unit)); }; }; /***/ }, /* 115 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), object = util.object; /** * Clone an object. * * Syntax: * * math.clone(x) * * Examples: * * math.clone(3.5); // returns number 3.5 * math.clone(2 - 4i); // returns Complex 2 - 4i * math.clone(45 deg); // returns Unit 45 deg * math.clone([[1, 2], [3, 4]]); // returns Array [[1, 2], [3, 4]] * math.clone("hello world"); // returns string "hello world" * * @param {*} x Object to be cloned * @return {*} A clone of object x */ math.clone = function clone (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('clone', arguments.length, 1); } return object.clone(x); }; }; /***/ }, /* 116 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), string = util.string; /** * Format a value of any type into a string. * * Syntax: * * math.format(value) * math.format(value, options) * math.format(value, precision) * math.format(value, fn) * * Where: * * - `value: *` * The value to be formatted * - `options: Object` * An object with formatting options. Available options: * - `notation: String` * Number notation. Choose from: * - 'fixed' * Always use regular number notation. * For example '123.40' and '14000000' * - 'exponential' * Always use exponential notation. * For example '1.234e+2' and '1.4e+7' * - 'auto' (default) * Regular number notation for numbers having an absolute value between * `lower` and `upper` bounds, and uses exponential notation elsewhere. * Lower bound is included, upper bound is excluded. * For example '123.4' and '1.4e7'. * - `precision: Number` * A number between 0 and 16 to round the digits of the number. In case * of notations 'exponential' and 'auto', `precision` defines the total * number of significant digits returned and is undefined by default. * In case of notation 'fixed', `precision` defines the number of * significant digits after the decimal point, and is 0 by default. * - `exponential: Object` * An object containing two parameters, {Number} lower and {Number} upper, * used by notation 'auto' to determine when to return exponential * notation. Default values are `lower=1e-3` and `upper=1e5`. Only * applicable for notation `auto`. * - `fn: Function` * A custom formatting function. Can be used to override the built-in notations. * Function `fn` is called with `value` as parameter and must return a string. * Is useful for example to format all values inside a matrix in a particular way. * * Examples: * * math.format(6.4); // returns '6.4' * math.format(1240000); // returns '1.24e6' * math.format(1/3); // returns '0.3333333333333333' * math.format(1/3, 3); // returns '0.333' * math.format(21385, 2); // returns '21000' * math.format(12.071, {notation: 'fixed'}); // returns '12' * math.format(2.3, {notation: 'fixed', precision: 2}); // returns '2.30' * math.format(52.8, {notation: 'exponential'}); // returns '5.28e+1' * * See also: * * print * * @param {*} value Value to be stringified * @param {Object | Function | Number} [options] Formatting options * @return {String} str The formatted value */ math.format = function format (value, options) { var num = arguments.length; if (num !== 1 && num !== 2) { throw new math.error.ArgumentsError('format', num, 1, 2); } return string.format(value, options); }; }; /***/ }, /* 117 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), Complex = __webpack_require__(5), Unit = __webpack_require__(9), isNumber = util.number.isNumber, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit; /** * Import functions from an object or a module * * Syntax: * * math.import(object) * math.import(object, options) * * Where: * * - `object: Object` * An object with functions to be imported. * - `options: Object` An object with import options. Available options: * - `override: boolean` * If true, existing functions will be overwritten. False by default. * - `wrap: boolean` * If true (default), the functions will be wrapped in a wrapper function * which converts data types like Matrix to primitive data types like Array. * The wrapper is needed when extending math.js with libraries which do not * * Examples: * * // define new functions and variables * math.import({ * myvalue: 42, * hello: function (name) { * return 'hello, ' + name + '!'; * } * }); * * // use the imported function and variable * math.myvalue * 2; // 84 * math.hello('user'); // 'hello, user!' * * // import the npm module numbers * // (must be installed first with `npm install numbers`) * math.import('numbers'); * * math.fibonacci(7); // returns 13 * * @param {String | Object} object Object with functions to be imported. * @param {Object} [options] Import options. */ // TODO: return status information math['import'] = function math_import(object, options) { var num = arguments.length; if (num != 1 && num != 2) { throw new math.error.ArgumentsError('import', num, 1, 2); } var name; var opts = { override: false, wrap: true }; if (options && options instanceof Object) { util.object.extend(opts, options); } if (isString(object)) { // a string with a filename // istanbul ignore else (we cannot unit test the else case in a node.js environment) if (true) { // load the file using require var _module = __webpack_require__(162)(object); math_import(_module); } else { throw new Error('Cannot load module: require not available.'); } } else if (typeof object === 'object') { // a map with functions for (name in object) { if (object.hasOwnProperty(name)) { var value = object[name]; if (isSupportedType(value)) { _import(name, value, opts); } else { math_import(value); } } } } else { throw new TypeError('Object or module name expected'); } }; /** * Add a property to the math namespace and create a chain proxy for it. * @param {String} name * @param {*} value * @param {Object} options See import for a description of the options * @private */ function _import(name, value, options) { if (options.override || math[name] === undefined) { // add to math namespace if (options.wrap && typeof value === 'function') { // create a wrapper around the function math[name] = function () { var args = []; for (var i = 0, len = arguments.length; i < len; i++) { var arg = arguments[i]; args[i] = arg && arg.valueOf(); } return value.apply(math, args); }; } else { // just create a link to the function or value math[name] = value; } // create a proxy for the Selector math.chaining.Selector.createProxy(name, value); } } /** * Check whether given object is a supported type * @param object * @return {Boolean} * @private */ function isSupportedType(object) { return (typeof object == 'function') || isNumber(object) || isString(object) || isComplex(object) || isUnit(object); // TODO: add boolean? } }; /***/ }, /* 118 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var isMatrix = __webpack_require__(8).isMatrix; /** * Create a new matrix or array with the results of the callback function executed on * each entry of the matrix/array. * * Syntax: * * math.map(x, callback) * * Examples: * * math.map([1, 2, 3], function(value) { * return value * value; * }); // returns [1, 4, 9] * * @param {Matrix | Array} x The matrix to iterate on. * @param {Function} callback The callback method is invoked with three * parameters: the value of the element, the index * of the element, and the matrix being traversed. * @return {Matrix | array} Transformed map of x */ math.map = function (x, callback) { if (arguments.length != 2) { throw new math.error.ArgumentsError('map', arguments.length, 2); } if (Array.isArray(x)) { return _mapArray(x, callback); } else if (isMatrix(x)) { return x.map(callback); } else { throw new math.error.UnsupportedTypeError('map', math['typeof'](x)); } }; function _mapArray (arrayIn, callback) { var index = []; var recurse = function (value, dim) { if (Array.isArray(value)) { return value.map(function (child, i) { index[dim] = i; return recurse(child, dim + 1); }); } else { return callback(value, index, arrayIn); } }; return recurse(arrayIn, 0); }; }; /***/ }, /* 119 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var util = __webpack_require__(128), isString = util.string.isString; /** * Interpolate values into a string template. * * Syntax: * * math.print(template, values) * math.print(template, values, precision) * * Example usage: * * // the following outputs: 'Lucy is 5 years old' * math.print('Lucy is $age years old', {age: 5}); * * // the following outputs: 'The value of pi is 3.141592654' * math.print('The value of pi is $pi', {pi: math.pi}, 10); * * // the following outputs: 'hello Mary! The date is 2013-03-23' * math.print('Hello $user.name! The date is $date', { * user: { * name: 'Mary', * }, * date: new Date(2013, 2, 23).toISOString().substring(0, 10) * }); * * See also: * * format * * @param {String} template A string containing variable placeholders. * @param {Object} values An object containing variables which will * be filled in in the template. * @param {Number} [precision] Number of digits to format numbers. * If not provided, the value will not be rounded. * @return {String} Interpolated string */ math.print = function print (template, values, precision) { var num = arguments.length; if (num != 2 && num != 3) { throw new math.error.ArgumentsError('print', num, 2, 3); } if (!isString(template)) { throw new TypeError('String expected as first parameter in function format'); } if (!(values instanceof Object)) { throw new TypeError('Object expected as second parameter in function format'); } // format values into a string return template.replace(/\$([\w\.]+)/g, function (original, key) { var keys = key.split('.'); var value = values[keys.shift()]; while (keys.length && value !== undefined) { var k = keys.shift(); value = k ? value[k] : value + '.'; } if (value !== undefined) { if (!isString(value)) { return math.format(value, precision); } else { return value; } } return original; } ); }; }; /***/ }, /* 120 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var types = __webpack_require__(163), Complex = __webpack_require__(5), Matrix = __webpack_require__(8), Unit = __webpack_require__(9), Index = __webpack_require__(7), Range = __webpack_require__(6), Help = __webpack_require__(10); /** * Determine the type of a variable. * * Function `typeof` recognizes the following types of objects: * * Object | Returns | Example * ---------------------- | ------------- | ------------------------------------------ * Array | `'array'` | `math.typeof ([1, 2, 3])` * boolean | `'boolean'` | `math.typeof (true)` * Date | `'date'` | `math.typeof (new Date())` * null | `'null'` | `math.typeof(null)` * number | `'number'` | `math.typeof(3.5)` * Object | `'object'` | `math.typeof ({a: 2, b: 3})` * RegExp | `'regexp'` | `math.typeof (/a regexp/)` * string | `'string'` | `math.typeof ('hello world')` * undefined | `'undefined'` | `math.typeof(undefined)` * math.chaining.Selector | `'selector'` | `math.typeof (math.select(2))` * math.type.BigNumber | `'bignumber'` | `math.typeof (math.bignumber('2.3e500'))` * math.type.Complex | `'complex'` | `math.typeof (math.complex(2, 3))` * math.type.Help | `'help'` | `math.typeof (math.help('sqrt'))` * math.type.Index | `'index'` | `math.typeof (math.index(1, 3))` * math.type.Matrix | `'matrix'` | `math.typeof (math.matrix([[1,2], [3, 4]]))` * math.type.Range | `'range'` | `math.typeof (math.range(0, 10))` * math.type.Unit | `'unit'` | `math.typeof (math.unit('45 deg'))` * * Syntax: * * math.typeof(x) * * Examples: * * math.typeof(3.5); // returns 'number' * math.typeof(math.complex('2 - 4i')); // returns 'complex' * math.typeof(math.unit('45 deg')); // returns 'unit' * math.typeof('hello world'); // returns 'string' * * @param {*} x The variable for which to test the type. * @return {String} Lower case type, for example 'number', 'string', 'array'. */ math['typeof'] = function _typeof (x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('typeof', arguments.length, 1); } // JavaScript types var type = types.type(x); // math.js types if (type === 'object') { if (x instanceof Complex) return 'complex'; if (x instanceof Matrix) return 'matrix'; if (x instanceof Unit) return 'unit'; if (x instanceof Index) return 'index'; if (x instanceof Range) return 'range'; if (x instanceof Help) return 'help'; // the following types are different instances per math.js instance if (x instanceof math.type.BigNumber) return 'bignumber'; if (x instanceof math.chaining.Selector) return 'selector'; } return type; }; }; /***/ }, /* 121 */ /***/ function(module, exports, __webpack_require__) { module.exports = function (math) { var isMatrix = __webpack_require__(8).isMatrix; /** * Iterate over all elements of a matrix/array, and executes the given callback function. * * Syntax: * * math.forEach(x, callback) * * Examples: * * math.forEach([1, 2, 3], function(value) { * console.log(value); * }); * // outputs 1, 2, 3 * * @param {Matrix | Array} x The matrix to iterate on. * @param {Function} callback The callback function is invoked with three * parameters: the value of the element, the index * of the element, and the Matrix/array being traversed. */ math.forEach = function (x, callback) { if (arguments.length != 2) { throw new math.error.ArgumentsError('forEach', arguments.length, 2); } if (Array.isArray(x)) { return _forEachArray(x, callback); } else if (isMatrix(x)) { return x.forEach(callback); } else { throw new math.error.UnsupportedTypeError('forEach', math['typeof'](x)); } }; function _forEachArray (array, callback) { var index = []; var recurse = function (value, dim) { if (Array.isArray(value)) { value.forEach(function (child, i) { index[dim] = i; // zero-based index recurse(child, dim + 1); }); } else { callback(value, index, array); } }; recurse(array, 0); } }; /***/ }, /* 122 */ /***/ function(module, exports, __webpack_require__) { module.exports = '0.25.0'; // Note: This file is automatically generated when building math.js. // Changes made in this file will be overwritten. /***/ }, /* 123 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*! decimal.js v3.0.1 https://github.com/MikeMcl/decimal.js/LICENCE */ ;(function (global) { 'use strict'; /* * decimal.js v3.0.1 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js * Copyright (c) 2014 Michael Mclaughlin <M8ch88l@gmail.com> * MIT Expat Licence */ var convertBase, DecimalConstructor, noConflict, crypto = global['crypto'], external = true, id = 0, mathfloor = Math.floor, mathpow = Math.pow, outOfRange, toString = Object.prototype.toString, BASE = 1e7, LOGBASE = 7, NUMERALS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_', P = {}, /* The maximum exponent magnitude. The limit on the value of toExpNeg, toExpPos, minE and maxE. */ EXP_LIMIT = 9e15, // 0 to 9e15 /* The limit on the value of precision, and on the argument to toDecimalPlaces, toExponential, toFixed, toFormat, toPrecision and toSignificantDigits. */ MAX_DIGITS = 1E9, // 0 to 1e+9 /* To decide whether or not to calculate x.pow(integer y) using the 'exponentiation by squaring' algorithm or by exp(y*ln(x)), the number of significant digits of x is multiplied by y. If this number is less than INT_POW_LIMIT then the former algorithm is used. */ INT_POW_LIMIT = 3000, // 0 to 5000 // The natural logarithm of 10 (1025 digits). LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058'; // Decimal prototype methods /* * Return a new Decimal whose value is the absolute value of this Decimal. * */ P['absoluteValue'] = P['abs'] = function () { var x = new this['constructor'](this); if ( x['s'] < 0 ) { x['s'] = 1; } return rnd(x); }; /* * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in * the direction of positive Infinity. * */ P['ceil'] = function () { return rnd( new this['constructor'](this), this['e'] + 1, 2 ); }; /* * Return * 1 if the value of this Decimal is greater than the value of Decimal(y, b), * -1 if the value of this Decimal is less than the value of Decimal(y, b), * 0 if they have the same value, * null if the value of either Decimal is NaN. * */ P['comparedTo'] = P['cmp'] = function ( y, b ) { var a, x = this, xc = x['c'], yc = ( id = -id, y = new x['constructor']( y, b ), y['c'] ), i = x['s'], j = y['s'], k = x['e'], l = y['e']; // Either NaN? if ( !i || !j ) { return null; } a = xc && !xc[0]; b = yc && !yc[0]; // Either zero? if ( a || b ) { return a ? b ? 0 : -j : i; } // Signs differ? if ( i != j ) { return i; } a = i < 0; // Either Infinity? if ( !xc || !yc ) { return k == l ? 0 : !xc ^ a ? 1 : -1; } // Compare exponents. if ( k != l ) { return k > l ^ a ? 1 : -1; } // Compare digit by digit. for ( i = -1, j = ( k = xc.length ) < ( l = yc.length ) ? k : l; ++i < j; ) { if ( xc[i] != yc[i] ) { return xc[i] > yc[i] ^ a ? 1 : -1; } } // Compare lengths. return k == l ? 0 : k > l ^ a ? 1 : -1; }; /* * Return the number of decimal places of the value of this Decimal. * */ P['decimalPlaces'] = P['dp'] = function () { var c, v, n = null; if ( c = this['c'] ) { n = ( ( v = c.length - 1 ) - mathfloor( this['e'] / LOGBASE ) ) * LOGBASE; if ( v = c[v] ) { // Subtract the number of trailing zeros of the last number. for ( ; v % 10 == 0; v /= 10, n-- ); } if ( n < 0 ) { n = 0; } } return n; }; /* * n / 0 = I * n / N = N * n / I = 0 * 0 / n = 0 * 0 / 0 = N * 0 / N = N * 0 / I = 0 * N / n = N * N / 0 = N * N / N = N * N / I = N * I / n = I * I / 0 = I * I / N = N * I / I = N * * Return a new Decimal whose value is the value of this Decimal divided by Decimal(y, b), * rounded to precision significant digits using rounding mode rounding. * */ P['dividedBy'] = P['div'] = function ( y, b ) { id = 2; return div( this, new this['constructor']( y, b ) ); }; /* * Return a new Decimal whose value is the integer part of dividing the value of this Decimal by * the value of Decimal(y, b), rounded to precision significant digits using rounding mode * rounding. * */ P['dividedToIntegerBy'] = P['divToInt'] = function ( y, b ) { var x = this, Decimal = x['constructor']; id = 18; return rnd( div( x, new Decimal( y, b ), 0, 1, 1 ), Decimal['precision'], Decimal['rounding'] ); }; /* * Return true if the value of this Decimal is equal to the value of Decimal(n, b), otherwise * return false. * */ P['equals'] = P['eq'] = function ( n, b ) { id = 3; return this['cmp']( n, b ) === 0; }; /* * Return a new Decimal whose value is the exponential of the value of this Decimal, i.e. the * base e raised to the power the value of this Decimal, rounded to precision significant digits * using rounding mode rounding. * */ P['exponential'] = P['exp'] = function () { return exp(this); }; /* * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in * the direction of negative Infinity. * */ P['floor'] = function () { return rnd( new this['constructor'](this), this['e'] + 1, 3 ); }; /* * Return true if the value of this Decimal is greater than the value of Decimal(n, b), otherwise * return false. * */ P['greaterThan'] = P['gt'] = function ( n, b ) { id = 4; return this['cmp']( n, b ) > 0; }; /* * Return true if the value of this Decimal is greater than or equal to the value of * Decimal(n, b), otherwise return false. * */ P['greaterThanOrEqualTo'] = P['gte'] = function ( n, b ) { id = 5; b = this['cmp']( n, b ); return b == 1 || b === 0; }; /* * Return true if the value of this Decimal is a finite number, otherwise return false. * */ P['isFinite'] = function () { return !!this['c']; }; /* * Return true if the value of this Decimal is an integer, otherwise return false. * */ P['isInteger'] = P['isInt'] = function () { return !!this['c'] && mathfloor( this['e'] / LOGBASE ) > this['c'].length - 2; }; /* * Return true if the value of this Decimal is NaN, otherwise return false. * */ P['isNaN'] = function () { return !this['s']; }; /* * Return true if the value of this Decimal is negative, otherwise return false. * */ P['isNegative'] = P['isNeg'] = function () { return this['s'] < 0; }; /* * Return true if the value of this Decimal is 0 or -0, otherwise return false. * */ P['isZero'] = function () { return !!this['c'] && this['c'][0] == 0; }; /* * Return true if the value of this Decimal is less than Decimal(n, b), otherwise return false. * */ P['lessThan'] = P['lt'] = function ( n, b ) { id = 6; return this['cmp']( n, b ) < 0; }; /* * Return true if the value of this Decimal is less than or equal to Decimal(n, b), otherwise * return false. * */ P['lessThanOrEqualTo'] = P['lte'] = function ( n, b ) { id = 7; b = this['cmp']( n, b ); return b == -1 || b === 0; }; /* * Return the logarithm of the value of this Decimal to the specified base, rounded * to precision significant digits using rounding mode rounding. * * If no base is specified, return log[10](arg). * * log[base](arg) = ln(arg) / ln(base) * * The result will always be correctly rounded if the base of the log is 2 or 10, and * 'almost always' if not: * * Depending on the rounding mode, the result may be incorrectly rounded if the first fifteen * rounding digits are [49]99999999999999 or [50]00000000000000. In that case, the maximum error * between the result and the correctly rounded result will be one ulp (unit in the last place). * * log[-b](a) = NaN * log[0](a) = NaN * log[1](a) = NaN * log[NaN](a) = NaN * log[Infinity](a) = NaN * log[b](0) = -Infinity * log[b](-0) = -Infinity * log[b](-a) = NaN * log[b](1) = 0 * log[b](Infinity) = Infinity * log[b](NaN) = NaN * * [base] {number|string|Decimal} The base of the logarithm. * [b] {number} The base of base. * */ P['logarithm'] = P['log'] = function ( base, b ) { var base10, c, denom, i, inf, num, sd, sd10, r, arg = this, Decimal = arg['constructor'], pr = Decimal['precision'], rm = Decimal['rounding'], guard = 5; // Default base is 10. if ( base == null ) { base = new Decimal(10); base10 = true; } else { id = 15; base = new Decimal( base, b ); c = base['c']; // If base < 0 or +-Infinity/NaN or 0 or 1. if ( base['s'] < 0 || !c || !c[0] || !base['e'] && c[0] == 1 && c.length == 1 ) { return new Decimal(NaN); } base10 = base['eq'](10); } c = arg['c']; // If arg < 0 or +-Infinity/NaN or 0 or 1. if ( arg['s'] < 0 || !c || !c[0] || !arg['e'] && c[0] == 1 && c.length == 1 ) { return new Decimal( c && !c[0] ? -1 / 0 : arg['s'] != 1 ? NaN : c ? 0 : 1 / 0 ); } /* The result will have an infinite decimal expansion if base is 10 and arg is not an integer power of 10... */ inf = base10 && ( i = c[0], c.length > 1 || i != 1 && i != 10 && i != 1e2 && i != 1e3 && i != 1e4 && i != 1e5 && i != 1e6 ); /* // or if base last digit's evenness is not the same as arg last digit's evenness... // (FAILS when e.g. base.c[0] = 10 and c[0] = 1) || ( base['c'][ base['c'].length - 1 ] & 1 ) != ( c[ c.length - 1 ] & 1 ) // or if base is 2 and there is more than one 1 in arg in base 2. // (SLOWS the method down significantly) || base['eq'](2) && arg.toString(2).replace( /[^1]+/g, '' ) != '1'; */ external = false; sd = pr + guard; sd10 = sd + 10; num = ln( arg, sd ); if (base10) { if ( sd10 > LN10.length ) { ifExceptionsThrow( Decimal, 1, sd10, 'log' ); } denom = new Decimal( LN10.slice( 0, sd10 ) ); } else { denom = ln( base, sd ); } // The result will have 5 rounding digits. r = div( num, denom, sd, 1 ); /* If at a rounding boundary, i.e. the result's rounding digits are [49]9999 or [50]0000, calculate 10 further digits. If the result is known to have an infinite decimal expansion, repeat this until it is clear that the result is above or below the boundary. Otherwise, if after calculating the 10 further digits, the last 14 are nines, round up and assume the result is exact. Also assume the result is exact if the last 14 are zero. Example of a result that will be incorrectly rounded: log[1048576](4503599627370502) = 2.60000000000000009610279511444746... The above result correctly rounded using ROUND_CEIL to 1 decimal place should be 2.7, but it will be given as 2.6 as there are 15 zeros immediately after the requested decimal place, so the exact result would be assumed to be 2.6, which rounded using ROUND_CEIL to 1 decimal place is still 2.6. */ if ( checkRoundingDigits( r['c'], i = pr, rm ) ) { do { sd += 10; num = ln( arg, sd ); if (base10) { sd10 = sd + 10; if ( sd10 > LN10.length ) { ifExceptionsThrow( Decimal, 1, sd10, 'log' ); } denom = new Decimal( LN10.slice( 0, sd10 ) ); } else { denom = ln( base, sd ); } r = div( num, denom, sd, 1 ); if ( !inf ) { // Check for 14 nines from the 2nd rounding digit, as the first may be 4. if ( +coefficientToString( r['c'] ).slice( i + 1, i + 15 ) + 1 == 1e14 ) { r = rnd( r, pr + 1, 0 ); } break; } } while ( checkRoundingDigits( r['c'], i += 10, rm ) ); } external = true; return rnd( r, pr, rm ); }; /* * n - 0 = n * n - N = N * n - I = -I * 0 - n = -n * 0 - 0 = 0 * 0 - N = N * 0 - I = -I * N - n = N * N - 0 = N * N - N = N * N - I = N * I - n = I * I - 0 = I * I - N = N * I - I = N * * Return a new Decimal whose value is the value of this Decimal minus Decimal(y, b), rounded * to precision significant digits using rounding mode rounding. * */ P['minus'] = function ( y, b ) { var t, i, j, xLTy, x = this, Decimal = x['constructor'], a = x['s']; id = 8; y = new Decimal( y, b ); b = y['s']; // Either NaN? if ( !a || !b ) { return new Decimal(NaN); } // Signs differ? if ( a != b ) { y['s'] = -b; return x['plus'](y); } var xc = x['c'], yc = y['c'], e = mathfloor( y['e'] / LOGBASE ), k = mathfloor( x['e'] / LOGBASE ), pr = Decimal['precision'], rm = Decimal['rounding']; if ( !k || !e ) { // Either Infinity? if ( !xc || !yc ) { return xc ? ( y['s'] = -b, y ) : new Decimal( yc ? x : NaN ); } // Either zero? if ( !xc[0] || !yc[0] ) { // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. x = yc[0] ? ( y['s'] = -b, y ) : new Decimal( xc[0] ? x : // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity rm == 3 ? -0 : 0 ); return external ? rnd( x, pr, rm ) : x; } } xc = xc.slice(); i = xc.length; // Determine which is the bigger number. Prepend zeros to equalise exponents. if ( a = k - e ) { if ( xLTy = a < 0 ) { a = -a; t = xc; i = yc.length; } else { e = k; t = yc; } if ( ( k = Math.ceil( pr / LOGBASE ) ) > i ) { i = k; } /* Numbers with massively different exponents would result in a massive number of zeros needing to be prepended, but this can be avoided while still ensuring correct rounding by limiting the number of zeros to max( precision, i ) + 2, where pr is precision and i is the length of the coefficient of whichever is greater x or y. */ if ( a > ( i += 2 ) ) { a = i; t.length = 1; } for ( t.reverse(), b = a; b--; t.push(0) ); t.reverse(); } else { // Exponents equal. Check digits. if ( xLTy = i < ( j = yc.length ) ) { j = i; } for ( a = b = 0; b < j; b++ ) { if ( xc[b] != yc[b] ) { xLTy = xc[b] < yc[b]; break; } } } // x < y? Point xc to the array of the bigger number. if ( xLTy ) { t = xc, xc = yc, yc = t; y['s'] = -y['s']; } /* Append zeros to xc if shorter. No need to add zeros to yc if shorter as subtraction only needs to start at yc length. */ if ( ( b = -( ( j = xc.length ) - yc.length ) ) > 0 ) { for ( ; b--; xc[j++] = 0 ); } // Subtract yc from xc. for ( k = BASE - 1, b = yc.length; b > a; ) { if ( xc[--b] < yc[b] ) { for ( i = b; i && !xc[--i]; xc[i] = k ); --xc[i]; xc[b] += BASE; } xc[b] -= yc[b]; } // Remove trailing zeros. for ( ; xc[--j] == 0; xc.pop() ); // Remove leading zeros and adjust exponent accordingly. for ( ; xc[0] == 0; xc.shift(), --e ); if ( !xc[0] ) { // Zero. xc = [ e = 0 ]; // Following IEEE 754 (2008) 6.3, n - n = -0 when rounding towards -Infinity. y['s'] = rm == 3 ? -1 : 1; } y['c'] = xc; // Get the number of digits of xc[0]. for ( a = 1, b = xc[0]; b >= 10; b /= 10, a++ ); y['e'] = a + e * LOGBASE - 1; return external ? rnd( y, pr, rm ) : y; }; /* * n % 0 = N * n % N = N * n % I = n * 0 % n = 0 * -0 % n = -0 * 0 % 0 = N * 0 % N = N * 0 % I = 0 * N % n = N * N % 0 = N * N % N = N * N % I = N * I % n = N * I % 0 = N * I % N = N * I % I = N * * Return a new Decimal whose value is the value of this Decimal modulo Decimal(y, b), rounded * to precision significant digits using rounding mode rounding. * * The result depends on the modulo mode. * */ P['modulo'] = P['mod'] = function ( y, b ) { var n, q, x = this, Decimal = x['constructor'], m = Decimal['modulo']; id = 9; y = new Decimal( y, b ); b = y['s']; n = !x['c'] || !b || y['c'] && !y['c'][0]; /* Return NaN if x is Infinity or NaN, or y is NaN or zero, else return x if y is Infinity or x is zero. */ if ( n || !y['c'] || x['c'] && !x['c'][0] ) { return n ? new Decimal(NaN) : rnd( new Decimal(x), Decimal['precision'], Decimal['rounding'] ); } external = false; if ( m == 9 ) { // Euclidian division: q = sign(y) * floor(x / abs(y)) // r = x - qy where 0 <= r < abs(y) y['s'] = 1; q = div( x, y, 0, 3, 1 ); y['s'] = b; q['s'] *= b; } else { q = div( x, y, 0, m, 1 ); } q = q['times'](y); external = true; return x['minus'](q); }; /* * Return a new Decimal whose value is the natural logarithm of the value of this Decimal, * rounded to precision significant digits using rounding mode rounding. * */ P['naturalLogarithm'] = P['ln'] = function () { return ln(this); }; /* * Return a new Decimal whose value is the value of this Decimal negated, i.e. as if * multiplied by -1. * */ P['negated'] = P['neg'] = function () { var x = new this['constructor'](this); x['s'] = -x['s'] || null; return rnd(x); }; /* * n + 0 = n * n + N = N * n + I = I * 0 + n = n * 0 + 0 = 0 * 0 + N = N * 0 + I = I * N + n = N * N + 0 = N * N + N = N * N + I = N * I + n = I * I + 0 = I * I + N = N * I + I = I * * Return a new Decimal whose value is the value of this Decimal plus Decimal(y, b), rounded * to precision significant digits using rounding mode rounding. * */ P['plus'] = function ( y, b ) { var t, x = this, Decimal = x['constructor'], a = x['s']; id = 10; y = new Decimal( y, b ); b = y['s']; // Either NaN? if ( !a || !b ) { return new Decimal(NaN); } // Signs differ? if ( a != b ) { y['s'] = -b; return x['minus'](y); } var xc = x['c'], yc = y['c'], e = mathfloor( y['e'] / LOGBASE ), k = mathfloor( x['e'] / LOGBASE ), pr = Decimal['precision'], rm = Decimal['rounding']; if ( !k || !e ) { // Either Infinity? if ( !xc || !yc ) { // Return +-Infinity. return new Decimal( a / 0 ); } // Either zero? if ( !xc[0] || !yc[0] ) { // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. x = yc[0] ? y: new Decimal( xc[0] ? x : a * 0 ); return external ? rnd( x, pr, rm ) : x; } } xc = xc.slice(); // Prepend zeros to equalise exponents. Note: Faster to use reverse then do unshifts. if ( a = k - e ) { if ( a < 0 ) { a = -a; t = xc; b = yc.length; } else { e = k; t = yc; b = xc.length; } if ( ( k = Math.ceil( pr / LOGBASE ) ) > b ) { b = k; } // Limit number of zeros prepended to max( pr, b ) + 1. if ( a > ++b ) { a = b; t.length = 1; } for ( t.reverse(); a--; t.push(0) ); t.reverse(); } // Point xc to the longer array. if ( xc.length - yc.length < 0 ) { t = yc, yc = xc, xc = t; } // Only start adding at yc.length - 1 as the further digits of xc can be left as they are. for ( a = yc.length, b = 0, k = BASE; a; xc[a] %= k ) { b = ( xc[--a] = xc[a] + yc[a] + b ) / k | 0; } if (b) { xc.unshift(b); ++e; } // Remove trailing zeros. for ( a = xc.length; xc[--a] == 0; xc.pop() ); // No need to check for zero, as +x + +y != 0 && -x + -y != 0 y['c'] = xc; // Get the number of digits of xc[0]. for ( a = 1, b = xc[0]; b >= 10; b /= 10, a++ ); y['e'] = a + e * LOGBASE - 1; return external ? rnd( y, pr, rm ) : y; }; /* * Return the number of significant digits of this Decimal. * * z {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0. * */ P['precision'] = P['sd'] = function (z) { var n = null, x = this; if ( z != n ) { if ( z !== !!z && z !== 1 && z !== 0 ) { // 'precision() argument not a boolean or binary digit: {z}' ifExceptionsThrow( x['constructor'], 'argument', z, 'precision', 1 ); } } if ( x['c'] ) { n = getCoeffLength( x['c'] ); if ( z && x['e'] + 1 > n ) { n = x['e'] + 1; } } return n; }; /* * Return a new Decimal whose value is the value of this Decimal rounded to a whole number using * rounding mode rounding. * */ P['round'] = function () { var x = this, Decimal = x['constructor']; return rnd( new Decimal(x), x['e'] + 1, Decimal['rounding'] ); }; /* * sqrt(-n) = N * sqrt( N) = N * sqrt(-I) = N * sqrt( I) = I * sqrt( 0) = 0 * sqrt(-0) = -0 * * Return a new Decimal whose value is the square root of this Decimal, rounded to precision * significant digits using rounding mode rounding. * */ P['squareRoot'] = P['sqrt'] = function () { var m, n, sd, r, rep, t, x = this, c = x['c'], s = x['s'], e = x['e'], Decimal = x['constructor'], half = new Decimal(0.5); // Negative/NaN/Infinity/zero? if ( s !== 1 || !c || !c[0] ) { return new Decimal( !s || s < 0 && ( !c || c[0] ) ? NaN : c ? x : 1 / 0 ); } external = false; // Initial estimate. s = Math.sqrt( +x ); /* Math.sqrt underflow/overflow? Pass x to Math.sqrt as integer, then adjust the exponent of the result. */ if ( s == 0 || s == 1 / 0 ) { n = coefficientToString(c); if ( ( n.length + e ) % 2 == 0 ) { n += '0'; } s = Math.sqrt(n); e = mathfloor( ( e + 1 ) / 2 ) - ( e < 0 || e % 2 ); if ( s == 1 / 0 ) { n = '1e' + e; } else { n = s.toExponential(); n = n.slice( 0, n.indexOf('e') + 1 ) + e; } r = new Decimal(n); } else { r = new Decimal( s.toString() ); } sd = ( e = Decimal['precision'] ) + 3; // Newton-Raphson iteration. for ( ; ; ) { t = r; r = half['times']( t['plus']( div( x, t, sd + 2, 1 ) ) ); if ( coefficientToString( t['c'] ).slice( 0, sd ) === ( n = coefficientToString( r['c'] ) ).slice( 0, sd ) ) { n = n.slice( sd - 3, sd + 1 ); /* The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or 4999 (i.e. approaching a rounding boundary) continue the iteration. */ if ( n == '9999' || !rep && n == '4999' ) { /* On the first iteration only, check to see if rounding up gives the exact result as the nines may infinitely repeat. */ if ( !rep ) { rnd( t, e + 1, 0 ); if ( t['times'](t)['eq'](x) ) { r = t; break; } } sd += 4; rep = 1; } else { /* If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result. If not, then there are further digits and m will be truthy. */ if ( !+n || !+n.slice(1) && n.charAt(0) == '5' ) { // Truncate to the first rounding digit. rnd( r, e + 1, 1 ); m = !r['times'](r)['eq'](x); } break; } } } external = true; return rnd( r, e, Decimal['rounding'], m ); }; /* * n * 0 = 0 * n * N = N * n * I = I * 0 * n = 0 * 0 * 0 = 0 * 0 * N = N * 0 * I = N * N * n = N * N * 0 = N * N * N = N * N * I = N * I * n = I * I * 0 = N * I * N = N * I * I = I * * Return a new Decimal whose value is this Decimal times Decimal(y), rounded to precision * significant digits using rounding mode rounding. * */ P['times'] = function ( y, b ) { var c, e, x = this, Decimal = x['constructor'], xc = x['c'], yc = ( id = 11, y = new Decimal( y, b ), y['c'] ), i = mathfloor( x['e'] / LOGBASE ), j = mathfloor( y['e'] / LOGBASE ), a = x['s']; b = y['s']; y['s'] = a == b ? 1 : -1; // Either NaN/Infinity/0? if ( !i && ( !xc || !xc[0] ) || !j && ( !yc || !yc[0] ) ) { // Either NaN? return new Decimal( !a || !b || // x is 0 and y is Infinity or y is 0 and x is Infinity? xc && !xc[0] && !yc || yc && !yc[0] && !xc // Return NaN. ? NaN // Either Infinity? : !xc || !yc // Return +-Infinity. ? y['s'] / 0 // x or y is 0. Return +-0. : y['s'] * 0 ); } e = i + j; a = xc.length; b = yc.length; if ( a < b ) { // Swap. c = xc, xc = yc, yc = c; j = a, a = b, b = j; } for ( j = a + b, c = []; j--; c.push(0) ); // Multiply! for ( i = b - 1; i > -1; i-- ) { for ( b = 0, j = a + i; j > i; b = b / BASE | 0 ) { b = c[j] + yc[i] * xc[j - i - 1] + b; c[j--] = b % BASE | 0; } if (b) { c[j] = ( c[j] + b ) % BASE; } } if (b) { ++e; } // Remove any leading zero. if ( !c[0] ) { c.shift(); } // Remove trailing zeros. for ( j = c.length; !c[--j]; c.pop() ); y['c'] = c; // Get the number of digits of c[0]. for ( a = 1, b = c[0]; b >= 10; b /= 10, a++ ); y['e'] = a + e * LOGBASE - 1; return external ? rnd( y, Decimal['precision'], Decimal['rounding'] ) : y; }; /* * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of dp * decimal places using rounding mode rm or rounding if rm is omitted. * * If dp is omitted, return a new Decimal whose value is the value of this Decimal. * * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive. * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. * * 'toDP() dp out of range: {dp}' * 'toDP() dp not an integer: {dp}' * 'toDP() rounding mode not an integer: {rm}' * 'toDP() rounding mode out of range: {rm}' * */ P['toDecimalPlaces'] = P['toDP'] = function ( dp, rm ) { var x = this; x = new x['constructor'](x); return dp == null || !checkArg( x, dp, 'toDP' ) ? x : rnd( x, ( dp | 0 ) + x['e'] + 1, checkRM( x, rm, 'toDP' ) ); }; /* * Return a string representing the value of this Decimal in exponential notation rounded to dp * fixed decimal places using rounding mode rounding. * * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive. * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. * * errors true: Throw if dp and rm are not undefined, null or integers in range. * errors false: Ignore dp and rm if not numbers or not in range, and truncate non-integers. * * 'toExponential() dp not an integer: {dp}' * 'toExponential() dp out of range: {dp}' * 'toExponential() rounding mode not an integer: {rm}' * 'toExponential() rounding mode out of range: {rm}' * */ P['toExponential'] = function ( dp, rm ) { var x = this; return x['c'] ? format( x, dp != null && checkArg( x, dp, 'toExponential' ) ? dp | 0 : null, dp != null && checkRM( x, rm, 'toExponential' ), 1 ) : x.toString(); }; /* * Return a string representing the value of this Decimal in normal (fixed-point) notation to * dp fixed decimal places and rounded using rounding mode rm or rounding if rm is omitted. * * Note: as with JS numbers, (-0).toFixed(0) is '0', but e.g. (-0.00001).toFixed(0) is '-0'. * * [dp] {number} Decimal places. Integer, -MAX_DIGITS to MAX_DIGITS inclusive. * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. * * errors true: Throw if dp and rm are not undefined, null or integers in range. * errors false: Ignore dp and rm if not numbers or not in range, and truncate non-integers. * * 'toFixed() dp not an integer: {dp}' * 'toFixed() dp out of range: {dp}' * 'toFixed() rounding mode not an integer: {rm}' * 'toFixed() rounding mode out of range: {rm}' * */ P['toFixed'] = function ( dp, rm ) { var str, x = this, Decimal = x['constructor'], neg = Decimal['toExpNeg'], pos = Decimal['toExpPos']; if ( dp != null ) { dp = checkArg( x, dp, str = 'toFixed' ) ? x['e'] + ( dp | 0 ) : null; rm = checkRM( x, rm, str ); } // Prevent toString returning exponential notation; Decimal['toExpNeg'] = -( Decimal['toExpPos'] = 1 / 0 ); if ( dp == null || !x['c'] ) { str = x.toString(); } else { str = format( x, dp, rm ); // (-0).toFixed() is '0', but (-0.1).toFixed() is '-0'. // (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'. if ( x['s'] < 0 && x['c'] ) { // As e.g. (-0).toFixed(3), will wrongly be returned as -0.000 from toString. if ( !x['c'][0] ) { str = str.replace( '-', '' ); // As e.g. -0.5 if rounded to -0 will cause toString to omit the minus sign. } else if ( str.indexOf('-') < 0 ) { str = '-' + str; } } } Decimal['toExpNeg'] = neg; Decimal['toExpPos'] = pos; return str; }; /* * Return a string representing the value of this Decimal in normal notation rounded using * rounding mode rounding to dp fixed decimal places, with the integer part of the number * separated into thousands by string sep1 or ',' if sep1 is null or undefined, and the * fraction part separated into groups of five digits by string sep2. * * [sep1] {string} The grouping separator of the integer part of the number. * [sep2] {string} The grouping separator of the fraction part of the number. * [dp] {number} Decimal places. Integer, -MAX_DIGITS to MAX_DIGITS inclusive. * * Non-breaking thin-space: \u202f * * If dp is invalid the error message will incorrectly give the method as toFixed. * */ P['toFormat'] = function ( sep1, dp, sep2 ) { var arr = this.toFixed(dp).split('.'); return arr[0].replace( /\B(?=(\d{3})+$)/g, sep1 == null ? ',' : sep1 + '' ) + ( arr[1] ? '.' + ( sep2 ? arr[1].replace( /\d{5}\B/g, '$&' + sep2 ) : arr[1] ) : '' ); }; /* * Return a string array representing the value of this Decimal as a simple fraction with an * integer numerator and an integer denominator. * * The denominator will be a positive non-zero value less than or equal to the specified * maximum denominator. If a maximum denominator is not specified, the denominator will be * the lowest value necessary to represent the number exactly. * * [maxD] {number|string|Decimal} Maximum denominator. Integer >= 1 and < Infinity. * */ P['toFraction'] = function (maxD) { var d0, d2, e, frac, n, n0, p, q, x = this, Decimal = x['constructor'], n1 = d0 = new Decimal( Decimal['ONE'] ), d1 = n0 = new Decimal(0), xc = x['c'], d = new Decimal(d1); // NaN, Infinity. if ( !xc ) { return x.toString(); } e = d['e'] = getCoeffLength(xc) - x['e'] - 1; d['c'][0] = mathpow( 10, ( p = e % LOGBASE ) < 0 ? LOGBASE + p : p ); // If maxD is undefined or null... if ( maxD == null || // or NaN... ( !( id = 12, n = new Decimal(maxD) )['s'] || // or less than 1, or Infinity... ( outOfRange = n['cmp'](n1) < 0 || !n['c'] ) || // or not an integer... ( Decimal['errors'] && mathfloor( n['e'] / LOGBASE ) < n['c'].length - 1 ) ) && // 'toFraction() max denominator not an integer: {maxD}' // 'toFraction() max denominator out of range: {maxD}' !ifExceptionsThrow( Decimal, 'max denominator', maxD, 'toFraction', 0 ) || // or greater than the maximum denominator needed to specify the value exactly. ( maxD = n )['cmp'](d) > 0 ) { // d is 10**e, n1 is 1. maxD = e > 0 ? d : n1; } external = false; n = new Decimal( coefficientToString(xc) ); p = Decimal['precision']; Decimal['precision'] = e = xc.length * LOGBASE * 2; for ( ; ; ) { q = div( n, d, 0, 1, 1 ); d2 = d0['plus']( q['times'](d1) ); if ( d2['cmp'](maxD) == 1 ) { break; } d0 = d1, d1 = d2; n1 = n0['plus']( q['times']( d2 = n1 ) ); n0 = d2; d = n['minus']( q['times']( d2 = d ) ); n = d2; } d2 = div( maxD['minus'](d0), d1, 0, 1, 1 ); n0 = n0['plus']( d2['times'](n1) ); d0 = d0['plus']( d2['times'](d1) ); n0['s'] = n1['s'] = x['s']; // Determine which fraction is closer to x, n0/d0 or n1/d1? frac = div( n1, d1, e, 1 )['minus'](x)['abs']()['cmp']( div( n0, d0, e, 1 )['minus'](x)['abs']() ) < 1 ? [ n1 + '', d1 + '' ] : [ n0 + '', d0 + '' ]; external = true; Decimal['precision'] = p; return frac; }; /* * Returns a new Decimal whose value is the nearest multiple of the magnitude of n to the value * of this Decimal. * * If the value of this Decimal is equidistant from two multiples of n, the rounding mode rm, * or rounding if rm is omitted or is null or undefined, determines the direction of the * nearest multiple. * * In the context of this method, rounding mode 4 (ROUND_HALF_UP) is the same as rounding mode 0 * (ROUND_UP), and so on. * * The return value will always have the same sign as this Decimal, unless either this Decimal * or n is NaN, in which case the return value will be also be NaN. * * The return value is not rounded to precision significant digits. * * n {number|string|Decimal} The magnitude to round to a multiple of. * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. * * 'toNearest() rounding mode not an integer: {rm}' * 'toNearest() rounding mode out of range: {rm}' * */ P['toNearest'] = function ( n, rm ) { var x = this, Decimal = x['constructor']; x = new Decimal(x); if ( n == null ) { n = new Decimal( Decimal['ONE'] ); rm = Decimal['rounding']; } else { id = 17; n = new Decimal(n); rm = checkRM( x, rm, 'toNearest' ); } // If n is finite... if ( n['c'] ) { // If x is finite... if ( x['c'] ) { if ( n['c'][0] ) { external = false; x = div( x, n, 0, rm < 4 ? [4, 5, 7, 8][rm] : rm, 1 )['times'](n); external = true; rnd(x); } else { x['c'] = [ x['e'] = 0 ]; } } // n is NaN or +-Infinity. If x is not NaN... } else if ( x['s'] ) { // If n is +-Infinity... if ( n['s'] ) { n['s'] = x['s']; } x = n; } return x; }; /* * Return the value of this Decimal converted to a number primitive. * */ P['toNumber'] = function () { var x = this; // Ensure zero has correct sign. return +x || ( x['s'] ? 0 * x['s'] : NaN ); }; /* * Return a new Decimal whose value is the value of this Decimal raised to the power * Decimal(y, b), rounded to precision significant digits using rounding mode rounding. * * ECMAScript compliant. * * x is any value, including NaN. * n is any number, including �Infinity unless stated. * * pow( x, NaN ) = NaN * pow( x, �0 ) = 1 * pow( NaN, nonzero ) = NaN * pow( abs(n) > 1, +Infinity ) = +Infinity * pow( abs(n) > 1, -Infinity ) = +0 * pow( abs(n) == 1, �Infinity ) = NaN * pow( abs(n) < 1, +Infinity ) = +0 * pow( abs(n) < 1, -Infinity ) = +Infinity * pow( +Infinity, n > 0 ) = +Infinity * pow( +Infinity, n < 0 ) = +0 * pow( -Infinity, odd integer > 0 ) = -Infinity * pow( -Infinity, even integer > 0 ) = +Infinity * pow( -Infinity, odd integer < 0 ) = -0 * pow( -Infinity, even integer < 0 ) = +0 * pow( +0, n > 0 ) = +0 * pow( +0, n < 0 ) = +Infinity * pow( -0, odd integer > 0 ) = -0 * pow( -0, even integer > 0 ) = +0 * pow( -0, odd integer < 0 ) = -Infinity * pow( -0, even integer < 0 ) = +Infinity * pow( finite n < 0, finite non-integer ) = NaN * * For non-integer and larger exponents pow(x, y) is calculated using * * x^y = exp(y*ln(x)) * * Assuming the first 15 rounding digits are each equally likely to be any digit 0-9, the * probability of an incorrectly rounded result * P( [49]9{14} | [50]0{14} ) = 2 * 0.2 * 10^-14 = 4e-15 = 1/2.5e+14 * i.e. 1 in 250,000,000,000,000 * * If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place). * * y {number|string|Decimal} The power to which to raise this Decimal. * [b] {number} The base of y. * */ P['toPower'] = P['pow'] = function ( y, b ) { var a, e, n, r, x = this, Decimal = x['constructor'], s = x['s'], yN = +( id = 13, y = new Decimal( y, b ) ), i = yN < 0 ? -yN : yN, pr = Decimal['precision'], rm = Decimal['rounding']; // Handle +-Infinity, NaN and +-0. if ( !x['c'] || !y['c'] || ( n = !x['c'][0] ) || !y['c'][0] ) { // valueOf -0 is 0, so check for 0 then multiply it by the sign. return new Decimal( mathpow( n ? s * 0 : +x, yN ) ); } x = new Decimal(x); a = x['c'].length; // if x == 1 if ( !x['e'] && x['c'][0] == x['s'] && a == 1 ) { return x; } b = y['c'].length - 1; // if y == 1 if ( !y['e'] && y['c'][0] == y['s'] && !b ) { r = rnd( x, pr, rm ); } else { e = mathfloor( y['e'] / LOGBASE ); n = e >= b; // If y is not an integer and x is negative, return NaN. if ( !n && s < 0 ) { r = new Decimal(NaN); } else { /* If the approximate number of significant digits of x multiplied by abs(y) is less than INT_POW_LIMIT use the 'exponentiation by squaring' algorithm. */ if ( n && a * LOGBASE * i < INT_POW_LIMIT ) { r = intPow( Decimal, x, i ); if ( y['s'] < 0 ) { return Decimal['ONE']['div'](r); } } else { // Result is negative if x is negative and the last digit of integer y is odd. s = s < 0 && y['c'][ Math.max( e, b ) ] & 1 ? -1 : 1; b = mathpow( +x, yN ); /* Estimate result exponent. x^y = 10^e, where e = y * log10(x) log10(x) = log10(x_significand) + x_exponent log10(x_significand) = ln(x_significand) / ln(10) */ e = b == 0 || !isFinite(b) ? mathfloor( yN * ( Math.log( '0.' + coefficientToString( x['c'] ) ) / Math.LN10 + x['e'] + 1 ) ) : new Decimal( b + '' )['e']; // Estimate may be incorrect e.g.: x: 0.999999999999999999, y: 2.29, e: 0, r.e:-1 // Overflow/underflow? if ( e > Decimal['maxE'] + 1 || e < Decimal['minE'] - 1 ) { return new Decimal( e > 0 ? s / 0 : 0 ); } external = false; Decimal['rounding'] = x['s'] = 1; /* Estimate extra digits needed from ln(x) to ensure five correct rounding digits in result (i was unnecessary before max exponent was extended?). Example of failure before i was introduced: (precision: 10), new Decimal(2.32456).pow('2087987436534566.46411') should be 1.162377823e+764914905173815, but is 1.162355823e+764914905173815 */ i = Math.min( 12, ( e + '' ).length ); // r = x^y = exp(y*ln(x)) r = exp( y['times']( ln( x, pr + i ) ), pr ); // Truncate to the required precision plus five rounding digits. r = rnd( r, pr + 5, 1 ); /* If the rounding digits are [49]9999 or [50]0000 increase the precision by 10 and recalculate the result. */ if ( checkRoundingDigits( r['c'], pr, rm ) ) { e = pr + 10; // Truncate to the increased precision plus five rounding digits. r = rnd( exp( y['times']( ln( x, e + i ) ), e ), e + 5, 1 ); /* Check for 14 nines from the 2nd rounding digit (the first rounding digit may be 4 or 9). */ if ( +coefficientToString( r['c'] ).slice( pr + 1, pr + 15 ) + 1 == 1e14 ) { r = rnd( r, pr + 1, 0 ); } } r['s'] = s; external = true; Decimal['rounding'] = rm; } r = rnd( r, pr, rm ); } } return r; }; /* * Return a string representing the value of this Decimal rounded to sd significant digits * using rounding mode rounding. * * Return exponential notation if sd is less than the number of digits necessary to represent * the integer part of the value in normal notation. * * sd {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. * * errors true: Throw if sd and rm are not undefined, null or integers in range. * errors false: Ignore sd and rm if not numbers or not in range, and truncate non-integers. * * 'toPrecision() sd not an integer: {sd}' * 'toPrecision() sd out of range: {sd}' * 'toPrecision() rounding mode not an integer: {rm}' * 'toPrecision() rounding mode out of range: {rm}' * */ P['toPrecision'] = function ( sd, rm ) { var x = this; return sd != null && checkArg( x, sd, 'toPrecision', 1 ) && x['c'] ? format( x, --sd | 0, checkRM( x, rm, 'toPrecision' ), 2 ) : x.toString(); }; /* * Return a new Decimal whose value is this Decimal rounded to a maximum of d significant * digits using rounding mode rm, or to precision and rounding respectively if omitted. * * [d] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. * * 'toSD() digits out of range: {d}' * 'toSD() digits not an integer: {d}' * 'toSD() rounding mode not an integer: {rm}' * 'toSD() rounding mode out of range: {rm}' * */ P['toSignificantDigits'] = P['toSD'] = function ( d, rm ) { var x = this, Decimal = x['constructor']; x = new Decimal(x); return d == null || !checkArg( x, d, 'toSD', 1 ) ? rnd( x, Decimal['precision'], Decimal['rounding'] ) : rnd( x, d | 0, checkRM( x, rm, 'toSD' ) ); }; /* * Return a string representing the value of this Decimal in base b, or base 10 if b is * omitted. If a base is specified, including base 10, round to precision significant digits * using rounding mode rounding. * * Return exponential notation if a base is not specified, and this Decimal has a positive * exponent equal to or greater than toExpPos, or a negative exponent equal to or less than * toExpNeg. * * [b] {number} Base. Integer, 2 to 64 inclusive. * */ P['toString'] = function (b) { var u, str, strL, x = this, Decimal = x['constructor'], xe = x['e']; // Infinity or NaN? if ( xe === null ) { str = x['s'] ? 'Infinity' : 'NaN'; // Exponential format? } else if ( b === u && ( xe <= Decimal['toExpNeg'] || xe >= Decimal['toExpPos'] ) ) { return format( x, null, Decimal['rounding'], 1 ); } else { str = coefficientToString( x['c'] ); // Negative exponent? if ( xe < 0 ) { // Prepend zeros. for ( ; ++xe; str = '0' + str ); str = '0.' + str; // Positive exponent? } else if ( strL = str.length, xe > 0 ) { if ( ++xe > strL ) { // Append zeros. for ( xe -= strL; xe-- ; str += '0' ); } else if ( xe < strL ) { str = str.slice( 0, xe ) + '.' + str.slice(xe); } // Exponent zero. } else { u = str.charAt(0); if ( strL > 1 ) { str = u + '.' + str.slice(1); // Avoid '-0' } else if ( u == '0' ) { return u; } } if ( b != null ) { if ( !( outOfRange = !( b >= 2 && b < 65 ) ) && ( b == (b | 0) || !Decimal['errors'] ) ) { str = convertBase( Decimal, str, b | 0, 10, x['s'] ); // Avoid '-0' if ( str == '0' ) { return str; } } else { // 'toString() base not an integer: {b}' // 'toString() base out of range: {b}' ifExceptionsThrow( Decimal, 'base', b, 'toString', 0 ); } } } return x['s'] < 0 ? '-' + str : str; }; /* * Return a new Decimal whose value is the value of this Decimal truncated to a whole number. * */ P['truncated'] = P['trunc'] = function () { return rnd( new this['constructor'](this), this['e'] + 1, 1 ); }; /* * Return as toString, but do not accept a base argument. * * Ensures that JSON.stringify() uses toString for serialization. * */ P['valueOf'] = P['toJSON'] = function () { return this.toString(); }; /* // Add aliases to match BigDecimal method names. P['add'] = P['plus']; P['subtract'] = P['minus']; P['multiply'] = P['times']; P['divide'] = P['div']; P['remainder'] = P['mod']; P['compareTo'] = P['cmp']; P['negate'] = P['neg']; */ // Private functions for Decimal.prototype methods. /* * coefficientToString * checkRoundingDigits * checkRM * checkArg * convertBase * div * exp * format * getCoeffLength * ifExceptionsThrow * intPow * ln * rnd */ function coefficientToString(a) { var s, z, i = 1, j = a.length, r = a[0] + ''; for ( ; i < j; i++ ) { s = a[i] + ''; for ( z = LOGBASE - s.length; z--; ) { s = '0' + s; } r += s; } for ( j = r.length; r.charAt(--j) == '0'; ); return r.slice( 0, j + 1 || 1 ); } /* * Check 5 rounding digits if repeating is null, 4 otherwise. * repeating == null if caller is log or pow, * repeating != null if caller is ln or exp. * * // Previous, much simpler implementation when coefficient was base 10. function checkRoundingDigits( c, i, rm, repeating ) { return ( !repeating && rm > 3 && c[i] == 4 || ( repeating || rm < 4 ) && c[i] == 9 ) && c[i + 1] == 9 && c[i + 2] == 9 && c[i + 3] == 9 && ( repeating != null || c[i + 4] == 9 ) || repeating == null && ( c[i] == 5 || !c[i] ) && !c[i + 1] && !c[i + 2] && !c[i + 3] && !c[i + 4]; } */ function checkRoundingDigits( c, i, rm, repeating ) { var ci, k, n, r, rd; // Get the length of the first element of the array c. for ( k = 1, n = c[0]; n >= 10; n /= 10, k++ ); n = i - k; // Is the rounding digit in the first element of c? if ( n < 0 ) { n += LOGBASE; ci = 0; } else { ci = Math.ceil( ( n + 1 ) / LOGBASE ); n %= LOGBASE; } k =mathpow( 10, LOGBASE - n ); rd = c[ci] % k | 0; if ( repeating == null ) { if ( n < 3 ) { if ( n == 0 ) { rd = rd / 100 | 0; } else if ( n == 1 ) { rd = rd / 10 | 0; } r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 50000 || rd == 0; } else { r = ( rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2 ) && ( c[ci + 1] / k / 100 | 0 ) == mathpow( 10, n - 2 ) - 1 || ( rd == k / 2 || rd == 0 ) && ( c[ci + 1] / k / 100 | 0 ) == 0; } } else { if ( n < 4 ) { if ( n == 0 ) { rd = rd / 1000 | 0; } else if ( n == 1 ) { rd = rd / 100 | 0; } else if ( n == 2 ) { rd = rd / 10 | 0; } r = ( repeating || rm < 4 ) && rd == 9999 || !repeating && rm > 3 && rd == 4999; } else { r = ( ( repeating || rm < 4 ) && rd + 1 == k || ( !repeating && rm > 3 ) && rd + 1 == k / 2 ) && ( c[ci + 1] / k / 1000 | 0 ) == mathpow( 10, n - 3 ) - 1; } } return r; } /* * Check and return rounding mode. If rm is invalid, return rounding mode rounding. */ function checkRM( x, rm, method ) { var Decimal = x['constructor']; return rm == null || ( ( outOfRange = rm < 0 || rm > 8 ) || rm !== 0 && ( Decimal['errors'] ? parseInt : parseFloat )(rm) != rm ) && !ifExceptionsThrow( Decimal, 'rounding mode', rm, method, 0 ) ? Decimal['rounding'] : rm | 0; } /* * Check that argument n is in range, return true or false. */ function checkArg( x, n, method, min ) { var Decimal = x['constructor']; return !( outOfRange = n < ( min || 0 ) || n >= MAX_DIGITS + 1 ) && /* * Include 'n === 0' because Opera has 'parseFloat(-0) == -0' as false * despite having 'parseFloat(-0) === -0 && parseFloat('-0') === -0 && 0 == -0' as true. */ ( n === 0 || ( Decimal['errors'] ? parseInt : parseFloat )(n) == n ) || ifExceptionsThrow( Decimal, 'argument', n, method, 0 ); } /* * Convert a numeric string of baseIn to a numeric string of baseOut. */ convertBase = (function () { /* * Convert string of baseIn to an array of numbers of baseOut. * Eg. convertBase('255', 10, 16) returns [15, 15]. * Eg. convertBase('ff', 16, 10) returns [2, 5, 5]. */ function toBaseOut( str, baseIn, baseOut ) { var j, arr = [0], arrL, i = 0, strL = str.length; for ( ; i < strL; ) { for ( arrL = arr.length; arrL--; arr[arrL] *= baseIn ); arr[ j = 0 ] += NUMERALS.indexOf( str.charAt( i++ ) ); for ( ; j < arr.length; j++ ) { if ( arr[j] > baseOut - 1 ) { if ( arr[j + 1] == null ) { arr[j + 1] = 0; } arr[j + 1] += arr[j] / baseOut | 0; arr[j] %= baseOut; } } } return arr.reverse(); } return function ( Decimal, str, baseOut, baseIn, sign ) { var e, j, r, x, xc, y, i = str.indexOf( '.' ), pr = Decimal['precision'], rm = Decimal['rounding']; if ( baseIn < 37 ) { str = str.toLowerCase(); } // Non-integer. if ( i >= 0 ) { str = str.replace( '.', '' ); y = new Decimal(baseIn); x = intPow( Decimal, y, str.length - i ); /* Convert str as if an integer, then divide the result by its base raised to a power such that the fraction part will be restored. Use toFixed to avoid possible exponential notation. */ y['c'] = toBaseOut( x.toFixed(), 10, baseOut ); y['e'] = y['c'].length; } // Convert the number as integer. xc = toBaseOut( str, baseIn, baseOut ); e = j = xc.length; // Remove trailing zeros. for ( ; xc[--j] == 0; xc.pop() ); if ( !xc[0] ) { return '0'; } if ( i < 0 ) { e--; } else { x['c'] = xc; x['e'] = e; // sign is needed for correct rounding. x['s'] = sign; x = div( x, y, pr, rm, 0, baseOut ); xc = x['c']; r = x['r']; e = x['e']; } // The rounding digit, i.e. the digit after the digit that may be rounded up. i = xc[pr]; j = baseOut / 2; r = r || xc[pr + 1] != null; if ( rm < 4 ? ( i != null || r ) && ( rm == 0 || rm == ( x['s'] < 0 ? 3 : 2 ) ) : i > j || i == j && ( rm == 4 || r || rm == 6 && xc[pr - 1] & 1 || rm == ( x['s'] < 0 ? 8 : 7 ) ) ) { xc.length = pr; // Rounding up may mean the previous digit has to be rounded up and so on. for ( --baseOut; ++xc[--pr] > baseOut; ) { xc[pr] = 0; if ( !pr ) { ++e; xc.unshift(1); } } } else { xc.length = pr; } // Determine trailing zeros. for ( j = xc.length; !xc[--j]; ); // E.g. [4, 11, 15] becomes 4bf. for ( i = 0, str = ''; i <= j; str += NUMERALS.charAt( xc[i++] ) ); // Negative exponent? if ( e < 0 ) { // Prepend zeros. for ( ; ++e; str = '0' + str ); str = '0.' + str; // Positive exponent? } else { i = str.length; if ( ++e > i ) { // Append zeros. for ( e -= i; e-- ; str += '0' ); } else if ( e < i ) { str = str.slice( 0, e ) + '.' + str.slice(e); } } // No negative numbers: the caller will add the sign. return str; } })(); /* * Perform division in the specified base. Called by div and convertBase. */ var div = ( function () { // Assumes non-zero x and k, and hence non-zero result. function multiplyInteger( x, k, base ) { var temp, carry = 0, i = x.length; for ( x = x.slice(); i--; ) { temp = x[i] * k + carry; x[i] = temp % base | 0; carry = temp / base | 0; } if (carry) { x.unshift(carry); } return x; } function compare( a, b, aL, bL ) { var i, cmp; if ( aL != bL ) { cmp = aL > bL ? 1 : -1; } else { for ( i = cmp = 0; i < aL; i++ ) { if ( a[i] != b[i] ) { cmp = a[i] > b[i] ? 1 : -1; break; } } } return cmp; } function subtract( a, b, aL, base ) { var i = 0; // Subtract b from a. for ( ; aL--; ) { a[aL] -= i; i = a[aL] < b[aL] ? 1 : 0; a[aL] = i * base + a[aL] - b[aL]; } // Remove leading zeros. for ( ; !a[0] && a.length > 1; a.shift() ); } // x: dividend, y: divisor. return function ( x, y, pr, rm, dp, base ) { var cmp, e, i, logbase, more, n, prod, prodL, q, qc, rem, remL, rem0, t, xi, xL, yc0, yL, yz, Decimal = x['constructor'], s = x['s'] == y['s'] ? 1 : -1, xc = x['c'], yc = y['c']; // Either NaN, Infinity or 0? if ( !xc || !xc[0] || !yc || !yc[0] ) { return new Decimal( // Return NaN if either NaN, or both Infinity or 0. !x['s'] || !y['s'] || ( xc ? yc && xc[0] == yc[0] : !yc ) ? NaN : // Return +-0 if x is 0 or y is +-Infinity, or return +-Infinity as y is 0. xc && xc[0] == 0 || !yc ? s * 0 : s / 0 ); } if (base) { logbase = 1; e = x['e'] - y['e']; } else { base = BASE; logbase = LOGBASE; e = mathfloor( x['e'] / logbase ) - mathfloor( y['e'] / logbase ); } yL = yc.length; xL = xc.length; q = new Decimal(s); qc = q['c'] = []; // Result exponent may be one less then the current value of e. // The coefficients of the Decimals from convertBase may have trailing zeros. for ( i = 0; yc[i] == ( xc[i] || 0 ); i++ ); if ( yc[i] > ( xc[i] || 0 ) ) { e--; } if ( pr == null ) { s = pr = Decimal['precision']; rm = Decimal['rounding']; } else if (dp) { s = pr + ( x['e'] - y['e'] ) + 1; } else { s = pr; } if ( s < 0 ) { qc.push(1); more = true; } else { // Convert base 10 decimal places to base 1e7 decimal places. s = s / logbase + 2 | 0; i = 0; // divisor < 1e7 if ( yL == 1 ) { n = 0; yc = yc[0]; s++; // 'n' is the carry. for ( ; ( i < xL || n ) && s--; i++ ) { t = n * base + ( xc[i] || 0 ); qc[i] = t / yc | 0; n = t % yc | 0; } more = n || i < xL; // divisor >= 1e7 } else { // Normalise xc and yc so highest order digit of yc is >= base/2 n = base / ( yc[0] + 1 ) | 0; if ( n > 1 ) { yc = multiplyInteger( yc, n, base ); xc = multiplyInteger( xc, n, base ); yL = yc.length; xL = xc.length; } xi = yL; rem = xc.slice( 0, yL ); remL = rem.length; // Add zeros to make remainder as long as divisor. for ( ; remL < yL; rem[remL++] = 0 ); yz = yc.slice(); yz.unshift(0); yc0 = yc[0]; if ( yc[1] >= base / 2 ) { yc0++; } do { n = 0; // Compare divisor and remainder. cmp = compare( yc, rem, yL, remL ); // If divisor < remainder. if ( cmp < 0 ) { // Calculate trial digit, n. rem0 = rem[0]; if ( yL != remL ) { rem0 = rem0 * base + ( rem[1] || 0 ); } // n will be how many times the divisor goes into the current remainder. n = rem0 / yc0 | 0; /* Algorithm: 1. product = divisor * trial digit (n) 2. if product > remainder: product -= divisor, n-- 3. remainder -= product 4. if product was < remainder at 2: 5. compare new remainder and divisor 6. If remainder > divisor: remainder -= divisor, n++ */ if ( n > 1 ) { if ( n >= base ) { n = base - 1; } // product = divisor * trial digit. prod = multiplyInteger( yc, n, base ); prodL = prod.length; remL = rem.length; // Compare product and remainder. cmp = compare( prod, rem, prodL, remL ); // product > remainder. if ( cmp == 1 ) { n--; // Subtract divisor from product. subtract( prod, yL < prodL ? yz : yc, prodL, base ); } } else { // cmp is -1. // If n is 0, there is no need to compare yc and rem again below, so change cmp to 1 to avoid it. // If n is 1 there IS a need to compare yc and rem again below. if ( n == 0 ) { cmp = n = 1; } prod = yc.slice(); } prodL = prod.length; if ( prodL < remL ) { prod.unshift(0); } // Subtract product from remainder. subtract( rem, prod, remL, base ); // If product was < previous remainder. if ( cmp == -1 ) { remL = rem.length; // Compare divisor and new remainder. cmp = compare( yc, rem, yL, remL ); // If divisor < new remainder, subtract divisor from remainder. if ( cmp < 1 ) { n++; // Subtract divisor from remainder. subtract( rem, yL < remL ? yz : yc, remL, base ); } } remL = rem.length; } else if ( cmp === 0 ) { n++; rem = [0]; } // if cmp === 1, n will be 0 // Add the next digit, n, to the result array. qc[i++] = n; // Update the remainder. if ( cmp && rem[0] ) { rem[remL++] = xc[xi] || 0; } else { rem = [ xc[xi] ]; remL = 1; } } while ( ( xi++ < xL || rem[0] != null ) && s-- ); more = rem[0] != null; } // Leading zero? if ( !qc[0] ) { qc.shift(); } } // If div is being used for base conversion. if ( logbase == 1 ) { q['e'] = e; q['r'] = +more; } else { // To calculate q.e, first get the number of digits of qc[0]. for ( i = 1, s = qc[0]; s >= 10; s /= 10, i++ ); q['e'] = i + e * logbase - 1; rnd( q, dp ? pr + q['e'] + 1 : pr, rm, more ); } return q; } })(); /* * Taylor/Maclaurin series. * * exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ... * * Argument reduction: * Repeat x = x / 32, k += 5, until |x| < 0.1 * exp(x) = exp(x / 2^k)^(2^k) * * Previously, the argument was initially reduced by * exp(x) = exp(r) * 10^k where r = x - k * ln10, k = floor(x / ln10) * to first put r in the range [0, ln10], before dividing by 32 until |x| < 0.1, but this was * found to be slower than just dividing repeatedly by 32 as above. * * Max integer argument: exp('20723265836946413') = 6.3e+9000000000000000 * Min integer argument: exp('-20723265836946411') = 1.2e-9000000000000000 * ( Math object integer min/max: Math.exp(709) = 8.2e+307, Math.exp(-745) = 5e-324 ) * * exp(Infinity) = Infinity * exp(-Infinity) = 0 * exp(NaN) = NaN * exp(+-0) = 1 * * exp(x) is non-terminating for any finite, non-zero x. * * The result will always be correctly rounded. * */ function exp( x, pr ) { var denom, guard, j, pow, sd, sum, t, rep = 0, i = 0, k = 0, Decimal = x['constructor'], one = Decimal['ONE'], rm = Decimal['rounding'], precision = Decimal['precision']; // 0/NaN/Infinity? if ( !x['c'] || !x['c'][0] || x['e'] > 17 ) { return new Decimal( x['c'] ? !x['c'][0] ? one : x['s'] < 0 ? 0 : 1 / 0 : x['s'] ? x['s'] < 0 ? 0 : x : NaN ); } if ( pr == null ) { /* Estimate result exponent. e^x = 10^j, where j = x * log10(e) and log10(e) = ln(e) / ln(10) = 1 / ln(10), so j = x / ln(10) j = mathfloor( x / Math.LN10 ); // Overflow/underflow? Estimate may be +-1 of true value. if ( j > Decimal['maxE'] + 1 || j < Decimal['minE'] - 1 ) { return new Decimal( j > 0 ? 1 / 0 : 0 ); } */ external = false; sd = precision; } else { sd = pr; } t = new Decimal(0.03125); // while abs(x) >= 0.1 while ( x['e'] > -2 ) { // x = x / 2^5 x = x['times'](t); k += 5; } /* Use 2 * log10(2^k) + 5 to estimate the increase in precision necessary to ensure the first 4 rounding digits are correct. */ guard = Math.log( mathpow( 2, k ) ) / Math.LN10 * 2 + 5 | 0; sd += guard; denom = pow = sum = new Decimal(one); Decimal['precision'] = sd; for ( ; ; ) { pow = rnd( pow['times'](x), sd, 1 ); denom = denom['times'](++i); t = sum['plus']( div( pow, denom, sd, 1 ) ); if ( coefficientToString( t['c'] ).slice( 0, sd ) === coefficientToString( sum['c'] ).slice( 0, sd ) ) { j = k; while ( j-- ) { sum = rnd( sum['times'](sum), sd, 1 ); } /* Check to see if the first 4 rounding digits are [49]999. If so, repeat the summation with a higher precision, otherwise E.g. with precision: 18, rounding: 1 exp(18.404272462595034083567793919843761) = 98372560.1229999999 when it should be 98372560.123 sd - guard is the index of first rounding digit. */ if ( pr == null ) { if ( rep < 3 && checkRoundingDigits( sum['c'], sd - guard, rm, rep ) ) { Decimal['precision'] = sd += 10; denom = pow = t = new Decimal(one); i = 0; rep++; } else { return rnd( sum, Decimal['precision'] = precision, rm, external = true ); } } else { Decimal['precision'] = precision; return sum; } } sum = t; } } /* * Return a string representing the value of Decimal n in normal or exponential notation * rounded to the specified decimal places or significant digits. * Called by toString, toExponential (k is 1), toFixed, and toPrecision (k is 2). * i is the index (with the value in normal notation) of the digit that may be rounded up. * j is the rounding mode, then the number of digits required including fraction-part trailing * zeros. */ function format( n, i, j, k ) { var s, z, Decimal = n['constructor'], e = ( n = new Decimal(n) )['e']; // i == null when toExponential(no arg), or toString() when x >= toExpPos etc. if ( i == null ) { j = 0; } else { rnd( n, ++i, j ); // If toFixed, n['e'] may have changed if the value was rounded up. j = k ? i : i + n['e'] - e; } e = n['e']; s = coefficientToString( n['c'] ); /* toPrecision returns exponential notation if the number of significant digits specified is less than the number of digits necessary to represent the integer part of the value in normal notation. */ // Exponential notation. if ( k == 1 || k == 2 && ( i <= e || e <= Decimal['toExpNeg'] ) ) { // Append zeros? for ( ; s.length < j; s += '0' ); if ( s.length > 1 ) { s = s.charAt(0) + '.' + s.slice(1); } s += ( e < 0 ? 'e' : 'e+' ) + e; // Normal notation. } else { k = s.length; // Negative exponent? if ( e < 0 ) { z = j - k; // Prepend zeros. for ( ; ++e; s = '0' + s ); s = '0.' + s; // Positive exponent? } else { if ( ++e > k ) { z = j - e; // Append zeros. for ( e -= k; e-- ; s += '0' ); if ( z > 0 ) { s += '.'; } } else { z = j - k; if ( e < k ) { s = s.slice( 0, e ) + '.' + s.slice(e); } else if ( z > 0 ) { s += '.'; } } } // Append more zeros? if ( z > 0 ) { for ( ; z--; s += '0' ); } } return n['s'] < 0 && n['c'][0] ? '-' + s : s; } function getCoeffLength(c) { var v = c.length - 1, n = v * LOGBASE + 1; if ( v = c[v] ) { // Subtract the number of trailing zeros of the last number. for ( ; v % 10 == 0; v /= 10, n-- ); // Add the number of digits of the first number. for ( v = c[0]; v >= 10; v /= 10, n++ ); } return n; } /* * Assemble error messages. Throw Decimal Errors. */ function ifExceptionsThrow( Decimal, message, arg, method, more ) { if ( Decimal['errors'] ) { var error = new Error( ( method || [ 'new Decimal', 'cmp', 'div', 'eq', 'gt', 'gte', 'lt', 'lte', 'minus', 'mod', 'plus', 'times', 'toFraction', 'pow', 'random', 'log', 'sqrt', 'toNearest', 'divToInt' ][ id ? id < 0 ? -id : id : 1 / id < 0 ? 1 : 0 ] ) + '() ' + ( [ 'number type has more than 15 significant digits', 'LN10 out of digits' ][message] || message + ( [ outOfRange ? ' out of range' : ' not an integer', ' not a boolean or binary digit' ][more] || '' ) ) + ': ' + arg ); error['name'] = 'Decimal Error'; outOfRange = id = 0; throw error; } } /* * Use 'exponentiation by squaring' for small integers. Called by convertBase and pow. */ function intPow( Decimal, x, i ) { var r = new Decimal( Decimal['ONE'] ); for ( external = false; ; ) { if ( i & 1 ) { r = r['times'](x); } i >>= 1; if ( !i ) { break; } x = x['times'](x); } external = true; return r; } /* * ln(-n) = NaN * ln(0) = -Infinity * ln(-0) = -Infinity * ln(1) = 0 * ln(Infinity) = Infinity * ln(-Infinity) = NaN * ln(NaN) = NaN * * ln(n) (n != 1) is non-terminating. * */ function ln( y, pr ) { var c, c0, denom, e, num, rep, sd, sum, t, x1, x2, n = 1, guard = 10, x = y, xc = x['c'], Decimal = x['constructor'], one = Decimal['ONE'], rm = Decimal['rounding'], precision = Decimal['precision']; // x < 0 or +-Infinity/NaN or 0 or 1. if ( x['s'] < 0 || !xc || !xc[0] || !x['e'] && xc[0] == 1 && xc.length == 1 ) { return new Decimal( xc && !xc[0] ? -1 / 0 : x['s'] != 1 ? NaN : xc ? 0 : x ); } if ( pr == null ) { external = false; sd = precision; } else { sd = pr; } Decimal['precision'] = sd += guard; c = coefficientToString(xc); c0 = c.charAt(0); if ( Math.abs( e = x['e'] ) < 1.5e15 ) { /* Argument reduction. The series converges faster the closer the argument is to 1, so using ln(a^b) = b * ln(a), ln(a) = ln(a^b) / b multiply the argument by itself until the leading digits of the significand are 7, 8, 9, 10, 11, 12 or 13, recording the number of multiplications so the sum of the series can later be divided by this number, then separate out the power of 10 using ln(a*10^b) = ln(a) + b*ln(10). */ // max n is 21 ( gives 0.9, 1.0 or 1.1 ) ( 9e15 / 21 = 4.2e14 ). //while ( c0 < 9 && c0 != 1 || c0 == 1 && c.charAt(1) > 1 ) { // max n is 6 ( gives 0.7 - 1.3 ) while ( c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3 ) { x = x['times'](y); c = coefficientToString( x['c'] ); c0 = c.charAt(0); n++; } e = x['e']; if ( c0 > 1 ) { x = new Decimal( '0.' + c ); e++; } else { x = new Decimal( c0 + '.' + c.slice(1) ); } } else { /* The argument reduction method above may result in overflow if the argument y is a massive number with exponent >= 1500000000000000 ( 9e15 / 6 = 1.5e15 ), so instead recall this function using ln(x*10^e) = ln(x) + e*ln(10). */ x = new Decimal( c0 + '.' + c.slice(1) ); if ( sd + 2 > LN10.length ) { ifExceptionsThrow( Decimal, 1, sd + 2, 'ln' ); } x = ln( x, sd - guard )['plus']( new Decimal( LN10.slice( 0, sd + 2 ) )['times']( e + '' ) ); Decimal['precision'] = precision; return pr == null ? rnd( x, precision, rm, external = true ) : x; } // x1 is x reduced to a value near 1. x1 = x; /* Taylor series. ln(y) = ln( (1 + x)/(1 - x) ) = 2( x + x^3/3 + x^5/5 + x^7/7 + ... ) where x = (y - 1)/(y + 1) ( |x| < 1 ) */ sum = num = x = div( x['minus'](one), x['plus'](one), sd, 1 ); x2 = rnd( x['times'](x), sd, 1 ); denom = 3; for ( ; ; ) { num = rnd( num['times'](x2), sd, 1 ); t = sum['plus']( div( num, new Decimal(denom), sd, 1 ) ); if ( coefficientToString( t['c'] ).slice( 0, sd ) === coefficientToString( sum['c'] ).slice( 0, sd ) ) { sum = sum['times'](2); /* Reverse the argument reduction. Check that e is not 0 because, as well as preventing an unnecessary calculation, -0 + 0 = +0 and to ensure correct rounding later -0 needs to stay -0. */ if ( e !== 0 ) { if ( sd + 2 > LN10.length ) { ifExceptionsThrow( Decimal, 1, sd + 2, 'ln' ); } sum = sum['plus']( new Decimal( LN10.slice( 0, sd + 2 ) )['times']( e + '' ) ); } sum = div( sum, new Decimal(n), sd, 1 ); /* Is rm > 3 and the first 4 rounding digits 4999, or rm < 4 (or the summation has been repeated previously) and the first 4 rounding digits 9999? If so, restart the summation with a higher precision, otherwise E.g. with precision: 12, rounding: 1 ln(135520028.6126091714265381533) = 18.7246299999 when it should be 18.72463. sd - guard is the index of first rounding digit. */ if ( pr == null ) { if ( checkRoundingDigits( sum['c'], sd - guard, rm, rep ) ) { Decimal['precision'] = sd += guard; t = num = x = div( x1['minus'](one), x1['plus'](one), sd, 1 ); x2 = rnd( x['times'](x), sd, 1 ); denom = rep = 1; } else { return rnd( sum, Decimal['precision'] = precision, rm, external = true ); } } else { Decimal['precision'] = precision; return sum; } } sum = t; denom += 2; } } /* * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. */ function rnd( x, sd, rm, r ) { var digits, i, j, k, n, rd, xc, xci, Decimal = x['constructor']; // Don't round if sd is null or undefined. r: if ( sd != i ) { // Infinity/NaN. if ( !( xc = x['c'] ) ) { return x; } /* rd, the rounding digit, i.e. the digit after the digit that may be rounded up, n, a base 1e7 number, the element of xc containing rd, xci, the index of n within xc, digits, the number of digits of n, i, what would be the index of rd within n if all the numbers were 7 digits long (i.e. they had leading zeros) j, if > 0, the actual index of rd within n (if < 0, rd is a leading zero), nLeadingZeros, the number of leading zeros n would have if it were 7 digits long. */ // Get the length of the first element of the coefficient array xc. for ( digits = 1, k = xc[0]; k >= 10; k /= 10, digits++ ); i = sd - digits; // Is the rounding digit in the first element of xc? if ( i < 0 ) { i += LOGBASE; j = sd; n = xc[ xci = 0 ]; // Get the rounding digit at index j of n. rd = n / mathpow( 10, digits - j - 1 ) % 10 | 0; } else { xci = Math.ceil( ( i + 1 ) / LOGBASE ); if ( xci >= xc.length ) { if (r) { // Needed by exp, ln and sqrt. for ( ; xc.length <= xci; xc.push(0) ); n = rd = 0; digits = 1; i %= LOGBASE; j = i - LOGBASE + 1; } else { break r; } } else { n = k = xc[xci]; // Get the number of digits of n. for ( digits = 1; k >= 10; k /= 10, digits++ ); // Get the index of rd within n. i %= LOGBASE; // Get the index of rd within n, adjusted for leading zeros. // The number of leading zeros of n is given by LOGBASE - digits. j = i - LOGBASE + digits; // Get the rounding digit at index j of n. // Floor using Math.floor instead of | 0 as rd may be outside int range. rd = j < 0 ? 0 : mathfloor( n / mathpow( 10, digits - j - 1 ) % 10 ); } } r = r || sd < 0 || // Are there any non-zero digits after the rounding digit? xc[xci + 1] != null || ( j < 0 ? n : n % mathpow( 10, digits - j - 1 ) ); /* The expression n % mathpow( 10, digits - j - 1 ) returns all the digits of n to the right of the digit at (left-to-right) index j, e.g. if n is 908714 and j is 2, the expression will give 714. */ r = rm < 4 ? ( rd || r ) && ( rm == 0 || rm == ( x['s'] < 0 ? 3 : 2 ) ) : rd > 5 || rd == 5 && ( rm == 4 || r || // Check whether the digit to the left of the rounding digit is odd. rm == 6 && ( ( i > 0 ? j > 0 ? n / mathpow( 10, digits - j ) : 0 : xc[xci - 1] ) % 10 ) & 1 || rm == ( x['s'] < 0 ? 8 : 7 ) ); if ( sd < 1 || !xc[0] ) { xc.length = 0; if (r) { // Convert sd to decimal places. sd -= x['e'] + 1; // 1, 0.1, 0.01, 0.001, 0.0001 etc. xc[0] = mathpow( 10, sd % LOGBASE ); x['e'] = -sd || 0; } else { // Zero. xc[0] = x['e'] = 0; } return x; } // Remove excess digits. if ( i == 0 ) { xc.length = xci; k = 1; xci--; } else { xc.length = xci + 1; k = mathpow( 10, LOGBASE - i ); // E.g. 56700 becomes 56000 if 7 is the rounding digit. // j > 0 means i > number of leading zeros of n. xc[xci] = j > 0 ? ( n / mathpow( 10, digits - j ) % mathpow( 10, j ) | 0 ) * k : 0; } // Round up? if (r) { for ( ; ; ) { // Is the digit to be rounded up in the first element of xc. if ( xci == 0 ) { // i will be the length of xc[0] before k is added. for ( i = 1, j = xc[0]; j >= 10; j /= 10, i++ ); j = xc[0] += k; for ( k = 1; j >= 10; j /= 10, k++ ); // if i != k the length has increased. if ( i != k ) { x['e']++; if ( xc[0] == BASE ) { xc[0] = 1; } } break; } else { xc[xci] += k; if ( xc[xci] != BASE ) { break; } xc[xci--] = 0; k = 1; } } } // Remove trailing zeros. for ( i = xc.length; xc[--i] === 0; xc.pop() ); } if (external) { // Overflow? if ( x['e'] > Decimal['maxE'] ) { // Infinity. x['c'] = x['e'] = null; // Underflow? } else if ( x['e'] < Decimal['minE'] ) { // Zero. x['c'] = [ x['e'] = 0 ]; } } return x; } DecimalConstructor = (function () { // Private functions used by static Decimal methods. /* * The following emulations or wrappers of Math object functions are currently * commented-out and not in the public API. * * abs * acos * asin * atan * atan2 * ceil * cos * floor * round * sin * tan * trunc */ /* * Return a new Decimal whose value is the absolute value of n. * * n {number|string|Decimal} * function abs(n) { return new this(n)['abs']() } */ /* * Return a new Decimal whose value is the arccosine in radians of n. * * n {number|string|Decimal} * function acos(n) { return new this( Math.acos(n) + '' ) } */ /* * Return a new Decimal whose value is the arcsine in radians of n. * * n {number|string|Decimal} * function asin(n) { return new this( Math.asin(n) + '' ) } */ /* * Return a new Decimal whose value is the arctangent in radians of n. * * n {number|string|Decimal} * function atan(n) { return new this( Math.atan(n) + '' ) } */ /* * Return a new Decimal whose value is the arctangent in radians of y/x in the range * -PI to PI (inclusive). * * y {number|string|Decimal} The y-coordinate. * x {number|string|Decimal} The x-coordinate. * function atan2( y, x ) { return new this( Math.atan2( y, x ) + '' ) } */ /* * Return a new Decimal whose value is n round to an integer using ROUND_CEIL. * * n {number|string|Decimal} * function ceil(n) { return new this(n)['ceil']() } */ /* * Configure global settings for a Decimal constructor. * * obj is an object with any of the following properties, * * precision {number} * rounding {number} * toExpNeg {number} * toExpPos {number} * minE {number} * maxE {number} * errors {boolean|number} * crypto {boolean|number} * modulo {number} * * E.g. * Decimal.config({ precision: 20, rounding: 4 }) * */ function config(obj) { var p, u, v, Decimal = this, c = 'config', parse = Decimal['errors'] ? parseInt : parseFloat; if ( obj == u || typeof obj != 'object' && !ifExceptionsThrow( Decimal, 'object expected', obj, c ) ) { return Decimal; } // precision {number|number[]} Integer, 1 to MAX_DIGITS inclusive. if ( ( v = obj[ p = 'precision' ] ) != u ) { if ( !( outOfRange = v < 1 || v > MAX_DIGITS ) && parse(v) == v ) { Decimal[p] = v | 0; } else { // 'config() precision not an integer: {v}' // 'config() precision out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } // rounding {number} Integer, 0 to 8 inclusive. if ( ( v = obj[ p = 'rounding' ] ) != u ) { if ( !( outOfRange = v < 0 || v > 8 ) && parse(v) == v ) { Decimal[p] = v | 0; } else { // 'config() rounding not an integer: {v}' // 'config() rounding out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } // toExpNeg {number} Integer, -EXP_LIMIT to 0 inclusive. if ( ( v = obj[ p = 'toExpNeg' ] ) != u ) { if ( !( outOfRange = v < -EXP_LIMIT || v > 0 ) && parse(v) == v ) { Decimal[p] = mathfloor(v); } else { // 'config() toExpNeg not an integer: {v}' // 'config() toExpNeg out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } // toExpPos {number} Integer, 0 to EXP_LIMIT inclusive. if ( ( v = obj[ p = 'toExpPos' ] ) != u ) { if ( !( outOfRange = v < 0 || v > EXP_LIMIT ) && parse(v) == v ) { Decimal[p] = mathfloor(v); } else { // 'config() toExpPos not an integer: {v}' // 'config() toExpPos out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } // minE {number} Integer, -EXP_LIMIT to 0 inclusive. if ( ( v = obj[ p = 'minE' ] ) != u ) { if ( !( outOfRange = v < -EXP_LIMIT || v > 0 ) && parse(v) == v ) { Decimal[p] = mathfloor(v); } else { // 'config() minE not an integer: {v}' // 'config() minE out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } // maxE {number} Integer, 0 to EXP_LIMIT inclusive. if ( ( v = obj[ p = 'maxE' ] ) != u ) { if ( !( outOfRange = v < 0 || v > EXP_LIMIT ) && parse(v) == v ) { Decimal[p] = mathfloor(v); } else { // 'config() maxE not an integer: {v}' // 'config() maxE out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } // errors {boolean|number} true, false, 1 or 0. if ( ( v = obj[ p = 'errors' ] ) != u ) { if ( v === !!v || v === 1 || v === 0 ) { outOfRange = id = 0; Decimal[p] = !!v; } else { // 'config() errors not a boolean or binary digit: {v}' ifExceptionsThrow( Decimal, p, v, c, 1 ); } } // crypto {boolean|number} true, false, 1 or 0. if ( ( v = obj[ p = 'crypto' ] ) != u ) { if ( v === !!v || v === 1 || v === 0 ) { Decimal[p] = !!( v && crypto && typeof crypto == 'object' ); } else { // 'config() crypto not a boolean or binary digit: {v}' ifExceptionsThrow( Decimal, p, v, c, 1 ); } } // modulo {number} Integer, 0 to 9 inclusive. if ( ( v = obj[ p = 'modulo' ] ) != u ) { if ( !( outOfRange = v < 0 || v > 9 ) && parse(v) == v ) { Decimal[p] = v | 0; } else { // 'config() modulo not an integer: {v}' // 'config() modulo out of range: {v}' ifExceptionsThrow( Decimal, p, v, c, 0 ); } } return Decimal; } /* * Return a new Decimal whose value is the cosine of n. * * n {number|string|Decimal} A number given in radians. * function cos(n) { return new this( Math.cos(n) + '' ) } */ /* * Return a new Decimal whose value is the exponential of n, * * n {number|string|Decimal} The power to which to raise the base of the natural log. * */ function exp(n) { return new this(n)['exp']() } /* * Return a new Decimal whose value is n round to an integer using ROUND_FLOOR. * * n {number|string|Decimal} * function floor(n) { return new this(n)['floor']() } */ /* * Return a new Decimal whose value is the natural logarithm of n. * * n {number|string|Decimal} * */ function ln(n) { return new this(n)['ln']() } /* * Return a new Decimal whose value is the log of x to the base y, or to base 10 if no * base is specified. * * log[y](x) * * x {number|string|Decimal} The argument of the logarithm. * y {number|string|Decimal} The base of the logarithm. * */ function log( x, y ) { return new this(x)['log'](y) } /* * Handle max and min. ltgt is 'lt' or 'gt'. */ function maxOrMin( Decimal, args, ltgt ) { var m, n, i = 0; if ( toString.call( args[0] ) == '[object Array]' ) { args = args[0]; } m = new Decimal( args[0] ); for ( ; ++i < args.length; ) { n = new Decimal( args[i] ); if ( !n['s'] ) { m = n; break; } else if ( m[ltgt](n) ) { m = n; } } return m; } /* * Return a new Decimal whose value is the maximum of the arguments. * * arguments {number|string|Decimal} * */ function max() { return maxOrMin( this, arguments, 'lt' ) } /* * Return a new Decimal whose value is the minimum of the arguments. * * arguments {number|string|Decimal} * */ function min() { return maxOrMin( this, arguments, 'gt' ) } /* * Parse the value of a new Decimal from a number or string. */ var parseDecimal = (function () { var isValid = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, trim = String.prototype.trim || function () {return this.replace(/^\s+|\s+$/g, '')}; return function ( Decimal, x, n, b ) { var d, e, i, isNum, orig, valid; if ( typeof n != 'string' ) { // TODO: modify so regex test below is avoided if type is number. // If n is a number, check if minus zero. n = ( isNum = typeof n == 'number' || toString.call(n) == '[object Number]' ) && n === 0 && 1 / n < 0 ? '-0' : n + ''; } orig = n; if ( b == e && isValid.test(n) ) { // Determine sign. x['s'] = n.charAt(0) == '-' ? ( n = n.slice(1), -1 ) : 1; // Either n is not a valid Decimal or a base has been specified. } else { /* Enable exponential notation to be used with base 10 argument. Ensure return value is rounded to precision as with other bases. */ if ( b == 10 ) { return rnd( new Decimal(n), Decimal['precision'], Decimal['rounding'] ); } n = trim.call(n).replace( /^\+(?!-)/, '' ); x['s'] = n.charAt(0) == '-' ? ( n = n.replace( /^-(?!-)/, '' ), -1 ) : 1; if ( b != e ) { if ( ( b == (b | 0) || !Decimal['errors'] ) && !( outOfRange = !( b >= 2 && b < 65 ) ) ) { d = '[' + NUMERALS.slice( 0, b = b | 0 ) + ']+'; // Remove the `.` from e.g. '1.', and replace e.g. '.1' with '0.1'. n = n.replace( /\.$/, '' ).replace( /^\./, '0.' ); // Any number in exponential form will fail due to the e+/-. if ( valid = new RegExp( '^' + d + '(?:\\.' + d + ')?$', b < 37 ? 'i' : '' ).test(n) ) { if (isNum) { if ( n.replace( /^0\.0*|\./, '' ).length > 15 ) { // '{method} number type has more than 15 significant digits: {n}' ifExceptionsThrow( Decimal, 0, orig ); } // Prevent later check for length on converted number. isNum = !isNum; } n = convertBase( Decimal, n, 10, b, x['s'] ); } else if ( n != 'Infinity' && n != 'NaN' ) { // '{method} not a base {b} number: {n}' ifExceptionsThrow( Decimal, 'not a base ' + b + ' number', orig ); n = 'NaN'; } } else { // '{method} base not an integer: {b}' // '{method} base out of range: {b}' ifExceptionsThrow( Decimal, 'base', b, 0, 0 ); // Ignore base. valid = isValid.test(n); } } else { valid = isValid.test(n); } if ( !valid ) { // Infinity/NaN x['c'] = x['e'] = null; // NaN if ( n != 'Infinity' ) { // No exception on NaN. if ( n != 'NaN' ) { // '{method} not a number: {n}' ifExceptionsThrow( Decimal, 'not a number', orig ); } x['s'] = null; } id = 0; return x; } } // Decimal point? if ( ( e = n.indexOf('.') ) > -1 ) { n = n.replace( '.', '' ); } // Exponential form? if ( ( i = n.search( /e/i ) ) > 0 ) { // Determine exponent. if ( e < 0 ) { e = i; } e += +n.slice( i + 1 ); n = n.substring( 0, i ); } else if ( e < 0 ) { // Integer. e = n.length; } // Determine leading zeros. for ( i = 0; n.charAt(i) == '0'; i++ ); // Determine trailing zeros. for ( b = n.length; n.charAt(--b) == '0'; ); n = n.slice( i, b + 1 ); if (n) { b = n.length; // Disallow numbers with over 15 significant digits if number type. if ( isNum && b > 15 ) { // '{method} number type has more than 15 significant digits: {n}' ifExceptionsThrow( Decimal, 0, orig ); } x['e'] = e = e - i - 1; x['c'] = []; // Transform base // e is the base 10 exponent. // i is where to slice n to get the first element of the coefficient array. i = ( e + 1 ) % LOGBASE; if ( e < 0 ) { i += LOGBASE; } // b is n.length. if ( i < b ) { if (i) { x['c'].push( +n.slice( 0, i ) ); } for ( b -= LOGBASE; i < b; ) { x['c'].push( +n.slice( i, i += LOGBASE ) ); } n = n.slice(i); i = LOGBASE - n.length; } else { i -= b; } for ( ; i--; n += '0' ); x['c'].push( +n ); if (external) { // Overflow? if ( x['e'] > Decimal['maxE'] ) { // Infinity. x['c'] = x['e'] = null; // Underflow? } else if ( x['e'] < Decimal['minE'] ) { // Zero. x['c'] = [ x['e'] = 0 ]; } } } else { // Zero. x['c'] = [ x['e'] = 0 ]; } id = 0; } })(); /* * Return a new Decimal whose value is x raised to the power y. * * x {number|string|Decimal} The base. * y {number|string|Decimal} The exponent. * */ function pow( x, y ) { return new this(x)['pow'](y) } /* * Returns a new Decimal with a random value equal to or greater than 0 and less than 1, and * with dp, or Decimal.precision if dp is omitted, decimal places (or less if trailing * zeros are produced). * * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive. * */ function random(dp) { var a, n, v, i = 0, r = [], Decimal = this, rand = new Decimal( Decimal['ONE'] ); if ( dp == null || !checkArg( rand, dp, 'random' ) ) { dp = Decimal['precision']; } else { dp |= 0; } n = Math.ceil( dp / LOGBASE ); if ( Decimal['crypto'] ) { // Browsers supporting crypto.getRandomValues. if ( crypto && crypto['getRandomValues'] ) { a = crypto['getRandomValues']( new Uint32Array(n) ); for ( ; i < n; ) { v = a[i]; // 0 >= v < 4294967296 // Probability that v >= 4.29e9, is 4967296 / 4294967296 = 0.00116 (1 in 865). if ( v >= 4.29e9 ) { a[i] = crypto['getRandomValues']( new Uint32Array(1) )[0]; } else { // 0 <= v <= 4289999999 // 0 <= ( v % 1e7 ) <= 9999999 r[i++] = v % 1e7; } } // Node.js supporting crypto.randomBytes. } else if ( crypto && crypto['randomBytes'] ) { // buffer a = crypto['randomBytes']( n *= 4 ); for ( ; i < n; ) { // 0 <= v < 2147483648 v = a[i] + ( a[i + 1] << 8 ) + ( a[i + 2] << 16 ) + ( ( a[i + 3] & 0x7f ) << 24 ); // Probability that v >= 2.14e9, is 7483648 / 2147483648 = 0.0035 (1 in 286). if ( v >= 2.14e9 ) { crypto['randomBytes'](4).copy( a, i ); } else { // 0 <= v <= 4289999999 // 0 <= ( v % 1e7 ) <= 9999999 r.push( v % 1e7 ); i += 4; } } i = n / 4; } else { ifExceptionsThrow( Decimal, 'crypto unavailable', crypto, 'random' ); } } // Use Math.random: either Decimal.crypto is false or crypto is unavailable and errors is false. if (!i) { for ( ; i < n; ) { r[i++] = Math.random() * 1e7 | 0; } } n = r[--i]; dp %= LOGBASE; // Convert trailing digits to zeros according to dp. if ( n && dp ) { v = mathpow( 10, LOGBASE - dp ); r[i] = ( n / v | 0 ) * v; } // Remove trailing elements which are zero. for ( ; r[i] === 0; i-- ) { r.pop(); } // Zero? if ( i < 0 ) { r = [ n = 0 ]; } else { n = -1; // Remove leading elements which are zero and adjust exponent accordingly. for ( ; r[0] === 0; ) { r.shift(); n -= LOGBASE; } // Count the digits of the first element of r to determine leading zeros. for ( i = 1, v = r[0]; v >= 10; ) { v /= 10; i++; } // Adjust the exponent for leading zeros of the first element of r. if ( i < LOGBASE ) { n -= LOGBASE - i; } } rand['e'] = n; rand['c'] = r; return rand; } /* * Return a new Decimal whose value is n round to an integer using rounding mode rounding. * * To emulate Math.round, set rounding to 7 (ROUND_HALF_CEIL). * * n {number|string|Decimal} * function round(n) { var x = new this(n); return rnd( x, x['e'] + 1, this['rounding'] ); } */ /* * Return a new Decimal whose value is the sine of n. * * n {number|string|Decimal} A number given in radians. * function sin(n) { return new this( Math.sin(n) + '' ) } */ /* * Return a new Decimal whose value is the square root of n. * * n {number|string|Decimal} * */ function sqrt(n) { return new this(n)['sqrt']() } /* * Return a new Decimal whose value is the tangent of n. * * n {number|string|Decimal} A number given in radians. * function tan(n) { return new this( Math.tan(n) + '' ) } */ /* * Return a new Decimal whose value is n truncated to an integer. * * n {number|string|Decimal} * function trunc(n) { return new this(n)['trunc']() } */ /* * Create and return a new Decimal constructor. * */ function DecimalFactory(obj) { /* * The Decimal constructor. * Create and return a new instance of a Decimal object. * * n {number|string|Decimal} A numeric value. * [b] {number} The base of n. Integer, 2 to 64 inclusive. * */ function Decimal( n, b ) { var x = this; // Constructor called without new. if ( !( x instanceof Decimal ) ) { ifExceptionsThrow( Decimal, 'Decimal called without new', n ); return new Decimal( n, b ); } // Duplicate. if ( n instanceof Decimal ) { if ( b == null ) { id = 0; x['constructor'] = n['constructor']; x['s'] = n['s']; x['e'] = n['e']; x['c'] = ( n = n['c'] ) ? n.slice() : n; return; } else if ( b == 10 ) { return rnd( new Decimal(n), Decimal['precision'], Decimal['rounding'] ); } else { n += ''; } } return parseDecimal( x['constructor'] = Decimal, x, n, b ); } /* ************************ CONSTRUCTOR DEFAULT PROPERTIES ***************************** These default values must be integers within the stated ranges (inclusive). Most of these values can be changed during run-time using Decimal.config. */ /* The maximum number of significant digits of the result of a calculation or base conversion. E.g. Decimal.config({ precision: 20 }) */ Decimal['precision'] = 20; // 1 to MAX_DIGITS /* The rounding mode used when rounding to precision. ROUND_UP 0 Away from zero. ROUND_DOWN 1 Towards zero. ROUND_CEIL 2 Towards +Infinity. ROUND_FLOOR 3 Towards -Infinity. ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up. ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. E.g. Decimal.rounding = 4; Decimal.rounding = Decimal.ROUND_HALF_UP; */ Decimal['rounding'] = 4; // 0 to 8 /* The modulo mode used when calculating the modulus: a mod n. The quotient (q = a / n) is calculated according to the corresponding rounding mode. The remainder (r) is calculated as: r = a - n * q. UP 0 The remainder is positive if the dividend is negative, else is negative. DOWN 1 The remainder has the same sign as the dividend. This modulo mode is commonly known as "truncated division" and matches as closely as possible, the behaviour of JS remainder operator (a % n). FLOOR 3 The remainder has the same sign as the divisor (Python %). HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). The remainder is always positive. The above modes - truncated division, floored division, Euclidian division and IEEE 754 remainder - are commonly used for the modulus operation. Although any other of the rounding modes can be used, they may not give useful results. */ Decimal['modulo'] = 1; // 0 to 9 // The exponent value at and beneath which toString returns exponential notation. // Number type: -7 Decimal['toExpNeg'] = -7; // 0 to -EXP_LIMIT // The exponent value at and above which toString returns exponential notation. // Number type: 21 Decimal['toExpPos'] = 21; // 0 to EXP_LIMIT // The minimum exponent value, beneath which underflow to zero occurs. // Number type: -324 (5e-324) Decimal['minE'] = -EXP_LIMIT; // -1 to -EXP_LIMIT // The maximum exponent value, above which overflow to Infinity occurs. // Number type: 308 (1.7976931348623157e+308) Decimal['maxE'] = EXP_LIMIT; // 1 to EXP_LIMIT // Whether Decimal Errors are ever thrown. Decimal['errors'] = true; // true/false // Whether to use cryptographically-secure random number generation, if available. Decimal['crypto'] = false; // true/false /* ********************** END OF CONSTRUCTOR DEFAULT PROPERTIES ********************* */ Decimal.prototype = P; Decimal['ONE'] = new Decimal(1); /* // Pi to 80 s.d. Decimal['PI'] = new Decimal( '3.1415926535897932384626433832795028841971693993751058209749445923078164062862089' ); */ Decimal['ROUND_UP'] = 0; Decimal['ROUND_DOWN'] = 1; Decimal['ROUND_CEIL'] = 2; Decimal['ROUND_FLOOR'] = 3; Decimal['ROUND_HALF_UP'] = 4; Decimal['ROUND_HALF_DOWN'] = 5; Decimal['ROUND_HALF_EVEN'] = 6; Decimal['ROUND_HALF_CEIL'] = 7; Decimal['ROUND_HALF_FLOOR'] = 8; // modulo mode Decimal['EUCLID'] = 9; //Decimal['abs'] = abs; //Decimal['acos'] = acos; //Decimal['asin'] = asin; //Decimal['atan'] = atan; //Decimal['atan2'] = atan2; //Decimal['ceil'] = ceil; //Decimal['cos'] = cos; //Decimal['floor'] = floor; //Decimal['round'] = round; //Decimal['sin'] = sin; //Decimal['tan'] = tan; //Decimal['trunc'] = trunc; Decimal['config'] = config; Decimal['constructor'] = DecimalFactory; Decimal['exp'] = exp; Decimal['ln'] = ln; Decimal['log'] = log; Decimal['max'] = max; Decimal['min'] = min; Decimal['pow'] = pow; Decimal['sqrt'] = sqrt; Decimal['random'] = random; if ( obj != null ) { Decimal['config'](obj); } return Decimal; } return DecimalFactory(); })(); // Export. // AMD. if ( true ) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return DecimalConstructor; }.call(exports, __webpack_require__, exports, module)), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // Node and other environments that support module.exports. } else if ( typeof module != 'undefined' && module.exports ) { module.exports = DecimalConstructor; if ( !crypto ) { try { crypto = require('crypto'); } catch (e) {} } // Browser. } else { noConflict = global['Decimal']; DecimalConstructor['noConflict'] = function () { global['Decimal'] = noConflict; return DecimalConstructor; }; global['Decimal'] = DecimalConstructor; } })(this); /***/ }, /* 124 */ /***/ function(module, exports, __webpack_require__) { /** * Create a syntax error with the message: * 'Wrong number of arguments in function <fn> (<count> provided, <min>-<max> expected)' * @param {String} fn Function name * @param {Number} count Actual argument count * @param {Number} min Minimum required argument count * @param {Number} [max] Maximum required argument count * @extends Error */ function ArgumentsError(fn, count, min, max) { if (!(this instanceof ArgumentsError)) { throw new SyntaxError('Constructor must be called with the new operator'); } this.fn = fn; this.count = count; this.min = min; this.max = max; this.message = 'Wrong number of arguments in function ' + fn + ' (' + count + ' provided, ' + min + ((max != undefined) ? ('-' + max) : '') + ' expected)'; this.stack = (new Error()).stack; } ArgumentsError.prototype = new Error(); ArgumentsError.prototype.constructor = Error; ArgumentsError.prototype.name = 'ArgumentsError'; module.exports = ArgumentsError; /***/ }, /* 125 */ /***/ function(module, exports, __webpack_require__) { /** * Create a range error with the message: * 'Dimension mismatch (<actual size> != <expected size>)' * @param {number | number[]} actual The actual size * @param {number | number[]} expected The expected size * @param {string} [relation='!='] Optional relation between actual * and expected size: '!=', '<', etc. * @extends RangeError */ function DimensionError(actual, expected, relation) { if (!(this instanceof DimensionError)) { throw new SyntaxError('Constructor must be called with the new operator'); } this.actual = actual; this.expected = expected; this.relation = relation; this.message = 'Dimension mismatch (' + (Array.isArray(actual) ? ('[' + actual.join(', ') + ']') : actual) + ' ' + (this.relation || '!=') + ' ' + (Array.isArray(expected) ? ('[' + expected.join(', ') + ']') : expected) + ')'; this.stack = (new Error()).stack; } DimensionError.prototype = new RangeError(); DimensionError.prototype.constructor = RangeError; DimensionError.prototype.name = 'DimensionError'; module.exports = DimensionError; /***/ }, /* 126 */ /***/ function(module, exports, __webpack_require__) { /** * Create a range error with the message: * 'Index out of range (index < min)' * 'Index out of range (index < max)' * * @param {number} index The actual index * @param {number} [min=0] Minimum index (included) * @param {number} [max] Maximum index (excluded) * @extends RangeError */ function IndexError(index, min, max) { if (!(this instanceof IndexError)) { throw new SyntaxError('Constructor must be called with the new operator'); } this.index = index; if (arguments.length < 3) { this.min = 0; this.max = min; } else { this.min = min; this.max = max; } if (this.min !== undefined && this.index < this.min) { this.message = 'Index out of range (' + this.index + ' < ' + this.min + ')'; } else if (this.max !== undefined && this.index >= this.max) { this.message = 'Index out of range (' + this.index + ' > ' + (this.max - 1) + ')'; } else { this.message = 'Index out of range (' + this.index + ')'; } this.stack = (new Error()).stack; } IndexError.prototype = new RangeError(); IndexError.prototype.constructor = RangeError; IndexError.prototype.name = 'IndexError'; module.exports = IndexError; /***/ }, /* 127 */ /***/ function(module, exports, __webpack_require__) { /** * Create a TypeError with message: * 'Function <fn> does not support a parameter of type <type>'; * @param {String} fn Function name * @param {*...} [types] The types of the function arguments * @extends TypeError */ function UnsupportedTypeError(fn, types) { if (!(this instanceof UnsupportedTypeError)) { throw new SyntaxError('Constructor must be called with the new operator'); } this.fn = fn; this.types = Array.prototype.splice.call(arguments, 1); if (!fn) { this.message = 'Unsupported type of argument'; } else { if (this.types.length == 0) { this.message = 'Unsupported type of argument in function ' + fn; } else { this.message = 'Function ' + fn + '(' + this.types.join(', ') + ') not supported'; } } this.stack = (new Error()).stack; } UnsupportedTypeError.prototype = new TypeError(); UnsupportedTypeError.prototype.constructor = TypeError; UnsupportedTypeError.prototype.name = 'UnsupportedTypeError'; module.exports = UnsupportedTypeError; /***/ }, /* 128 */ /***/ function(module, exports, __webpack_require__) { exports.array = __webpack_require__(160); exports['boolean'] = __webpack_require__(264); exports.number = __webpack_require__(161); exports.bignumber = __webpack_require__(265); exports.object = __webpack_require__(3); exports.string = __webpack_require__(142); exports.types = __webpack_require__(163); /***/ }, /* 129 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), object = __webpack_require__(3), string = __webpack_require__(142), collection = __webpack_require__(11), util = __webpack_require__(128), isArray = Array.isArray, isNode = Node.isNode; /** * @constructor ArrayNode * @extends {Node} * Holds an 1-dimensional array with nodes * @param {Node[]} [nodes] 1 dimensional array with nodes */ function ArrayNode(nodes) { if (!(this instanceof ArrayNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } this.nodes = nodes || []; // validate input if (!isArray(this.nodes) || !this.nodes.every(isNode)) { throw new TypeError('Array containing Nodes expected') } } ArrayNode.prototype = new Node(); ArrayNode.prototype.type = 'ArrayNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @private */ ArrayNode.prototype._compile = function (defs) { var asMatrix = (defs.math.config().matrix !== 'array'); var nodes = this.nodes.map(function (node) { return node._compile(defs); }); return (asMatrix ? 'math.matrix([' : '[') + nodes.join(',') + (asMatrix ? '])' : ']'); }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ ArrayNode.prototype.find = function (filter) { var results = []; // check itself if (this.match(filter)) { results.push(this); } // search in all nodes var nodes = this.nodes; for (var r = 0, rows = nodes.length; r < rows; r++) { results = results.concat(nodes[r].find(filter)); } return results; }; /** * Get string representation * @return {String} str * @override */ ArrayNode.prototype.toString = function() { return string.format(this.nodes); }; /** * Get LaTeX representation * @return {String} str */ ArrayNode.prototype.toTex = function(type) { type = type || 'bmatrix'; var s = '\\begin{' + type + '}'; this.nodes.forEach(function(node) { if (node.nodes) { s += node.nodes.map(function(childNode) { return childNode.toTex(); }).join('&'); } else { s += node.toTex(); } // new line s += '\\\\'; }); s += '\\end{' + type + '}'; return s; }; module.exports = ArrayNode; /***/ }, /* 130 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), ArrayNode = __webpack_require__(129), keywords = __webpack_require__(267), latex = __webpack_require__(266), isString = __webpack_require__(142).isString; /** * @constructor AssignmentNode * @extends {Node} * Define a symbol, like "a = 3.2" * * @param {String} name Symbol name * @param {Node} expr The expression defining the symbol */ function AssignmentNode(name, expr) { if (!(this instanceof AssignmentNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // validate input if (!isString(name)) throw new TypeError('String expected for parameter "name"'); if (!(expr instanceof Node)) throw new TypeError('Node expected for parameter "expr"'); if (name in keywords) throw new Error('Illegal symbol name, "' + name + '" is a reserved keyword'); this.name = name; this.expr = expr; } AssignmentNode.prototype = new Node(); AssignmentNode.prototype.type = 'AssignmentNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @private */ AssignmentNode.prototype._compile = function (defs) { return 'scope["' + this.name + '"] = ' + this.expr._compile(defs) + ''; }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ AssignmentNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in expression nodes = nodes.concat(this.expr.find(filter)); return nodes; }; /** * Get string representation * @return {String} */ AssignmentNode.prototype.toString = function() { return this.name + ' = ' + this.expr.toString(); }; /** * Get LaTeX representation * @return {String} */ AssignmentNode.prototype.toTex = function() { var brace; if (this.expr instanceof ArrayNode) { brace = ['\\mathbf{', '}']; } return latex.addBraces(latex.toSymbol(this.name), brace) + '=' + latex.addBraces(this.expr.toTex()); }; module.exports = AssignmentNode; /***/ }, /* 131 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), isBoolean = __webpack_require__(264).isBoolean; /** * @constructor BlockNode * @extends {Node} * Holds a set with nodes */ function BlockNode() { if (!(this instanceof BlockNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } this.params = []; } BlockNode.prototype = new Node(); BlockNode.prototype.type = 'BlockNode'; /** * Add an expression. If visible = false, the expression will be evaluated * but not returned in the output. * @param {Node} expr * @param {Boolean} [visible=true] */ BlockNode.prototype.add = function (expr, visible) { if (visible === undefined) visible = true; // validate input if (!(expr instanceof Node)) throw new TypeError('Node expected for parameter "expr"'); if (!isBoolean(visible)) throw new TypeError('Boolean expected for parameter "visible"'); var index = this.params.length; this.params[index] = { node: expr, visible: visible }; }; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ BlockNode.prototype._compile = function (defs) { var params = this.params.map(function (param) { var js = param.node._compile(defs); if (param.visible) { return 'results.push(' + js + ');'; } else { return js + ';'; } }); return '(function () {' + 'var results = [];' + params.join('') + 'return results;' + '})()'; }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ BlockNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in parameters var params = this.params; for (var i = 0, len = params.length; i < len; i++) { nodes = nodes.concat(params[i].node.find(filter)); } return nodes; }; /** * Get string representation * @return {String} str * @override */ BlockNode.prototype.toString = function() { return this.params.map(function (param) { return param.node.toString() + (param.visible ? '' : ';'); }).join('\n'); }; /** * Get LaTeX representation * @return {String} str */ BlockNode.prototype.toTex = function() { return this.params.map(function (param) { return param.node.toTex() + (param.visible ? '' : ';'); }).join('\n'); }; module.exports = BlockNode; /***/ }, /* 132 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136); var latex = __webpack_require__(266); var BigNumber = __webpack_require__(123); var Complex = __webpack_require__(5); var util = __webpack_require__(128); var isString = util.string.isString; var isNumber = util.number.isNumber; var isBoolean = util['boolean'].isBoolean; /** * A lazy evaluating conditional operator: 'condition ? trueExpr : falseExpr' * * @param {Node} condition Condition, must result in a boolean * @param {Node} trueExpr Expression evaluated when condition is true * @param {Node} falseExpr Expression evaluated when condition is true * * @constructor ConditionalNode * @extends {Node} */ function ConditionalNode (condition, trueExpr, falseExpr) { if (!(this instanceof ConditionalNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } if (!(condition instanceof Node)) throw new TypeError('Parameter condition must be a Node'); if (!(trueExpr instanceof Node)) throw new TypeError('Parameter trueExpr must be a Node'); if (!(falseExpr instanceof Node)) throw new TypeError('Parameter falseExpr must be a Node'); this.condition = condition; this.trueExpr = trueExpr; this.falseExpr = falseExpr; } ConditionalNode.prototype = new Node(); ConditionalNode.prototype.type = 'ConditionalNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ ConditionalNode.prototype._compile = function(defs) { /** * Test whether a condition is met * @param {*} condition * @returns {boolean} true if condition is true or non-zero, else false */ defs.testCondition = function (condition) { if (isNumber(condition) || isBoolean(condition) || isString(condition)) { return condition ? true : false; } if (condition instanceof BigNumber) { return condition.isZero() ? false : true; } if (condition instanceof Complex) { return (condition.re || condition.im) ? true : false; } if (condition instanceof Unit) { return condition.value ? true : false; } if (condition === null || condition === undefined) { return false; } throw new TypeError('Unsupported type of condition "' + defs.math['typeof'](condition) + '"'); }; return ( 'testCondition(' + this.condition._compile(defs) + ') ? ' + '( ' + this.trueExpr._compile(defs) + ') : ' + '( ' + this.falseExpr._compile(defs) + ')' ); }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ ConditionalNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in parameters nodes = nodes.concat( this.condition.find(filter), this.trueExpr.find(filter), this.falseExpr.find(filter)); return nodes; }; /** * Get string representation * @return {String} str */ ConditionalNode.prototype.toString = function() { // TODO: not nice adding parenthesis al the time return '(' + this.condition.toString() + ') ? (' + this.trueExpr.toString() + ') : (' + this.falseExpr.toString() + ')'; }; /** * Get LaTeX representation * @return {String} str */ ConditionalNode.prototype.toTex = function() { var s = ( latex.addBraces(this.trueExpr.toTex()) + ', &\\quad' + latex.addBraces('\\text{if}\\;' + this.condition.toTex()) ) + '\\\\' + ( latex.addBraces(this.falseExpr.toTex()) + ', &\\quad' + latex.addBraces('\\text{otherwise}') ); return latex.addBraces(s, [ '\\left\\{\\begin{array}{l l}', '\\end{array}\\right.' ]); }; module.exports = ConditionalNode; /***/ }, /* 133 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), BigNumber = __webpack_require__(123), type = __webpack_require__(163).type, isString = __webpack_require__(142).isString; /** * A ConstantNode holds a constant value like a number or string. A ConstantNode * stores a stringified version of the value and uses this to compile to * JavaScript. * * In case of a stringified number as input, this may be compiled to a BigNumber * when the math instance is configured for BigNumbers. * * Usage: * * // stringified values with type * new ConstantNode('2.3', 'number'); * new ConstantNode('true', 'boolean'); * new ConstantNode('hello', 'string'); * * // non-stringified values, type will be automatically detected * new ConstantNode(2.3); * new ConstantNode('hello'); * * @param {String | Number | Boolean | null | undefined} value * When valueType is provided, value must contain * an uninterpreted string representing the value. * When valueType is undefined, value can be a * number, string, boolean, null, or undefined, and * the type will be determined automatically. * @param {String} [valueType] The type of value. Choose from 'number', 'string', * 'boolean', 'undefined', 'null' * @constructor ConstantNode * @extends {Node} */ function ConstantNode(value, valueType) { if (!(this instanceof ConstantNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } if (valueType) { if (!isString(valueType)) { throw new TypeError('String expected for parameter "valueType"'); } if (!isString(value)){ throw new TypeError('String expected for parameter "value"'); } this.value = value; this.valueType = valueType; } else { // stringify the value and determine the type this.value = value + ''; this.valueType = type(value); } if (!SUPPORTED_TYPES[this.valueType]) { throw new TypeError('Unsupported type of value "' + this.valueType + '"'); } } var SUPPORTED_TYPES = { 'number': true, 'string': true, 'boolean': true, 'undefined': true, 'null': true }; ConstantNode.prototype = new Node(); ConstantNode.prototype.type = 'ConstantNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ ConstantNode.prototype._compile = function (defs) { switch (this.valueType) { case 'number': if (defs.math.config().number === 'bignumber') { return 'math.bignumber("' + this.value + '")'; } else { // remove leading zeros like '003.2' which are not allowed by JavaScript return this.value.replace(/^(0*)[0-9]/, function (match, zeros) { return match.substring(zeros.length); }); } case 'string': return '"' + this.value + '"'; case 'boolean': return this.value; case 'undefined': return this.value; case 'null': return this.value; default: // TODO: move this error to the constructor? throw new TypeError('Unsupported type of constant "' + this.valueType + '"'); } }; /** * Get string representation * @return {String} str */ ConstantNode.prototype.toString = function() { switch (this.valueType) { case 'string': return '"' + this.value + '"'; default: return this.value; } }; /** * Get LaTeX representation * @return {String} str */ ConstantNode.prototype.toTex = function() { var value = this.value, index; switch (this.valueType) { case 'string': return '\\text{' + value + '}'; case 'number': index = value.toLowerCase().indexOf('e'); if (index !== -1) { return value.substring(0, index) + ' \\cdot 10^{' + value.substring(index + 1) + '}'; } return value; default: return value; } }; module.exports = ConstantNode; /***/ }, /* 134 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), RangeNode = __webpack_require__(139), SymbolNode = __webpack_require__(140), isNode = Node.isNode; /** * @constructor IndexNode * @extends Node * * get a subset of a matrix * * @param {Node} object * @param {Node[]} ranges */ function IndexNode (object, ranges) { if (!(this instanceof IndexNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // validate input if (!(object instanceof Node)) throw new TypeError('Node expected for parameter "object"'); if (!isArray(ranges) || !ranges.every(isNode)) { throw new TypeError('Array containing Nodes expected for parameter "ranges"'); } this.object = object; this.ranges = ranges; } IndexNode.prototype = new Node(); IndexNode.prototype.type = 'IndexNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ IndexNode.prototype._compile = function (defs) { return this.compileSubset(defs); }; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the * compiled expression * @param {String} [replacement] If provided, the function returns * "math.subset(obj, math.index(...), replacement)" * Else, the function returns * "math.subset(obj, math.index(...))" * @return {String} js * @returns {string} */ IndexNode.prototype.compileSubset = function compileIndex (defs, replacement) { // check whether any of the ranges expressions uses the context symbol 'end' var filter = { type: SymbolNode, properties: { name: 'end' } }; var someUseEnd = false; var rangesUseEnd = this.ranges.map(function (range) { var useEnd = range.find(filter).length > 0; someUseEnd = useEnd ? useEnd : someUseEnd; return useEnd; }); // TODO: implement support for bignumber (currently bignumbers are silently // reduced to numbers when changing the value to zero-based) // TODO: Optimization: when the range values are ConstantNodes, // we can beforehand resolve the zero-based value var ranges = this.ranges.map(function(range, i) { var useEnd = rangesUseEnd[i]; if (range instanceof RangeNode) { if (useEnd) { // resolve end and create range (change from one based to zero based) return '(function (scope) {' + ' scope = Object.create(scope); ' + ' scope["end"] = size[' + i + '];' + ' var step = ' + (range.step ? range.step._compile(defs) : '1') + ';' + ' return [' + ' ' + range.start._compile(defs) + ' - 1, ' + ' ' + range.end._compile(defs) + ' - (step > 0 ? 0 : 2), ' + ' step' + ' ];' + '})(scope)'; } else { // create range (change from one based to zero based) return '(function () {' + ' var step = ' + (range.step ? range.step._compile(defs) : '1') + ';' + ' return [' + ' ' + range.start._compile(defs) + ' - 1, ' + ' ' + range.end._compile(defs) + ' - (step > 0 ? 0 : 2), ' + ' step' + ' ];' + '})()'; } } else { if (useEnd) { // resolve the parameter 'end', adjust the index value to zero-based return '(function (scope) {' + ' scope = Object.create(scope); ' + ' scope["end"] = size[' + i + '];' + ' return ' + range._compile(defs) + ' - 1;' + '})(scope)' } else { // just evaluate the expression, and change from one-based to zero-based return range._compile(defs) + ' - 1'; } } }); // if some parameters use the 'end' parameter, we need to calculate the size if (someUseEnd) { return '(function () {' + ' var obj = ' + this.object._compile(defs) + ';' + ' var size = math.size(obj).valueOf();' + ' return math.subset(' + ' obj, ' + ' math.index(' + ranges.join(', ') + ')' + ' ' + (replacement ? (', ' + replacement) : '') + ' );' + '})()'; } else { return 'math.subset(' + this.object._compile(defs) + ',' + 'math.index(' + ranges.join(', ') + ')' + (replacement ? (', ' + replacement) : '') + ')'; } }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ IndexNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search object nodes = nodes.concat(this.object.find(filter)); // search in parameters var ranges = this.ranges; for (var i = 0, len = ranges.length; i < len; i++) { nodes = nodes.concat(ranges[i].find(filter)); } return nodes; }; /** * Get the name of the object linked to this IndexNode * @return {string} name */ IndexNode.prototype.objectName = function objectName () { return this.object.name; }; /** * Get string representation * @return {String} str */ IndexNode.prototype.toString = function() { // format the parameters like "[1, 0:5]" return this.object.toString() + '[' + this.ranges.join(', ') + ']'; }; /** * Get LaTeX representation * @return {String} str */ IndexNode.prototype.toTex = function() { return this.object.toTex() + '[' + this.ranges.join(', ') + ']'; }; module.exports = IndexNode; /***/ }, /* 135 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), keywords = __webpack_require__(267), latex = __webpack_require__(266), isString = __webpack_require__(142).isString; isArray = Array.isArray; /** * @constructor FunctionNode * @extends {Node} * Function assignment * * @param {String} name Function name * @param {String[]} args Function argument names * @param {Node} expr The function expression */ function FunctionNode(name, args, expr) { if (!(this instanceof FunctionNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // validate input if (!isString(name)) throw new TypeError('String expected for parameter "name"'); if (!isArray(args) || !args.every(isString)) throw new TypeError('Array containing strings expected for parameter "args"'); if (!(expr instanceof Node)) throw new TypeError('Node expected for parameter "expr"'); if (name in keywords) throw new Error('Illegal function name, "' + name + '" is a reserved keyword'); this.name = name; this.args = args; this.expr = expr; } FunctionNode.prototype = new Node(); FunctionNode.prototype.type = 'FunctionNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ FunctionNode.prototype._compile = function (defs) { return 'scope["' + this.name + '"] = ' + ' (function (scope) {' + ' scope = Object.create(scope); ' + ' var fn = function ' + this.name + '(' + this.args.join(',') + ') {' + ' if (arguments.length != ' + this.args.length + ') {' + // TODO: use util.error.ArgumentsError here // TODO: test arguments error ' throw new SyntaxError("Wrong number of arguments in function ' + this.name + ' (" + arguments.length + " provided, ' + this.args.length + ' expected)");' + ' }' + this.args.map(function (variable, index) { return 'scope["' + variable + '"] = arguments[' + index + '];'; }).join('') + ' return ' + this.expr._compile(defs) + '' + ' };' + ' fn.syntax = "' + this.name + '(' + this.args.join(', ') + ')";' + ' return fn;' + ' })(scope);'; }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ FunctionNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in expression nodes = nodes.concat(this.expr.find(filter)); return nodes; }; /** * get string representation * @return {String} str */ FunctionNode.prototype.toString = function() { return 'function ' + this.name + '(' + this.args.join(', ') + ') = ' + this.expr.toString(); }; /** * get LaTeX representation * @return {String} str */ FunctionNode.prototype.toTex = function() { return this.name + latex.addBraces(this.args.map(latex.toSymbol).join(', '), true) + '=' + latex.addBraces(this.expr.toTex()); }; module.exports = FunctionNode; /***/ }, /* 136 */ /***/ function(module, exports, __webpack_require__) { var error = __webpack_require__(4), keywords = __webpack_require__(267); /** * Node */ function Node() { if (!(this instanceof Node)) { throw new SyntaxError('Constructor must be called with the new operator'); } } /** * Evaluate the node * @return {*} result */ // TODO: cleanup deprecated code one day. Deprecated since version 0.19.0 Node.prototype.eval = function () { throw new Error('Node.eval is deprecated. ' + 'Use Node.compile(math).eval([scope]) instead.'); }; Node.prototype.type = 'Node'; /** * Compile the node to javascript code * @param {Object} math math.js instance * @return {{eval: function}} expr Returns an object with a function 'eval', * which can be invoked as expr.eval([scope]), * where scope is an optional object with * variables. */ Node.prototype.compile = function (math) { if (!(math instanceof Object)) { throw new TypeError('Object expected for parameter math'); } // definitions globally available inside the closure of the compiled expressions var defs = { math: math, error: error, validateScope: validateScope }; var code = this._compile(defs); var defsCode = Object.keys(defs).map(function (name) { return ' var ' + name + ' = defs["' + name + '"];'; }); var factoryCode = defsCode.join(' ') + 'return {' + ' "eval": function (scope) {' + ' try {' + ' if (scope) defs.validateScope(scope);' + ' scope = scope || {};' + ' return ' + code + ';' + ' } catch (err) {' + // replace an index-out-of-range-error with a one-based message ' if (err instanceof defs.error.IndexError) {' + ' err = new defs.error.IndexError(err.index + 1, err.min + 1, err.max + 1);' + ' }' + ' throw err;' + ' }' + ' }' + '};'; var factory = new Function ('defs', factoryCode); return factory(defs); }; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * and constants globally available inside the closure * of the compiled expression * @return {String} js * @private */ Node.prototype._compile = function (defs) { throw new Error('Cannot compile a Node interface'); }; /** * Find any node in the node tree matching given filter. For example, to * find all nodes of type SymbolNode having name 'x': * * var results = Node.find({ * type: SymbolNode, * properties: { * name: 'x' * } * }); * * @param {Object} filter Available parameters: * {Function} type * {Object<String, String>} properties * @return {Node[]} nodes An array with nodes matching given filter criteria */ Node.prototype.find = function (filter) { return this.match(filter) ? [this] : []; }; /** * Test if this object matches given filter * @param {Object} [filter] Available parameters: * {Function} type * {Object<String, *>} properties * @return {Boolean} matches True if there is a match */ Node.prototype.match = function (filter) { var match = true; if (filter) { if (filter.type && !(this instanceof filter.type)) { match = false; } var properties = filter.properties; if (match && properties) { for (var prop in properties) { if (properties.hasOwnProperty(prop)) { if (this[prop] !== properties[prop]) { match = false; break; } } } } } return match; }; /** * Get string representation * @return {String} */ Node.prototype.toString = function() { return ''; }; /** * Get LaTeX representation * @return {String} */ Node.prototype.toTex = function() { return ''; }; /** * Test whether an object is a Node * @param {*} object * @returns {boolean} isNode */ Node.isNode = function isNode (object) { return object instanceof Node; }; /** * Validate the symbol names of a scope. * Throws an error when the scope contains an illegal symbol. * @param {Object} scope */ function validateScope (scope) { for (var symbol in scope) { if (scope.hasOwnProperty(symbol)) { if (symbol in keywords) { throw new Error('Scope contains an illegal symbol, "' + symbol + '" is a reserved keyword'); } } } } module.exports = Node; /***/ }, /* 137 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), ConstantNode = __webpack_require__(133), SymbolNode = __webpack_require__(140), ParamsNode = __webpack_require__(138), latex = __webpack_require__(266); /** * @constructor OperatorNode * @extends {Node} * An operator with two arguments, like 2+3 * * @param {String} op Operator name, for example '+' * @param {String} fn Function name, for example 'add' * @param {Node[]} params Parameters */ function OperatorNode (op, fn, params) { if (!(this instanceof OperatorNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // TODO: validate input this.op = op; this.fn = fn; this.params = params; } OperatorNode.prototype = new Node(); OperatorNode.prototype.type = 'OperatorNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ OperatorNode.prototype._compile = function (defs) { if (!(this.fn in defs.math)) { throw new Error('Function ' + this.fn + ' missing in provided namespace "math"'); } var params = this.params.map(function (param) { return param._compile(defs); }); return 'math.' + this.fn + '(' + params.join(', ') + ')'; }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ OperatorNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in parameters var params = this.params; if (params) { for (var i = 0, len = params.length; i < len; i++) { nodes = nodes.concat(params[i].find(filter)); } } return nodes; }; /** * Get string representation * @return {String} str */ OperatorNode.prototype.toString = function() { var params = this.params; switch (params.length) { case 1: if (this.op == '-') { // special case: unary minus return '-' + params[0].toString(); } else { // for example '5!' return params[0].toString() + this.op; } case 2: // for example '2+3' var lhs = params[0].toString(); if (params[0] instanceof OperatorNode) { lhs = '(' + lhs + ')'; } var rhs = params[1].toString(); if (params[1] instanceof OperatorNode) { rhs = '(' + rhs + ')'; } return lhs + ' ' + this.op + ' ' + rhs; default: // this should not occur. format as a function call return this.op + '(' + this.params.join(', ') + ')'; } }; /** * Get LaTeX representation * @return {String} str */ OperatorNode.prototype.toTex = function() { var params = this.params, mop = latex.toOperator(this.op), lp = params[0], rp = params[1]; switch (params.length) { case 1: if (this.op === '-' || this.op === '+') { // special case: unary minus return this.op + lp.toTex(); } // for example '5!' return lp.toTex() + this.op; case 2: // for example '2+3' var lhs = lp.toTex(), lhb = false, rhs = rp.toTex(), rhb = false, lop = '', rop = ''; switch (this.op) { case '/': lop = mop; mop = ''; break; case '*': if (lp instanceof OperatorNode) { if (lp.op === '+' || lp.op === '-') { lhb = true; } } if (rp instanceof OperatorNode) { if (rp.op === '+' || rp.op === '-') { rhb = true; } else if (rp.op === '*') { rhb = true; } } if ((lp instanceof ConstantNode || lp instanceof OperatorNode) && (rp instanceof ConstantNode || rp instanceof OperatorNode)) { mop = ' \\cdot '; } else { mop = ' \\, '; } break; case '^': if (lp instanceof OperatorNode || lp instanceof ParamsNode) { lhb = true; } else if (lp instanceof SymbolNode) { lhb = null; } break; case 'to': rhs = latex.toUnit(rhs, true); break; } lhs = latex.addBraces(lhs, lhb); rhs = latex.addBraces(rhs, rhb); return lop + lhs + mop + rhs + rop; default: // this should not occur. format as a function call return mop + '(' + this.params.map(latex.toSymbol).join(', ') + ')'; } }; module.exports = OperatorNode; /***/ }, /* 138 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), latex = __webpack_require__(266), isNode = Node.isNode; /** * @constructor ParamsNode * @extends {Node} * invoke a list with parameters on a node * @param {Node} object * @param {Node[]} params */ function ParamsNode (object, params) { if (!(this instanceof ParamsNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // validate input if (!(object instanceof Node)) throw new TypeError('Node expected for parameter "object"'); if (!isArray(params) || !params.every(isNode)) { throw new TypeError('Array containing Nodes expected for parameter "params"'); } this.object = object; this.params = params; } ParamsNode.prototype = new Node(); ParamsNode.prototype.type = 'ParamsNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ ParamsNode.prototype._compile = function (defs) { // TODO: implement support for matrix indexes and ranges var params = this.params.map(function (param) { return param._compile(defs); }); return this.object._compile(defs) + '(' + params.join(', ') + ')'; }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ ParamsNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search object nodes = nodes.concat(this.object.find(filter)); // search in parameters var params = this.params; for (var i = 0, len = params.length; i < len; i++) { nodes = nodes.concat(params[i].find(filter)); } return nodes; }; /** * Get string representation * @return {String} str */ ParamsNode.prototype.toString = function() { // format the parameters like "add(2, 4.2)" return this.object.toString() + '(' + this.params.join(', ') + ')'; }; /** * Get LaTeX representation * @return {String} str */ ParamsNode.prototype.toTex = function() { return latex.toParams(this); }; module.exports = ParamsNode; /***/ }, /* 139 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), isNode = Node.isNode; /** * @constructor RangeNode * @extends {Node} * create a range * @param {Node[]} params Array [start, end] or [start, end, step] */ function RangeNode (params) { if (!(this instanceof RangeNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // validate inputs if (!Array.isArray(params) || (params.length != 2 && params.length != 3) || !params.every(isNode)) { throw new TypeError('Expected an Array containing 2 or 3 Nodes as parameter "params"'); } this.start = params[0]; // included lower-bound this.end = params[1]; // included upper-bound this.step = params[2]; // optional step } RangeNode.prototype = new Node(); RangeNode.prototype.type = 'RangeNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ RangeNode.prototype._compile = function (defs) { return 'math.range(' + this.start._compile(defs) + ', ' + this.end._compile(defs) + ', ' + (this.step ? (this.step._compile(defs) + ', ') : '') + 'true)'; // parameter includeEnd = true }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ RangeNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in parameters nodes = nodes.concat(this.start.find(filter)); if (this.step) { nodes = nodes.concat(this.step.find(filter)); } nodes = nodes.concat(this.end.find(filter)); return nodes; }; /** * Get string representation * @return {String} str */ RangeNode.prototype.toString = function() { // format the range like "start:step:end" var str = this.start.toString(); if (this.step) { str += ':' + this.step.toString(); } str += ':' + this.end.toString(); return str; }; /** * Get LaTeX representation * @return {String} str */ RangeNode.prototype.toTex = function() { var str = this.start.toTex(); if (this.step) { str += ':' + this.step.toTex(); } str += ':' + this.end.toTex(); return str; }; module.exports = RangeNode; /***/ }, /* 140 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), Unit = __webpack_require__(9), latex = __webpack_require__(266), isString = __webpack_require__(142).isString; /** * @constructor SymbolNode * @extends {Node} * A symbol node can hold and resolve a symbol * @param {String} name * @extends {Node} */ function SymbolNode(name) { if (!(this instanceof SymbolNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } // validate input if (!isString(name)) throw new TypeError('String expected for parameter "name"'); this.name = name; } SymbolNode.prototype = new Node(); SymbolNode.prototype.type = 'SymbolNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ SymbolNode.prototype._compile = function (defs) { // add a function to the definitions defs['undef'] = undef; defs['Unit'] = Unit; return '(' + '"' + this.name + '" in scope ? scope["' + this.name + '"] : ' + '"' + this.name + '" in math ? math["' + this.name + '"] : ' + (Unit.isValuelessUnit(this.name) ? 'new Unit(null, "' + this.name + '")' : 'undef("' + this.name + '")') + ')'; }; /** * Throws an error 'Undefined symbol {name}' * @param {String} name */ function undef (name) { throw new Error('Undefined symbol ' + name); } /** * Get string representation * @return {String} str * @override */ SymbolNode.prototype.toString = function() { return this.name; }; /** * Get LaTeX representation * @return {String} str * @override */ SymbolNode.prototype.toTex = function() { return latex.toSymbol(this.name); }; module.exports = SymbolNode; /***/ }, /* 141 */ /***/ function(module, exports, __webpack_require__) { var Node = __webpack_require__(136), IndexNode = __webpack_require__(134); /** * @constructor UpdateNode * @extends {Node} * Update a symbol value, like a(2,3) = 4.5 * * @param {IndexNode} index IndexNode containing symbol and ranges * @param {Node} expr The expression defining the symbol */ function UpdateNode(index, expr) { if (!(this instanceof UpdateNode)) { throw new SyntaxError('Constructor must be called with the new operator'); } if (!(index instanceof IndexNode)) { throw new TypeError('Expected IndexNode for parameter "index"'); } if (!(expr instanceof Node)) { throw new TypeError('Expected Node for parameter "expr"'); } this.index = index; this.expr = expr; } UpdateNode.prototype = new Node(); UpdateNode.prototype.type = 'UpdateNode'; /** * Compile the node to javascript code * @param {Object} defs Object which can be used to define functions * or constants globally available for the compiled * expression * @return {String} js * @private */ UpdateNode.prototype._compile = function (defs) { return 'scope["' + this.index.objectName() + '\"] = ' + this.index.compileSubset(defs, this.expr._compile(defs)); }; /** * Find all nodes matching given filter * @param {Object} filter See Node.find for a description of the filter options * @returns {Node[]} nodes */ UpdateNode.prototype.find = function (filter) { var nodes = []; // check itself if (this.match(filter)) { nodes.push(this); } // search in index nodes = nodes.concat(this.index.find(filter)); // search in expression nodes = nodes.concat(this.expr.find(filter)); return nodes; }; /** * Get string representation * @return {String} */ UpdateNode.prototype.toString = function() { return this.index.toString() + ' = ' + this.expr.toString(); }; /** * Get LaTeX representation * @return {String} */ UpdateNode.prototype.toTex = function() { return this.index.toTex() + ' = ' + this.expr.toTex(); }; module.exports = UpdateNode; /***/ }, /* 142 */ /***/ function(module, exports, __webpack_require__) { var number = __webpack_require__(161), bignumber = __webpack_require__(265), BigNumber = __webpack_require__(123); /** * Test whether value is a String * @param {*} value * @return {Boolean} isString */ exports.isString = function isString(value) { return (value instanceof String) || (typeof value == 'string'); }; /** * Check if a text ends with a certain string. * @param {String} text * @param {String} search */ exports.endsWith = function endsWith(text, search) { var start = text.length - search.length; var end = text.length; return (text.substring(start, end) === search); }; /** * Format a value of any type into a string. * * Usage: * math.format(value) * math.format(value, precision) * * If value is a function, the returned string is 'function' unless the function * has a property `description`, in that case this properties value is returned. * * Example usage: * math.format(2/7); // '0.2857142857142857' * math.format(math.pi, 3); // '3.14' * math.format(new Complex(2, 3)); // '2 + 3i' * math.format('hello'); // '"hello"' * * @param {*} value Value to be stringified * @param {Object | Number | Function} [options] Formatting options. See * lib/util/number:format for a * description of the available * options. * @return {String} str */ exports.format = function format(value, options) { if (number.isNumber(value)) { return number.format(value, options); } if (value instanceof BigNumber) { return bignumber.format(value, options); } if (Array.isArray(value)) { return formatArray(value, options); } if (exports.isString(value)) { return '"' + value + '"'; } if (typeof value === 'function') { return value.syntax ? value.syntax + '' : 'function'; } if (value instanceof Object) { if (typeof value.format === 'function') { return value.format(options); } else { return value.toString(); } } return String(value); }; /** * Recursively format an n-dimensional matrix * Example output: "[[1, 2], [3, 4]]" * @param {Array} array * @param {Object | Number | Function} [options] Formatting options. See * lib/util/number:format for a * description of the available * options. * @returns {String} str */ function formatArray (array, options) { if (Array.isArray(array)) { var str = '['; var len = array.length; for (var i = 0; i < len; i++) { if (i != 0) { str += ', '; } str += formatArray(array[i], options); } str += ']'; return str; } else { return exports.format(array, options); } } /***/ }, /* 143 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'e', 'category': 'Constants', 'syntax': [ 'e' ], 'description': 'Euler\'s number, the base of the natural logarithm. Approximately equal to 2.71828', 'examples': [ 'e', 'e ^ 2', 'exp(2)', 'log(e)' ], 'seealso': ['exp'] }; /***/ }, /* 144 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'false', 'category': 'Constants', 'syntax': [ 'false' ], 'description': 'Boolean value false', 'examples': [ 'false' ], 'seealso': ['true'] }; /***/ }, /* 145 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'i', 'category': 'Constants', 'syntax': [ 'i' ], 'description': 'Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.', 'examples': [ 'i', 'i * i', 'sqrt(-1)' ], 'seealso': [] }; /***/ }, /* 146 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'Infinity', 'category': 'Constants', 'syntax': [ 'Infinity' ], 'description': 'Infinity, a number which is larger than the maximum number that can be handled by a floating point number.', 'examples': [ 'Infinity', '1 / 0' ], 'seealso': [] }; /***/ }, /* 147 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'LN2', 'category': 'Constants', 'syntax': [ 'LN2' ], 'description': 'Returns the natural logarithm of 2, approximately equal to 0.693', 'examples': [ 'LN2', 'log(2)' ], 'seealso': [] }; /***/ }, /* 148 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'LN10', 'category': 'Constants', 'syntax': [ 'LN10' ], 'description': 'Returns the natural logarithm of 10, approximately equal to 2.302', 'examples': [ 'LN10', 'log(10)' ], 'seealso': [] }; /***/ }, /* 149 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'LOG2E', 'category': 'Constants', 'syntax': [ 'LOG2E' ], 'description': 'Returns the base-2 logarithm of E, approximately equal to 1.442', 'examples': [ 'LOG2E', 'log(e, 2)' ], 'seealso': [] }; /***/ }, /* 150 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'LOG10E', 'category': 'Constants', 'syntax': [ 'LOG10E' ], 'description': 'Returns the base-10 logarithm of E, approximately equal to 0.434', 'examples': [ 'LOG10E', 'log(e, 10)' ], 'seealso': [] }; /***/ }, /* 151 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'NaN', 'category': 'Constants', 'syntax': [ 'NaN' ], 'description': 'Not a number', 'examples': [ 'NaN', '0 / 0' ], 'seealso': [] }; /***/ }, /* 152 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'null', 'category': 'Constants', 'syntax': [ 'null' ], 'description': 'Value null', 'examples': [ 'null' ], 'seealso': ['true', 'false'] }; /***/ }, /* 153 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'pi', 'category': 'Constants', 'syntax': [ 'pi' ], 'description': 'The number pi is a mathematical constant that is the ratio of a circle\'s circumference to its diameter, and is approximately equal to 3.14159', 'examples': [ 'pi', 'sin(pi/2)' ], 'seealso': ['tau'] }; /***/ }, /* 154 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'phi', 'category': 'Constants', 'syntax': [ 'phi' ], 'description': 'Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...', 'examples': [ 'tau' ], 'seealso': [] }; /***/ }, /* 155 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'SQRT1_2', 'category': 'Constants', 'syntax': [ 'SQRT1_2' ], 'description': 'Returns the square root of 1/2, approximately equal to 0.707', 'examples': [ 'SQRT1_2', 'sqrt(1/2)' ], 'seealso': [] }; /***/ }, /* 156 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'SQRT2', 'category': 'Constants', 'syntax': [ 'SQRT2' ], 'description': 'Returns the square root of 2, approximately equal to 1.414', 'examples': [ 'SQRT2', 'sqrt(2)' ], 'seealso': [] }; /***/ }, /* 157 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'tau', 'category': 'Constants', 'syntax': [ 'tau' ], 'description': 'Tau is the ratio constant of a circle\'s circumference to radius, equal to 2 * pi, approximately 6.2832.', 'examples': [ 'tau', '2 * pi' ], 'seealso': ['pi'] }; /***/ }, /* 158 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'true', 'category': 'Constants', 'syntax': [ 'true' ], 'description': 'Boolean value true', 'examples': [ 'true' ], 'seealso': ['false'] }; /***/ }, /* 159 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'version', 'category': 'Constants', 'syntax': [ 'version' ], 'description': 'A string with the version number of math.js', 'examples': [ 'version' ], 'seealso': [] }; /***/ }, /* 160 */ /***/ function(module, exports, __webpack_require__) { var number = __webpack_require__(161), string = __webpack_require__(142), object = __webpack_require__(3), types = __webpack_require__(163), DimensionError = __webpack_require__(125), IndexError = __webpack_require__(126), isArray = Array.isArray; /** * Calculate the size of a multi dimensional array. * @param {Array} x * @Return {Number[]} size * @private */ function _size(x) { var size = []; while (isArray(x)) { size.push(x.length); x = x[0]; } return size; } /** * Calculate the size of a multi dimensional array. * All elements in the array are checked for matching dimensions using the * method validate * @param {Array} x * @Return {Number[]} size * @throws RangeError */ exports.size = function size (x) { // calculate the size var s = _size(x); // verify the size exports.validate(x, s); // TODO: don't validate here? only in a Matrix constructor? return s; }; /** * Recursively validate whether each element in a multi dimensional array * has a size corresponding to the provided size array. * @param {Array} array Array to be validated * @param {Number[]} size Array with the size of each dimension * @param {Number} dim Current dimension * @throws DimensionError * @private */ function _validate(array, size, dim) { var i; var len = array.length; if (len != size[dim]) { throw new DimensionError(len, size[dim]); } if (dim < size.length - 1) { // recursively validate each child array var dimNext = dim + 1; for (i = 0; i < len; i++) { var child = array[i]; if (!isArray(child)) { throw new DimensionError(size.length - 1, size.length, '<'); } _validate(array[i], size, dimNext); } } else { // last dimension. none of the childs may be an array for (i = 0; i < len; i++) { if (isArray(array[i])) { throw new DimensionError(size.length + 1, size.length, '>'); } } } } /** * Validate whether each element in a multi dimensional array has * a size corresponding to the provided size array. * @param {Array} array Array to be validated * @param {Number[]} size Array with the size of each dimension * @throws DimensionError */ exports.validate = function validate(array, size) { var isScalar = (size.length == 0); if (isScalar) { // scalar if (isArray(array)) { throw new DimensionError(array.length, 0); } } else { // array _validate(array, size, 0); } }; /** * Test whether index is an integer number with index >= 0 and index < length * @param {Number} index Zero-based index * @param {Number} [length] Length of the array */ exports.validateIndex = function validateIndex (index, length) { if (!number.isNumber(index) || !number.isInteger(index)) { throw new TypeError('Index must be an integer (value: ' + index + ')'); } if (index < 0) { throw new IndexError(index); } if (length !== undefined && index >= length) { throw new IndexError(index, length); } }; /** * Resize a multi dimensional array. The resized array is returned. * @param {Array} array Array to be resized * @param {Array.<Number>} size Array with the size of each dimension * @param {*} [defaultValue] Value to be filled in in new entries, * undefined by default * @return {Array} array The resized array */ exports.resize = function resize(array, size, defaultValue) { // TODO: add support for scalars, having size=[] ? // check the type of the arguments if (!isArray(array) || !isArray(size)) { throw new TypeError('Array expected'); } if (size.length === 0) { throw new Error('Resizing to scalar is not supported'); } // check whether size contains positive integers size.forEach(function (value) { if (!number.isNumber(value) || !number.isInteger(value) || value < 0) { throw new TypeError('Invalid size, must contain positive integers ' + '(size: ' + string.format(size) + ')'); } }); // count the current number of dimensions var dims = 1; var elem = array[0]; while (isArray(elem)) { dims++; elem = elem[0]; } // adjust the number of dimensions when needed while (dims < size.length) { // add dimensions array = [array]; dims++; } while (dims > size.length) { // remove dimensions array = array[0]; dims--; } // recursively resize the array _resize(array, size, 0, defaultValue); return array; }; /** * Recursively resize a multi dimensional array * @param {Array} array Array to be resized * @param {Number[]} size Array with the size of each dimension * @param {Number} dim Current dimension * @param {*} [defaultValue] Value to be filled in in new entries, * undefined by default. * @private */ function _resize (array, size, dim, defaultValue) { if (!isArray(array)) throw Error('Array expected'); var i, elem, oldLen = array.length, newLen = size[dim], minLen = Math.min(oldLen, newLen); // apply new length array.length = newLen; if (dim < size.length - 1) { // non-last dimension var dimNext = dim + 1; // resize existing child arrays for (i = 0; i < minLen; i++) { // resize child array elem = array[i]; _resize(elem, size, dimNext, defaultValue); } // create new child arrays for (i = minLen; i < newLen; i++) { // get child array elem = []; array[i] = elem; // resize new child array _resize(elem, size, dimNext, defaultValue); } } else { // last dimension if(defaultValue !== undefined) { // fill new elements with the default value for (i = oldLen; i < newLen; i++) { array[i] = object.clone(defaultValue); } } } } /** * Squeeze a multi dimensional array * @param {Array} array * @return {Array} array * @private */ exports.squeeze = function squeeze(array) { while(isArray(array) && array.length === 1) { array = array[0]; } return array; }; /** * Unsqueeze a multi dimensional array: add dimensions when missing * @param {Array} array * @param {Number} dims Number of desired dimensions * @return {Array} array * @private */ exports.unsqueeze = function unsqueeze(array, dims) { var size = exports.size(array); for (var i = 0, ii = (dims - size.length); i < ii; i++) { array = [array]; } return array; }; /** * Flatten a multi dimensional array, put all elements in a one dimensional * array * @param {Array} array A multi dimensional array * @return {Array} The flattened array (1 dimensional) * @private */ exports.flatten = function flatten(array) { var flat = array, isArray = Array.isArray; while (isArray(flat[0])) { var next = []; for (var i = 0, ii = flat.length; i < ii; i++) { next = next.concat.apply(next, flat[i]); } flat = next; } return flat; }; /** * Test whether an object is an array * @param {*} value * @return {Boolean} isArray */ exports.isArray = isArray; /***/ }, /* 161 */ /***/ function(module, exports, __webpack_require__) { /** * Test whether value is a Number * @param {*} value * @return {Boolean} isNumber */ exports.isNumber = function isNumber(value) { return (value instanceof Number) || (typeof value == 'number'); }; /** * Check if a number is integer * @param {Number | Boolean} value * @return {Boolean} isInteger */ exports.isInteger = function isInteger(value) { return (value == Math.round(value)); // Note: we use ==, not ===, as we can have Booleans as well }; /** * Calculate the sign of a number * @param {Number} x * @returns {*} */ exports.sign = function sign (x) { if (x > 0) { return 1; } else if (x < 0) { return -1; } else { return 0; } }; /** * Convert a number to a formatted string representation. * * Syntax: * * format(value) * format(value, options) * format(value, precision) * format(value, fn) * * Where: * * {Number} value The value to be formatted * {Object} options An object with formatting options. Available options: * {String} notation * Number notation. Choose from: * 'fixed' Always use regular number notation. * For example '123.40' and '14000000' * 'exponential' Always use exponential notation. * For example '1.234e+2' and '1.4e+7' * 'auto' (default) Regular number notation for numbers * having an absolute value between * `lower` and `upper` bounds, and uses * exponential notation elsewhere. * Lower bound is included, upper bound * is excluded. * For example '123.4' and '1.4e7'. * {Number} precision A number between 0 and 16 to round * the digits of the number. * In case of notations 'exponential' and * 'auto', `precision` defines the total * number of significant digits returned * and is undefined by default. * In case of notation 'fixed', * `precision` defines the number of * significant digits after the decimal * point, and is 0 by default. * {Object} exponential An object containing two parameters, * {Number} lower and {Number} upper, * used by notation 'auto' to determine * when to return exponential notation. * Default values are `lower=1e-3` and * `upper=1e5`. * Only applicable for notation `auto`. * {Function} fn A custom formatting function. Can be used to override the * built-in notations. Function `fn` is called with `value` as * parameter and must return a string. Is useful for example to * format all values inside a matrix in a particular way. * * Examples: * * format(6.4); // '6.4' * format(1240000); // '1.24e6' * format(1/3); // '0.3333333333333333' * format(1/3, 3); // '0.333' * format(21385, 2); // '21000' * format(12.071, {notation: 'fixed'}); // '12' * format(2.3, {notation: 'fixed', precision: 2}); // '2.30' * format(52.8, {notation: 'exponential'}); // '5.28e+1' * * @param {Number} value * @param {Object | Function | Number} [options] * @return {String} str The formatted value */ exports.format = function format(value, options) { if (typeof options === 'function') { // handle format(value, fn) return options(value); } // handle special cases if (value === Infinity) { return 'Infinity'; } else if (value === -Infinity) { return '-Infinity'; } else if (isNaN(value)) { return 'NaN'; } // default values for options var notation = 'auto'; var precision = undefined; if (options) { // determine notation from options if (options.notation) { notation = options.notation; } // determine precision from options if (exports.isNumber(options)) { precision = options; } else if (options.precision) { precision = options.precision; } } // handle the various notations switch (notation) { case 'fixed': return exports.toFixed(value, precision); case 'exponential': return exports.toExponential(value, precision); case 'auto': // determine lower and upper bound for exponential notation. // TODO: implement support for upper and lower to be BigNumbers themselves var lower = 1e-3; var upper = 1e5; if (options && options.exponential) { if (options.exponential.lower !== undefined) { lower = options.exponential.lower; } if (options.exponential.upper !== undefined) { upper = options.exponential.upper; } } // handle special case zero if (value === 0) return '0'; // determine whether or not to output exponential notation var str; var abs = Math.abs(value); if (abs >= lower && abs < upper) { // normal number notation // Note: IE7 does not allow value.toPrecision(undefined) var valueStr = precision ? value.toPrecision(Math.min(precision, 21)) : value.toPrecision(); str = parseFloat(valueStr) + ''; } else { // exponential notation str = exports.toExponential(value, precision); } // remove trailing zeros after the decimal point return str.replace(/((\.\d*?)(0+))($|e)/, function () { var digits = arguments[2]; var e = arguments[4]; return (digits !== '.') ? digits + e : e; }); default: throw new Error('Unknown notation "' + notation + '". ' + 'Choose "auto", "exponential", or "fixed".'); } }; /** * Format a number in exponential notation. Like '1.23e+5', '2.3e+0', '3.500e-3' * @param {Number} value * @param {Number} [precision] Number of digits in formatted output. * If not provided, the maximum available digits * is used. * @returns {string} str */ exports.toExponential = function toExponential (value, precision) { if (precision !== undefined) { return value.toExponential(Math.min(precision - 1, 20)); } else { return value.toExponential(); } }; /** * Format a number with fixed notation. * @param {Number} value * @param {Number} [precision=0] Optional number of decimals after the * decimal point. Zero by default. */ exports.toFixed = function toFixed (value, precision) { return value.toFixed(Math.min(precision, 20)); }; /** * Count the number of significant digits of a number. * * For example: * 2.34 returns 3 * 0.0034 returns 2 * 120.5e+30 returns 4 * * @param {Number} value * @return {Number} digits Number of significant digits */ exports.digits = function digits (value) { return value .toExponential() .replace(/e.*$/, '') // remove exponential notation .replace( /^0\.?0*|\./, '') // remove decimal point and leading zeros .length }; /** * Minimum number added to one that makes the result different than one */ exports.DBL_EPSILON = Number.EPSILON || 2.2204460492503130808472633361816E-16; /** * Compares two floating point numbers. * @param {Number} x First value to compare * @param {Number} y Second value to compare * @param {Number} [epsilon] The maximum relative difference between x and y * If epsilon is undefined or null, the function will * test whether x and y are exactly equal. * @return {boolean} whether the two numbers are equal */ exports.nearlyEqual = function(x, y, epsilon) { // if epsilon is null or undefined, test whether x and y are exactly equal if (epsilon == null) return x == y; // use "==" operator, handles infinities if (x == y) return true; // NaN if (isNaN(x) || isNaN(y)) return false; // at this point x and y should be finite if(isFinite(x) && isFinite(y)) { // check numbers are very close, needed when comparing numbers near zero var diff = Math.abs(x - y); if (diff < exports.DBL_EPSILON) { return true; } else { // use relative error return diff <= Math.max(Math.abs(x), Math.abs(y)) * epsilon; } } // Infinite and Number or negative Infinite and positive Infinite cases return false; }; /***/ }, /* 162 */ /***/ function(module, exports, __webpack_require__) { var map = { "./clone": 115, "./clone.js": 115, "./forEach": 121, "./forEach.js": 121, "./format": 116, "./format.js": 116, "./import": 117, "./import.js": 117, "./map": 118, "./map.js": 118, "./print": 119, "./print.js": 119, "./typeof": 120, "./typeof.js": 120 }; function webpackContext(req) { return __webpack_require__(webpackContextResolve(req)); }; function webpackContextResolve(req) { return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }()); }; webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; /***/ }, /* 163 */ /***/ function(module, exports, __webpack_require__) { /** * Determine the type of a variable * * type(x) * * @param {*} x * @return {String} type Lower case type, for example 'number', 'string', * 'array', 'date'. */ exports.type = function type (x) { var type = typeof x; if (type === 'object') { if (x === null) return 'null'; if (x instanceof Boolean) return 'boolean'; if (x instanceof Number) return 'number'; if (x instanceof String) return 'string'; if (Array.isArray(x)) return 'array'; if (x instanceof Date) return 'date'; if (x instanceof RegExp) return 'regexp'; } return type; }; /***/ }, /* 164 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'abs', 'category': 'Arithmetic', 'syntax': [ 'abs(x)' ], 'description': 'Compute the absolute value.', 'examples': [ 'abs(3.5)', 'abs(-4.2)' ], 'seealso': ['sign'] }; /***/ }, /* 165 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'add', 'category': 'Operators', 'syntax': [ 'x + y', 'add(x, y)' ], 'description': 'Add two values.', 'examples': [ 'a = 2.1 + 3.6', 'a - 3.6', '3 + 2i', '"hello" + " world"', '3 cm + 2 inch' ], 'seealso': [ 'subtract' ] }; /***/ }, /* 166 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'ceil', 'category': 'Arithmetic', 'syntax': [ 'ceil(x)' ], 'description': 'Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.', 'examples': [ 'ceil(3.2)', 'ceil(3.8)', 'ceil(-4.2)' ], 'seealso': ['floor', 'fix', 'round'] }; /***/ }, /* 167 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'cube', 'category': 'Arithmetic', 'syntax': [ 'cube(x)' ], 'description': 'Compute the cube of a value. The cube of x is x * x * x.', 'examples': [ 'cube(2)', '2^3', '2 * 2 * 2' ], 'seealso': [ 'multiply', 'square', 'pow' ] }; /***/ }, /* 168 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'divide', 'category': 'Operators', 'syntax': [ 'x / y', 'divide(x, y)' ], 'description': 'Divide two values.', 'examples': [ 'a = 2 / 3', 'a * 3', '4.5 / 2', '3 + 4 / 2', '(3 + 4) / 2', '18 km / 4.5' ], 'seealso': [ 'multiply' ] }; /***/ }, /* 169 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'dotDivide', 'category': 'Operators', 'syntax': [ 'x ./ y', 'dotDivide(x, y)' ], 'description': 'Divide two values element wise.', 'examples': [ 'a = [1, 2, 3; 4, 5, 6]', 'b = [2, 1, 1; 3, 2, 5]', 'a ./ b' ], 'seealso': [ 'multiply', 'dotMultiply', 'divide' ] }; /***/ }, /* 170 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'dotMultiply', 'category': 'Operators', 'syntax': [ 'x .* y', 'dotMultiply(x, y)' ], 'description': 'Multiply two values element wise.', 'examples': [ 'a = [1, 2, 3; 4, 5, 6]', 'b = [2, 1, 1; 3, 2, 5]', 'a .* b' ], 'seealso': [ 'multiply', 'divide', 'dotDivide' ] }; /***/ }, /* 171 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'dotpow', 'category': 'Operators', 'syntax': [ 'x .^ y', 'dotpow(x, y)' ], 'description': 'Calculates the power of x to y element wise.', 'examples': [ 'a = [1, 2, 3; 4, 5, 6]', 'a .^ 2' ], 'seealso': [ 'pow' ] }; /***/ }, /* 172 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'exp', 'category': 'Arithmetic', 'syntax': [ 'exp(x)' ], 'description': 'Calculate the exponent of a value.', 'examples': [ 'exp(1.3)', 'e ^ 1.3', 'log(exp(1.3))', 'x = 2.4', '(exp(i*x) == cos(x) + i*sin(x)) # Euler\'s formula' ], 'seealso': [ 'pow', 'log' ] }; /***/ }, /* 173 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'fix', 'category': 'Arithmetic', 'syntax': [ 'fix(x)' ], 'description': 'Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.', 'examples': [ 'fix(3.2)', 'fix(3.8)', 'fix(-4.2)', 'fix(-4.8)' ], 'seealso': ['ceil', 'floor', 'round'] }; /***/ }, /* 174 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'floor', 'category': 'Arithmetic', 'syntax': [ 'floor(x)' ], 'description': 'Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.', 'examples': [ 'floor(3.2)', 'floor(3.8)', 'floor(-4.2)' ], 'seealso': ['ceil', 'fix', 'round'] }; /***/ }, /* 175 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'gcd', 'category': 'Arithmetic', 'syntax': [ 'gcd(a, b)', 'gcd(a, b, c, ...)' ], 'description': 'Compute the greatest common divisor.', 'examples': [ 'gcd(8, 12)', 'gcd(-4, 6)', 'gcd(25, 15, -10)' ], 'seealso': [ 'lcm', 'xgcd' ] }; /***/ }, /* 176 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'lcm', 'category': 'Arithmetic', 'syntax': [ 'lcm(x, y)' ], 'description': 'Compute the least common multiple.', 'examples': [ 'lcm(4, 6)', 'lcm(6, 21)', 'lcm(6, 21, 5)' ], 'seealso': [ 'gcd' ] }; /***/ }, /* 177 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'log', 'category': 'Arithmetic', 'syntax': [ 'log(x)', 'log(x, base)' ], 'description': 'Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).', 'examples': [ 'log(3.5)', 'a = log(2.4)', 'exp(a)', '10 ^ 4', 'log(10000, 10)', 'log(10000) / log(10)', 'b = log(1024, 2)', '2 ^ b' ], 'seealso': [ 'exp', 'log10' ] }; /***/ }, /* 178 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'log10', 'category': 'Arithmetic', 'syntax': [ 'log10(x)' ], 'description': 'Compute the 10-base logarithm of a value.', 'examples': [ 'log10(0.00001)', 'log10(10000)', '10 ^ 4', 'log(10000) / log(10)', 'log(10000, 10)' ], 'seealso': [ 'exp', 'log' ] }; /***/ }, /* 179 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'mod', 'category': 'Operators', 'syntax': [ 'x % y', 'x mod y', 'mod(x, y)' ], 'description': 'Calculates the modulus, the remainder of an integer division.', 'examples': [ '7 % 3', '11 % 2', '10 mod 4', 'function isOdd(x) = x % 2', 'isOdd(2)', 'isOdd(3)' ], 'seealso': ['divide'] }; /***/ }, /* 180 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'multiply', 'category': 'Operators', 'syntax': [ 'x * y', 'multiply(x, y)' ], 'description': 'multiply two values.', 'examples': [ 'a = 2.1 * 3.4', 'a / 3.4', '2 * 3 + 4', '2 * (3 + 4)', '3 * 2.1 km' ], 'seealso': [ 'divide' ] }; /***/ }, /* 181 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'norm', 'category': 'Arithmetic', 'syntax': [ 'norm(x)', 'norm(x, p)' ], 'description': 'Calculate the norm of a number, vector or matrix.', 'examples': [ 'abs(-3.5)', 'norm(-3.5)', 'norm(3 - 4i))', 'norm([1, 2, -3], Infinity)', 'norm([1, 2, -3], -Infinity)', 'norm([3, 4], 2)', 'norm([[1, 2], [3, 4]], 1)', 'norm([[1, 2], [3, 4]], \'inf\')', 'norm([[1, 2], [3, 4]], \'fro\')' ] }; /***/ }, /* 182 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'pow', 'category': 'Operators', 'syntax': [ 'x ^ y', 'pow(x, y)' ], 'description': 'Calculates the power of x to y, x^y.', 'examples': [ '2^3 = 8', '2*2*2', '1 + e ^ (pi * i)' ], 'seealso': [ 'multiply' ] }; /***/ }, /* 183 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'round', 'category': 'Arithmetic', 'syntax': [ 'round(x)', 'round(x, n)' ], 'description': 'round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.', 'examples': [ 'round(3.2)', 'round(3.8)', 'round(-4.2)', 'round(-4.8)', 'round(pi, 3)', 'round(123.45678, 2)' ], 'seealso': ['ceil', 'floor', 'fix'] }; /***/ }, /* 184 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sign', 'category': 'Arithmetic', 'syntax': [ 'sign(x)' ], 'description': 'Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.', 'examples': [ 'sign(3.5)', 'sign(-4.2)', 'sign(0)' ], 'seealso': [ 'abs' ] }; /***/ }, /* 185 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sqrt', 'category': 'Arithmetic', 'syntax': [ 'sqrt(x)' ], 'description': 'Compute the square root value. If x = y * y, then y is the square root of x.', 'examples': [ 'sqrt(25)', '5 * 5', 'sqrt(-1)' ], 'seealso': [ 'square', 'multiply' ] }; /***/ }, /* 186 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'square', 'category': 'Arithmetic', 'syntax': [ 'square(x)' ], 'description': 'Compute the square of a value. The square of x is x * x.', 'examples': [ 'square(3)', 'sqrt(9)', '3^2', '3 * 3' ], 'seealso': [ 'multiply', 'pow', 'sqrt', 'cube' ] }; /***/ }, /* 187 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'subtract', 'category': 'Operators', 'syntax': [ 'x - y', 'subtract(x, y)' ], 'description': 'subtract two values.', 'examples': [ 'a = 5.3 - 2', 'a + 2', '2/3 - 1/6', '2 * 3 - 3', '2.1 km - 500m' ], 'seealso': [ 'add' ] }; /***/ }, /* 188 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'unaryMinus', 'category': 'Operators', 'syntax': [ '-x', 'unaryMinus(x)' ], 'description': 'Inverse the sign of a value. Converts booleans and strings to numbers.', 'examples': [ '-4.5', '-(-5.6)', '-"22"' ], 'seealso': [ 'add', 'subtract', 'unaryPlus' ] }; /***/ }, /* 189 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'unaryPlus', 'category': 'Operators', 'syntax': [ '+x', 'unaryPlus(x)' ], 'description': 'Converts booleans and strings to numbers.', 'examples': [ '+true', '+"2"' ], 'seealso': [ 'add', 'subtract', 'unaryMinus' ] }; /***/ }, /* 190 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'xgcd', 'category': 'Arithmetic', 'syntax': [ 'xgcd(a, b)' ], 'description': 'Calculate the extended greatest common divisor for two values', 'examples': [ 'xgcd(8, 12)', 'gcd(8, 12)', 'xgcd(36163, 21199)' ], 'seealso': [ 'gcd', 'lcm' ] }; /***/ }, /* 191 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'compare', 'category': 'Comparison', 'syntax': [ 'compare(x, y)' ], 'description': 'Compare two values. Returns 1 if x is larger than y, -1 if x is smaller than y, and 0 if x and y are equal.', 'examples': [ 'compare(2, 3)', 'compare(3, 2)', 'compare(2, 2)', 'compare(5cm, 40mm)', 'compare(2, [1, 2, 3])' ], 'seealso': [ 'equal', 'unequal', 'smaller', 'smallerEq', 'largerEq' ] }; /***/ }, /* 192 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'deepEqual', 'category': 'Comparison', 'syntax': [ 'deepEqual(x, y)' ], 'description': 'Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.', 'examples': [ '[1,3,4] == [1,3,4]', '[1,3,4] == [1,3]' ], 'seealso': [ 'equal', 'unequal', 'smaller', 'larger', 'smallerEq', 'largerEq', 'compare' ] }; /***/ }, /* 193 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'equal', 'category': 'Comparison', 'syntax': [ 'x == y', 'equal(x, y)' ], 'description': 'Check equality of two values. Returns true if the values are equal, and false if not.', 'examples': [ '2+2 == 3', '2+2 == 4', 'a = 3.2', 'b = 6-2.8', 'a == b', '50cm == 0.5m' ], 'seealso': [ 'unequal', 'smaller', 'larger', 'smallerEq', 'largerEq', 'compare', 'deepEqual' ] }; /***/ }, /* 194 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'larger', 'category': 'Comparison', 'syntax': [ 'x > y', 'larger(x, y)' ], 'description': 'Check if value x is larger than y. Returns true if x is larger than y, and false if not.', 'examples': [ '2 > 3', '5 > 2*2', 'a = 3.3', 'b = 6-2.8', '(a > b)', '(b < a)', '5 cm > 2 inch' ], 'seealso': [ 'equal', 'unequal', 'smaller', 'smallerEq', 'largerEq', 'compare' ] }; /***/ }, /* 195 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'largerEq', 'category': 'Comparison', 'syntax': [ 'x >= y', 'largerEq(x, y)' ], 'description': 'Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.', 'examples': [ '2 > 1+1', '2 >= 1+1', 'a = 3.2', 'b = 6-2.8', '(a > b)' ], 'seealso': [ 'equal', 'unequal', 'smallerEq', 'smaller', 'largerEq', 'compare' ] }; /***/ }, /* 196 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'smaller', 'category': 'Comparison', 'syntax': [ 'x < y', 'smaller(x, y)' ], 'description': 'Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.', 'examples': [ '2 < 3', '5 < 2*2', 'a = 3.3', 'b = 6-2.8', '(a < b)', '5 cm < 2 inch' ], 'seealso': [ 'equal', 'unequal', 'larger', 'smallerEq', 'largerEq', 'compare' ] }; /***/ }, /* 197 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'smallerEq', 'category': 'Comparison', 'syntax': [ 'x <= y', 'smallerEq(x, y)' ], 'description': 'Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.', 'examples': [ '2 < 1+1', '2 <= 1+1', 'a = 3.2', 'b = 6-2.8', '(a < b)' ], 'seealso': [ 'equal', 'unequal', 'larger', 'smaller', 'largerEq', 'compare' ] }; /***/ }, /* 198 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'unequal', 'category': 'Comparison', 'syntax': [ 'x != y', 'unequal(x, y)' ], 'description': 'Check unequality of two values. Returns true if the values are unequal, and false if they are equal.', 'examples': [ '2+2 != 3', '2+2 != 4', 'a = 3.2', 'b = 6-2.8', 'a != b', '50cm != 0.5m', '5 cm != 2 inch' ], 'seealso': [ 'equal', 'smaller', 'larger', 'smallerEq', 'largerEq', 'compare', 'deepEqual' ] }; /***/ }, /* 199 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'arg', 'category': 'Complex', 'syntax': [ 'arg(x)' ], 'description': 'Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).', 'examples': [ 'arg(2 + 2i)', 'atan2(3, 2)', 'arg(2 + 3i)' ], 'seealso': [ 're', 'im', 'conj', 'abs' ] }; /***/ }, /* 200 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'conj', 'category': 'Complex', 'syntax': [ 'conj(x)' ], 'description': 'Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.', 'examples': [ 'conj(2 + 3i)', 'conj(2 - 3i)', 'conj(-5.2i)' ], 'seealso': [ 're', 'im', 'abs', 'arg' ] }; /***/ }, /* 201 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 're', 'category': 'Complex', 'syntax': [ 're(x)' ], 'description': 'Get the real part of a complex number.', 'examples': [ 're(2 + 3i)', 'im(2 + 3i)', 're(-5.2i)', 're(2.4)' ], 'seealso': [ 'im', 'conj', 'abs', 'arg' ] }; /***/ }, /* 202 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'im', 'category': 'Complex', 'syntax': [ 'im(x)' ], 'description': 'Get the imaginary part of a complex number.', 'examples': [ 'im(2 + 3i)', 're(2 + 3i)', 'im(-5.2i)', 'im(2.4)' ], 'seealso': [ 're', 'conj', 'abs', 'arg' ] }; /***/ }, /* 203 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'bignumber', 'category': 'Type', 'syntax': [ 'bignumber(x)' ], 'description': 'Create a big number from a number or string.', 'examples': [ '0.1 + 0.2', 'bignumber(0.1) + bignumber(0.2)', 'bignumber("7.2")', 'bignumber("7.2e500")', 'bignumber([0.1, 0.2, 0.3])' ], 'seealso': [ 'boolean', 'complex', 'index', 'matrix', 'string', 'unit' ] }; /***/ }, /* 204 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'boolean', 'category': 'Type', 'syntax': [ 'x', 'boolean(x)' ], 'description': 'Convert a string or number into a boolean.', 'examples': [ 'boolean(0)', 'boolean(1)', 'boolean(3)', 'boolean("true")', 'boolean("false")', 'boolean([1, 0, 1, 1])' ], 'seealso': [ 'bignumber', 'complex', 'index', 'matrix', 'number', 'string', 'unit' ] }; /***/ }, /* 205 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'complex', 'category': 'Type', 'syntax': [ 'complex()', 'complex(re, im)', 'complex(string)' ], 'description': 'Create a complex number.', 'examples': [ 'complex()', 'complex(2, 3)', 'complex("7 - 2i")' ], 'seealso': [ 'bignumber', 'boolean', 'index', 'matrix', 'number', 'string', 'unit' ] }; /***/ }, /* 206 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'index', 'category': 'Type', 'syntax': [ '[start]', '[start:end]', '[start:step:end]', '[start1, start 2, ...]', '[start1:end1, start2:end2, ...]', '[start1:step1:end1, start2:step2:end2, ...]' ], 'description': 'Create an index to get or replace a subset of a matrix', 'examples': [ '[]', '[1, 2, 3]', 'A = [1, 2, 3; 4, 5, 6]', 'A[1, :]', 'A[1, 2] = 50', 'A[0:2, 0:2] = ones(2, 2)' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'matrix,', 'number', 'range', 'string', 'unit' ] }; /***/ }, /* 207 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'matrix', 'category': 'Type', 'syntax': [ '[]', '[a1, b1, ...; a2, b2, ...]', 'matrix()', 'matrix([...])' ], 'description': 'Create a matrix.', 'examples': [ '[]', '[1, 2, 3]', '[1, 2, 3; 4, 5, 6]', 'matrix()', 'matrix([3, 4])' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'number', 'string', 'unit' ] }; /***/ }, /* 208 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'number', 'category': 'Type', 'syntax': [ 'x', 'number(x)' ], 'description': 'Create a number or convert a string or boolean into a number.', 'examples': [ '2', '2e3', '4.05', 'number(2)', 'number("7.2")', 'number(true)', 'number([true, false, true, true])' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit' ] }; /***/ }, /* 209 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'string', 'category': 'Type', 'syntax': [ '"text"', 'string(x)' ], 'description': 'Create a string or convert a value to a string', 'examples': [ '"Hello World!"', 'string(4.2)', 'string(3 + 2i)' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'unit' ] }; /***/ }, /* 210 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'unit', 'category': 'Type', 'syntax': [ 'value unit', 'unit(value, unit)', 'unit(string)' ], 'description': 'Create a unit.', 'examples': [ '5.5 mm', '3 inch', 'unit(7.1, "kilogram")', 'unit("23 deg")' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'string' ] }; /***/ }, /* 211 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'eval', 'category': 'Expression', 'syntax': [ 'eval(expression)', 'eval([expr1, expr2, expr3, ...])' ], 'description': 'Evaluate an expression or an array with expressions.', 'examples': [ 'eval("2 + 3")', 'eval("sqrt(" + 4 + ")")' ], 'seealso': [] }; /***/ }, /* 212 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'help', 'category': 'Expression', 'syntax': [ 'help(object)', 'help(string)' ], 'description': 'Display documentation on a function or data type.', 'examples': [ 'help(sqrt)', 'help("complex")' ], 'seealso': [] }; /***/ }, /* 213 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'concat', 'category': 'Matrix', 'syntax': [ 'concat(A, B, C, ...)', 'concat(A, B, C, ..., dim)' ], 'description': 'Concatenate matrices. By default, the matrices are concatenated by the first dimension. The dimension on which to concatenate can be provided as last argument.', 'examples': [ 'A = [1, 2; 5, 6]', 'B = [3, 4; 7, 8]', 'concat(A, B)', '[A, B]', 'concat(A, B, 1)', '[A; B]' ], 'seealso': [ 'det', 'diag', 'eye', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 214 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'det', 'category': 'Matrix', 'syntax': [ 'det(x)' ], 'description': 'Calculate the determinant of a matrix', 'examples': [ 'det([1, 2; 3, 4])', 'det([-2, 2, 3; -1, 1, 3; 2, 0, -1])' ], 'seealso': [ 'concat', 'diag', 'eye', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 215 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'diag', 'category': 'Matrix', 'syntax': [ 'diag(x)', 'diag(x, k)' ], 'description': 'Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.', 'examples': [ 'diag(1:3)', 'diag(1:3, 1)', 'a = [1, 2, 3; 4, 5, 6; 7, 8, 9]', 'diag(a)' ], 'seealso': [ 'concat', 'det', 'eye', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 216 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'eye', 'category': 'Matrix', 'syntax': [ 'eye(n)', 'eye(m, n)', 'eye([m, n])', 'eye' ], 'description': 'Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.', 'examples': [ 'eye(3)', 'eye(3, 5)', 'a = [1, 2, 3; 4, 5, 6]', 'eye(size(a))' ], 'seealso': [ 'concat', 'det', 'diag', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 217 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'inv', 'category': 'Matrix', 'syntax': [ 'inv(x)' ], 'description': 'Calculate the inverse of a matrix', 'examples': [ 'inv([1, 2; 3, 4])', 'inv(4)', '1 / 4' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 218 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'ones', 'category': 'Matrix', 'syntax': [ 'ones(m)', 'ones(m, n)', 'ones(m, n, p, ...)', 'ones([m])', 'ones([m, n])', 'ones([m, n, p, ...])', 'ones' ], 'description': 'Create a matrix containing ones.', 'examples': [ 'ones(3)', 'ones(3, 5)', 'ones([2,3]) * 4.5', 'a = [1, 2, 3; 4, 5, 6]', 'ones(size(a))' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 219 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'range', 'category': 'Type', 'syntax': [ 'start:end', 'start:step:end', 'range(start, end)', 'range(start, end, step)', 'range(string)' ], 'description': 'Create a range. Lower bound of the range is included, upper bound is excluded.', 'examples': [ '1:5', '3:-1:-3', 'range(3, 7)', 'range(0, 12, 2)', 'range("4:10")', 'a = [1, 2, 3, 4; 5, 6, 7, 8]', 'a[1:2, 1:2]' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'ones', 'size', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 220 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'resize', 'category': 'Matrix', 'syntax': [ 'resize(x, size)', 'resize(x, size, defaultValue)' ], 'description': 'Resize a matrix.', 'examples': [ 'resize([1,2,3,4,5], [3])', 'resize([1,2,3], [5], 0)', 'resize(2, [2, 3], 0)', 'resize("hello", [8], "!")' ], 'seealso': [ 'size', 'subset', 'squeeze' ] }; /***/ }, /* 221 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'size', 'category': 'Matrix', 'syntax': [ 'size(x)' ], 'description': 'Calculate the size of a matrix.', 'examples': [ 'size(2.3)', 'size("hello world")', 'a = [1, 2; 3, 4; 5, 6]', 'size(a)', 'size(1:6)' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'ones', 'range', 'squeeze', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 222 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'squeeze', 'category': 'Matrix', 'syntax': [ 'squeeze(x)' ], 'description': 'Remove singleton dimensions from a matrix.', 'examples': [ 'a = zeros(1,3,2)', 'size(squeeze(a))', 'b = zeros(3,1,1)', 'size(squeeze(b))' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'ones', 'range', 'size', 'subset', 'transpose', 'zeros' ] }; /***/ }, /* 223 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'subset', 'category': 'Matrix', 'syntax': [ 'value(index)', 'value(index) = replacement', 'subset(value, [index])', 'subset(value, [index], replacement)' ], 'description': 'Get or set a subset of a matrix or string. ' + 'Indexes are one-based. ' + 'Both the ranges lower-bound and upper-bound are included.', 'examples': [ 'd = [1, 2; 3, 4]', 'e = []', 'e[1, 1:2] = [5, 6]', 'e[2, :] = [7, 8]', 'f = d * e', 'f[2, 1]', 'f[:, 1]' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'ones', 'range', 'size', 'squeeze', 'transpose', 'zeros' ] }; /***/ }, /* 224 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'transpose', 'category': 'Matrix', 'syntax': [ 'x\'', 'transpose(x)' ], 'description': 'Transpose a matrix', 'examples': [ 'a = [1, 2, 3; 4, 5, 6]', 'a\'', 'transpose(a)' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'zeros' ] }; /***/ }, /* 225 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'zeros', 'category': 'Matrix', 'syntax': [ 'zeros(m)', 'zeros(m, n)', 'zeros(m, n, p, ...)', 'zeros([m])', 'zeros([m, n])', 'zeros([m, n, p, ...])', 'zeros' ], 'description': 'Create a matrix containing zeros.', 'examples': [ 'zeros(3)', 'zeros(3, 5)', 'a = [1, 2, 3; 4, 5, 6]', 'zeros(size(a))' ], 'seealso': [ 'concat', 'det', 'diag', 'eye', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose' ] }; /***/ }, /* 226 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'combinations', 'category': 'Probability', 'syntax': [ 'combinations(n, k)' ], 'description': 'Compute the number of combinations of n items taken k at a time', 'examples': [ 'combinations(7, 5)' ], 'seealso': ['permutations', 'factorial'] }; /***/ }, /* 227 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'distribution', 'category': 'Probability', 'syntax': [ 'distribution(name)', 'distribution(name, arg1, arg2, ...)' ], 'description': 'Create a distribution object of a specific type. ' + 'A distribution object contains functions `random([size,] [min,] [max])`, ' + '`randomInt([size,] [min,] [max])`, and `pickRandom(array)`. ' + 'Available types of distributions: "uniform", "normal". ' + 'Note that the function distribution is currently not available via the expression parser.', 'examples': [ ], 'seealso': ['random', 'randomInt'] }; /***/ }, /* 228 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'factorial', 'category': 'Probability', 'syntax': [ 'n!', 'factorial(n)' ], 'description': 'Compute the factorial of a value', 'examples': [ '5!', '5*4*3*2*1', '3!' ], 'seealso': ['combinations', 'permutations'] }; /***/ }, /* 229 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'permutations', 'category': 'Probability', 'syntax': [ 'permutations(n)', 'permutations(n, k)' ], 'description': 'Compute the number of permutations of n items taken k at a time', 'examples': [ 'permutations(5)', 'permutations(5, 3)' ], 'seealso': ['combinations', 'factorial'] }; /***/ }, /* 230 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'pickRandom', 'category': 'Probability', 'syntax': [ 'pickRandom(array)' ], 'description': 'Pick a random entry from a given array.', 'examples': [ 'pickRandom(0:10)', 'pickRandom([1, 3, 1, 6])' ], 'seealso': ['distribution', 'random', 'randomInt'] }; /***/ }, /* 231 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'random', 'category': 'Probability', 'syntax': [ 'random()', 'random(max)', 'random(min, max)', 'random(size)', 'random(size, max)', 'random(size, min, max)' ], 'description': 'Return a random number.', 'examples': [ 'random()', 'random(10, 20)', 'random([2, 3])' ], 'seealso': ['distribution', 'pickRandom', 'randomInt'] }; /***/ }, /* 232 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'randInt', 'category': 'Probability', 'syntax': [ 'randInt()', 'randInt(max)', 'randInt(min, max)', 'randInt(size)', 'randInt(size, max)', 'randInt(size, min, max)' ], 'description': 'Return a random integer number', 'examples': [ 'randInt()', 'randInt(10, 20)', 'randInt([2, 3], 10)' ], 'seealso': ['distribution', 'pickRandom', 'random'] }; /***/ }, /* 233 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'max', 'category': 'Statistics', 'syntax': [ 'max(a, b, c, ...)', 'max(A)', 'max(A, dim)' ], 'description': 'Compute the maximum value of a list of values.', 'examples': [ 'max(2, 3, 4, 1)', 'max([2, 3, 4, 1])', 'max([2, 5; 4, 3], 0)', 'max([2, 5; 4, 3], 1)', 'max(2.7, 7.1, -4.5, 2.0, 4.1)', 'min(2.7, 7.1, -4.5, 2.0, 4.1)' ], 'seealso': [ 'mean', 'median', 'min', 'prod', 'std', 'sum', 'var' ] }; /***/ }, /* 234 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'mean', 'category': 'Statistics', 'syntax': [ 'mean(a, b, c, ...)', 'mean(A)', 'mean(A, dim)' ], 'description': 'Compute the arithmetic mean of a list of values.', 'examples': [ 'mean(2, 3, 4, 1)', 'mean([2, 3, 4, 1])', 'mean([2, 5; 4, 3], 0)', 'mean([2, 5; 4, 3], 1)', 'mean([1.0, 2.7, 3.2, 4.0])' ], 'seealso': [ 'max', 'median', 'min', 'prod', 'std', 'sum', 'var' ] }; /***/ }, /* 235 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'median', 'category': 'Statistics', 'syntax': [ 'median(a, b, c, ...)', 'median(A)' ], 'description': 'Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.', 'examples': [ 'median(5, 2, 7)', 'median([3, -1, 5, 7])' ], 'seealso': [ 'max', 'mean', 'min', 'prod', 'std', 'sum', 'var' ] }; /***/ }, /* 236 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'min', 'category': 'Statistics', 'syntax': [ 'min(a, b, c, ...)', 'min(A)', 'min(A, dim)' ], 'description': 'Compute the minimum value of a list of values.', 'examples': [ 'min(2, 3, 4, 1)', 'min([2, 3, 4, 1])', 'min([2, 5; 4, 3], 0)', 'min([2, 5; 4, 3], 1)', 'min(2.7, 7.1, -4.5, 2.0, 4.1)', 'max(2.7, 7.1, -4.5, 2.0, 4.1)' ], 'seealso': [ 'max', 'mean', 'median', 'prod', 'std', 'sum', 'var' ] }; /***/ }, /* 237 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'prod', 'category': 'Statistics', 'syntax': [ 'prod(a, b, c, ...)', 'prod(A)' ], 'description': 'Compute the product of all values.', 'examples': [ 'prod(2, 3, 4)', 'prod([2, 3, 4])', 'prod([2, 5; 4, 3])' ], 'seealso': [ 'max', 'mean', 'min', 'median', 'min', 'std', 'sum', 'var' ] }; /***/ }, /* 238 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'std', 'category': 'Statistics', 'syntax': [ 'std(a, b, c, ...)', 'std(A)', 'std(A, normalization)' ], 'description': 'Compute the standard deviation of all values, defined as std(A) = sqrt(var(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".', 'examples': [ 'std(2, 4, 6)', 'std([2, 4, 6, 8])', 'std([2, 4, 6, 8], "uncorrected")', 'std([2, 4, 6, 8], "biased")', 'std([1, 2, 3; 4, 5, 6])' ], 'seealso': [ 'max', 'mean', 'min', 'median', 'min', 'prod', 'sum', 'var' ] }; /***/ }, /* 239 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sum', 'category': 'Statistics', 'syntax': [ 'sum(a, b, c, ...)', 'sum(A)' ], 'description': 'Compute the sum of all values.', 'examples': [ 'sum(2, 3, 4, 1)', 'sum([2, 3, 4, 1])', 'sum([2, 5; 4, 3])' ], 'seealso': [ 'max', 'mean', 'median', 'min', 'prod', 'std', 'sum', 'var' ] }; /***/ }, /* 240 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'var', 'category': 'Statistics', 'syntax': [ 'var(a, b, c, ...)', 'var(A)', 'var(A, normalization)' ], 'description': 'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".', 'examples': [ 'var(2, 4, 6)', 'var([2, 4, 6, 8])', 'var([2, 4, 6, 8], "uncorrected")', 'var([2, 4, 6, 8], "biased")', 'var([1, 2, 3; 4, 5, 6])' ], 'seealso': [ 'max', 'mean', 'min', 'median', 'min', 'prod', 'std', 'sum' ] }; /***/ }, /* 241 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'acos', 'category': 'Trigonometry', 'syntax': [ 'acos(x)' ], 'description': 'Compute the inverse cosine of a value in radians.', 'examples': [ 'acos(0.5)', 'acos(cos(2.3))' ], 'seealso': [ 'cos', 'atan', 'asin' ] }; /***/ }, /* 242 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'asin', 'category': 'Trigonometry', 'syntax': [ 'asin(x)' ], 'description': 'Compute the inverse sine of a value in radians.', 'examples': [ 'asin(0.5)', 'asin(sin(2.3))' ], 'seealso': [ 'sin', 'acos', 'atan' ] }; /***/ }, /* 243 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'atan', 'category': 'Trigonometry', 'syntax': [ 'atan(x)' ], 'description': 'Compute the inverse tangent of a value in radians.', 'examples': [ 'atan(0.5)', 'atan(tan(2.3))' ], 'seealso': [ 'tan', 'acos', 'asin' ] }; /***/ }, /* 244 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'atan2', 'category': 'Trigonometry', 'syntax': [ 'atan2(y, x)' ], 'description': 'Computes the principal value of the arc tangent of y/x in radians.', 'examples': [ 'atan2(2, 2) / pi', 'angle = 60 deg in rad', 'x = cos(angle)', 'y = sin(angle)', 'atan2(y, x)' ], 'seealso': [ 'sin', 'cos', 'tan' ] }; /***/ }, /* 245 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'cos', 'category': 'Trigonometry', 'syntax': [ 'cos(x)' ], 'description': 'Compute the cosine of x in radians.', 'examples': [ 'cos(2)', 'cos(pi / 4) ^ 2', 'cos(180 deg)', 'cos(60 deg)', 'sin(0.2)^2 + cos(0.2)^2' ], 'seealso': [ 'acos', 'sin', 'tan' ] }; /***/ }, /* 246 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'cosh', 'category': 'Trigonometry', 'syntax': [ 'cosh(x)' ], 'description': 'Compute the hyperbolic cosine of x in radians.', 'examples': [ 'cosh(0.5)' ], 'seealso': [ 'sinh', 'tanh', 'coth' ] }; /***/ }, /* 247 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'cot', 'category': 'Trigonometry', 'syntax': [ 'cot(x)' ], 'description': 'Compute the cotangent of x in radians. Defined as 1/tan(x)', 'examples': [ 'cot(2)', '1 / tan(2)' ], 'seealso': [ 'sec', 'csc', 'tan' ] }; /***/ }, /* 248 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'coth', 'category': 'Trigonometry', 'syntax': [ 'coth(x)' ], 'description': 'Compute the hyperbolic cotangent of x in radians.', 'examples': [ 'coth(2)', '1 / tanh(2)' ], 'seealso': [ 'sech', 'csch', 'tanh' ] }; /***/ }, /* 249 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'csc', 'category': 'Trigonometry', 'syntax': [ 'csc(x)' ], 'description': 'Compute the cosecant of x in radians. Defined as 1/sin(x)', 'examples': [ 'csc(2)', '1 / sin(2)' ], 'seealso': [ 'sec', 'cot', 'sin' ] }; /***/ }, /* 250 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'csch', 'category': 'Trigonometry', 'syntax': [ 'csch(x)' ], 'description': 'Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)', 'examples': [ 'csch(2)', '1 / sinh(2)' ], 'seealso': [ 'sech', 'coth', 'sinh' ] }; /***/ }, /* 251 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sec', 'category': 'Trigonometry', 'syntax': [ 'sec(x)' ], 'description': 'Compute the secant of x in radians. Defined as 1/cos(x)', 'examples': [ 'sec(2)', '1 / cos(2)' ], 'seealso': [ 'cot', 'csc', 'cos' ] }; /***/ }, /* 252 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sech', 'category': 'Trigonometry', 'syntax': [ 'sech(x)' ], 'description': 'Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)', 'examples': [ 'sech(2)', '1 / cosh(2)' ], 'seealso': [ 'coth', 'csch', 'cosh' ] }; /***/ }, /* 253 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sin', 'category': 'Trigonometry', 'syntax': [ 'sin(x)' ], 'description': 'Compute the sine of x in radians.', 'examples': [ 'sin(2)', 'sin(pi / 4) ^ 2', 'sin(90 deg)', 'sin(30 deg)', 'sin(0.2)^2 + cos(0.2)^2' ], 'seealso': [ 'asin', 'cos', 'tan' ] }; /***/ }, /* 254 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'sinh', 'category': 'Trigonometry', 'syntax': [ 'sinh(x)' ], 'description': 'Compute the hyperbolic sine of x in radians.', 'examples': [ 'sinh(0.5)' ], 'seealso': [ 'cosh', 'tanh' ] }; /***/ }, /* 255 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'tan', 'category': 'Trigonometry', 'syntax': [ 'tan(x)' ], 'description': 'Compute the tangent of x in radians.', 'examples': [ 'tan(0.5)', 'sin(0.5) / cos(0.5)', 'tan(pi / 4)', 'tan(45 deg)' ], 'seealso': [ 'atan', 'sin', 'cos' ] }; /***/ }, /* 256 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'tanh', 'category': 'Trigonometry', 'syntax': [ 'tanh(x)' ], 'description': 'Compute the hyperbolic tangent of x in radians.', 'examples': [ 'tanh(0.5)', 'sinh(0.5) / cosh(0.5)' ], 'seealso': [ 'sinh', 'cosh' ] }; /***/ }, /* 257 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'to', 'category': 'Units', 'syntax': [ 'x to unit', 'to(x, unit)' ], 'description': 'Change the unit of a value.', 'examples': [ '5 inch to cm', '3.2kg to g', '16 bytes in bits' ], 'seealso': [] }; /***/ }, /* 258 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'clone', 'category': 'Utils', 'syntax': [ 'clone(x)' ], 'description': 'Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices', 'examples': [ 'clone(3.5)', 'clone(2 - 4i)', 'clone(45 deg)', 'clone([1, 2; 3, 4])', 'clone("hello world")' ], 'seealso': [] }; /***/ }, /* 259 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'map', 'category': 'Utils', 'syntax': [ 'map(x, callback)' ], 'description': 'Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.', 'examples': [ 'map([1, 2, 3], function(val) { return value * value })' ], 'seealso': [] }; /***/ }, /* 260 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'forEach', 'category': 'Utils', 'syntax': [ 'forEach(x, callback)' ], 'description': 'Iterates over all elements of a matrix/array, and executes the given callback function.', 'examples': [ 'forEach([1, 2, 3], function(val) { console.log(val) })' ], 'seealso': ['unit'] }; /***/ }, /* 261 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'format', 'category': 'Utils', 'syntax': [ 'format(value)', 'format(value, precision)' ], 'description': 'Format a value of any type as string.', 'examples': [ 'format(2.3)', 'format(3 - 4i)', 'format([])', 'format(pi, 3)' ], 'seealso': ['print'] }; /***/ }, /* 262 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'import', 'category': 'Utils', 'syntax': [ 'import(string)' ], 'description': 'Import functions from a file.', 'examples': [ 'import("numbers")', 'import("./mylib.js")' ], 'seealso': [] }; /***/ }, /* 263 */ /***/ function(module, exports, __webpack_require__) { module.exports = { 'name': 'typeof', 'category': 'Utils', 'syntax': [ 'typeof(x)' ], 'description': 'Get the type of a variable.', 'examples': [ 'typeof(3.5)', 'typeof(2 - 4i)', 'typeof(45 deg)', 'typeof("hello world")' ], 'seealso': [] }; /***/ }, /* 264 */ /***/ function(module, exports, __webpack_require__) { /** * Test whether value is a Boolean * @param {*} value * @return {Boolean} isBoolean */ exports.isBoolean = function isBoolean(value) { return (value instanceof Boolean) || (typeof value == 'boolean'); }; /***/ }, /* 265 */ /***/ function(module, exports, __webpack_require__) { var BigNumber = __webpack_require__(123), isNumber = __webpack_require__(161).isNumber; digits = __webpack_require__(161).digits; /** * Test whether value is a BigNumber * @param {*} value * @return {Boolean} isBigNumber */ exports.isBigNumber = function isBigNumber(value) { return (value instanceof BigNumber); }; /** * Convert a number to a formatted string representation. * * Syntax: * * format(value) * format(value, options) * format(value, precision) * format(value, fn) * * Where: * * {Number} value The value to be formatted * {Object} options An object with formatting options. Available options: * {String} notation * Number notation. Choose from: * 'fixed' Always use regular number notation. * For example '123.40' and '14000000' * 'exponential' Always use exponential notation. * For example '1.234e+2' and '1.4e+7' * 'auto' (default) Regular number notation for numbers * having an absolute value between * `lower` and `upper` bounds, and uses * exponential notation elsewhere. * Lower bound is included, upper bound * is excluded. * For example '123.4' and '1.4e7'. * {Number} precision A number between 0 and 16 to round * the digits of the number. * In case of notations 'exponential' and * 'auto', `precision` defines the total * number of significant digits returned * and is undefined by default. * In case of notation 'fixed', * `precision` defines the number of * significant digits after the decimal * point, and is 0 by default. * {Object} exponential An object containing two parameters, * {Number} lower and {Number} upper, * used by notation 'auto' to determine * when to return exponential notation. * Default values are `lower=1e-3` and * `upper=1e5`. * Only applicable for notation `auto`. * {Function} fn A custom formatting function. Can be used to override the * built-in notations. Function `fn` is called with `value` as * parameter and must return a string. Is useful for example to * format all values inside a matrix in a particular way. * * Examples: * * format(6.4); // '6.4' * format(1240000); // '1.24e6' * format(1/3); // '0.3333333333333333' * format(1/3, 3); // '0.333' * format(21385, 2); // '21000' * format(12.071, {notation: 'fixed'}); // '12' * format(2.3, {notation: 'fixed', precision: 2}); // '2.30' * format(52.8, {notation: 'exponential'}); // '5.28e+1' * * @param {BigNumber} value * @param {Object | Function | Number} [options] * @return {String} str The formatted value */ exports.format = function format(value, options) { if (typeof options === 'function') { // handle format(value, fn) return options(value); } // handle special cases if (!value.isFinite()) { return value.isNaN() ? 'NaN' : (value.gt(0) ? 'Infinity' : '-Infinity'); } // default values for options var notation = 'auto'; var precision = undefined; if (options !== undefined) { // determine notation from options if (options.notation) { notation = options.notation; } // determine precision from options if (isNumber(options)) { precision = options; } else if (options.precision) { precision = options.precision; } } // handle the various notations switch (notation) { case 'fixed': return exports.toFixed(value, precision); case 'exponential': return exports.toExponential(value, precision); case 'auto': // determine lower and upper bound for exponential notation. // TODO: implement support for upper and lower to be BigNumbers themselves var lower = 1e-3; var upper = 1e5; if (options && options.exponential) { if (options.exponential.lower !== undefined) { lower = options.exponential.lower; } if (options.exponential.upper !== undefined) { upper = options.exponential.upper; } } // adjust the configuration of the BigNumber constructor (yeah, this is quite tricky...) var oldConfig = { toExpNeg: value.constructor.toExpNeg, toExpPos: value.constructor.toExpPos }; value.constructor.config({ toExpNeg: Math.round(Math.log(lower) / Math.LN10), toExpPos: Math.round(Math.log(upper) / Math.LN10) }); // handle special case zero if (value.isZero()) return '0'; // determine whether or not to output exponential notation var str; var abs = value.abs(); if (abs.gte(lower) && abs.lt(upper)) { // normal number notation str = value.toSignificantDigits(precision).toFixed(); } else { // exponential notation str = exports.toExponential(value, precision); } // remove trailing zeros after the decimal point return str.replace(/((\.\d*?)(0+))($|e)/, function () { var digits = arguments[2]; var e = arguments[4]; return (digits !== '.') ? digits + e : e; }); default: throw new Error('Unknown notation "' + notation + '". ' + 'Choose "auto", "exponential", or "fixed".'); } }; /** * Format a number in exponential notation. Like '1.23e+5', '2.3e+0', '3.500e-3' * @param {BigNumber} value * @param {Number} [precision] Number of digits in formatted output. * If not provided, the maximum available digits * is used. * @returns {string} str */ exports.toExponential = function toExponential (value, precision) { if (precision !== undefined) { return value.toExponential(precision - 1); // Note the offset of one } else { return value.toExponential(); } }; /** * Format a number with fixed notation. * @param {BigNumber} value * @param {Number} [precision=0] Optional number of decimals after the * decimal point. Zero by default. */ exports.toFixed = function toFixed (value, precision) { return value.toFixed(precision || 0); // Note: the (precision || 0) is needed as the toFixed of BigNumber has an // undefined default precision instead of 0. }; /***/ }, /* 266 */ /***/ function(module, exports, __webpack_require__) { var ArrayNode = __webpack_require__(129), OperatorNode = __webpack_require__(137); // GREEK LETTERS var greek = { Alpha: 'A', alpha: true, Beta: 'B', beta: true, Gamma: true, gamma: true, Delta: true, delta: true, Epsilon: 'E', epsilon: true, varepsilon: true, Zeta: 'Z', zeta: true, Eta: 'H', eta: true, Theta: true, theta: true, vartheta: true, Iota: 'I', iota: true, Kappa: 'K', kappa: true, varkappa: true, Lambda: true, lambda: true, Mu: 'M', mu: true, Nu: 'N', nu: true, Xi: true, xi: true, Omicron: 'O', omicron: true, Pi: true, pi: true, varpi: true, Rho: 'P', rho: true, varrho: true, Sigma: true, sigma: true, varsigma: true, Tau: 'T', tau: true, Upsilon: true, upsilon: true, Phi: true, phi: true, varphi: true, Chi: 'X', chi: true, Psi: true, psi: true, Omega: true, omega: true }; var dots = { dots: true, ldots: true, cdots: true, vdots: true, ddots: true, idots: true }; var logic = { 'true': '\\mathrm{True}', 'false': '\\mathrm{False}' }; var other = { inf: '\\infty', Inf: '\\infty', infinity: '\\infty', Infinity: '\\infty', oo: '\\infty', lim: true, 'undefined': '\\mathbf{?}' }; // FUNCTIONS var functions = { acos: '\\cos^{-1}', arccos: '\\cos^{-1}', cos: true, csc: true, csch: false, exp: true, ker: true, limsup: true, min: true, sinh: true, asin: '\\sin^{-1}', arcsin: '\\sin^{-1}', cosh: true, deg: true, gcd: true, lg: true, ln: true, Pr: true, sup: true, atan: '\\tan^{-1}', atan2: '\\tan2^{-1}', arctan: '\\tan^{-1}', cot: true, det: true, hom: true, log: true, log10: '\\log_{10}', sec: true, sech: false, tan: true, arg: true, coth: true, dim: true, inf: true, max: true, sin: true, tanh: true, fix: false, lcm: false, sign: false, xgcd: false, unaryMinus: false, unaryPlus: false, // complex complex: false, conj: false, im: false, re: false, // matrix diag: false, resize: false, size: false, squeeze: false, subset: false, index: false, ones: false, zeros: false, range: false, // probability random: false, // statistics mean: '\\mu', median: false, prod: false, std: '\\sigma', 'var': '\\sigma^2' }; // CURLY FUNCTIONS // wrap parameters with {} var curlyFunctions = { sqrt: true, inv: true, int: '\\int', Int: '\\int', integrate: '\\int', eigenvalues: '\\lambda', liminf: true, lim: true, exp: 'e^', sum: true, eye: '\\mathbf{I}' }; var operators = { '<=': '\\leq', '>=': '\\geq', '!=': '\\neq', 'in': true, '*': '\\cdot', '/': '\\frac', 'mod': '\\bmod', 'to': '\\rightarrow' }; var units = { deg: '^{\\circ}' }; var symbols = {}; function mapSymbols() { var args = Array.prototype.slice.call(arguments), obj; for (var i = 0, len = args.length; i < len; i++) { obj = args[i]; for (var key in obj) { if (obj.hasOwnProperty(key)) { symbols[key] = obj[key]; } } } } mapSymbols( functions, curlyFunctions, greek, dots, logic, other ); function latexIs(arr, value) { return typeof arr[value] !== 'undefined'; } function latexIsFn(arr) { return function(value) { return latexIs(arr, value); }; } function latexToFn(arr) { return function(value) { if (typeof arr[value] === 'boolean') { if (arr[value] === true) { value = '\\' + value; } else { value = '\\mathrm{' + value + '}'; } } else if (typeof arr[value] === 'string') { value = arr[value]; } else if (typeof value === 'string') { var index = value.indexOf('_'); if (index !== -1) { value = exports.toSymbol(value.substring(0, index)) + '_{' + exports.toSymbol(value.substring(index+1)) + '}'; } } return value; }; } exports.isSymbol = latexIsFn(symbols); exports.toSymbol = latexToFn(symbols); exports.isFunction = latexIsFn(functions); exports.toFunction = latexToFn(functions); exports.isCurlyFunction = latexIsFn(curlyFunctions); exports.toCurlyFunction = latexToFn(curlyFunctions); exports.isOperator = latexIsFn(operators); exports.toOperator = latexToFn(operators); exports.isUnit = latexIsFn(units); exports.toUnit = (function() { var _toUnit = latexToFn(units); return function(value, notSpaced) { if (exports.isUnit(value)) { return _toUnit(value); } return (notSpaced ? '' : '\\,') + '\\mathrm{' + value + '}'; }; }()); exports.addBraces = function(s, brace, type) { if (brace === null) { return s; } var braces = ['', '']; type = type || 'normal'; if (typeof brace === 'undefined' || brace === false) { braces = ['{', '}']; } else if (brace === true) { braces = ['(', ')']; type = 'lr'; } else if (Array.isArray(brace) && brace.length === 2) { braces = brace; } else { braces = [brace, brace]; } switch (type) { case 'normal': case false: return braces[0] + s + braces[1]; case 'lr': return '\\left' + braces[0] + '{' + s + '}' + '\\right' + braces[1]; case 'be': return '\\begin{' + braces[0] + '}' + s + '\\end{' + braces[1] + '}'; } return braces[0] + s + braces[1]; }; exports.toParams = function(that) { var object = that.object, params = that.params, func = object.toTex(), texParams = null, brace = null, type = false, showFunc = false, prefix = '', suffix = '', op = null; switch (object.name) { // OPERATORS case 'add': op = '+'; break; case 'subtract': op = '-'; break; case 'larger': op = '>'; break; case 'largerEq': op = '>='; break; case 'smaller': op = '<'; break; case 'smallerEq': op = '<='; break; case 'unequal': op = '!='; break; case 'equal': op = '='; break; case 'mod': op = 'mod'; break; case 'multiply': op = '*'; break; case 'pow': op = '^'; break; case 'concat': op = '||'; break; case 'factorial': op = '!'; break; case 'permutations': if (params.length === 1) { op = '!'; } else { // op = 'P'; var n = params[0].toTex(), k = params[1].toTex(); return '\\frac{' + n + '!}{\\left(' + n + ' - ' + k + '\\right)!}'; } break; // probability case 'combinations': op = '\\choose'; break; // LR BRACES case 'abs': brace = '|'; type = 'lr'; break; case 'norm': brace = '\\|'; type = 'lr'; if (params.length === 2) { var tmp = params[1].toTex(); if (tmp === '\\text{inf}') { tmp = '\\infty'; } else if (tmp === '\\text{-inf}') { tmp = '{- \\infty}'; } else if (tmp === '\\text{fro}') { tmp = 'F'; } suffix = '_{' + tmp + '}'; params = [params[0]]; } break; case 'ceil': brace = ['\\lceil', '\\rceil']; type = 'lr'; break; case 'floor': brace = ['\\lfloor', '\\rfloor']; type = 'lr'; break; case 'round': brace = ['\\lfloor', '\\rceil']; type = 'lr'; if (params.length === 2) { suffix = '_' + exports.addBraces(params[1].toTex()); params = [params[0]]; } break; // NORMAL BRACES case 'inv': suffix = '^{-1}'; break; case 'transpose': suffix = '^{T}'; brace = false; break; // SPECIAL NOTATION case 'log': var base = 'e'; if (params.length === 2) { base = params[1].toTex(); func = '\\log_{' + base + '}'; params = [params[0]]; } if (base === 'e') { func = '\\ln'; } showFunc = true; break; case 'square': suffix = '^{2}'; break; case 'cube': suffix = '^{3}'; break; // MATRICES case 'eye': showFunc = true; brace = false; func += '_'; break; case 'det': if (that.params[0] instanceof ArrayNode) { return that.params[0].toTex('vmatrix'); } brace = 'vmatrix'; type = 'be'; break; default: showFunc = true; break; } if (op !== null) { brace = (op === '+' || op === '-'); texParams = (new OperatorNode(op, object.name, params)).toTex(); } else { op = ', '; } if (brace === null && !exports.isCurlyFunction(object.name)) { brace = true; } texParams = texParams || params.map(function(param) { return '{' + param.toTex() + '}' ; }).join(op); return prefix + (showFunc ? func : '') + exports.addBraces(texParams, brace, type) + suffix; }; /***/ }, /* 267 */ /***/ function(module, exports, __webpack_require__) { // Reserved keywords not allowed to use in the parser module.exports = { end: true }; /***/ } /******/ ]) })
Showfom/cdnjs
ajax/libs/mathjs/0.25.0/math.js
JavaScript
mit
709,041
// http://wiki.commonjs.org/wiki/Unit_Testing/1.0 // // THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8! // // Originally from narwhal.js (http://narwhaljs.org) // Copyright (c) 2009 Thomas Robinson <280north.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the 'Software'), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // when used in node, this will actually load the util module we depend on // versus loading the builtin util module as happens otherwise // this is a bug in node module loading as far as I am concerned var util = require('util/'); var pSlice = Array.prototype.slice; var hasOwn = Object.prototype.hasOwnProperty; // 1. The assert module provides functions that throw // AssertionError's when particular conditions are not met. The // assert module must conform to the following interface. var assert = module.exports = ok; // 2. The AssertionError is defined in assert. // new assert.AssertionError({ message: message, // actual: actual, // expected: expected }) assert.AssertionError = function AssertionError(options) { this.name = 'AssertionError'; this.actual = options.actual; this.expected = options.expected; this.operator = options.operator; if (options.message) { this.message = options.message; this.generatedMessage = false; } else { this.message = getMessage(this); this.generatedMessage = true; } var stackStartFunction = options.stackStartFunction || fail; if (Error.captureStackTrace) { Error.captureStackTrace(this, stackStartFunction); } else { // non v8 browsers so we can have a stacktrace var err = new Error(); if (err.stack) { var out = err.stack; // try to strip useless frames var fn_name = stackStartFunction.name; var idx = out.indexOf('\n' + fn_name); if (idx >= 0) { // once we have located the function frame // we need to strip out everything before it (and its line) var next_line = out.indexOf('\n', idx + 1); out = out.substring(next_line + 1); } this.stack = out; } } }; // assert.AssertionError instanceof Error util.inherits(assert.AssertionError, Error); function replacer(key, value) { if (util.isUndefined(value)) { return '' + value; } if (util.isNumber(value) && !isFinite(value)) { return value.toString(); } if (util.isFunction(value) || util.isRegExp(value)) { return value.toString(); } return value; } function truncate(s, n) { if (util.isString(s)) { return s.length < n ? s : s.slice(0, n); } else { return s; } } function getMessage(self) { return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' + self.operator + ' ' + truncate(JSON.stringify(self.expected, replacer), 128); } // At present only the three keys mentioned above are used and // understood by the spec. Implementations or sub modules can pass // other keys to the AssertionError's constructor - they will be // ignored. // 3. All of the following functions must throw an AssertionError // when a corresponding condition is not met, with a message that // may be undefined if not provided. All assertion methods provide // both the actual and expected values to the assertion error for // display purposes. function fail(actual, expected, message, operator, stackStartFunction) { throw new assert.AssertionError({ message: message, actual: actual, expected: expected, operator: operator, stackStartFunction: stackStartFunction }); } // EXTENSION! allows for well behaved errors defined elsewhere. assert.fail = fail; // 4. Pure assertion tests whether a value is truthy, as determined // by !!guard. // assert.ok(guard, message_opt); // This statement is equivalent to assert.equal(true, !!guard, // message_opt);. To test strictly for the value true, use // assert.strictEqual(true, guard, message_opt);. function ok(value, message) { if (!value) fail(value, true, message, '==', assert.ok); } assert.ok = ok; // 5. The equality assertion tests shallow, coercive equality with // ==. // assert.equal(actual, expected, message_opt); assert.equal = function equal(actual, expected, message) { if (actual != expected) fail(actual, expected, message, '==', assert.equal); }; // 6. The non-equality assertion tests for whether two objects are not equal // with != assert.notEqual(actual, expected, message_opt); assert.notEqual = function notEqual(actual, expected, message) { if (actual == expected) { fail(actual, expected, message, '!=', assert.notEqual); } }; // 7. The equivalence assertion tests a deep equality relation. // assert.deepEqual(actual, expected, message_opt); assert.deepEqual = function deepEqual(actual, expected, message) { if (!_deepEqual(actual, expected)) { fail(actual, expected, message, 'deepEqual', assert.deepEqual); } }; function _deepEqual(actual, expected) { // 7.1. All identical values are equivalent, as determined by ===. if (actual === expected) { return true; } else if (util.isBuffer(actual) && util.isBuffer(expected)) { if (actual.length != expected.length) return false; for (var i = 0; i < actual.length; i++) { if (actual[i] !== expected[i]) return false; } return true; // 7.2. If the expected value is a Date object, the actual value is // equivalent if it is also a Date object that refers to the same time. } else if (util.isDate(actual) && util.isDate(expected)) { return actual.getTime() === expected.getTime(); // 7.3 If the expected value is a RegExp object, the actual value is // equivalent if it is also a RegExp object with the same source and // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`). } else if (util.isRegExp(actual) && util.isRegExp(expected)) { return actual.source === expected.source && actual.global === expected.global && actual.multiline === expected.multiline && actual.lastIndex === expected.lastIndex && actual.ignoreCase === expected.ignoreCase; // 7.4. Other pairs that do not both pass typeof value == 'object', // equivalence is determined by ==. } else if (!util.isObject(actual) && !util.isObject(expected)) { return actual == expected; // 7.5 For all other Object pairs, including Array objects, equivalence is // determined by having the same number of owned properties (as verified // with Object.prototype.hasOwnProperty.call), the same set of keys // (although not necessarily the same order), equivalent values for every // corresponding key, and an identical 'prototype' property. Note: this // accounts for both named and indexed properties on Arrays. } else { return objEquiv(actual, expected); } } function isArguments(object) { return Object.prototype.toString.call(object) == '[object Arguments]'; } function objEquiv(a, b) { if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b)) return false; // an identical 'prototype' property. if (a.prototype !== b.prototype) return false; // if one is a primitive, the other must be same if (util.isPrimitive(a) || util.isPrimitive(b)) { return a === b; } var aIsArgs = isArguments(a), bIsArgs = isArguments(b); if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs)) return false; if (aIsArgs) { a = pSlice.call(a); b = pSlice.call(b); return _deepEqual(a, b); } var ka = objectKeys(a), kb = objectKeys(b), key, i; // having the same number of owned properties (keys incorporates // hasOwnProperty) if (ka.length != kb.length) return false; //the same set of keys (although not necessarily the same order), ka.sort(); kb.sort(); //~~~cheap key test for (i = ka.length - 1; i >= 0; i--) { if (ka[i] != kb[i]) return false; } //equivalent values for every corresponding key, and //~~~possibly expensive deep test for (i = ka.length - 1; i >= 0; i--) { key = ka[i]; if (!_deepEqual(a[key], b[key])) return false; } return true; } // 8. The non-equivalence assertion tests for any deep inequality. // assert.notDeepEqual(actual, expected, message_opt); assert.notDeepEqual = function notDeepEqual(actual, expected, message) { if (_deepEqual(actual, expected)) { fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual); } }; // 9. The strict equality assertion tests strict equality, as determined by ===. // assert.strictEqual(actual, expected, message_opt); assert.strictEqual = function strictEqual(actual, expected, message) { if (actual !== expected) { fail(actual, expected, message, '===', assert.strictEqual); } }; // 10. The strict non-equality assertion tests for strict inequality, as // determined by !==. assert.notStrictEqual(actual, expected, message_opt); assert.notStrictEqual = function notStrictEqual(actual, expected, message) { if (actual === expected) { fail(actual, expected, message, '!==', assert.notStrictEqual); } }; function expectedException(actual, expected) { if (!actual || !expected) { return false; } if (Object.prototype.toString.call(expected) == '[object RegExp]') { return expected.test(actual); } else if (actual instanceof expected) { return true; } else if (expected.call({}, actual) === true) { return true; } return false; } function _throws(shouldThrow, block, expected, message) { var actual; if (util.isString(expected)) { message = expected; expected = null; } try { block(); } catch (e) { actual = e; } message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + (message ? ' ' + message : '.'); if (shouldThrow && !actual) { fail(actual, expected, 'Missing expected exception' + message); } if (!shouldThrow && expectedException(actual, expected)) { fail(actual, expected, 'Got unwanted exception' + message); } if ((shouldThrow && actual && expected && !expectedException(actual, expected)) || (!shouldThrow && actual)) { throw actual; } } // 11. Expected to throw an error: // assert.throws(block, Error_opt, message_opt); assert.throws = function(block, /*optional*/error, /*optional*/message) { _throws.apply(this, [true].concat(pSlice.call(arguments))); }; // EXTENSION! This is annoying to write outside this module. assert.doesNotThrow = function(block, /*optional*/message) { _throws.apply(this, [false].concat(pSlice.call(arguments))); }; assert.ifError = function(err) { if (err) {throw err;}}; var objectKeys = Object.keys || function (obj) { var keys = []; for (var key in obj) { if (hasOwn.call(obj, key)) keys.push(key); } return keys; };
belongco/react-multi-select-dropdown
node_modules/browserify/node_modules/assert/assert.js
JavaScript
mit
11,706
/* * # Semantic - Popup * http://github.com/jlukic/semantic-ui/ * * * Copyright 2014 Contributor * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { "use strict"; $.fn.popup = function(parameters) { var $allModules = $(this), $document = $(document), moduleSelector = $allModules.selector || '', hasTouch = ('ontouchstart' in document.documentElement), time = new Date().getTime(), performance = [], query = arguments[0], methodInvoked = (typeof query == 'string'), queryArguments = [].slice.call(arguments, 1), returnedValue ; $allModules .each(function() { var settings = ( $.isPlainObject(parameters) ) ? $.extend(true, {}, $.fn.popup.settings, parameters) : $.extend({}, $.fn.popup.settings), selector = settings.selector, className = settings.className, error = settings.error, metadata = settings.metadata, namespace = settings.namespace, eventNamespace = '.' + settings.namespace, moduleNamespace = 'module-' + namespace, $module = $(this), $context = $(settings.context), $target = (settings.target) ? $(settings.target) : $module, $window = $(window), $body = $('body'), $popup, $offsetParent, searchDepth = 0, triedPositions = false, element = this, instance = $module.data(moduleNamespace), module ; module = { // binds events initialize: function() { module.debug('Initializing module', $module); module.refresh(); if(settings.on == 'click') { $module .on('click' + eventNamespace, module.toggle) ; } else if( module.get.startEvent() ) { $module .on(module.get.startEvent() + eventNamespace, module.event.start) .on(module.get.endEvent() + eventNamespace, module.event.end) ; } if(settings.target) { module.debug('Target set to element', $target); } $window .on('resize' + eventNamespace, module.event.resize) ; if( !module.exists() ) { module.create(); } else if(settings.hoverable) { module.bind.popup(); } module.instantiate(); }, instantiate: function() { module.verbose('Storing instance of module', module); instance = module; $module .data(moduleNamespace, instance) ; }, refresh: function() { if(settings.popup) { $popup = $(settings.popup); } else { if(settings.inline) { $popup = $target.next(settings.selector.popup); } } if(settings.popup) { $popup.addClass(className.loading); if($popup.offsetParent()[0] !== $module.offsetParent()[0]) { module.debug('Moving popup to the same offset parent as activating element'); $offsetParent = $module.offsetParent(); $popup .detach() .appendTo($offsetParent) ; } $popup.removeClass(className.loading); } else { $offsetParent = (settings.inline) ? $target.offsetParent() : $body ; } if( $offsetParent.is('html') ) { module.debug('Page is popups offset parent'); $offsetParent = $body; } }, reposition: function() { module.refresh(); module.set.position(); }, destroy: function() { module.debug('Destroying previous module'); if($popup && !settings.preserve) { module.removePopup(); } clearTimeout(module.hideTimer); clearTimeout(module.showTimer); $module .off(eventNamespace) .removeData(moduleNamespace) ; }, event: { start: function(event) { var delay = ($.isPlainObject(settings.delay)) ? settings.delay.show : settings.delay ; clearTimeout(module.hideTimer); module.showTimer = setTimeout(function() { if(module.is.hidden() && !( module.is.active() && module.is.dropdown()) ) { module.show(); } }, delay); }, end: function() { var delay = ($.isPlainObject(settings.delay)) ? settings.delay.hide : settings.delay ; clearTimeout(module.showTimer); module.hideTimer = setTimeout(function() { if(module.is.visible() ) { module.hide(); } }, delay); }, resize: function() { if( module.is.visible() ) { module.set.position(); } } }, // generates popup html from metadata create: function() { var html = $module.data(metadata.html) || settings.html, variation = $module.data(metadata.variation) || settings.variation, title = $module.data(metadata.title) || settings.title, content = $module.data(metadata.content) || $module.attr('title') || settings.content ; if(html || content || title) { module.debug('Creating pop-up html'); if(!html) { html = settings.templates.popup({ title : title, content : content }); } $popup = $('<div/>') .addClass(className.popup) .addClass(variation) .html(html) ; if(variation) { $popup .addClass(variation) ; } if(settings.inline) { module.verbose('Inserting popup element inline', $popup); $popup .insertAfter($module) ; } else { module.verbose('Appending popup element to body', $popup); $popup .appendTo( $context ) ; } if(settings.hoverable) { module.bind.popup(); } $.proxy(settings.onCreate, $popup)(element); } else if($target.next(settings.selector.popup).size() !== 0) { module.verbose('Pre-existing popup found, reverting to inline'); settings.inline = true; module.refresh(); if(settings.hoverable) { module.bind.popup(); } } else { module.debug('No content specified skipping display', element); } }, // determines popup state toggle: function() { module.debug('Toggling pop-up'); if( module.is.hidden() ) { module.debug('Popup is hidden, showing pop-up'); module.unbind.close(); module.hideAll(); module.show(); } else { module.debug('Popup is visible, hiding pop-up'); module.hide(); } }, show: function(callback) { callback = $.isFunction(callback) ? callback : function(){}; module.debug('Showing pop-up', settings.transition); if(!settings.preserve && !settings.popup) { module.refresh(); } if( !module.exists() ) { module.create(); } if( $popup && module.set.position() ) { module.save.conditions(); module.animate.show(callback); } }, hide: function(callback) { callback = $.isFunction(callback) ? callback : function(){}; module.remove.visible(); module.unbind.close(); if( module.is.visible() ) { module.restore.conditions(); module.animate.hide(callback); } }, hideAll: function() { $(selector.popup) .filter(':visible') .popup('hide') ; }, hideGracefully: function(event) { // don't close on clicks inside popup if(event && $(event.target).closest(selector.popup).size() === 0) { module.debug('Click occurred outside popup hiding popup'); module.hide(); } else { module.debug('Click was inside popup, keeping popup open'); } }, exists: function() { if(!$popup) { return false; } if(settings.inline || settings.popup) { return ( module.has.popup() ); } else { return ( $popup.closest($context).size() > 1 ) ? true : false ; } }, removePopup: function() { module.debug('Removing popup', $popup); if( module.has.popup() ) { $popup.remove(); } $.proxy(settings.onRemove, $popup)(element); }, save: { conditions: function() { module.cache = { title: $module.attr('title') }; if (module.cache.title) { $module.removeAttr('title'); } module.verbose('Saving original attributes', module.cache.title); } }, restore: { conditions: function() { element.blur(); if(module.cache && module.cache.title) { $module.attr('title', module.cache.title); module.verbose('Restoring original attributes', module.cache.title); } return true; } }, animate: { show: function(callback) { callback = $.isFunction(callback) ? callback : function(){}; if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { module.set.visible(); $popup .transition({ animation : settings.transition + ' in', queue : false, debug : settings.debug, verbose : settings.verbose, duration : settings.duration, onComplete : function() { module.bind.close(); $.proxy(callback, $popup)(element); $.proxy(settings.onVisible, $popup)(element); } }) ; } else { module.set.visible(); $popup .stop() .fadeIn(settings.duration, settings.easing, function() { module.bind.close(); $.proxy(callback, element)(); }) ; } $.proxy(settings.onShow, $popup)(element); }, hide: function(callback) { callback = $.isFunction(callback) ? callback : function(){}; module.debug('Hiding pop-up'); if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { $popup .transition({ animation : settings.transition + ' out', queue : false, duration : settings.duration, debug : settings.debug, verbose : settings.verbose, onComplete : function() { module.reset(); $.proxy(callback, $popup)(element); $.proxy(settings.onHidden, $popup)(element); } }) ; } else { $popup .stop() .fadeOut(settings.duration, settings.easing, function() { module.reset(); callback(); }) ; } $.proxy(settings.onHide, $popup)(element); } }, get: { startEvent: function() { if(settings.on == 'hover') { return 'mouseenter'; } else if(settings.on == 'focus') { return 'focus'; } return false; }, endEvent: function() { if(settings.on == 'hover') { return 'mouseleave'; } else if(settings.on == 'focus') { return 'blur'; } return false; }, offstagePosition: function(position) { var position = position || false, boundary = { top : $(window).scrollTop(), bottom : $(window).scrollTop() + $(window).height(), left : 0, right : $(window).width() }, popup = { width : $popup.width(), height : $popup.height(), offset : $popup.offset() }, offstage = {}, offstagePositions = [] ; if(popup.offset && position) { module.verbose('Checking if outside viewable area', popup.offset); offstage = { top : (popup.offset.top < boundary.top), bottom : (popup.offset.top + popup.height > boundary.bottom), right : (popup.offset.left + popup.width > boundary.right), left : (popup.offset.left < boundary.left) }; } // return only boundaries that have been surpassed $.each(offstage, function(direction, isOffstage) { if(isOffstage) { offstagePositions.push(direction); } }); return (offstagePositions.length > 0) ? offstagePositions.join(' ') : false ; }, positions: function() { return { 'top left' : false, 'top center' : false, 'top right' : false, 'bottom left' : false, 'bottom center' : false, 'bottom right' : false, 'left center' : false, 'right center' : false }; }, nextPosition: function(position) { var positions = position.split(' '), verticalPosition = positions[0], horizontalPosition = positions[1], opposite = { top : 'bottom', bottom : 'top', left : 'right', right : 'left' }, adjacent = { left : 'center', center : 'right', right : 'left' }, backup = { 'top left' : 'top center', 'top center' : 'top right', 'top right' : 'right center', 'right center' : 'bottom right', 'bottom right' : 'bottom center', 'bottom center' : 'bottom left', 'bottom left' : 'left center', 'left center' : 'top left' }, adjacentsAvailable = (verticalPosition == 'top' || verticalPosition == 'bottom'), oppositeTried = false, adjacentTried = false, nextPosition = false ; if(!triedPositions) { module.verbose('All available positions available'); triedPositions = module.get.positions(); } module.debug('Recording last position tried', position); triedPositions[position] = true; if(settings.prefer === 'opposite') { nextPosition = [opposite[verticalPosition], horizontalPosition]; nextPosition = nextPosition.join(' '); oppositeTried = (triedPositions[nextPosition] === true); module.debug('Trying opposite strategy', nextPosition); } if((settings.prefer === 'adjacent') && adjacentsAvailable ) { nextPosition = [verticalPosition, adjacent[horizontalPosition]]; nextPosition = nextPosition.join(' '); adjacentTried = (triedPositions[nextPosition] === true); module.debug('Trying adjacent strategy', nextPosition); } if(adjacentTried || oppositeTried) { module.debug('Using backup position', nextPosition); nextPosition = backup[position]; } return nextPosition; } }, set: { position: function(position, arrowOffset) { var windowWidth = $(window).width(), windowHeight = $(window).height(), targetWidth = $target.outerWidth(), targetHeight = $target.outerHeight(), popupWidth = $popup.outerWidth(), popupHeight = $popup.outerHeight(), parentWidth = $offsetParent.outerWidth(), parentHeight = $offsetParent.outerHeight(), distanceAway = settings.distanceAway, targetElement = $target[0], marginTop = (settings.inline) ? parseInt( window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10) : 0, marginLeft = (settings.inline) ? parseInt( window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10) : 0, target = (settings.inline || settings.popup) ? $target.position() : $target.offset(), positioning, offstagePosition ; position = position || $module.data(metadata.position) || settings.position; arrowOffset = arrowOffset || $module.data(metadata.offset) || settings.offset; if(searchDepth == settings.maxSearchDepth && settings.lastResort) { module.debug('Using last resort position to display', settings.lastResort); position = settings.lastResort; } if(settings.inline) { module.debug('Adding targets margin to calculation'); if(position == 'left center' || position == 'right center') { arrowOffset += marginTop; distanceAway += -marginLeft; } else if (position == 'top left' || position == 'top center' || position == 'top right') { arrowOffset += marginLeft; distanceAway -= marginTop; } else { arrowOffset += marginLeft; distanceAway += marginTop; } } module.debug('Calculating popup positioning', position); switch(position) { case 'top left': positioning = { top : 'auto', bottom : parentHeight - target.top + distanceAway, left : target.left + arrowOffset, right : 'auto' }; break; case 'top center': positioning = { bottom : parentHeight - target.top + distanceAway, left : target.left + (targetWidth / 2) - (popupWidth / 2) + arrowOffset, top : 'auto', right : 'auto' }; break; case 'top right': positioning = { bottom : parentHeight - target.top + distanceAway, right : parentWidth - target.left - targetWidth - arrowOffset, top : 'auto', left : 'auto' }; break; case 'left center': positioning = { top : target.top + (targetHeight / 2) - (popupHeight / 2) + arrowOffset, right : parentWidth - target.left + distanceAway, left : 'auto', bottom : 'auto' }; break; case 'right center': positioning = { top : target.top + (targetHeight / 2) - (popupHeight / 2) + arrowOffset, left : target.left + targetWidth + distanceAway, bottom : 'auto', right : 'auto' }; break; case 'bottom left': positioning = { top : target.top + targetHeight + distanceAway, left : target.left + arrowOffset, bottom : 'auto', right : 'auto' }; break; case 'bottom center': positioning = { top : target.top + targetHeight + distanceAway, left : target.left + (targetWidth / 2) - (popupWidth / 2) + arrowOffset, bottom : 'auto', right : 'auto' }; break; case 'bottom right': positioning = { top : target.top + targetHeight + distanceAway, right : parentWidth - target.left - targetWidth - arrowOffset, left : 'auto', bottom : 'auto' }; break; } if(positioning === undefined) { module.error(error.invalidPosition, position); } module.debug('Calculated popup positioning values', positioning); // tentatively place on stage $popup .css(positioning) .removeClass(className.position) .addClass(position) .addClass(className.loading) ; // check if is offstage offstagePosition = module.get.offstagePosition(position); // recursively find new positioning if(offstagePosition) { module.debug('Popup cant fit into viewport', offstagePosition); if(searchDepth < settings.maxSearchDepth) { searchDepth++; position = module.get.nextPosition(position); module.debug('Trying new position', position); return ($popup) ? module.set.position(position) : false ; } else if(!settings.lastResort) { module.debug('Popup could not find a position in view', $popup); module.error(error.cannotPlace); module.remove.attempts(); module.remove.loading(); module.reset(); return false; } } module.debug('Position is on stage', position); module.remove.attempts(); module.set.fluidWidth(); module.remove.loading(); return true; }, fluidWidth: function() { if( settings.setFluidWidth && $popup.hasClass(className.fluid) ) { $popup.css('width', $offsetParent.width()); } }, visible: function() { $module.addClass(className.visible); } }, remove: { loading: function() { $popup.removeClass(className.loading); }, visible: function() { $module.removeClass(className.visible); }, attempts: function() { module.verbose('Resetting all searched positions'); searchDepth = 0; triedPositions = false; } }, bind: { popup: function() { module.verbose('Allowing hover events on popup to prevent closing'); if( $popup && module.has.popup() ) { $popup .on('mouseenter' + eventNamespace, module.event.start) .on('mouseleave' + eventNamespace, module.event.end) ; } }, close:function() { if(settings.hideOnScroll === true || settings.hideOnScroll == 'auto' && settings.on != 'click') { $document .one('touchmove' + eventNamespace, module.hideGracefully) .one('scroll' + eventNamespace, module.hideGracefully) ; $context .one('touchmove' + eventNamespace, module.hideGracefully) .one('scroll' + eventNamespace, module.hideGracefully) ; } if(settings.on == 'click' && settings.closable) { module.verbose('Binding popup close event to document'); $document .on('click' + eventNamespace, function(event) { module.verbose('Pop-up clickaway intent detected'); $.proxy(module.hideGracefully, element)(event); }) ; } } }, unbind: { close: function() { if(settings.hideOnScroll === true || settings.hideOnScroll == 'auto' && settings.on != 'click') { $document .off('scroll' + eventNamespace, module.hide) ; $context .off('scroll' + eventNamespace, module.hide) ; } if(settings.on == 'click' && settings.closable) { module.verbose('Removing close event from document'); $document .off('click' + eventNamespace) ; } } }, has: { popup: function() { return ($popup.size() > 0); } }, is: { active: function() { return $module.hasClass(className.active); }, animating: function() { return ( $popup && $popup.is(':animated') || $popup.hasClass(className.animating) ); }, visible: function() { return $popup && $popup.is(':visible'); }, dropdown: function() { return $module.hasClass(className.dropdown); }, hidden: function() { return !module.is.visible(); } }, reset: function() { module.remove.visible(); if(settings.preserve || settings.popup) { if($.fn.transition !== undefined) { $popup .transition('remove transition') ; } } else { module.removePopup(); } }, setting: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, settings, name); } else if(value !== undefined) { settings[name] = value; } else { return settings[name]; } }, internal: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, module, name); } else if(value !== undefined) { module[name] = value; } else { return module[name]; } }, debug: function() { if(settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.debug.apply(console, arguments); } } }, verbose: function() { if(settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.verbose.apply(console, arguments); } } }, error: function() { module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); module.error.apply(console, arguments); }, performance: { log: function(message) { var currentTime, executionTime, previousTime ; if(settings.performance) { currentTime = new Date().getTime(); previousTime = time || currentTime; executionTime = currentTime - previousTime; time = currentTime; performance.push({ 'Name' : message[0], 'Arguments' : [].slice.call(message, 1) || '', 'Element' : element, 'Execution Time' : executionTime }); } clearTimeout(module.performance.timer); module.performance.timer = setTimeout(module.performance.display, 100); }, display: function() { var title = settings.name + ':', totalTime = 0 ; time = false; clearTimeout(module.performance.timer); $.each(performance, function(index, data) { totalTime += data['Execution Time']; }); title += ' ' + totalTime + 'ms'; if(moduleSelector) { title += ' \'' + moduleSelector + '\''; } if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { console.groupCollapsed(title); if(console.table) { console.table(performance); } else { $.each(performance, function(index, data) { console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); }); } console.groupEnd(); } performance = []; } }, invoke: function(query, passedArguments, context) { var object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { var camelCaseValue = (depth != maxDepth) ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { object = object[camelCaseValue]; } else if( object[camelCaseValue] !== undefined ) { found = object[camelCaseValue]; return false; } else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { object = object[value]; } else if( object[value] !== undefined ) { found = object[value]; return false; } else { return false; } }); } if ( $.isFunction( found ) ) { response = found.apply(context, passedArguments); } else if(found !== undefined) { response = found; } if($.isArray(returnedValue)) { returnedValue.push(response); } else if(returnedValue !== undefined) { returnedValue = [returnedValue, response]; } else if(response !== undefined) { returnedValue = response; } return found; } }; if(methodInvoked) { if(instance === undefined) { module.initialize(); } module.invoke(query); } else { if(instance !== undefined) { module.destroy(); } module.initialize(); } }) ; return (returnedValue !== undefined) ? returnedValue : this ; }; $.fn.popup.settings = { name : 'Popup', debug : false, verbose : true, performance : true, namespace : 'popup', onCreate : function(){}, onRemove : function(){}, onShow : function(){}, onVisible : function(){}, onHide : function(){}, onHidden : function(){}, variation : '', content : false, html : false, title : false, on : 'hover', closable : true, hideOnScroll : 'auto', context : 'body', position : 'top left', prefer : 'opposite', lastResort : false, delay : { show : 30, hide : 0 }, setFluidWidth : true, target : false, popup : false, inline : false, preserve : true, hoverable : false, duration : 200, easing : 'easeOutQuint', transition : 'scale', distanceAway : 0, offset : 0, maxSearchDepth : 20, error: { invalidPosition : 'The position you specified is not a valid position', cannotPlace : 'No visible position could be found for the popup', method : 'The method you called is not defined.' }, metadata: { content : 'content', html : 'html', offset : 'offset', position : 'position', title : 'title', variation : 'variation' }, className : { active : 'active', animating : 'animating', dropdown : 'dropdown', fluid : 'fluid', loading : 'loading', popup : 'ui popup', position : 'top left center bottom right', visible : 'visible' }, selector : { popup : '.ui.popup' }, templates: { escape: function(string) { var badChars = /[&<>"'`]/g, shouldEscape = /[&<>"'`]/, escape = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#x27;", "`": "&#x60;" }, escapedChar = function(chr) { return escape[chr]; } ; if(shouldEscape.test(string)) { return string.replace(badChars, escapedChar); } return string; }, popup: function(text) { var html = '', escape = $.fn.popup.settings.templates.escape ; if(typeof text !== undefined) { if(typeof text.title !== undefined && text.title) { text.title = escape(text.title); html += '<div class="header">' + text.title + '</div>'; } if(typeof text.content !== undefined && text.content) { text.content = escape(text.content); html += '<div class="content">' + text.content + '</div>'; } } return html; } } }; // Adds easing $.extend( $.easing, { easeOutQuad: function (x, t, b, c, d) { return -c *(t/=d)*(t-2) + b; } }); })( jQuery, window , document );
cgvarela/cdnjs
ajax/libs/semantic-ui/1.5.1/components/popup.js
JavaScript
mit
36,455
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * This extension sub-class provides first-class integration with the * Config/Definition Component. * * You can use this as base class if * * a) you use the Config/Definition component for configuration, * b) your configuration class is named "Configuration", and * c) the configuration class resides in the DependencyInjection sub-folder. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ abstract class ConfigurableExtension extends Extension { /** * {@inheritdoc} */ final public function load(array $configs, ContainerBuilder $container) { $this->loadInternal($this->processConfiguration($this->getConfiguration($configs, $container), $configs), $container); } /** * Configures the passed container according to the merged configuration. * * @param array $mergedConfig * @param ContainerBuilder $container */ abstract protected function loadInternal(array $mergedConfig, ContainerBuilder $container); }
AndreaDellaValle/projectWork
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ConfigurableExtension.php
PHP
mit
1,378
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // TODO actually recognize syntax of TypeScript constructs (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("javascript", function(config, parserConfig) { var indentUnit = config.indentUnit; var statementIndent = parserConfig.statementIndent; var jsonldMode = parserConfig.jsonld; var jsonMode = parserConfig.json || jsonldMode; var isTS = parserConfig.typescript; var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/; // Tokenizer var keywords = function(){ function kw(type) {return {type: type, style: "keyword"};} var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"); var operator = kw("operator"), atom = {type: "atom", style: "atom"}; var jsKeywords = { "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B, "return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C, "debugger": C, "var": kw("var"), "const": kw("var"), "let": kw("var"), "function": kw("function"), "catch": kw("catch"), "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"), "in": operator, "typeof": operator, "instanceof": operator, "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom, "this": kw("this"), "module": kw("module"), "class": kw("class"), "super": kw("atom"), "yield": C, "export": kw("export"), "import": kw("import"), "extends": C }; // Extend the 'normal' keywords with the TypeScript language extensions if (isTS) { var type = {type: "variable", style: "variable-3"}; var tsKeywords = { // object-like things "interface": kw("interface"), "extends": kw("extends"), "constructor": kw("constructor"), // scope modifiers "public": kw("public"), "private": kw("private"), "protected": kw("protected"), "static": kw("static"), // types "string": type, "number": type, "bool": type, "any": type }; for (var attr in tsKeywords) { jsKeywords[attr] = tsKeywords[attr]; } } return jsKeywords; }(); var isOperatorChar = /[+\-*&%=<>!?|~^]/; var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/; function readRegexp(stream) { var escaped = false, next, inSet = false; while ((next = stream.next()) != null) { if (!escaped) { if (next == "/" && !inSet) return; if (next == "[") inSet = true; else if (inSet && next == "]") inSet = false; } escaped = !escaped && next == "\\"; } } // Used as scratch variables to communicate multiple values without // consing up tons of objects. var type, content; function ret(tp, style, cont) { type = tp; content = cont; return style; } function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } else if (ch == "." && stream.match(/^\d+(?:[eE][+\-]?\d+)?/)) { return ret("number", "number"); } else if (ch == "." && stream.match("..")) { return ret("spread", "meta"); } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) { return ret(ch); } else if (ch == "=" && stream.eat(">")) { return ret("=>", "operator"); } else if (ch == "0" && stream.eat(/x/i)) { stream.eatWhile(/[\da-f]/i); return ret("number", "number"); } else if (/\d/.test(ch)) { stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/); return ret("number", "number"); } else if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } else if (stream.eat("/")) { stream.skipToEnd(); return ret("comment", "comment"); } else if (state.lastType == "operator" || state.lastType == "keyword c" || state.lastType == "sof" || /^[\[{}\(,;:]$/.test(state.lastType)) { readRegexp(stream); stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla return ret("regexp", "string-2"); } else { stream.eatWhile(isOperatorChar); return ret("operator", "operator", stream.current()); } } else if (ch == "`") { state.tokenize = tokenQuasi; return tokenQuasi(stream, state); } else if (ch == "#") { stream.skipToEnd(); return ret("error", "error"); } else if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return ret("operator", "operator", stream.current()); } else if (wordRE.test(ch)) { stream.eatWhile(wordRE); var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word]; return (known && state.lastType != ".") ? ret(known.type, known.style, word) : ret("variable", "variable", word); } } function tokenString(quote) { return function(stream, state) { var escaped = false, next; if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){ state.tokenize = tokenBase; return ret("jsonld-keyword", "meta"); } while ((next = stream.next()) != null) { if (next == quote && !escaped) break; escaped = !escaped && next == "\\"; } if (!escaped) state.tokenize = tokenBase; return ret("string", "string"); }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return ret("comment", "comment"); } function tokenQuasi(stream, state) { var escaped = false, next; while ((next = stream.next()) != null) { if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) { state.tokenize = tokenBase; break; } escaped = !escaped && next == "\\"; } return ret("quasi", "string-2", stream.current()); } var brackets = "([{}])"; // This is a crude lookahead trick to try and notice that we're // parsing the argument patterns for a fat-arrow function before we // actually hit the arrow token. It only works if the arrow is on // the same line as the arguments and there's no strange noise // (comments) in between. Fallback is to only notice when we hit the // arrow, and not declare the arguments as locals for the arrow // body. function findFatArrow(stream, state) { if (state.fatArrowAt) state.fatArrowAt = null; var arrow = stream.string.indexOf("=>", stream.start); if (arrow < 0) return; var depth = 0, sawSomething = false; for (var pos = arrow - 1; pos >= 0; --pos) { var ch = stream.string.charAt(pos); var bracket = brackets.indexOf(ch); if (bracket >= 0 && bracket < 3) { if (!depth) { ++pos; break; } if (--depth == 0) break; } else if (bracket >= 3 && bracket < 6) { ++depth; } else if (wordRE.test(ch)) { sawSomething = true; } else if (sawSomething && !depth) { ++pos; break; } } if (sawSomething && !depth) state.fatArrowAt = pos; } // Parser var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true, "jsonld-keyword": true}; function JSLexical(indented, column, type, align, prev, info) { this.indented = indented; this.column = column; this.type = type; this.prev = prev; this.info = info; if (align != null) this.align = align; } function inScope(state, varname) { for (var v = state.localVars; v; v = v.next) if (v.name == varname) return true; for (var cx = state.context; cx; cx = cx.prev) { for (var v = cx.vars; v; v = v.next) if (v.name == varname) return true; } } function parseJS(state, style, type, content, stream) { var cc = state.cc; // Communicate our context to the combinators. // (Less wasteful than consing up a hundred closures on every call.) cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style; if (!state.lexical.hasOwnProperty("align")) state.lexical.align = true; while(true) { var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement; if (combinator(type, content)) { while(cc.length && cc[cc.length - 1].lex) cc.pop()(); if (cx.marked) return cx.marked; if (type == "variable" && inScope(state, content)) return "variable-2"; return style; } } } // Combinator utils var cx = {state: null, column: null, marked: null, cc: null}; function pass() { for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]); } function cont() { pass.apply(null, arguments); return true; } function register(varname) { function inList(list) { for (var v = list; v; v = v.next) if (v.name == varname) return true; return false; } var state = cx.state; if (state.context) { cx.marked = "def"; if (inList(state.localVars)) return; state.localVars = {name: varname, next: state.localVars}; } else { if (inList(state.globalVars)) return; if (parserConfig.globalVars) state.globalVars = {name: varname, next: state.globalVars}; } } // Combinators var defaultVars = {name: "this", next: {name: "arguments"}}; function pushcontext() { cx.state.context = {prev: cx.state.context, vars: cx.state.localVars}; cx.state.localVars = defaultVars; } function popcontext() { cx.state.localVars = cx.state.context.vars; cx.state.context = cx.state.context.prev; } function pushlex(type, info) { var result = function() { var state = cx.state, indent = state.indented; if (state.lexical.type == "stat") indent = state.lexical.indented; else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev) indent = outer.indented; state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info); }; result.lex = true; return result; } function poplex() { var state = cx.state; if (state.lexical.prev) { if (state.lexical.type == ")") state.indented = state.lexical.indented; state.lexical = state.lexical.prev; } } poplex.lex = true; function expect(wanted) { function exp(type) { if (type == wanted) return cont(); else if (wanted == ";") return pass(); else return cont(exp); }; return exp; } function statement(type, value) { if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex); if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex); if (type == "keyword b") return cont(pushlex("form"), statement, poplex); if (type == "{") return cont(pushlex("}"), block, poplex); if (type == ";") return cont(); if (type == "if") { if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex) cx.state.cc.pop()(); return cont(pushlex("form"), expression, statement, poplex, maybeelse); } if (type == "function") return cont(functiondef); if (type == "for") return cont(pushlex("form"), forspec, statement, poplex); if (type == "variable") return cont(pushlex("stat"), maybelabel); if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"), block, poplex, poplex); if (type == "case") return cont(expression, expect(":")); if (type == "default") return cont(expect(":")); if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"), statement, poplex, popcontext); if (type == "module") return cont(pushlex("form"), pushcontext, afterModule, popcontext, poplex); if (type == "class") return cont(pushlex("form"), className, poplex); if (type == "export") return cont(pushlex("form"), afterExport, poplex); if (type == "import") return cont(pushlex("form"), afterImport, poplex); return pass(pushlex("stat"), expression, expect(";"), poplex); } function expression(type) { return expressionInner(type, false); } function expressionNoComma(type) { return expressionInner(type, true); } function expressionInner(type, noComma) { if (cx.state.fatArrowAt == cx.stream.start) { var body = noComma ? arrowBodyNoComma : arrowBody; if (type == "(") return cont(pushcontext, pushlex(")"), commasep(pattern, ")"), poplex, expect("=>"), body, popcontext); else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext); } var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma; if (atomicTypes.hasOwnProperty(type)) return cont(maybeop); if (type == "function") return cont(functiondef, maybeop); if (type == "keyword c") return cont(noComma ? maybeexpressionNoComma : maybeexpression); if (type == "(") return cont(pushlex(")"), maybeexpression, comprehension, expect(")"), poplex, maybeop); if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression); if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop); if (type == "{") return contCommasep(objprop, "}", null, maybeop); if (type == "quasi") { return pass(quasi, maybeop); } return cont(); } function maybeexpression(type) { if (type.match(/[;\}\)\],]/)) return pass(); return pass(expression); } function maybeexpressionNoComma(type) { if (type.match(/[;\}\)\],]/)) return pass(); return pass(expressionNoComma); } function maybeoperatorComma(type, value) { if (type == ",") return cont(expression); return maybeoperatorNoComma(type, value, false); } function maybeoperatorNoComma(type, value, noComma) { var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma; var expr = noComma == false ? expression : expressionNoComma; if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext); if (type == "operator") { if (/\+\+|--/.test(value)) return cont(me); if (value == "?") return cont(expression, expect(":"), expr); return cont(expr); } if (type == "quasi") { return pass(quasi, me); } if (type == ";") return; if (type == "(") return contCommasep(expressionNoComma, ")", "call", me); if (type == ".") return cont(property, me); if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me); } function quasi(type, value) { if (type != "quasi") return pass(); if (value.slice(value.length - 2) != "${") return cont(quasi); return cont(expression, continueQuasi); } function continueQuasi(type) { if (type == "}") { cx.marked = "string-2"; cx.state.tokenize = tokenQuasi; return cont(quasi); } } function arrowBody(type) { findFatArrow(cx.stream, cx.state); return pass(type == "{" ? statement : expression); } function arrowBodyNoComma(type) { findFatArrow(cx.stream, cx.state); return pass(type == "{" ? statement : expressionNoComma); } function maybelabel(type) { if (type == ":") return cont(poplex, statement); return pass(maybeoperatorComma, expect(";"), poplex); } function property(type) { if (type == "variable") {cx.marked = "property"; return cont();} } function objprop(type, value) { if (type == "variable" || cx.style == "keyword") { cx.marked = "property"; if (value == "get" || value == "set") return cont(getterSetter); return cont(afterprop); } else if (type == "number" || type == "string") { cx.marked = jsonldMode ? "property" : (cx.style + " property"); return cont(afterprop); } else if (type == "jsonld-keyword") { return cont(afterprop); } else if (type == "[") { return cont(expression, expect("]"), afterprop); } } function getterSetter(type) { if (type != "variable") return pass(afterprop); cx.marked = "property"; return cont(functiondef); } function afterprop(type) { if (type == ":") return cont(expressionNoComma); if (type == "(") return pass(functiondef); } function commasep(what, end) { function proceed(type) { if (type == ",") { var lex = cx.state.lexical; if (lex.info == "call") lex.pos = (lex.pos || 0) + 1; return cont(what, proceed); } if (type == end) return cont(); return cont(expect(end)); } return function(type) { if (type == end) return cont(); return pass(what, proceed); }; } function contCommasep(what, end, info) { for (var i = 3; i < arguments.length; i++) cx.cc.push(arguments[i]); return cont(pushlex(end, info), commasep(what, end), poplex); } function block(type) { if (type == "}") return cont(); return pass(statement, block); } function maybetype(type) { if (isTS && type == ":") return cont(typedef); } function typedef(type) { if (type == "variable"){cx.marked = "variable-3"; return cont();} } function vardef() { return pass(pattern, maybetype, maybeAssign, vardefCont); } function pattern(type, value) { if (type == "variable") { register(value); return cont(); } if (type == "[") return contCommasep(pattern, "]"); if (type == "{") return contCommasep(proppattern, "}"); } function proppattern(type, value) { if (type == "variable" && !cx.stream.match(/^\s*:/, false)) { register(value); return cont(maybeAssign); } if (type == "variable") cx.marked = "property"; return cont(expect(":"), pattern, maybeAssign); } function maybeAssign(_type, value) { if (value == "=") return cont(expressionNoComma); } function vardefCont(type) { if (type == ",") return cont(vardef); } function maybeelse(type, value) { if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex); } function forspec(type) { if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex); } function forspec1(type) { if (type == "var") return cont(vardef, expect(";"), forspec2); if (type == ";") return cont(forspec2); if (type == "variable") return cont(formaybeinof); return pass(expression, expect(";"), forspec2); } function formaybeinof(_type, value) { if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); } return cont(maybeoperatorComma, forspec2); } function forspec2(type, value) { if (type == ";") return cont(forspec3); if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); } return pass(expression, expect(";"), forspec3); } function forspec3(type) { if (type != ")") cont(expression); } function functiondef(type, value) { if (value == "*") {cx.marked = "keyword"; return cont(functiondef);} if (type == "variable") {register(value); return cont(functiondef);} if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, statement, popcontext); } function funarg(type) { if (type == "spread") return cont(funarg); return pass(pattern, maybetype); } function className(type, value) { if (type == "variable") {register(value); return cont(classNameAfter);} } function classNameAfter(type, value) { if (value == "extends") return cont(expression, classNameAfter); if (type == "{") return cont(pushlex("}"), classBody, poplex); } function classBody(type, value) { if (type == "variable" || cx.style == "keyword") { cx.marked = "property"; if (value == "get" || value == "set") return cont(classGetterSetter, functiondef, classBody); return cont(functiondef, classBody); } if (value == "*") { cx.marked = "keyword"; return cont(classBody); } if (type == ";") return cont(classBody); if (type == "}") return cont(); } function classGetterSetter(type) { if (type != "variable") return pass(); cx.marked = "property"; return cont(); } function afterModule(type, value) { if (type == "string") return cont(statement); if (type == "variable") { register(value); return cont(maybeFrom); } } function afterExport(_type, value) { if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); } if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); } return pass(statement); } function afterImport(type) { if (type == "string") return cont(); return pass(importSpec, maybeFrom); } function importSpec(type, value) { if (type == "{") return contCommasep(importSpec, "}"); if (type == "variable") register(value); return cont(); } function maybeFrom(_type, value) { if (value == "from") { cx.marked = "keyword"; return cont(expression); } } function arrayLiteral(type) { if (type == "]") return cont(); return pass(expressionNoComma, maybeArrayComprehension); } function maybeArrayComprehension(type) { if (type == "for") return pass(comprehension, expect("]")); if (type == ",") return cont(commasep(maybeexpressionNoComma, "]")); return pass(commasep(expressionNoComma, "]")); } function comprehension(type) { if (type == "for") return cont(forspec, comprehension); if (type == "if") return cont(expression, comprehension); } // Interface return { startState: function(basecolumn) { var state = { tokenize: tokenBase, lastType: "sof", cc: [], lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false), localVars: parserConfig.localVars, context: parserConfig.localVars && {vars: parserConfig.localVars}, indented: 0 }; if (parserConfig.globalVars && typeof parserConfig.globalVars == "object") state.globalVars = parserConfig.globalVars; return state; }, token: function(stream, state) { if (stream.sol()) { if (!state.lexical.hasOwnProperty("align")) state.lexical.align = false; state.indented = stream.indentation(); findFatArrow(stream, state); } if (state.tokenize != tokenComment && stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (type == "comment") return style; state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type; return parseJS(state, style, type, content, stream); }, indent: function(state, textAfter) { if (state.tokenize == tokenComment) return CodeMirror.Pass; if (state.tokenize != tokenBase) return 0; var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical; // Kludge to prevent 'maybelse' from blocking lexical scope pops if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) { var c = state.cc[i]; if (c == poplex) lexical = lexical.prev; else if (c != maybeelse) break; } if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev; if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat") lexical = lexical.prev; var type = lexical.type, closing = firstChar == type; if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info + 1 : 0); else if (type == "form" && firstChar == "{") return lexical.indented; else if (type == "form") return lexical.indented + indentUnit; else if (type == "stat") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? statementIndent || indentUnit : 0); else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false) return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit); else if (lexical.align) return lexical.column + (closing ? 0 : 1); else return lexical.indented + (closing ? 0 : indentUnit); }, electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, blockCommentStart: jsonMode ? null : "/*", blockCommentEnd: jsonMode ? null : "*/", lineComment: jsonMode ? null : "//", fold: "brace", helperType: jsonMode ? "json" : "javascript", jsonldMode: jsonldMode, jsonMode: jsonMode }; }); CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/); CodeMirror.defineMIME("text/javascript", "javascript"); CodeMirror.defineMIME("text/ecmascript", "javascript"); CodeMirror.defineMIME("application/javascript", "javascript"); CodeMirror.defineMIME("application/x-javascript", "javascript"); CodeMirror.defineMIME("application/ecmascript", "javascript"); CodeMirror.defineMIME("application/json", {name: "javascript", json: true}); CodeMirror.defineMIME("application/x-json", {name: "javascript", json: true}); CodeMirror.defineMIME("application/ld+json", {name: "javascript", jsonld: true}); CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true }); CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true }); });
dakshshah96/cdnjs
ajax/libs/codemirror/4.8.0/mode/javascript/javascript.js
JavaScript
mit
26,092
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/ (function(a){var b={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},c=b[typeof window]&&window||this,d=b[typeof exports]&&exports&&!exports.nodeType&&exports,e=b[typeof module]&&module&&!module.nodeType&&module,f=(e&&e.exports===d&&d,b[typeof global]&&global);!f||f.global!==f&&f.window!==f||(c=f),"function"==typeof define&&define.amd?define(["rx.binding","exports"],function(b,d){return c.Rx=a(c,d,b),c.Rx}):"object"==typeof module&&module&&module.exports===d?module.exports=a(c,module.exports,require("./rx")):c.Rx=a(c,{},c.Rx)}).call(this,function(a,b,c){function d(a,b){return Array.isArray(a)?e.call(b,a):i(a)?z(a.call(b)):j(a)?z(a):h(a)?f(a):isPromise(a)?g(a):typeof a===w?a:y(a)||Array.isArray(a)?e.call(b,a):a}function e(a){var b=this;return function(c){function e(a,e){if(!f)try{if(a=d(a,b),typeof a!==w)return i[e]=a,--h||c(null,i);a.call(b,function(a,b){if(!f){if(a)return f=!0,c(a);i[e]=b,--h||c(null,i)}})}catch(g){f=!0,c(g)}}var f,g=Object.keys(a),h=g.length,i=new a.constructor;if(!h)return void u.schedule(function(){c(null,i)});for(var j=0,k=g.length;k>j;j++)e(a[g[j]],g[j])}}function f(a){return function(b){var c,d=!1;a.subscribe(function(a){c=a,d=!0},b,function(){d&&b(null,c)})}}function g(a){return function(b){a.then(function(a){b(null,a)},b)}}function h(a){return a&&typeof a.subscribe===w}function i(a){return a&&a.constructor&&"GeneratorFunction"===a.constructor.name}function j(a){return a&&typeof a.next===w&&typeof a[x]===w}function k(a){a&&u.schedule(function(){throw a})}function l(a,b,c){if(a.addEventListener)return a.addEventListener(b,c,!1),s(function(){a.removeEventListener(b,c,!1)});throw new Error("No listener found")}function m(a,b,c){var d=new t;if("[object NodeList]"===Object.prototype.toString.call(a))for(var e=0,f=a.length;f>e;e++)d.add(m(a.item(e),b,c));else a&&d.add(l(a,b,c));return d}var n=c.Observable,o=(n.prototype,n.fromPromise),p=n.throwError,q=c.AnonymousObservable,r=c.AsyncSubject,s=c.Disposable.create,t=c.CompositeDisposable,u=(c.Scheduler.immediate,c.Scheduler.timeout),v=c.helpers.isScheduler,w=(Array.prototype.slice,"function"),x="throw",y=c.internals.isObject,z=c.spawn=function(a){var b=i(a);return function(c){function e(a,b){u.schedule(c.bind(g,a,b))}function f(a,b){var c;if(arguments.length>2)for(var b=[],i=1,j=arguments.length;j>i;i++)b.push(arguments[i]);if(a)try{c=h[x](a)}catch(k){return e(k)}if(!a)try{c=h.next(b)}catch(k){return e(k)}if(c.done)return e(null,c.value);if(c.value=d(c.value,g),typeof c.value!==w)f(new TypeError("Rx.spawn only supports a function, Promise, Observable, Object or Array."));else{var l=!1;try{c.value.call(g,function(){l||(l=!0,f.apply(g,arguments))})}catch(k){u.schedule(function(){l||(l=!0,f.call(g,k))})}}}var g=this,h=a;if(b){for(var i=[],j=0,l=arguments.length;l>j;j++)i.push(arguments[j]);var l=i.length,m=l&&typeof i[l-1]===w;c=m?i.pop():k,h=a.apply(this,i)}else c=c||k;f()}};n.start=function(a,b,c){return A(a,b,c)()};var A=n.toAsync=function(a,b,c){return v(c)||(c=u),function(){var d=arguments,e=new r;return c.schedule(function(){var c;try{c=a.apply(b,d)}catch(f){return void e.onError(f)}e.onNext(c),e.onCompleted()}),e.asObservable()}};n.fromCallback=function(a,b,c){return function(){for(var d=[],e=0,f=arguments.length;f>e;e++)d.push(arguments[e]);return new q(function(e){function f(){var a=arguments;if(c){try{a=c(a)}catch(b){return e.onError(b)}e.onNext(a)}else a.length<=1?e.onNext.apply(e,a):e.onNext(a);e.onCompleted()}d.push(f),a.apply(b,d)}).publishLast().refCount()}},n.fromNodeCallback=function(a,b,c){return function(){for(var d=arguments.length,e=new Array(d),f=0;d>f;f++)e[f]=arguments[f];return new q(function(d){function f(a){if(a)return void d.onError(a);for(var b=arguments.length,e=[],f=1;b>f;f++)e[f-1]=arguments[f];if(c){try{e=c(e)}catch(g){return d.onError(g)}d.onNext(e)}else e.length<=1?d.onNext.apply(d,e):d.onNext(e);d.onCompleted()}e.push(f),a.apply(b,e)}).publishLast().refCount()}},c.config.useNativeEvents=!1,n.fromEvent=function(a,b,d){return a.addListener?B(function(c){a.addListener(b,c)},function(c){a.removeListener(b,c)},d):c.config.useNativeEvents||"function"!=typeof a.on||"function"!=typeof a.off?new q(function(c){return m(a,b,function(a){var b=a;if(d)try{b=d(arguments)}catch(e){return c.onError(e)}c.onNext(b)})}).publish().refCount():B(function(c){a.on(b,c)},function(c){a.off(b,c)},d)};var B=n.fromEventPattern=function(a,b,c){return new q(function(d){function e(a){var b=a;if(c)try{b=c(arguments)}catch(e){return d.onError(e)}d.onNext(b)}var f=a(e);return s(function(){b&&b(e,f)})}).publish().refCount()};return n.startAsync=function(a){var b;try{b=a()}catch(c){return p(c)}return o(b)},c}); //# sourceMappingURL=rx.async.map
skidding/cdnjs
ajax/libs/rxjs/2.4.6/rx.async.min.js
JavaScript
mit
4,849
/*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasClass("open");if(!g&&27!=b.which||g&&27==b.which)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(b.target);38==b.which&&j>0&&j--,40==b.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',g.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in").attr("aria-hidden",!1),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a('<div class="modal-backdrop '+e+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",a,b)};c.VERSION="3.3.4",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-m<p.top?"bottom":"right"==h&&k.right+l>p.width?"left":"left"==h&&k.left-l<p.left?"right":h,f.removeClass(n).addClass(h)}var q=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(q,h);var r=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",r).emulateTransitionEnd(c.TRANSITION_DURATION):r()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top=b.top+g,b.left=b.left+h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.4",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]}); if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
joarley/testeprestadorservico
ProvaPrestadorServico/Scripts/bootstrap-sass/javascripts/bootstrap.min.js
JavaScript
mit
35,951
(function() { var mode = CodeMirror.getMode({tabSize: 4}, "markdown"); function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } var modeHighlightFormatting = CodeMirror.getMode({tabSize: 4}, {name: "markdown", highlightFormatting: true}); function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); } FT("formatting_emAsterisk", "[em&formatting&formatting-em *][em foo][em&formatting&formatting-em *]"); FT("formatting_emUnderscore", "[em&formatting&formatting-em _][em foo][em&formatting&formatting-em _]"); FT("formatting_strongAsterisk", "[strong&formatting&formatting-strong **][strong foo][strong&formatting&formatting-strong **]"); FT("formatting_strongUnderscore", "[strong&formatting&formatting-strong __][strong foo][strong&formatting&formatting-strong __]"); FT("formatting_codeBackticks", "[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]"); FT("formatting_doubleBackticks", "[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]"); FT("formatting_atxHeader", "[header&header-1&formatting&formatting-header&formatting-header-1 #][header&header-1 foo # bar ][header&header-1&formatting&formatting-header&formatting-header-1 #]"); FT("formatting_setextHeader", "foo", "[header&header-1&formatting&formatting-header&formatting-header-1 =]"); FT("formatting_blockquote", "[quote&quote-1&formatting&formatting-quote&formatting-quote-1 > ][quote&quote-1 foo]"); FT("formatting_list", "[variable-2&formatting&formatting-list&formatting-list-ul - ][variable-2 foo]"); FT("formatting_list", "[variable-2&formatting&formatting-list&formatting-list-ol 1. ][variable-2 foo]"); FT("formatting_link", "[link&formatting&formatting-link [][link foo][link&formatting&formatting-link ]]][string&formatting&formatting-link-string (][string http://example.com/][string&formatting&formatting-link-string )]"); FT("formatting_linkReference", "[link&formatting&formatting-link [][link foo][link&formatting&formatting-link ]]][string&formatting&formatting-link-string [][string bar][string&formatting&formatting-link-string ]]]", "[link&formatting&formatting-link [][link bar][link&formatting&formatting-link ]]:] [string http://example.com/]"); FT("formatting_linkWeb", "[link&formatting&formatting-link <][link http://example.com/][link&formatting&formatting-link >]"); FT("formatting_linkEmail", "[link&formatting&formatting-link <][link user@example.com][link&formatting&formatting-link >]"); FT("formatting_escape", "[formatting&formatting-escape \\]*"); MT("plainText", "foo"); // Don't style single trailing space MT("trailingSpace1", "foo "); // Two or more trailing spaces should be styled with line break character MT("trailingSpace2", "foo[trailing-space-a ][trailing-space-new-line ]"); MT("trailingSpace3", "foo[trailing-space-a ][trailing-space-b ][trailing-space-new-line ]"); MT("trailingSpace4", "foo[trailing-space-a ][trailing-space-b ][trailing-space-a ][trailing-space-new-line ]"); // Code blocks using 4 spaces (regardless of CodeMirror.tabSize value) MT("codeBlocksUsing4Spaces", " [comment foo]"); // Code blocks using 4 spaces with internal indentation MT("codeBlocksUsing4SpacesIndentation", " [comment bar]", " [comment hello]", " [comment world]", " [comment foo]", "bar"); // Code blocks using 4 spaces with internal indentation MT("codeBlocksUsing4SpacesIndentation", " foo", " [comment bar]", " [comment hello]", " [comment world]"); // Code blocks using 1 tab (regardless of CodeMirror.indentWithTabs value) MT("codeBlocksUsing1Tab", "\t[comment foo]"); // Inline code using backticks MT("inlineCodeUsingBackticks", "foo [comment `bar`]"); // Block code using single backtick (shouldn't work) MT("blockCodeSingleBacktick", "[comment `]", "foo", "[comment `]"); // Unclosed backticks // Instead of simply marking as CODE, it would be nice to have an // incomplete flag for CODE, that is styled slightly different. MT("unclosedBackticks", "foo [comment `bar]"); // Per documentation: "To include a literal backtick character within a // code span, you can use multiple backticks as the opening and closing // delimiters" MT("doubleBackticks", "[comment ``foo ` bar``]"); // Tests based on Dingus // http://daringfireball.net/projects/markdown/dingus // // Multiple backticks within an inline code block MT("consecutiveBackticks", "[comment `foo```bar`]"); // Multiple backticks within an inline code block with a second code block MT("consecutiveBackticks", "[comment `foo```bar`] hello [comment `world`]"); // Unclosed with several different groups of backticks MT("unclosedBackticks", "[comment ``foo ``` bar` hello]"); // Closed with several different groups of backticks MT("closedBackticks", "[comment ``foo ``` bar` hello``] world"); // atx headers // http://daringfireball.net/projects/markdown/syntax#header MT("atxH1", "[header&header-1 # foo]"); MT("atxH2", "[header&header-2 ## foo]"); MT("atxH3", "[header&header-3 ### foo]"); MT("atxH4", "[header&header-4 #### foo]"); MT("atxH5", "[header&header-5 ##### foo]"); MT("atxH6", "[header&header-6 ###### foo]"); // H6 - 7x '#' should still be H6, per Dingus // http://daringfireball.net/projects/markdown/dingus MT("atxH6NotH7", "[header&header-6 ####### foo]"); // Inline styles should be parsed inside headers MT("atxH1inline", "[header&header-1 # foo ][header&header-1&em *bar*]"); // Setext headers - H1, H2 // Per documentation, "Any number of underlining =’s or -’s will work." // http://daringfireball.net/projects/markdown/syntax#header // Ideally, the text would be marked as `header` as well, but this is // not really feasible at the moment. So, instead, we're testing against // what works today, to avoid any regressions. // // Check if single underlining = works MT("setextH1", "foo", "[header&header-1 =]"); // Check if 3+ ='s work MT("setextH1", "foo", "[header&header-1 ===]"); // Check if single underlining - works MT("setextH2", "foo", "[header&header-2 -]"); // Check if 3+ -'s work MT("setextH2", "foo", "[header&header-2 ---]"); // Single-line blockquote with trailing space MT("blockquoteSpace", "[quote&quote-1 > foo]"); // Single-line blockquote MT("blockquoteNoSpace", "[quote&quote-1 >foo]"); // No blank line before blockquote MT("blockquoteNoBlankLine", "foo", "[quote&quote-1 > bar]"); // Nested blockquote MT("blockquoteSpace", "[quote&quote-1 > foo]", "[quote&quote-1 >][quote&quote-2 > foo]", "[quote&quote-1 >][quote&quote-2 >][quote&quote-3 > foo]"); // Single-line blockquote followed by normal paragraph MT("blockquoteThenParagraph", "[quote&quote-1 >foo]", "", "bar"); // Multi-line blockquote (lazy mode) MT("multiBlockquoteLazy", "[quote&quote-1 >foo]", "[quote&quote-1 bar]"); // Multi-line blockquote followed by normal paragraph (lazy mode) MT("multiBlockquoteLazyThenParagraph", "[quote&quote-1 >foo]", "[quote&quote-1 bar]", "", "hello"); // Multi-line blockquote (non-lazy mode) MT("multiBlockquote", "[quote&quote-1 >foo]", "[quote&quote-1 >bar]"); // Multi-line blockquote followed by normal paragraph (non-lazy mode) MT("multiBlockquoteThenParagraph", "[quote&quote-1 >foo]", "[quote&quote-1 >bar]", "", "hello"); // Check list types MT("listAsterisk", "foo", "bar", "", "[variable-2 * foo]", "[variable-2 * bar]"); MT("listPlus", "foo", "bar", "", "[variable-2 + foo]", "[variable-2 + bar]"); MT("listDash", "foo", "bar", "", "[variable-2 - foo]", "[variable-2 - bar]"); MT("listNumber", "foo", "bar", "", "[variable-2 1. foo]", "[variable-2 2. bar]"); // Lists require a preceding blank line (per Dingus) MT("listBogus", "foo", "1. bar", "2. hello"); // List after header MT("listAfterHeader", "[header&header-1 # foo]", "[variable-2 - bar]"); // Formatting in lists (*) MT("listAsteriskFormatting", "[variable-2 * ][variable-2&em *foo*][variable-2 bar]", "[variable-2 * ][variable-2&strong **foo**][variable-2 bar]", "[variable-2 * ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]", "[variable-2 * ][variable-2&comment `foo`][variable-2 bar]"); // Formatting in lists (+) MT("listPlusFormatting", "[variable-2 + ][variable-2&em *foo*][variable-2 bar]", "[variable-2 + ][variable-2&strong **foo**][variable-2 bar]", "[variable-2 + ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]", "[variable-2 + ][variable-2&comment `foo`][variable-2 bar]"); // Formatting in lists (-) MT("listDashFormatting", "[variable-2 - ][variable-2&em *foo*][variable-2 bar]", "[variable-2 - ][variable-2&strong **foo**][variable-2 bar]", "[variable-2 - ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]", "[variable-2 - ][variable-2&comment `foo`][variable-2 bar]"); // Formatting in lists (1.) MT("listNumberFormatting", "[variable-2 1. ][variable-2&em *foo*][variable-2 bar]", "[variable-2 2. ][variable-2&strong **foo**][variable-2 bar]", "[variable-2 3. ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]", "[variable-2 4. ][variable-2&comment `foo`][variable-2 bar]"); // Paragraph lists MT("listParagraph", "[variable-2 * foo]", "", "[variable-2 * bar]"); // Multi-paragraph lists // // 4 spaces MT("listMultiParagraph", "[variable-2 * foo]", "", "[variable-2 * bar]", "", " [variable-2 hello]"); // 4 spaces, extra blank lines (should still be list, per Dingus) MT("listMultiParagraphExtra", "[variable-2 * foo]", "", "[variable-2 * bar]", "", "", " [variable-2 hello]"); // 4 spaces, plus 1 space (should still be list, per Dingus) MT("listMultiParagraphExtraSpace", "[variable-2 * foo]", "", "[variable-2 * bar]", "", " [variable-2 hello]", "", " [variable-2 world]"); // 1 tab MT("listTab", "[variable-2 * foo]", "", "[variable-2 * bar]", "", "\t[variable-2 hello]"); // No indent MT("listNoIndent", "[variable-2 * foo]", "", "[variable-2 * bar]", "", "hello"); // Blockquote MT("blockquote", "[variable-2 * foo]", "", "[variable-2 * bar]", "", " [variable-2&quote&quote-1 > hello]"); // Code block MT("blockquoteCode", "[variable-2 * foo]", "", "[variable-2 * bar]", "", " [comment > hello]", "", " [variable-2 world]"); // Code block followed by text MT("blockquoteCodeText", "[variable-2 * foo]", "", " [variable-2 bar]", "", " [comment hello]", "", " [variable-2 world]"); // Nested list MT("listAsteriskNested", "[variable-2 * foo]", "", " [variable-3 * bar]"); MT("listPlusNested", "[variable-2 + foo]", "", " [variable-3 + bar]"); MT("listDashNested", "[variable-2 - foo]", "", " [variable-3 - bar]"); MT("listNumberNested", "[variable-2 1. foo]", "", " [variable-3 2. bar]"); MT("listMixed", "[variable-2 * foo]", "", " [variable-3 + bar]", "", " [keyword - hello]", "", " [variable-2 1. world]"); MT("listBlockquote", "[variable-2 * foo]", "", " [variable-3 + bar]", "", " [quote&quote-1&variable-3 > hello]"); MT("listCode", "[variable-2 * foo]", "", " [variable-3 + bar]", "", " [comment hello]"); // Code with internal indentation MT("listCodeIndentation", "[variable-2 * foo]", "", " [comment bar]", " [comment hello]", " [comment world]", " [comment foo]", " [variable-2 bar]"); // List nesting edge cases MT("listNested", "[variable-2 * foo]", "", " [variable-3 * bar]", "", " [variable-2 hello]" ); MT("listNested", "[variable-2 * foo]", "", " [variable-3 * bar]", "", " [variable-3 * foo]" ); // Code followed by text MT("listCodeText", "[variable-2 * foo]", "", " [comment bar]", "", "hello"); // Following tests directly from official Markdown documentation // http://daringfireball.net/projects/markdown/syntax#hr MT("hrSpace", "[hr * * *]"); MT("hr", "[hr ***]"); MT("hrLong", "[hr *****]"); MT("hrSpaceDash", "[hr - - -]"); MT("hrDashLong", "[hr ---------------------------------------]"); // Inline link with title MT("linkTitle", "[link [[foo]]][string (http://example.com/ \"bar\")] hello"); // Inline link without title MT("linkNoTitle", "[link [[foo]]][string (http://example.com/)] bar"); // Inline link with image MT("linkImage", "[link [[][tag ![[foo]]][string (http://example.com/)][link ]]][string (http://example.com/)] bar"); // Inline link with Em MT("linkEm", "[link [[][link&em *foo*][link ]]][string (http://example.com/)] bar"); // Inline link with Strong MT("linkStrong", "[link [[][link&strong **foo**][link ]]][string (http://example.com/)] bar"); // Inline link with EmStrong MT("linkEmStrong", "[link [[][link&strong **][link&em&strong *foo**][link&em *][link ]]][string (http://example.com/)] bar"); // Image with title MT("imageTitle", "[tag ![[foo]]][string (http://example.com/ \"bar\")] hello"); // Image without title MT("imageNoTitle", "[tag ![[foo]]][string (http://example.com/)] bar"); // Image with asterisks MT("imageAsterisks", "[tag ![[*foo*]]][string (http://example.com/)] bar"); // Not a link. Should be normal text due to square brackets being used // regularly in text, especially in quoted material, and no space is allowed // between square brackets and parentheses (per Dingus). MT("notALink", "[[foo]] (bar)"); // Reference-style links MT("linkReference", "[link [[foo]]][string [[bar]]] hello"); // Reference-style links with Em MT("linkReferenceEm", "[link [[][link&em *foo*][link ]]][string [[bar]]] hello"); // Reference-style links with Strong MT("linkReferenceStrong", "[link [[][link&strong **foo**][link ]]][string [[bar]]] hello"); // Reference-style links with EmStrong MT("linkReferenceEmStrong", "[link [[][link&strong **][link&em&strong *foo**][link&em *][link ]]][string [[bar]]] hello"); // Reference-style links with optional space separator (per docuentation) // "You can optionally use a space to separate the sets of brackets" MT("linkReferenceSpace", "[link [[foo]]] [string [[bar]]] hello"); // Should only allow a single space ("...use *a* space...") MT("linkReferenceDoubleSpace", "[[foo]] [[bar]] hello"); // Reference-style links with implicit link name MT("linkImplicit", "[link [[foo]]][string [[]]] hello"); // @todo It would be nice if, at some point, the document was actually // checked to see if the referenced link exists // Link label, for reference-style links (taken from documentation) MT("labelNoTitle", "[link [[foo]]:] [string http://example.com/]"); MT("labelIndented", " [link [[foo]]:] [string http://example.com/]"); MT("labelSpaceTitle", "[link [[foo bar]]:] [string http://example.com/ \"hello\"]"); MT("labelDoubleTitle", "[link [[foo bar]]:] [string http://example.com/ \"hello\"] \"world\""); MT("labelTitleDoubleQuotes", "[link [[foo]]:] [string http://example.com/ \"bar\"]"); MT("labelTitleSingleQuotes", "[link [[foo]]:] [string http://example.com/ 'bar']"); MT("labelTitleParenthese", "[link [[foo]]:] [string http://example.com/ (bar)]"); MT("labelTitleInvalid", "[link [[foo]]:] [string http://example.com/] bar"); MT("labelLinkAngleBrackets", "[link [[foo]]:] [string <http://example.com/> \"bar\"]"); MT("labelTitleNextDoubleQuotes", "[link [[foo]]:] [string http://example.com/]", "[string \"bar\"] hello"); MT("labelTitleNextSingleQuotes", "[link [[foo]]:] [string http://example.com/]", "[string 'bar'] hello"); MT("labelTitleNextParenthese", "[link [[foo]]:] [string http://example.com/]", "[string (bar)] hello"); MT("labelTitleNextMixed", "[link [[foo]]:] [string http://example.com/]", "(bar\" hello"); MT("linkWeb", "[link <http://example.com/>] foo"); MT("linkWebDouble", "[link <http://example.com/>] foo [link <http://example.com/>]"); MT("linkEmail", "[link <user@example.com>] foo"); MT("linkEmailDouble", "[link <user@example.com>] foo [link <user@example.com>]"); MT("emAsterisk", "[em *foo*] bar"); MT("emUnderscore", "[em _foo_] bar"); MT("emInWordAsterisk", "foo[em *bar*]hello"); MT("emInWordUnderscore", "foo[em _bar_]hello"); // Per documentation: "...surround an * or _ with spaces, it’ll be // treated as a literal asterisk or underscore." MT("emEscapedBySpaceIn", "foo [em _bar _ hello_] world"); MT("emEscapedBySpaceOut", "foo _ bar[em _hello_]world"); MT("emEscapedByNewline", "foo", "_ bar[em _hello_]world"); // Unclosed emphasis characters // Instead of simply marking as EM / STRONG, it would be nice to have an // incomplete flag for EM and STRONG, that is styled slightly different. MT("emIncompleteAsterisk", "foo [em *bar]"); MT("emIncompleteUnderscore", "foo [em _bar]"); MT("strongAsterisk", "[strong **foo**] bar"); MT("strongUnderscore", "[strong __foo__] bar"); MT("emStrongAsterisk", "[em *foo][em&strong **bar*][strong hello**] world"); MT("emStrongUnderscore", "[em _foo][em&strong __bar_][strong hello__] world"); // "...same character must be used to open and close an emphasis span."" MT("emStrongMixed", "[em _foo][em&strong **bar*hello__ world]"); MT("emStrongMixed", "[em *foo][em&strong __bar_hello** world]"); // These characters should be escaped: // \ backslash // ` backtick // * asterisk // _ underscore // {} curly braces // [] square brackets // () parentheses // # hash mark // + plus sign // - minus sign (hyphen) // . dot // ! exclamation mark MT("escapeBacktick", "foo \\`bar\\`"); MT("doubleEscapeBacktick", "foo \\\\[comment `bar\\\\`]"); MT("escapeAsterisk", "foo \\*bar\\*"); MT("doubleEscapeAsterisk", "foo \\\\[em *bar\\\\*]"); MT("escapeUnderscore", "foo \\_bar\\_"); MT("doubleEscapeUnderscore", "foo \\\\[em _bar\\\\_]"); MT("escapeHash", "\\# foo"); MT("doubleEscapeHash", "\\\\# foo"); MT("escapeNewline", "\\", "[em *foo*]"); // Tests to make sure GFM-specific things aren't getting through MT("taskList", "[variable-2 * [ ]] bar]"); MT("fencedCodeBlocks", "[comment ```]", "foo", "[comment ```]"); })();
barisaydinoglu/jsdelivr
files/codemirror/3.22.0/mode/markdown/test.js
JavaScript
mit
19,952
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd.MM.yy HH:mm", "shortDate": "dd.MM.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CHF", "DECIMAL_SEP": ".", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "fr-ch", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
nareshs435/cdnjs
ajax/libs/angular-i18n/1.4.0-rc.0/angular-locale_fr-ch.js
JavaScript
mit
2,191
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FCFA", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-cg", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
jdh8/cdnjs
ajax/libs/angular-i18n/1.4.6/angular-locale_fr-cg.js
JavaScript
mit
2,195
CodeMirror.defineMode('tiki', function(config) { function inBlock(style, terminator, returnTokenizer) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = inText; break; } stream.next(); } if (returnTokenizer) state.tokenize = returnTokenizer; return style; }; } function inLine(style) { return function(stream, state) { while(!stream.eol()) { stream.next(); } state.tokenize = inText; return style; }; } function inText(stream, state) { function chain(parser) { state.tokenize = parser; return parser(stream, state); } var sol = stream.sol(); var ch = stream.next(); //non start of line switch (ch) { //switch is generally much faster than if, so it is used here case "{": //plugin stream.eat("/"); stream.eatSpace(); var tagName = ""; var c; while ((c = stream.eat(/[^\s\u00a0=\"\'\/?(}]/))) tagName += c; state.tokenize = inPlugin; return "tag"; break; case "_": //bold if (stream.eat("_")) { return chain(inBlock("strong", "__", inText)); } break; case "'": //italics if (stream.eat("'")) { // Italic text return chain(inBlock("em", "''", inText)); } break; case "(":// Wiki Link if (stream.eat("(")) { return chain(inBlock("variable-2", "))", inText)); } break; case "[":// Weblink return chain(inBlock("variable-3", "]", inText)); break; case "|": //table if (stream.eat("|")) { return chain(inBlock("comment", "||")); } break; case "-": if (stream.eat("=")) {//titleBar return chain(inBlock("header string", "=-", inText)); } else if (stream.eat("-")) {//deleted return chain(inBlock("error tw-deleted", "--", inText)); } break; case "=": //underline if (stream.match("==")) { return chain(inBlock("tw-underline", "===", inText)); } break; case ":": if (stream.eat(":")) { return chain(inBlock("comment", "::")); } break; case "^": //box return chain(inBlock("tw-box", "^")); break; case "~": //np if (stream.match("np~")) { return chain(inBlock("meta", "~/np~")); } break; } //start of line types if (sol) { switch (ch) { case "!": //header at start of line if (stream.match('!!!!!')) { return chain(inLine("header string")); } else if (stream.match('!!!!')) { return chain(inLine("header string")); } else if (stream.match('!!!')) { return chain(inLine("header string")); } else if (stream.match('!!')) { return chain(inLine("header string")); } else { return chain(inLine("header string")); } break; case "*": //unordered list line item, or <li /> at start of line case "#": //ordered list line item, or <li /> at start of line case "+": //ordered list line item, or <li /> at start of line return chain(inLine("tw-listitem bracket")); break; } } //stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki return null; } var indentUnit = config.indentUnit; // Return variables for tokenizers var pluginName, type; function inPlugin(stream, state) { var ch = stream.next(); var peek = stream.peek(); if (ch == "}") { state.tokenize = inText; //type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin return "tag"; } else if (ch == "(" || ch == ")") { return "bracket"; } else if (ch == "=") { type = "equals"; if (peek == ">") { ch = stream.next(); peek = stream.peek(); } //here we detect values directly after equal character with no quotes if (!/[\'\"]/.test(peek)) { state.tokenize = inAttributeNoQuote(); } //end detect values return "operator"; } else if (/[\'\"]/.test(ch)) { state.tokenize = inAttribute(ch); return state.tokenize(stream, state); } else { stream.eatWhile(/[^\s\u00a0=\"\'\/?]/); return "keyword"; } } function inAttribute(quote) { return function(stream, state) { while (!stream.eol()) { if (stream.next() == quote) { state.tokenize = inPlugin; break; } } return "string"; }; } function inAttributeNoQuote() { return function(stream, state) { while (!stream.eol()) { var ch = stream.next(); var peek = stream.peek(); if (ch == " " || ch == "," || /[ )}]/.test(peek)) { state.tokenize = inPlugin; break; } } return "string"; }; } var curState, setStyle; function pass() { for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); } function cont() { pass.apply(null, arguments); return true; } function pushContext(pluginName, startOfLine) { var noIndent = curState.context && curState.context.noIndent; curState.context = { prev: curState.context, pluginName: pluginName, indent: curState.indented, startOfLine: startOfLine, noIndent: noIndent }; } function popContext() { if (curState.context) curState.context = curState.context.prev; } function element(type) { if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));} else if (type == "closePlugin") { var err = false; if (curState.context) { err = curState.context.pluginName != pluginName; popContext(); } else { err = true; } if (err) setStyle = "error"; return cont(endcloseplugin(err)); } else if (type == "string") { if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); if (curState.tokenize == inText) popContext(); return cont(); } else return cont(); } function endplugin(startOfLine) { return function(type) { if ( type == "selfclosePlugin" || type == "endPlugin" ) return cont(); if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();} return cont(); }; } function endcloseplugin(err) { return function(type) { if (err) setStyle = "error"; if (type == "endPlugin") return cont(); return pass(); }; } function attributes(type) { if (type == "keyword") {setStyle = "attribute"; return cont(attributes);} if (type == "equals") return cont(attvalue, attributes); return pass(); } function attvalue(type) { if (type == "keyword") {setStyle = "string"; return cont();} if (type == "string") return cont(attvaluemaybe); return pass(); } function attvaluemaybe(type) { if (type == "string") return cont(attvaluemaybe); else return pass(); } return { startState: function() { return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null}; }, token: function(stream, state) { if (stream.sol()) { state.startOfLine = true; state.indented = stream.indentation(); } if (stream.eatSpace()) return null; setStyle = type = pluginName = null; var style = state.tokenize(stream, state); if ((style || type) && style != "comment") { curState = state; while (true) { var comb = state.cc.pop() || element; if (comb(type || style)) break; } } state.startOfLine = false; return setStyle || style; }, indent: function(state, textAfter) { var context = state.context; if (context && context.noIndent) return 0; if (context && /^{\//.test(textAfter)) context = context.prev; while (context && !context.startOfLine) context = context.prev; if (context) return context.indent + indentUnit; else return 0; }, electricChars: "/" }; }); CodeMirror.defineMIME("text/tiki", "tiki");
CyrusSUEN/cdnjs
ajax/libs/codemirror/3.15.0/mode/tiki/tiki.js
JavaScript
mit
8,194
.yui3-tab-panel{display:none}.yui3-tab-panel-selected{display:block}.yui3-tabview-list,.yui3-tab{margin:0;padding:0;list-style:none}.yui3-tabview{position:relative}.yui3-tabview,.yui3-tabview-list,.yui3-tabview-panel,.yui3-tab,.yui3-tab-panel{zoom:1}.yui3-tab{display:inline-block;*display:inline;vertical-align:bottom;cursor:pointer}.yui3-tab-label{display:block;display:inline-block;padding:6px 10px;position:relative;text-decoration:none;vertical-align:bottom}.yui3-skin-sam .yui3-tabview-list{border:solid #2647a0;border-width:0 0 5px;zoom:1}.yui3-skin-sam .yui3-tab{margin:0 .2em 0 0;padding:1px 0 0;zoom:1}.yui3-skin-sam .yui3-tab-selected{margin-bottom:-1px}.yui3-skin-sam .yui3-tab-label{background:#d8d8d8 url(../../../../assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:1px 1px 0 1px;color:#000;cursor:pointer;font-size:85%;padding:.3em .75em;text-decoration:none}.yui3-skin-sam .yui3-tab-label:hover,.yui3-skin-sam .yui3-tab-label:focus{background:#bfdaff url(../../../../assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover{background:#2647a0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{padding:.4em .75em}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{border-color:#243356}.yui3-skin-sam .yui3-tabview-panel{background:#edf5ff}.yui3-skin-sam .yui3-tabview-panel{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em}#yui3-css-stamp.skin-sam-tabview{display:none}
viskin/cdnjs
ajax/libs/yui/3.6.0pr2/tabview/assets/skins/sam/tabview.css
CSS
mit
1,671
.yui3-testconsole .yui3-console-entry{min-height:inherit;padding:5px}.yui3-testconsole .yui3-console-controls{display:none}.yui3-skin-sam .yui3-testconsole .yui3-console-content,.yui3-skin-sam .yui3-testconsole .yui3-console-bd,.yui3-skin-sam .yui3-testconsole .yui3-console-entry,.yui3-skin-sam .yui3-testconsole .yui3-console-ft,.yui3-skin-sam .yui3-testconsole .yui3-console-ft .yui3-console-filters-categories,.yui3-skin-sam .yui3-testconsole .yui3-console-ft .yui3-console-filters-sources,.yui3-skin-sam .yui3-testconsole .yui3-console-hd{background:0;border:0;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.yui3-skin-sam .yui3-testconsole-content,.yui3-skin-sam .yui3-testconsole .yui3-console-bd{color:#333;font:13px/1.4 Helvetica,'DejaVu Sans','Bitstream Vera Sans',Arial,sans-serif}.yui3-skin-sam .yui3-testconsole-content{border:1px solid #afafaf}.yui3-skin-sam .yui3-testconsole .yui3-console-entry{border-bottom:1px solid #eaeaea;font-family:Menlo,Inconsolata,Consolas,'DejaVu Mono','Bitstream Vera Sans Mono',monospace;font-size:11px}.yui3-skin-sam .yui3-testconsole .yui3-console-ft{border-top:1px solid}.yui3-skin-sam .yui3-testconsole .yui3-console-hd{border-bottom:1px solid;*zoom:1}.yui3-skin-sam .yui3-testconsole.yui3-console-collapsed .yui3-console-hd{border:0}.yui3-skin-sam .yui3-testconsole .yui3-console-ft,.yui3-skin-sam .yui3-testconsole .yui3-console-hd{border-color:#cfcfcf}.yui3-skin-sam .yui3-testconsole .yui3-testconsole-entry-fail{background-color:#ffe0e0;border-bottom-color:#ffc5c4}.yui3-skin-sam .yui3-testconsole .yui3-testconsole-entry-pass{background-color:#ecffea;border-bottom-color:#d1ffcc}#yui3-css-stamp.skin-sam-test-console{display:none}
RizkyAdiSaputra/cdnjs
ajax/libs/yui/3.9.1/test-console/assets/skins/sam/test-console.css
CSS
mit
1,700
.yui3-slider,.yui3-slider-rail{display:-moz-inline-stack;display:inline-block;*display:inline;zoom:1;vertical-align:middle}.yui3-slider-content{position:relative;display:block}.yui3-slider-rail{position:relative}.yui3-slider-rail-cap-top,.yui3-slider-rail-cap-left,.yui3-slider-rail-cap-bottom,.yui3-slider-rail-cap-right,.yui3-slider-thumb,.yui3-slider-thumb-image,.yui3-slider-thumb-shadow{position:absolute}.yui3-slider-thumb{overflow:hidden}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail,.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-left,.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-right{background-image:url(rail-x.png);background-repeat:repeat-x;background-repeat:repeat-x}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail{height:25px}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb{height:30px;width:14px}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-left{background-position:0 -20px;height:20px;left:-2px;width:5px}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-right{background-position:0 -40px;height:20px;right:-2px;width:5px}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb-image{left:0;top:-10px}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb-shadow{left:0;opacity:.15;filter:alpha(opacity=15);top:-50px}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail,.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-top,.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-bottom{background-image:url(rail-y.png);background-repeat:repeat-y;background-repeat:repeat-y}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail{width:25px}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb{width:30px;height:14px}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-top{background-position:-20px 0;width:20px;top:-2px;height:5px}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-bottom{background-position:-40px 0;width:20px;bottom:-2px;height:5px}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb-image{left:-10px;top:0}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb-shadow{left:-50px;opacity:.15;filter:alpha(opacity=15);top:0}#yui3-css-stamp.skin-capsule-slider-base{display:none}
iskitz/cdnjs
ajax/libs/yui/3.5.0/slider-base/assets/skins/capsule/slider-base.css
CSS
mit
2,171
.yui3-resize,.yui3-resize-wrapper { z-index: 0; zoom: 1; } .yui3-resize-handle { position: absolute; display: block; z-index: 100; zoom: 1; } .yui3-resize-proxy { position: absolute; border: 1px dashed #000; position: absolute; z-index: 10000; } .yui3-resize-hidden-handles .yui3-resize-handle { opacity: 0; filter: alpha(opacity=0); } .yui3-resize-handle-t, .yui3-resize-handle-b { width: 100%; left: 0; height: 6px; } .yui3-resize-handle-l, .yui3-resize-handle-r { height: 100%; top: 0; width: 6px; } .yui3-resize-handle-t { cursor: n-resize; top: 0; } .yui3-resize-handle-b { cursor: s-resize; bottom: 0; } .yui3-resize-handle-l { cursor: w-resize; left: 0; } .yui3-resize-handle-r { cursor: e-resize; right: 0; } .yui3-resize-handle-inner { position: absolute; zoom: 1; } .yui3-resize-handle-inner-t, .yui3-resize-handle-inner-b { margin-left: -8px; left: 50%; } .yui3-resize-handle-inner-l, .yui3-resize-handle-inner-r { margin-top: -8px; top: 50%; } .yui3-resize-handle-inner-t { top: -4px; } .yui3-resize-handle-inner-b { bottom: -4px; } .yui3-resize-handle-inner-l { left: -4px; } .yui3-resize-handle-inner-r { right: -4px; } .yui3-resize-handle-tr, .yui3-resize-handle-br, .yui3-resize-handle-tl, .yui3-resize-handle-bl { height: 15px; width: 15px; z-index: 200; } .yui3-resize-handle-tr { cursor: ne-resize; top: 0; right: 0; } .yui3-resize-handle-tl { cursor: nw-resize; top: 0; left: 0; } .yui3-resize-handle-br { cursor: se-resize; bottom: 0; right: 0; } .yui3-resize-handle-bl { cursor: sw-resize; bottom: 0; left: 0; }
Olical/cdnjs
ajax/libs/yui/3.5.0pr4/resize-constrain/assets/resize-base-core.css
CSS
mit
1,605
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // identity function for calling harmony imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 104); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { module.exports = jQuery; /***/ }), /***/ 1: /***/ (function(module, exports) { module.exports = {Foundation: window.Foundation}; /***/ }), /***/ 104: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(38); /***/ }), /***/ 3: /***/ (function(module, exports) { module.exports = {rtl: window.Foundation.rtl, GetYoDigits: window.Foundation.GetYoDigits, transitionend: window.Foundation.transitionend}; /***/ }), /***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_motion__ = __webpack_require__(68); __WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Motion = __WEBPACK_IMPORTED_MODULE_1__foundation_util_motion__["a" /* Motion */]; __WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Move = __WEBPACK_IMPORTED_MODULE_1__foundation_util_motion__["b" /* Move */]; /***/ }), /***/ 68: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Move; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Motion; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_core__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__foundation_util_core__); /** * Motion module. * @module foundation.motion */ var initClasses = ['mui-enter', 'mui-leave']; var activeClasses = ['mui-enter-active', 'mui-leave-active']; var Motion = { animateIn: function (element, animation, cb) { animate(true, element, animation, cb); }, animateOut: function (element, animation, cb) { animate(false, element, animation, cb); } }; function Move(duration, elem, fn) { var anim, prog, start = null; // console.log('called'); if (duration === 0) { fn.apply(elem); elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]); return; } function move(ts) { if (!start) start = ts; // console.log(start, ts); prog = ts - start; fn.apply(elem); if (prog < duration) { anim = window.requestAnimationFrame(move, elem); } else { window.cancelAnimationFrame(anim); elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]); } } anim = window.requestAnimationFrame(move); } /** * Animates an element in or out using a CSS transition class. * @function * @private * @param {Boolean} isIn - Defines if the animation is in or out. * @param {Object} element - jQuery or HTML object to animate. * @param {String} animation - CSS class to use. * @param {Function} cb - Callback to run when animation is finished. */ function animate(isIn, element, animation, cb) { element = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(element).eq(0); if (!element.length) return; var initClass = isIn ? initClasses[0] : initClasses[1]; var activeClass = isIn ? activeClasses[0] : activeClasses[1]; // Set up the animation reset(); element.addClass(animation).css('transition', 'none'); requestAnimationFrame(function () { element.addClass(initClass); if (isIn) element.show(); }); // Start the animation requestAnimationFrame(function () { element[0].offsetWidth; element.css('transition', '').addClass(activeClass); }); // Clean up the animation when it finishes element.one(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__foundation_util_core__["transitionend"])(element), finish); // Hides the element (for out animations), resets the element, and runs a callback function finish() { if (!isIn) element.hide(); reset(); if (cb) cb.apply(element); } // Resets transitions and removes motion-specific classes function reset() { element[0].style.transitionDuration = 0; element.removeClass(initClass + ' ' + activeClass + ' ' + animation); } } /***/ }) /******/ });
joeyparrish/cdnjs
ajax/libs/foundation/6.4.0-rc5/js/plugins/foundation.util.motion.js
JavaScript
mit
7,339
function initSearch(){getParameterByName("q")&&(q=decodeURIComponent(getParameterByName("q")),$searchInput.val(q),execSearch(q)),$(document).on("submit",$searchForm,function(a){a.preventDefault(),q=$searchInput.val(),execSearch(q)})}function execSearch(a){(""!=a||allowEmpty)&&(showLoader&&toggleLoadingClass(),getSearchResults(processData()))}function toggleLoadingClass(){$resultsPlaceholder.toggleClass(loadingClass),$foundContainer.toggleClass(loadingClass)}function getSearchResults(a){$.get(BASE_URL+jsonFeedUrl,a,"json")}function processData(){return $results=[],function(a){var b=0,c="";$.each(a,function(a,d){if(d.excerpt.toLowerCase().indexOf(q.toLowerCase())>-1||d.title.toLowerCase().indexOf(q.toLowerCase())>-1){var e=populateResultContent($resultTemplate.html(),d);b++,c+=e}}),showLoader&&toggleLoadingClass(),populateResultsString(b),showSearchResults(c)}}function showSearchResults(a){$resultsPlaceholder.html(a)}function populateResultContent(a,b){return a=injectContent(a,b.title,"##Title##"),a=injectContent(a,b.link,"##Url##"),a=injectContent(a,b.excerpt,"##Excerpt##"),a=injectContent(a,b.date,"##Date##")}function populateResultsString(a){$foundTerm.text(q),$foundCount.text(a),$foundContainer.show()}function getParameterByName(a){var b=RegExp("[?&]"+a+"=([^&]*)").exec(window.location.search);return b&&decodeURIComponent(b[1].replace(/\+/g," "))}function injectContent(a,b,c){var d=new RegExp(c,"g");return a.replace(d,b)}!function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null};if(!document.getElementById("fit-vids-style")){var d=document.createElement("div"),e=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0],f="&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>";d.className="fit-vids-style",d.id="fit-vids-style",d.style.display="none",d.innerHTML=f,e.parentNode.insertBefore(d,e)}return b&&a.extend(c,b),this.each(function(){var b=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=a(this).find(b.join(","));d=d.not("object object"),d.each(function(){var b=a(this);if(!("embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),d=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),e=c/d;if(!b.attr("id")){var f="fitvid"+Math.floor(999999*Math.random());b.attr("id",f)}b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),b.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(a){var b,c,d,e,f,g,h,i="Close",j="BeforeClose",k="AfterClose",l="BeforeAppend",m="MarkupParse",n="Open",o="Change",p="mfp",q="."+p,r="mfp-ready",s="mfp-removing",t="mfp-prevent-close",u=function(){},v=!!window.jQuery,w=a(window),x=function(a,c){b.ev.on(p+a+q,c)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(c,d){b.ev.triggerHandler(p+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},A=function(c){return c===h&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),h=c),b.currTemplate.closeBtn},B=function(){a.magnificPopup.instance||(b=new u,b.init(),a.magnificPopup.instance=b)},C=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};u.prototype={constructor:u,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=C(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),e=a(document),b.popupsCache={}},open:function(c){d||(d=a(document.body));var f;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var h,i=c.items;for(f=0;f<i.length;f++)if(h=i[f],h.parsed&&(h=h.el[0]),h===c.el[0]){b.index=f;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],g="",b.ev=c.mainEl&&c.mainEl.length?c.mainEl.eq(0):e,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=y("bg").on("click"+q,function(){b.close()}),b.wrap=y("wrap").attr("tabindex",-1).on("click"+q,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=y("container",b.wrap)),b.contentContainer=y("content"),b.st.preloader&&(b.preloader=y("preloader",b.container,b.st.tLoading));var j=a.magnificPopup.modules;for(f=0;f<j.length;f++){var k=j[f];k=k.charAt(0).toUpperCase()+k.slice(1),b["init"+k].call(b)}z("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(x(m,function(a,b,c,d){c.close_replaceWith=A(d.type)}),g+=" mfp-close-btn-in"):b.wrap.append(A())),b.st.alignTop&&(g+=" mfp-align-top"),b.wrap.css(b.fixedContentPos?{overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}:{top:w.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:e.height(),position:"absolute"}),b.st.enableEscapeKey&&e.on("keyup"+q,function(a){27===a.keyCode&&b.close()}),w.on("resize"+q,function(){b.updateSize()}),b.st.closeOnContentClick||(g+=" mfp-auto-cursor"),g&&b.wrap.addClass(g);var l=b.wH=w.height(),o={};if(b.fixedContentPos&&b._hasScrollBar(l)){var p=b._getScrollbarSize();p&&(o.marginRight=p)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):o.overflow="hidden");var s=b.st.mainClass;return b.isIE7&&(s+=" mfp-ie7"),s&&b._addClassToMFP(s),b.updateItemHTML(),z("BuildControls"),a("html").css(o),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||d),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(r),b._setFocus()):b.bgOverlay.addClass(r),e.on("focusin"+q,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(l),z(n),c},close:function(){b.isOpen&&(z(j),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(s),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){z(i);var c=s+" "+r+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var d={marginRight:""};b.isIE7?a("body, html").css("overflow",""):d.overflow="",a("html").css(d)}e.off("keyup"+q+" focusin"+q),b.ev.off(q),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,z(k)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||w.height();b.fixedContentPos||b.wrap.css("height",b.wH),z("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(z("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var e=b.st[d]?b.st[d].markup:!1;z("FirstMarkupParse",e),b.currTemplate[d]=e?a(e):!0}f&&f!==c.type&&b.container.removeClass("mfp-"+f+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,z(o,c),f=c.type,b.container.prepend(b.contentContainer),z("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(A()):b.content=a:b.content="",z(l),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,z("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(w.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};z("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(t)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?e.height():document.body.scrollHeight)>(a||w.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(m,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(q+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(q+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.id="mfp-sbm",a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:u.prototype,modules:[],open:function(b,c){return B(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){B();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=v?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),v?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var D,E,F,G="inline",H=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(G,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(G),x(i+"."+G,function(){H()})},getInline:function(c,d){if(H(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(E||(D=e.hiddenClass,E=y(D),D="mfp-"+D),F=f.after(E).detach().removeClass(D)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var I,J="ajax",K=function(){I&&d.removeClass(I)},L=function(){K(),b.req&&b.req.abort()};a.magnificPopup.registerModule(J,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(J),I=b.st.ajax.cursor,x(i+"."+J,L),x("BeforeChange."+J,L)},getAjax:function(c){I&&d.addClass(I),b.updateStatus("loading");var e=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};z("ParseAjax",g),b.appendContent(a(g.data),J),c.finished=!0,K(),b._setFocus(),setTimeout(function(){b.wrap.addClass(r)},16),b.updateStatus("ready"),z("AjaxContentAdded")},error:function(){K(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var M,N=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var a=b.st.image,c=".image";b.types.push("image"),x(n+c,function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)}),x(i+c,function(){a.cursor&&d.removeClass(a.cursor),w.off("resize"+q)}),x("Resize"+c,b.resizeImage),b.isLowIE&&x("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,M&&clearInterval(M),a.isCheckingImgSize=!1,z("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){M&&clearInterval(M),M=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(M),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,z("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:N(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(M&&clearInterval(M),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var O,P=function(){return void 0===O&&(O=void 0!==document.createElement("p").style.MozTransform),O};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,h=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};x("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=h(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,z("ZoomAnimationEnded")},16)},g)},16)}}),x(j+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=h(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),x(i+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(v?d.innerHeight():d[0].offsetHeight)-g-f};return P()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var Q="iframe",R="//about:blank",S=function(a){if(b.currTemplate[Q]){var c=b.currTemplate[Q].find("iframe");c.length&&(a||(c[0].src=R),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(Q,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(Q),x("BeforeChange",function(a,b,c){b!==c&&(b===Q?S():c===Q&&S(!0))}),x(i+"."+Q,function(){S()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var T=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},U=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,d=".mfp-gallery",f=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(g+=" mfp-gallery",x(n+d,function(){c.navigateByImgClick&&b.wrap.on("click"+d,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),e.on("keydown"+d,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),x("UpdateStatus"+d,function(a,c){c.text&&(c.text=U(c.text,b.currItem.index,b.items.length))}),x(m+d,function(a,d,e,f){var g=b.items.length;e.counter=g>1?U(c.tCounter,f.index,g):""}),x("BuildControls"+d,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(t),g=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(t),h=f?"mfpFastClick":"click";e[h](function(){b.prev()}),g[h](function(){b.next()}),b.isIE7&&(y("b",e[0],!1,!0),y("a",e[0],!1,!0),y("b",g[0],!1,!0),y("a",g[0],!1,!0)),b.container.append(e.add(g))}}),x(o+d,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void x(i+d,function(){e.off(d),b.wrap.off("click"+d),b.arrowLeft&&f&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=T(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=T(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=T(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),z("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,z("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var V="retina";a.magnificPopup.registerModule(V,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(x("ImageHasSize."+V,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),x("ElementParse."+V,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){w.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,w.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&w.off("touchmove"+f+" touchend"+f)}}(),B()}(window.jQuery||window.Zepto),window.matchMedia=window.matchMedia||function(a){"use strict";var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(document),function(a){"use strict";function b(){v(!0)}var c={};if(a.respond=c,c.update=function(){},c.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var d,e,f,g=a.document,h=g.documentElement,i=[],j=[],k=[],l={},m=30,n=g.getElementsByTagName("head")[0]||h,o=g.getElementsByTagName("base")[0],p=n.getElementsByTagName("link"),q=[],r=function(){for(var b=0;b<p.length;b++){var c=p[b],d=c.href,e=c.media,f=c.rel&&"stylesheet"===c.rel.toLowerCase();d&&f&&!l[d]&&(c.styleSheet&&c.styleSheet.rawCssText?(t(c.styleSheet.rawCssText,d,e),l[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!o||d.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&q.push({href:d,media:e}))}s()},s=function(){if(q.length){var b=q.shift();w(b.href,function(c){t(c,b.href,b.media),l[b.href]=!0,a.setTimeout(function(){s()},0)})}},t=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),e=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var f=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},g=!e&&c;b.length&&(b+="/"),g&&(e=1);for(var h=0;e>h;h++){var k,l,m,n;g?(k=c,j.push(f(a))):(k=d[h].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,j.push(RegExp.$2&&f(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],i.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:j.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},u=function(){var a,b=g.createElement("div"),c=g.body,d=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=d=g.createElement("body"),c.style.background="none"),c.appendChild(b),h.insertBefore(c,h.firstChild),a=b.offsetWidth,d?h.removeChild(c):c.removeChild(b),a=f=parseFloat(a)},v=function(b){var c="clientWidth",l=h[c],o="CSS1Compat"===g.compatMode&&l||g.body[c]||l,q={},r=p[p.length-1],s=(new Date).getTime();if(b&&d&&m>s-d)return a.clearTimeout(e),void(e=a.setTimeout(v,m));d=s;for(var t in i)if(i.hasOwnProperty(t)){var w=i[t],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?f||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?f||u():1)),w.hasquery&&(z&&A||!(z||o>=x)||!(A||y>=o))||(q[w.media]||(q[w.media]=[]),q[w.media].push(j[w.rules]))}for(var C in k)k.hasOwnProperty(C)&&k[C]&&k[C].parentNode===n&&n.removeChild(k[C]);for(var D in q)if(q.hasOwnProperty(D)){var E=g.createElement("style"),F=q[D].join("\n");E.type="text/css",E.media=D,n.insertBefore(E,r.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(g.createTextNode(F)),k.push(E)}},w=function(a,b){var c=x();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},x=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();r(),c.update=r,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);var responsiveNav=function(a,b){function c(a,b){return s||(s=new r(a,b)),s}var d=!!a.getComputedStyle;a.getComputedStyle||(a.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(b){var c=/(\-([a-z]){1})/g;return"float"===b&&(b="styleFloat"),c.test(b)&&(b=b.replace(c,function(){return arguments[2].toUpperCase()})),a.currentStyle[b]?a.currentStyle[b]:null},this});var e,f,g,h=b.documentElement,i=b.getElementsByTagName("head")[0],j=b.createElement("style"),k=!1,l=function(a,b,c,d){if("addEventListener"in a)try{a.addEventListener(b,c,d)}catch(e){if("object"!=typeof c||!c.handleEvent)throw e;a.addEventListener(b,function(a){c.handleEvent.call(c,a)},d)}else"attachEvent"in a&&("object"==typeof c&&c.handleEvent?a.attachEvent("on"+b,function(){c.handleEvent.call(c)}):a.attachEvent("on"+b,c))},m=function(a,b,c,d){if("removeEventListener"in a)try{a.removeEventListener(b,c,d)}catch(e){if("object"!=typeof c||!c.handleEvent)throw e;a.removeEventListener(b,function(a){c.handleEvent.call(c,a)},d)}else"detachEvent"in a&&("object"==typeof c&&c.handleEvent?a.detachEvent("on"+b,function(){c.handleEvent.call(c)}):a.detachEvent("on"+b,c))},n=function(a){for(var b=a.firstChild;null!==b&&1!==b.nodeType;)b=b.nextSibling;return b},o=function(a,b){for(var c in b)a.setAttribute(c,b[c])},p=function(a,b){a.className+=" "+b,a.className=a.className.replace(/(^\s*)|(\s*$)/g,"")},q=function(a,b){var c=new RegExp("(\\s|^)"+b+"(\\s|$)");a.className=a.className.replace(c," ").replace(/(^\s*)|(\s*$)/g,"")},r=function(a,c){var d;this.options={animate:!0,transition:400,label:"Menu",insert:"after",customToggle:"",openPos:"relative",jsClass:"js",init:function(){},open:function(){},close:function(){}};for(d in c)this.options[d]=c[d];if(p(h,this.options.jsClass),this.wrapperEl=a.replace("#",""),!b.getElementById(this.wrapperEl))throw new Error("The nav element you are trying to select doesn't exist");this.wrapper=b.getElementById(this.wrapperEl),this.wrapper.inner=n(this.wrapper),f=this.options,e=this.wrapper,this._init(this)};r.prototype={destroy:function(){this._removeStyles(),q(e,"closed"),q(e,"opened"),e.removeAttribute("style"),e.removeAttribute("aria-hidden"),e=null,s=null,m(a,"load",this,!1),m(a,"resize",this,!1),m(g,"mousedown",this,!1),m(g,"touchstart",this,!1),m(g,"touchend",this,!1),m(g,"keyup",this,!1),m(g,"click",this,!1),f.customToggle?g.removeAttribute("aria-hidden"):g.parentNode.removeChild(g)},toggle:function(){k?(q(e,"opened"),p(e,"closed"),o(e,{"aria-hidden":"true"}),k=!1,f.close()):(q(e,"closed"),p(e,"opened"),e.style.position=f.openPos,o(e,{"aria-hidden":"false"}),k=!0,f.open())},handleEvent:function(b){var c=b||a.event;switch(c.type){case"mousedown":this._onmousedown(c);break;case"touchstart":this._ontouchstart(c);break;case"touchend":this._ontouchend(c);break;case"keyup":this._onkeyup(c);break;case"click":this._onclick(c);break;case"load":this._transitions(c),this._resize(c);break;case"resize":this._resize(c)}},_init:function(){p(e,"closed"),this._createToggle(),l(a,"load",this,!1),l(a,"resize",this,!1),l(g,"mousedown",this,!1),l(g,"touchstart",this,!1),l(g,"touchend",this,!1),l(g,"keyup",this,!1),l(g,"click",this,!1)},_createStyles:function(){j.parentNode||i.appendChild(j)},_removeStyles:function(){j.parentNode&&j.parentNode.removeChild(j)},_createToggle:function(){if(f.customToggle){var a=f.customToggle.replace("#","");if(!b.getElementById(a))throw new Error("The custom nav toggle you are trying to select doesn't exist");g=b.getElementById(a)}else{var c=b.createElement("a");c.innerHTML=f.label,o(c,{href:"#",id:"nav-toggle"}),"after"===f.insert?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.insertBefore(c,e),g=b.getElementById("nav-toggle")}},_preventDefault:function(a){a.preventDefault?(a.preventDefault(),a.stopPropagation()):a.returnValue=!1},_onmousedown:function(b){var c=b||a.event;3!==c.which&&2!==c.button&&(this._preventDefault(b),this.toggle(b))},_ontouchstart:function(a){g.onmousedown=null,this._preventDefault(a),this.toggle(a)},_ontouchend:function(){var a=this;e.addEventListener("click",a._preventDefault,!0),setTimeout(function(){e.removeEventListener("click",a._preventDefault,!0)},f.transition)},_onkeyup:function(b){var c=b||a.event;13===c.keyCode&&this.toggle(b)},_onclick:function(a){this._preventDefault(a)},_transitions:function(){if(f.animate){var a=e.style,b="max-height "+f.transition+"ms";a.WebkitTransition=b,a.MozTransition=b,a.OTransition=b,a.transition=b}},_calcHeight:function(){var a=e.inner.offsetHeight,b="#"+this.wrapperEl+".opened{max-height:"+a+"px}"; d&&(j.innerHTML=b,b="")},_resize:function(){"none"!==a.getComputedStyle(g,null).getPropertyValue("display")?(o(g,{"aria-hidden":"false"}),e.className.match(/(^|\s)closed(\s|$)/)&&(o(e,{"aria-hidden":"true"}),e.style.position="absolute"),this._createStyles(),this._calcHeight()):(o(g,{"aria-hidden":"true"}),o(e,{"aria-hidden":"false"}),e.style.position=f.openPos,this._removeStyles()),f.init()}};var s;return c}(window,document),q,jsonFeedUrl="/search.json",$searchForm="[data-search-form]",$searchInput=$("[data-search-input]"),$resultTemplate=$("#search-result"),$resultsPlaceholder=$("[data-search-results]"),$foundContainer=$("[data-search-found]"),$foundTerm=$("[data-search-found-term]"),$foundCount=$("[data-search-found-count]"),allowEmpty=!0,showLoader=!0,loadingClass="is--loading";$(document).ready(function(){$foundContainer.hide(),initSearch()});var navigation=responsiveNav("#site-nav",{animate:!0,transition:200,label:"<i class='fa fa-bars'></i> Menu",insert:"before",customToggle:"",openPos:"relative",jsClass:"js",init:function(){},open:function(){},close:function(){}});$("html").click(function(){$(navigation.wrapper).hasClass("opened")&&navigation.toggle()}),$("#site-nav").click(function(a){a.stopPropagation()}),$(function(){$("article").fitVids()}),$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"),$(document).ready(function(){$(".image-popup").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">Image #%curr%</a> could not be loaded.'},removalDelay:300,mainClass:"mfp-fade"})});
LimingPrecisionFarming/soil-lovers
assets/js/scripts.min.js
JavaScript
mit
33,725
input.cke_dialog_ui_input_text,input.cke_dialog_ui_input_password,textarea.cke_dialog_ui_input_textarea{background-color:#fff;outline:0;width:100%;*width:95%;height:30px;padding:4px 10px;border:1px solid #ddd;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}input.cke_dialog_ui_input_text:focus,input.cke_dialog_ui_input_password:focus,textarea.cke_dialog_ui_input_textarea:focus{border-color:#66afe9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.cke_dialog{visibility:visible}.cke_dialog_body{z-index:1;background:#eee;border:1px solid #ddd;border-radius:4px}.cke_browser_gecko19 .cke_dialog_body{position:relative}.cke_dialog strong{font-weight:bold}.cke_dialog_title{font-weight:bold;font-size:13px;cursor:move;position:relative;color:#333;border-bottom:1px solid #ddd;padding:10px 12px;background:#eee}.cke_dialog_contents{background-color:#fff;overflow:auto;padding:15px 10px 5px 10px;margin-top:35px;border-top:1px solid #ddd;border-radius:0 0 4px 4px}.cke_dialog_contents_body{overflow:auto;padding:17px 10px 5px 10px;margin-top:22px}.cke_dialog_footer{text-align:right;position:relative;border-radius:0 0 4px 4px;border-top:1px solid #ddd;background:#eee}.cke_rtl .cke_dialog_footer{text-align:left}.cke_hc .cke_dialog_footer{outline:0;border-top:1px solid #fff}.cke_dialog .cke_resizer{margin-top:28px}.cke_dialog .cke_resizer_rtl{margin-left:5px}.cke_dialog .cke_resizer_ltr{margin-right:5px}.cke_dialog_tabs{height:24px;display:inline-block;margin:10px 0 0;position:absolute;z-index:2;left:10px}.cke_rtl .cke_dialog_tabs{right:10px}a.cke_dialog_tab{height:16px;padding:4px 8px;margin-right:3px;display:inline-block;cursor:pointer;line-height:16px;outline:0;color:#555;border:1px solid #ddd;border-radius:3px 3px 0 0;background:#f3f3f3}.cke_rtl a.cke_dialog_tab{margin-right:0;margin-left:3px}a.cke_dialog_tab:hover{background:#ddd;text-decoration:none}a.cke_dialog_tab_selected{background:#fff;color:#333;border-bottom-color:#fff;cursor:default;filter:none}a.cke_dialog_tab_selected:hover{background:#fff}.cke_hc a.cke_dialog_tab:hover,.cke_hc a.cke_dialog_tab_selected{border:3px solid;padding:2px 6px}a.cke_dialog_tab_disabled{color:#bababa;cursor:default}.cke_dialog_tabs .cke_dialog_ui_input_select{top:-7px!important}.cke_single_page .cke_dialog_tabs{display:none}.cke_single_page .cke_dialog_contents{padding-top:5px;margin-top:0;border-top:0}.cke_dialog_close_button{background-image:url(images/close.png);background-repeat:no-repeat;background-position:0 0;position:absolute;cursor:pointer;text-align:center;height:20px;width:20px;top:9px;z-index:5}.cke_hidpi .cke_dialog_close_button{background-image:url(images/hidpi/close.png);background-size:16px}.cke_dialog_close_button span{display:none}.cke_hc .cke_dialog_close_button span{display:inline;cursor:pointer;font-weight:bold;position:relative;top:3px}.cke_ltr .cke_dialog_close_button{right:5px}.cke_rtl .cke_dialog_close_button{left:6px}div.cke_disabled .cke_dialog_ui_labeled_content div *{background-color:#ddd;cursor:default}.cke_dialog_ui_vbox table,.cke_dialog_ui_hbox table{margin:auto}.cke_dialog_ui_vbox{margin-top:5px}.cke_dialog_ui_vbox_child{padding:5px 0}.cke_dialog_ui_hbox{width:100%}.cke_dialog_ui_hbox_first,.cke_dialog_ui_hbox_child,.cke_dialog_ui_hbox_last{vertical-align:top}.cke_dialog_ui_hbox_first>.cke_dialog_ui_labeled_label,.cke_dialog_ui_hbox_first>.cke_dialog_ui_html,.cke_dialog_ui_hbox_last>.cke_dialog_ui_labeled_label,.cke_dialog_ui_hbox_last>.cke_dialog_ui_html{line-height:30px}.cke_ltr .cke_dialog_ui_hbox_first,.cke_ltr .cke_dialog_ui_hbox_child{padding-right:10px}.cke_rtl .cke_dialog_ui_hbox_first,.cke_rtl .cke_dialog_ui_hbox_child{padding-left:10px}.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child{padding-right:5px}.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child{padding-left:5px;padding-right:0}.cke_hc div.cke_dialog_ui_input_text,.cke_hc div.cke_dialog_ui_input_password,.cke_hc div.cke_dialog_ui_input_textarea,.cke_hc div.cke_dialog_ui_input_select,.cke_hc div.cke_dialog_ui_input_file{border:1px solid}.cke_dialog_ui_text{margin-bottom:7px}.cke_dialog_ui_select{height:auto!important;margin-bottom:7px}textarea.cke_dialog_ui_input_textarea{overflow:auto;resize:none}a.cke_dialog_ui_button{display:inline-block;*display:inline;*zoom:1;padding:3px 0;margin:0;text-align:center;color:#333;vertical-align:middle;cursor:pointer;border:1px solid #ddd;border-radius:4px;background:#fff}a.cke_dialog_ui_button:hover,a.cke_dialog_ui_button:focus,a.cke_dialog_ui_button:active{border-color:#aaa;background-color:#eee;text-decoration:none}.cke_dialog_page_contents a.cke_dialog_ui_button{height:22px;line-height:22px;background-color:#f4f4f4}.cke_dialog_page_contents a.cke_dialog_ui_button:hover,.cke_dialog_page_contents a.cke_dialog_ui_button:focus,.cke_dialog_page_contents a.cke_dialog_ui_button:active{background-color:#eee}span.cke_dialog_ui_button{padding:0 12px}.cke_hc a.cke_dialog_ui_button:hover,.cke_hc a.cke_dialog_ui_button:focus,.cke_hc a.cke_dialog_ui_button:active{border:3px solid;padding-top:1px;padding-bottom:1px}.cke_hc a.cke_dialog_ui_button:hover span,.cke_hc a.cke_dialog_ui_button:focus span,.cke_hc a.cke_dialog_ui_button:active span{padding-left:10px;padding-right:10px}.cke_dialog_footer_buttons a.cke_dialog_ui_button span{color:inherit;font-size:12px;line-height:20px}a.cke_dialog_ui_button_ok{color:#fff;border-color:#2274c9;background:#3f8edf}a.cke_dialog_ui_button_ok:hover,a.cke_dialog_ui_button_ok:focus,a.cke_dialog_ui_button_ok:active{border-color:#1e68b4;background:#2981db}a.cke_dialog_ui_button_cancel{background-color:#fff}a.cke_dialog_ui_button_cancel:focus{outline:0}span.cke_dialog_ui_button{cursor:pointer}.cke_dialog_footer_buttons{display:inline-table;margin:10px;width:auto;position:relative;vertical-align:middle}div.cke_dialog_ui_input_select{display:table}select.cke_dialog_ui_input_select{height:30px;line-height:30px;background-color:#fff;padding:4px 10px;border:1px solid #ddd;outline:0;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.cke_dialog_ui_input_file{width:100%;height:30px}.cke_hc .cke_dialog_ui_labeled_content input:focus,.cke_hc .cke_dialog_ui_labeled_content select:focus,.cke_hc .cke_dialog_ui_labeled_content textarea:focus{outline:1px dotted}.cke_dialog .cke_dark_background{background-color:#eee}.cke_dialog .cke_light_background{background-color:#eee}.cke_dialog .cke_centered{text-align:center}.cke_dialog a.cke_btn_reset{float:right;background:url(images/refresh.png) top left no-repeat;width:16px;height:16px;border:1px none;font-size:1px}.cke_dialog a.cke_btn_locked,.cke_dialog a.cke_btn_unlocked{float:left;width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.cke_dialog a.cke_btn_locked{background-image:url(images/lock.png)}.cke_dialog a.cke_btn_locked .cke_icon{display:none}.cke_dialog a.cke_btn_unlocked{background-image:url(images/lock-open.png)}.cke_dialog .cke_btn_over{border:outset 1px;cursor:pointer}.cke_hidpi .cke_dialog a.cke_btn_reset{background-size:16px;background-image:url(images/hidpi/refresh.png)}.cke_hidpi .cke_dialog a.cke_btn_unlocked,.cke_hidpi .cke_dialog a.cke_btn_locked{background-size:16px}.cke_hidpi .cke_dialog a.cke_btn_locked{background-image:url(images/hidpi/lock.png)}.cke_hidpi .cke_dialog a.cke_btn_unlocked{background-image:url(images/hidpi/lock-open.png)}.cke_rtl .cke_dialog a.cke_btn_reset{float:left}.cke_rtl .cke_dialog a.cke_btn_locked,.cke_rtl .cke_dialog a.cke_btn_unlocked{float:right}.cke_dialog .ImagePreviewBox,.cke_dialog .FlashPreviewBox{border:1px solid #aaa;border-radius:4px;padding:6px 10px;margin-top:5px;background-color:white}.cke_dialog .ImagePreviewBox{overflow:scroll;height:205px;width:300px}.cke_dialog .ImagePreviewBox table td{white-space:normal}.cke_dialog .FlashPreviewBox{white-space:normal;overflow:auto;height:160px;width:390px}.cke_dialog .ImagePreviewLoader{position:absolute;white-space:normal;overflow:hidden;height:160px;width:230px;margin:2px;padding:2px;opacity:.9;filter:alpha(opacity=90);background-color:#e4e4e4}.cke_dialog .cke_pastetext{width:346px;height:170px}.cke_dialog .cke_pastetext textarea{width:340px;height:170px;resize:none}.cke_dialog iframe.cke_pasteframe{width:346px;height:130px;background-color:white;border:1px solid #aeb3b9;border-radius:4px}.cke_dialog .cke_hand{cursor:pointer}.cke_disabled{color:#a0a0a0}.cke_dialog_body .cke_label{display:none}.cke_dialog_body label{display:inline-block;margin-bottom:3px;cursor:default}.cke_dialog_body label.cke_required{font-weight:bold}.cke_dialog_ui_html{line-height:150%}a.cke_smile{overflow:hidden;display:block;text-align:center;padding:.3em 0}a.cke_smile img{vertical-align:middle}a.cke_specialchar{cursor:inherit;display:block;height:1.25em;padding:.2em .3em;text-align:center}a.cke_smile,a.cke_specialchar{background-color:#eee;border:1px solid transparent;vertical-align:top}a.cke_smile:hover,a.cke_smile:focus,a.cke_smile:active,a.cke_specialchar:hover,a.cke_specialchar:focus,a.cke_specialchar:active{background:#fff;outline:0}a.cke_smile:hover,a.cke_specialchar:hover{border-color:#aaa}a.cke_smile:focus,a.cke_smile:active,a.cke_specialchar:focus,a.cke_specialchar:active{border-color:#428bca}.cke_dialog_contents a.colorChooser{display:block;margin-top:6px;margin-left:10px;width:80px}.cke_rtl .cke_dialog_contents a.colorChooser{margin-right:10px}.cke_dialog_ui_checkbox{display:inline-block;margin-bottom:5px}.cke_dialog_ui_checkbox_input:focus,.cke_dialog_ui_radio_input:focus,.cke_btn_over{outline:1px dotted #696969}.cke_iframe_shim{display:block;position:absolute;top:0;left:0;z-index:-1;filter:alpha(opacity=0);width:100%;height:100%}.cke_dialog_title{zoom:1}.cke_dialog_footer{border-top:1px solid #bfbfbf}.cke_dialog_footer_buttons{position:static}.cke_dialog_footer_buttons a.cke_dialog_ui_button{vertical-align:top}.cke_dialog .cke_resizer_ltr{padding-left:4px}.cke_dialog .cke_resizer_rtl{padding-right:4px}.cke_dialog_ui_input_text,.cke_dialog_ui_input_password,.cke_dialog_ui_input_textarea,.cke_dialog_ui_input_select{padding:0!important}.cke_dialog_ui_checkbox_input,.cke_dialog_ui_ratio_input,.cke_btn_reset,.cke_btn_locked,.cke_btn_unlocked{border:1px solid transparent!important}
PHP-Expert/paperwork
frontend/public/ckeditor/skins/bootstrapck/.temp/css/dialog_ie7.css
CSS
mit
10,653
body { width: 100% !important; min-width: 100%; margin: 0; padding: 0; } img { border: 0 none; height: auto; line-height: 100%; outline: none; text-decoration: none; } a img { border: 0 none; } table { border-spacing: 0; border-collapse: collapse; } td { padding: 0; text-align: left; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; } table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; } body, table, td, p, a, li, blockquote { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } img { -ms-interpolation-mode: bicubic; } body { color: #212121; font-family: "Helvetica Neue", Helvetica, Arial, Verdana, "Trebuchet MS"; font-weight: 400; font-size: 14px; line-height: 1.429; letter-spacing: 0.001em; background-color: #FFF; } a { color: #2196F3; text-decoration: none; } p { margin: 0 0 10px; } hr { color: #e0e0e0; background-color: #e0e0e0; height: 1px; border: none; } .mui-body { margin: 0; padding: 0; height: 100%; width: 100%; color: #212121; font-family: "Helvetica Neue", Helvetica, Arial, Verdana, "Trebuchet MS"; font-weight: 400; font-size: 14px; line-height: 1.429; letter-spacing: 0.001em; background-color: #FFF; } .mui-container, .mui-container-fixed { max-width: 600px; display: block; margin: 0 auto; clear: both; text-align: left; padding-left: 15px; padding-right: 15px; } .mui-container-fixed { width: 600px; } strong { font-weight: 700; } h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; } h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; } .mui-text-display4 { font-weight: 300; font-size: 112px; line-height: 112px; letter-spacing: -0.01em; color: rgba(33, 33, 33, 0.54); color: #212121; } .mui-text-display4.mui-text-black { color: rgba(0, 0, 0, 0.54); } .mui-text-display4.mui-text-white { color: rgba(255, 255, 255, 0.7); } .mui-text-display4.mui-text-accent { color: rgba(255, 64, 129, 0.54); } .mui-text-display4.mui-text-black { color: #212121; } .mui-text-display4.mui-text-white { color: #FFF; } .mui-text-display4.mui-text-accent { color: #ff82ad; } .mui-text-display3 { font-weight: 400; font-size: 56px; line-height: 56px; letter-spacing: -0.005em; color: rgba(33, 33, 33, 0.54); color: #212121; } .mui-text-display3.mui-text-black { color: rgba(0, 0, 0, 0.54); } .mui-text-display3.mui-text-white { color: rgba(255, 255, 255, 0.7); } .mui-text-display3.mui-text-accent { color: rgba(255, 64, 129, 0.54); } .mui-text-display3.mui-text-black { color: #212121; } .mui-text-display3.mui-text-white { color: #FFF; } .mui-text-display3.mui-text-accent { color: #ff82ad; } .mui-text-display2 { font-weight: 400; font-size: 45px; line-height: 48px; letter-spacing: 0em; color: rgba(33, 33, 33, 0.54); color: #212121; } .mui-text-display2.mui-text-black { color: rgba(0, 0, 0, 0.54); } .mui-text-display2.mui-text-white { color: rgba(255, 255, 255, 0.7); } .mui-text-display2.mui-text-accent { color: rgba(255, 64, 129, 0.54); } .mui-text-display2.mui-text-black { color: #212121; } .mui-text-display2.mui-text-white { color: #FFF; } .mui-text-display2.mui-text-accent { color: #ff82ad; } .mui-text-display1, h1 { font-weight: 400; font-size: 34px; line-height: 40px; letter-spacing: 0em; color: rgba(33, 33, 33, 0.54); color: #212121; } .mui-text-display1.mui-text-black, h1.mui-text-black { color: rgba(0, 0, 0, 0.54); } .mui-text-display1.mui-text-white, h1.mui-text-white { color: rgba(255, 255, 255, 0.7); } .mui-text-display1.mui-text-accent, h1.mui-text-accent { color: rgba(255, 64, 129, 0.54); } .mui-text-display1.mui-text-black, h1.mui-text-black { color: #212121; } .mui-text-display1.mui-text-white, h1.mui-text-white { color: #FFF; } .mui-text-display1.mui-text-accent, h1.mui-text-accent { color: #ff82ad; } .mui-text-headline, h2 { font-weight: 400; font-size: 24px; line-height: 32px; letter-spacing: 0em; color: rgba(33, 33, 33, 0.87); color: #212121; } .mui-text-headline.mui-text-black, h2.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-headline.mui-text-white, h2.mui-text-white { color: white; } .mui-text-headline.mui-text-accent, h2.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-headline.mui-text-black, h2.mui-text-black { color: #212121; } .mui-text-headline.mui-text-white, h2.mui-text-white { color: #FFF; } .mui-text-headline.mui-text-accent, h2.mui-text-accent { color: #ff82ad; } .mui-text-title, h3 { font-weight: 400; font-size: 20px; line-height: 28px; letter-spacing: 0.005em; color: rgba(33, 33, 33, 0.87); color: #212121; } .mui-text-title.mui-text-black, h3.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-title.mui-text-white, h3.mui-text-white { color: white; } .mui-text-title.mui-text-accent, h3.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-title.mui-text-black, h3.mui-text-black { color: #212121; } .mui-text-title.mui-text-white, h3.mui-text-white { color: #FFF; } .mui-text-title.mui-text-accent, h3.mui-text-accent { color: #ff82ad; } .mui-text-subhead, h4 { font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: 0.001em; color: rgba(33, 33, 33, 0.87); color: #212121; } .mui-text-subhead.mui-text-black, h4.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-subhead.mui-text-white, h4.mui-text-white { color: white; } .mui-text-subhead.mui-text-accent, h4.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-subhead.mui-text-black, h4.mui-text-black { color: #212121; } .mui-text-subhead.mui-text-white, h4.mui-text-white { color: #FFF; } .mui-text-subhead.mui-text-accent, h4.mui-text-accent { color: #ff82ad; } .mui-text-body2, h5 { font-weight: 500; font-size: 14px; line-height: 24px; letter-spacing: 0.001em; color: rgba(33, 33, 33, 0.87); color: #212121; } .mui-text-body2.mui-text-black, h5.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-body2.mui-text-white, h5.mui-text-white { color: white; } .mui-text-body2.mui-text-accent, h5.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-body2.mui-text-black, h5.mui-text-black { color: #212121; } .mui-text-body2.mui-text-white, h5.mui-text-white { color: #FFF; } .mui-text-body2.mui-text-accent, h5.mui-text-accent { color: #ff82ad; } .mui-text-body1 { font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: 0.001em; color: rgba(33, 33, 33, 0.87); color: #212121; } .mui-text-body1.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-body1.mui-text-white { color: white; } .mui-text-body1.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-body1.mui-text-black { color: #212121; } .mui-text-body1.mui-text-white { color: #FFF; } .mui-text-body1.mui-text-accent { color: #ff82ad; } .mui-text-caption { font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 0.002em; color: rgba(33, 33, 33, 0.54); color: #212121; } .mui-text-caption.mui-text-black { color: rgba(0, 0, 0, 0.54); } .mui-text-caption.mui-text-white { color: rgba(255, 255, 255, 0.7); } .mui-text-caption.mui-text-accent { color: rgba(255, 64, 129, 0.54); } .mui-text-caption.mui-text-black { color: #212121; } .mui-text-caption.mui-text-white { color: #FFF; } .mui-text-caption.mui-text-accent { color: #ff82ad; } .mui-text-menu { font-weight: 500; font-size: 13px; line-height: 17px; letter-spacing: 0.001em; color: rgba(33, 33, 33, 0.87); color: #212121; } .mui-text-menu.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-menu.mui-text-white { color: white; } .mui-text-menu.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-menu.mui-text-black { color: #212121; } .mui-text-menu.mui-text-white { color: #FFF; } .mui-text-menu.mui-text-accent { color: #ff82ad; } .mui-text-button { font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: 0.05em; color: rgba(33, 33, 33, 0.87); text-transform: uppercase; color: #212121; } .mui-text-button.mui-text-black { color: rgba(0, 0, 0, 0.87); } .mui-text-button.mui-text-white { color: white; } .mui-text-button.mui-text-accent { color: rgba(255, 64, 129, 0.87); } .mui-text-button.mui-text-black { color: #212121; } .mui-text-button.mui-text-white { color: #FFF; } .mui-text-button.mui-text-accent { color: #ff82ad; } .mui-btn { cursor: pointer; white-space: nowrap; } a.mui-btn { display: inline-block; text-decoration: none; text-align: center; font-weight: 400; font-size: 14px; color: #212121; line-height: 14px; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 3px; padding: 10px 25px; background-color: transparent; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } a.mui-btn.mui-btn-default { color: #212121; background-color: #FFF; border-top: 1px solid #FFF; border-left: 1px solid #FFF; border-right: 1px solid #FFF; border-bottom: 1px solid #FFF; } a.mui-btn.mui-btn-default.mui-btn-raised { border-top: 1px solid #f2f2f2; border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; border-bottom: 2px solid #bababa; } a.mui-btn.mui-btn-default.mui-btn-flat { background-color: transparent; color: #212121; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } a.mui-btn.mui-btn-primary { color: #FFF; background-color: #2196F3; border-top: 1px solid #2196F3; border-left: 1px solid #2196F3; border-right: 1px solid #2196F3; border-bottom: 1px solid #2196F3; } a.mui-btn.mui-btn-primary.mui-btn-raised { border-top: 1px solid #51adf6; border-left: 1px solid #2196F3; border-right: 1px solid #2196F3; border-bottom: 2px solid #0a6ebd; } a.mui-btn.mui-btn-primary.mui-btn-flat { background-color: transparent; color: #2196F3; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } a.mui-btn.mui-btn-danger { color: #FFF; background-color: #F44336; border-top: 1px solid #F44336; border-left: 1px solid #F44336; border-right: 1px solid #F44336; border-bottom: 1px solid #F44336; } a.mui-btn.mui-btn-danger.mui-btn-raised { border-top: 1px solid #f77066; border-left: 1px solid #F44336; border-right: 1px solid #F44336; border-bottom: 2px solid #d2190b; } a.mui-btn.mui-btn-danger.mui-btn-flat { background-color: transparent; color: #F44336; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } a.mui-btn.mui-btn-accent { color: #FFF; background-color: #FF4081; border-top: 1px solid #FF4081; border-left: 1px solid #FF4081; border-right: 1px solid #FF4081; border-bottom: 1px solid #FF4081; } a.mui-btn.mui-btn-accent.mui-btn-raised { border-top: 1px solid #ff73a3; border-left: 1px solid #FF4081; border-right: 1px solid #FF4081; border-bottom: 2px solid #f30053; } a.mui-btn.mui-btn-accent.mui-btn-flat { background-color: transparent; color: #FF4081; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } table.mui-btn > tr > td, table.mui-btn > tbody > tr > td { border-radius: 3px; } table.mui-btn > tr > td > a, table.mui-btn > tbody > tr > td > a { display: inline-block; text-decoration: none; text-align: center; font-weight: 400; font-size: 14px; color: #212121; line-height: 14px; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 3px; padding: 10px 25px; background-color: transparent; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } table.mui-btn.mui-btn-default > tr > td, table.mui-btn.mui-btn-default > tbody > tr > td { background-color: #FFF; } table.mui-btn.mui-btn-default > tr > td > a, table.mui-btn.mui-btn-default > tbody > tr > td > a { color: #212121; border-top: 1px solid #FFF; border-left: 1px solid #FFF; border-right: 1px solid #FFF; border-bottom: 1px solid #FFF; } table.mui-btn.mui-btn-default.mui-btn-raised > tr > td > a, table.mui-btn.mui-btn-default.mui-btn-raised > tbody > tr > td > a { border-top: 1px solid #f2f2f2; border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; border-bottom: 2px solid #bababa; } table.mui-btn.mui-btn-default.mui-btn-flat > tr > td, table.mui-btn.mui-btn-default.mui-btn-flat > tbody > tr > td { background-color: transparent; } table.mui-btn.mui-btn-default.mui-btn-flat > tr > td > a, table.mui-btn.mui-btn-default.mui-btn-flat > tbody > tr > td > a { color: #212121; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } table.mui-btn.mui-btn-primary > tr > td, table.mui-btn.mui-btn-primary > tbody > tr > td { background-color: #2196F3; } table.mui-btn.mui-btn-primary > tr > td > a, table.mui-btn.mui-btn-primary > tbody > tr > td > a { color: #FFF; border-top: 1px solid #2196F3; border-left: 1px solid #2196F3; border-right: 1px solid #2196F3; border-bottom: 1px solid #2196F3; } table.mui-btn.mui-btn-primary.mui-btn-raised > tr > td > a, table.mui-btn.mui-btn-primary.mui-btn-raised > tbody > tr > td > a { border-top: 1px solid #51adf6; border-left: 1px solid #2196F3; border-right: 1px solid #2196F3; border-bottom: 2px solid #0a6ebd; } table.mui-btn.mui-btn-primary.mui-btn-flat > tr > td, table.mui-btn.mui-btn-primary.mui-btn-flat > tbody > tr > td { background-color: transparent; } table.mui-btn.mui-btn-primary.mui-btn-flat > tr > td > a, table.mui-btn.mui-btn-primary.mui-btn-flat > tbody > tr > td > a { color: #2196F3; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } table.mui-btn.mui-btn-danger > tr > td, table.mui-btn.mui-btn-danger > tbody > tr > td { background-color: #F44336; } table.mui-btn.mui-btn-danger > tr > td > a, table.mui-btn.mui-btn-danger > tbody > tr > td > a { color: #FFF; border-top: 1px solid #F44336; border-left: 1px solid #F44336; border-right: 1px solid #F44336; border-bottom: 1px solid #F44336; } table.mui-btn.mui-btn-danger.mui-btn-raised > tr > td > a, table.mui-btn.mui-btn-danger.mui-btn-raised > tbody > tr > td > a { border-top: 1px solid #f77066; border-left: 1px solid #F44336; border-right: 1px solid #F44336; border-bottom: 2px solid #d2190b; } table.mui-btn.mui-btn-danger.mui-btn-flat > tr > td, table.mui-btn.mui-btn-danger.mui-btn-flat > tbody > tr > td { background-color: transparent; } table.mui-btn.mui-btn-danger.mui-btn-flat > tr > td > a, table.mui-btn.mui-btn-danger.mui-btn-flat > tbody > tr > td > a { color: #F44336; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } table.mui-btn.mui-btn-accent > tr > td, table.mui-btn.mui-btn-accent > tbody > tr > td { background-color: #FF4081; } table.mui-btn.mui-btn-accent > tr > td > a, table.mui-btn.mui-btn-accent > tbody > tr > td > a { color: #FFF; border-top: 1px solid #FF4081; border-left: 1px solid #FF4081; border-right: 1px solid #FF4081; border-bottom: 1px solid #FF4081; } table.mui-btn.mui-btn-accent.mui-btn-raised > tr > td > a, table.mui-btn.mui-btn-accent.mui-btn-raised > tbody > tr > td > a { border-top: 1px solid #ff73a3; border-left: 1px solid #FF4081; border-right: 1px solid #FF4081; border-bottom: 2px solid #f30053; } table.mui-btn.mui-btn-accent.mui-btn-flat > tr > td, table.mui-btn.mui-btn-accent.mui-btn-flat > tbody > tr > td { background-color: transparent; } table.mui-btn.mui-btn-accent.mui-btn-flat > tr > td > a, table.mui-btn.mui-btn-accent.mui-btn-flat > tbody > tr > td > a { color: #FF4081; border-top: 1px solid transparent; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; } a.mui-btn-lg, table.mui-btn-lg > tr > td > a, table.mui-btn-lg > tbody > tr > td > a { padding: 19px 25px; } .mui-panel { padding: 15px; border-radius: 0; background-color: #FFF; border-top: 1px solid #ededed; border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; border-bottom: 2px solid #d4d4d4; } .mui-divider { display: block; height: 1px; background-color: #e0e0e0; } .mui-divider-top { border-top: 1px solid #e0e0e0; } .mui-divider-bottom { border-bottom: 1px solid #e0e0e0; } .mui-divider-left { border-left: 1px solid #e0e0e0; } .mui-divider-right { border-right: 1px solid #e0e0e0; } .mui-text-left { text-align: left; } .mui-text-right { text-align: right; } .mui-text-center { text-align: center; } .mui-text-justify { text-align: justify; } .mui-image-fix { display: block; }
honestree/cdnjs
ajax/libs/muicss/0.0.7/email/mui-email-inline.css
CSS
mit
18,099
@import url("//fonts.googleapis.com/css?family=Josefin+Sans:300,400,700"); /*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. */ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } [hidden] { display: none; } html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; } a:focus { outline: thin dotted; } a:active, a:hover { outline: 0; } h1 { margin: 0.67em 0; font-size: 2em; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } hr { height: 0; -moz-box-sizing: content-box; box-sizing: content-box; } mark { color: #000; background: #ff0; } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; } pre { white-space: pre-wrap; } q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { padding: 0.35em 0.625em 0.75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } button, input, select, textarea { margin: 0; font-family: inherit; font-size: 100%; } button, input { line-height: normal; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } button[disabled], html input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { padding: 0; box-sizing: border-box; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } textarea { overflow: auto; vertical-align: top; } table { border-collapse: collapse; border-spacing: 0; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 2cm .5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.428571429; color: #333333; background-color: #f7f7f7; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #d9230f; text-decoration: none; } a:hover, a:focus { color: #91170a; text-decoration: underline; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } img { vertical-align: middle; } .img-responsive { display: inline-block; height: auto; max-width: 100%; } .img-rounded { border-radius: 6px; } .img-circle { border-radius: 500px; } hr { margin-top: 18px; margin-bottom: 18px; border: 0; border-top: 1px solid #eeeeee; } p { margin: 0 0 9px; } .lead { margin-bottom: 18px; font-size: 14.95px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 19.5px; } } small { font-size: 85%; } cite { font-style: normal; } .text-muted { color: #999999; } .text-primary { color: #d9230f; } .text-warning { color: #c09853; } .text-danger { color: #b94a48; } .text-success { color: #468847; } .text-info { color: #3a87ad; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small { font-weight: normal; line-height: 1; color: #999999; } h1, h2, h3 { margin-top: 18px; margin-bottom: 9px; } h4, h5, h6 { margin-top: 9px; margin-bottom: 9px; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 23px; } h4, .h4 { font-size: 17px; } h5, .h5 { font-size: 13px; } h6, .h6 { font-size: 12px; } h1 small, .h1 small { font-size: 23px; } h2 small, .h2 small { font-size: 17px; } h3 small, .h3 small, h4 small, .h4 small { font-size: 13px; } .page-header { padding-bottom: 8px; margin: 36px 0 18px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 9px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; } dl { margin-bottom: 18px; } dt, dd { line-height: 1.428571429; } dt { font-weight: bold; } dd { margin-left: 0; } .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 9px 18px; margin: 0 0 18px; border-left: 5px solid #eeeeee; } blockquote p { font-size: 16.25px; font-weight: 300; line-height: 1.25; } blockquote p:last-child { margin-bottom: 0; } blockquote small { display: block; line-height: 1.428571429; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 18px; font-style: normal; line-height: 1.428571429; } code, pre { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; white-space: nowrap; background-color: #f9f2f4; border-radius: 4px; } pre { display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12px; line-height: 1.428571429; color: #333333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre.prettyprint { margin-bottom: 18px; } pre code { padding: 0; color: inherit; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } @media (min-width: 768px) { .row { margin-right: -15px; margin-left: -15px; } } .row .row { margin-right: -15px; margin-left: -15px; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { float: left; } .col-1 { width: 8.333333333333332%; } .col-2 { width: 16.666666666666664%; } .col-3 { width: 25%; } .col-4 { width: 33.33333333333333%; } .col-5 { width: 41.66666666666667%; } .col-6 { width: 50%; } .col-7 { width: 58.333333333333336%; } .col-8 { width: 66.66666666666666%; } .col-9 { width: 75%; } .col-10 { width: 83.33333333333334%; } .col-11 { width: 91.66666666666666%; } .col-12 { width: 100%; } @media (min-width: 768px) { .container { max-width: 728px; } .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-1 { width: 8.333333333333332%; } .col-sm-2 { width: 16.666666666666664%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333333333%; } .col-sm-5 { width: 41.66666666666667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.333333333333336%; } .col-sm-8 { width: 66.66666666666666%; } .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333333333334%; } .col-sm-11 { width: 91.66666666666666%; } .col-sm-12 { width: 100%; } .col-push-1 { left: 8.333333333333332%; } .col-push-2 { left: 16.666666666666664%; } .col-push-3 { left: 25%; } .col-push-4 { left: 33.33333333333333%; } .col-push-5 { left: 41.66666666666667%; } .col-push-6 { left: 50%; } .col-push-7 { left: 58.333333333333336%; } .col-push-8 { left: 66.66666666666666%; } .col-push-9 { left: 75%; } .col-push-10 { left: 83.33333333333334%; } .col-push-11 { left: 91.66666666666666%; } .col-pull-1 { right: 8.333333333333332%; } .col-pull-2 { right: 16.666666666666664%; } .col-pull-3 { right: 25%; } .col-pull-4 { right: 33.33333333333333%; } .col-pull-5 { right: 41.66666666666667%; } .col-pull-6 { right: 50%; } .col-pull-7 { right: 58.333333333333336%; } .col-pull-8 { right: 66.66666666666666%; } .col-pull-9 { right: 75%; } .col-pull-10 { right: 83.33333333333334%; } .col-pull-11 { right: 91.66666666666666%; } } @media (min-width: 992px) { .container { max-width: 940px; } .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-1 { width: 8.333333333333332%; } .col-lg-2 { width: 16.666666666666664%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333333333%; } .col-lg-5 { width: 41.66666666666667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.333333333333336%; } .col-lg-8 { width: 66.66666666666666%; } .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333333333334%; } .col-lg-11 { width: 91.66666666666666%; } .col-lg-12 { width: 100%; } .col-offset-1 { margin-left: 8.333333333333332%; } .col-offset-2 { margin-left: 16.666666666666664%; } .col-offset-3 { margin-left: 25%; } .col-offset-4 { margin-left: 33.33333333333333%; } .col-offset-5 { margin-left: 41.66666666666667%; } .col-offset-6 { margin-left: 50%; } .col-offset-7 { margin-left: 58.333333333333336%; } .col-offset-8 { margin-left: 66.66666666666666%; } .col-offset-9 { margin-left: 75%; } .col-offset-10 { margin-left: 83.33333333333334%; } .col-offset-11 { margin-left: 91.66666666666666%; } } @media (min-width: 1200px) { .container { max-width: 1170px; } } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 18px; } .table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td { padding: 8px; line-height: 1.428571429; vertical-align: top; border-top: 1px solid #dddddd; } .table thead > tr > th { vertical-align: bottom; } .table caption + thead tr:first-child th, .table colgroup + thead tr:first-child th, .table thead:first-child tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child td, .table thead:first-child tr:first-child td { border-top: 0; } .table tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #f7f7f7; } .table-condensed thead > tr > th, .table-condensed tbody > tr > th, .table-condensed tfoot > tr > th, .table-condensed thead > tr > td, .table-condensed tbody > tr > td, .table-condensed tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #f5f5f5; } table col[class^="col-"] { display: table-column; float: none; } table td[class^="col-"], table th[class^="col-"] { display: table-cell; float: none; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; border-color: #d6e9c6; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; border-color: #eed3d7; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; border-color: #fbeed5; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td { background-color: #d0e9c6; border-color: #c9e2b3; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td { background-color: #ebcccc; border-color: #e6c1c7; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td { background-color: #faf2cc; border-color: #f8e5be; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 18px; font-size: 19.5px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } select[multiple], select[size] { height: auto; } select optgroup { font-family: inherit; font-size: inherit; font-style: inherit; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { height: auto; } .form-control:-moz-placeholder { color: #999999; } .form-control::-moz-placeholder { color: #999999; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control { display: block; width: 100%; height: 36px; padding: 8px 12px; font-size: 13px; line-height: 1.428571429; color: #555555; vertical-align: middle; background-color: #ffffff; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control:focus { border-color: rgba(82, 168, 236, 0.8); outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #eeeeee; } textarea.form-control { height: auto; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 18px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; vertical-align: middle; } .radio label, .checkbox label { display: inline; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } .form-control.input-large { height: 55px; padding: 14px 16px; font-size: 17px; border-radius: 6px; } .form-control.input-small { height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 3px; } select.input-large { height: 55px; line-height: 55px; } select.input-small { height: 30px; line-height: 30px; } .has-warning .help-block, .has-warning .control-label { color: #c09853; } .has-warning .form-control { padding-right: 32px; border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; } .has-warning .input-group-addon { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .has-error .help-block, .has-error .control-label { color: #b94a48; } .has-error .form-control { padding-right: 32px; border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .has-error .input-group-addon { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .has-success .help-block, .has-success .control-label { color: #468847; } .has-success .form-control { padding-right: 32px; border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .has-success .input-group-addon { color: #468847; background-color: #dff0d8; border-color: #468847; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } .input-group { display: table; border-collapse: separate; } .input-group.col { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { width: 100%; margin-bottom: 0; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 8px 12px; font-size: 13px; font-weight: normal; line-height: 1.428571429; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .input-group-addon.input-small { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-large { padding: 14px 16px; font-size: 17px; border-radius: 6px; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -4px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:active { z-index: 2; } .form-inline .form-control, .form-inline .radio, .form-inline .checkbox { display: inline-block; } .form-inline .radio, .form-inline .checkbox { margin-top: 0; margin-bottom: 0; } .form-horizontal .control-label { padding-top: 6px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } @media (min-width: 768px) { .form-horizontal .form-group { margin-right: -15px; margin-left: -15px; } } .form-horizontal .form-group .row { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .btn { display: inline-block; padding: 8px 12px; margin-bottom: 0; font-size: 13px; font-weight: 500; line-height: 1.428571429; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 4px; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #ffffff; text-decoration: none; } .btn:active, .btn.active { outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { pointer-events: none; cursor: default; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } .btn-default { color: #ffffff; background-color: #474949; border-color: #474949; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active { background-color: #3a3c3c; border-color: #2e2f2f; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #474949; border-color: #474949; } .btn-primary { color: #ffffff; background-color: #d9230f; border-color: #d9230f; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { background-color: #c11f0d; border-color: #a91b0c; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #d9230f; border-color: #d9230f; } .btn-warning { color: #ffffff; background-color: #9b479f; border-color: #9b479f; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active { background-color: #8a3f8d; border-color: #79377c; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #9b479f; border-color: #9b479f; } .btn-danger { color: #ffffff; background-color: #d9831f; border-color: #d9831f; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active { background-color: #c3761c; border-color: #ac6819; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9831f; border-color: #d9831f; } .btn-success { color: #ffffff; background-color: #3d9400; border-color: #3d9400; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active { background-color: #327b00; border-color: #286100; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #3d9400; border-color: #3d9400; } .btn-info { color: #ffffff; background-color: #029acf; border-color: #029acf; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active { background-color: #0287b6; border-color: #02749c; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #029acf; border-color: #029acf; } .btn-link { font-weight: normal; color: #d9230f; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #91170a; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #333333; text-decoration: none; } .btn-large { padding: 14px 16px; font-size: 17px; border-radius: 6px; } .btn-small { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 8px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.428571429; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #ffffff; text-decoration: none; background-color: #c11f0d; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9230f), to(#c11f0d)); background-image: -webkit-linear-gradient(top, #d9230f, 0%, #c11f0d, 100%); background-image: -moz-linear-gradient(top, #d9230f 0%, #c11f0d 100%); background-image: linear-gradient(to bottom, #d9230f 0%, #c11f0d 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9230f', endColorstr='#ffc11f0d', GradientType=0); } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #c11f0d; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9230f), to(#c11f0d)); background-image: -webkit-linear-gradient(top, #d9230f, 0%, #c11f0d, 100%); background-image: -moz-linear-gradient(top, #d9230f 0%, #c11f0d 100%); background-image: linear-gradient(to bottom, #d9230f 0%, #c11f0d 100%); background-repeat: repeat-x; outline: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9230f', endColorstr='#ffc11f0d', GradientType=0); } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.428571429; color: #999999; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .list-group { padding-left: 0; margin-bottom: 20px; background-color: #ffffff; } .list-group-item { position: relative; display: block; padding: 10px 30px 10px 15px; margin-bottom: -1px; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; margin-right: -15px; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } a.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item .list-group-item-text { color: #555555; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; } a.list-group-item.active { z-index: 2; color: #ffffff; background-color: #d9230f; border-color: #d9230f; } a.list-group-item.active .list-group-item-heading { color: inherit; } a.list-group-item.active .list-group-item-text { color: #fac0ba; } .panel { padding: 15px; margin-bottom: 20px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-heading { padding: 10px 15px; margin: -15px -15px 15px; background-color: #f7f7f7; border-bottom: 1px solid #dddddd; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16.25px; font-weight: 500; } .panel-footer { padding: 10px 15px; margin: 15px -15px -15px; background-color: #f7f7f7; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-primary { border-color: #d9230f; } .panel-primary .panel-heading { color: #ffffff; background-color: #d9230f; border-color: #d9230f; } .panel-success { border-color: #d6e9c6; } .panel-success .panel-heading { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .panel-warning { border-color: #fbeed5; } .panel-warning .panel-heading { color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; } .panel-danger { border-color: #eed3d7; } .panel-danger .panel-heading { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .panel-info { border-color: #bce8f1; } .panel-info .panel-heading { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .list-group-flush { margin: 15px -15px -15px; } .list-group-flush .list-group-item { border-width: 1px 0; } .list-group-flush .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .list-group-flush .list-group-item:last-child { border-bottom: 0; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #efefef; border: 1px solid #dedede; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-large { padding: 24px; border-radius: 6px; } .well-small { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 19.5px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #999999; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #999999; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav > li + .nav-header { margin-top: 9px; } .nav.open > a, .nav.open > a:hover, .nav.open > a:focus { color: #ffffff; background-color: #d9230f; border-color: #d9230f; } .nav.open > a .caret, .nav.open > a:hover .caret, .nav.open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .nav > .pull-right { float: right; } .nav .nav-divider { height: 1px; margin: 8px 0; overflow: hidden; background-color: #e5e5e5; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.428571429; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; cursor: default; background-color: #f7f7f7; border: 1px solid #dddddd; border-bottom-color: transparent; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { display: table-cell; float: none; width: 1%; } .nav-tabs.nav-justified > li > a { text-align: center; } .nav-tabs.nav-justified > li > a { margin-right: 0; border-bottom: 1px solid #dddddd; } .nav-tabs.nav-justified > .active > a { border-bottom-color: #f7f7f7; } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 5px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #d9230f; } .nav-stacked > li { float: none; } .nav-stacked > li + li > a { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { display: table-cell; float: none; width: 1%; } .nav-justified > li > a { text-align: center; } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-bottom: 1px solid #dddddd; } .nav-tabs-justified > .active > a { border-bottom-color: #f7f7f7; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .nav .caret { border-top-color: #d9230f; border-bottom-color: #d9230f; } .nav a:hover .caret { border-top-color: #91170a; border-bottom-color: #91170a; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 40px; padding-right: 15px; padding-left: 15px; margin-bottom: 20px; background-color: #ffffff; border-radius: 4px; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar-nav { margin-top: 10px; margin-bottom: 15px; } .navbar-nav > li > a { padding-top: 11px; padding-bottom: 11px; line-height: 20px; color: #333333; border-radius: 4px; } .navbar-nav > li > a:hover, .navbar-nav > li > a:focus { color: #d9230f; background-color: transparent; } .navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus { color: #d9230f; background-color: transparent; } .navbar-nav > .disabled > a, .navbar-nav > .disabled > a:hover, .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-nav.pull-right { width: 100%; } .navbar-static-top { border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; border-radius: 0; } .navbar-fixed-top { top: 0; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; } .navbar-brand { display: block; max-width: 200px; padding: 11px 15px; margin-right: auto; margin-left: auto; font-size: 17px; font-weight: 500; line-height: 18px; color: #333333; text-align: center; } .navbar-brand:hover, .navbar-brand:focus { color: #d9230f; text-decoration: none; background-color: transparent; } .navbar-toggle { position: absolute; top: 4px; right: 10px; width: 48px; height: 32px; padding: 8px 12px; background-color: transparent; border: 1px solid #dddddd; border-radius: 4px; } .navbar-toggle:hover, .navbar-toggle:focus { background-color: #dddddd; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; background-color: #cccccc; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } .navbar-form { margin-top: 2px; margin-bottom: 2px; } .navbar-form .form-control, .navbar-form .radio, .navbar-form .checkbox { display: inline-block; } .navbar-form .radio, .navbar-form .checkbox { margin-top: 0; margin-bottom: 0; } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-nav > .dropdown > a:hover .caret, .navbar-nav > .dropdown > a:focus .caret { border-top-color: #d9230f; border-bottom-color: #d9230f; } .navbar-nav > .open > a, .navbar-nav > .open > a:hover, .navbar-nav > .open > a:focus { color: #d9230f; background-color: transparent; } .navbar-nav > .open > a .caret, .navbar-nav > .open > a:hover .caret, .navbar-nav > .open > a:focus .caret { border-top-color: #d9230f; border-bottom-color: #d9230f; } .navbar-nav > .dropdown > a .caret { border-top-color: #333333; border-bottom-color: #333333; } .navbar-nav.pull-right > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar-inverse { background-color: #d9230f; } .navbar-inverse .navbar-brand { color: #ffffff; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #ffffff; } .navbar-inverse .navbar-nav > li > a { color: #ffffff; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .dropdown > a:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-nav > .dropdown > a .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-nav > .open > a .caret, .navbar-inverse .navbar-nav > .open > a:hover .caret, .navbar-inverse .navbar-nav > .open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } @media screen and (min-width: 768px) { .navbar-brand { float: left; margin-right: 5px; margin-left: -15px; } .navbar-nav { float: left; margin-top: 0; margin-bottom: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { border-radius: 0; } .navbar-nav.pull-right { float: right; width: auto; } .navbar-toggle { position: relative; top: auto; left: auto; display: none; } .nav-collapse.collapse { display: block !important; height: auto !important; overflow: visible !important; } } .navbar-btn { margin-top: 2px; } .navbar-text { margin-top: 11px; margin-bottom: 11px; } .navbar-link { color: #333333; } .navbar-link:hover { color: #d9230f; } .navbar-inverse .navbar-link { color: #ffffff; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .btn .caret { border-top-color: #ffffff; } .dropup .btn .caret { border-bottom-color: #ffffff; } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:active, .btn-group-vertical > .btn:active { z-index: 2; } .btn-group .btn + .btn { margin-left: -1px; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar .btn-group { float: left; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-right: 8px; padding-left: 8px; } .btn-group > .btn-large + .dropdown-toggle { padding-right: 12px; padding-left: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn .caret { margin-left: 0; } .btn-large .caret { border-width: 5px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-group-vertical > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn + .btn { margin-top: -1px; } .btn-group-vertical .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical .btn:first-child { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical .btn:last-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; } .btn-group-justified .btn { display: table-cell; float: none; width: 1%; } .btn-group[data-toggle="buttons"] > .btn > input[type="radio"], .btn-group[data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .breadcrumb { padding: 8px 15px; margin-bottom: 18px; list-style: none; background-color: transparent; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #cccccc; content: "/\00a0"; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; padding-left: 0; margin: 18px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { float: left; padding: 4px 12px; line-height: 1.428571429; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; border-left-width: 0; } .pagination > li:first-child > a, .pagination > li:first-child > span { border-left-width: 1px; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > a:focus, .pagination > .active > a, .pagination > .active > span { background-color: #f5f5f5; } .pagination > .active > a, .pagination > .active > span { color: #999999; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #999999; cursor: not-allowed; background-color: #ffffff; } .pagination-large > li > a, .pagination-large > li > span { padding: 14px 16px; font-size: 17px; } .pagination-large > li:first-child > a, .pagination-large > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-large > li:last-child > a, .pagination-large > li:last-child > span { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .pagination-small > li > a, .pagination-small > li > span { padding: 5px 10px; font-size: 12px; } .pagination-small > li:first-child > a, .pagination-small > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-small > li:last-child > a, .pagination-small > li:last-child > span { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .pager { padding-left: 0; margin: 18px 0; text-align: center; list-style: none; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #f5f5f5; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; cursor: not-allowed; background-color: #ffffff; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; display: none; overflow: auto; overflow-y: scroll; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.fade.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { position: relative; top: 0; right: 0; left: 0; z-index: 1050; width: auto; padding: 10px; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1030; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.fade.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { min-height: 16.428571429px; padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.428571429; } .modal-body { position: relative; padding: 20px; } .modal-footer { padding: 19px 20px 20px; margin-top: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media screen and (min-width: 768px) { .modal-dialog { right: auto; left: 50%; width: 560px; padding-top: 30px; padding-bottom: 30px; margin-left: -280px; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 12px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 1; filter: alpha(opacity=100); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: rgba(0, 0, 0, 0.9); border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-right .tooltip-arrow { right: 5px; bottom: 0; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: rgba(0, 0, 0, 0.9); border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); background-clip: padding-box; -webkit-bg-clip: padding-box; -moz-bg-clip: padding; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #ffffff; border-bottom-width: 0; content: " "; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #ffffff; border-left-width: 0; content: " "; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #ffffff; border-top-width: 0; content: " "; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #ffffff; border-right-width: 0; content: " "; } .alert { padding: 10px 35px 10px 15px; margin-bottom: 18px; color: #c09853; background-color: #fcf8e3; border: 1px solid #fbeed5; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert hr { border-top-color: #f8e5be; } .alert .alert-link { font-weight: 500; color: #a47e3c; } .alert .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #356635; } .alert-danger { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .alert-danger hr { border-top-color: #e6c1c7; } .alert-danger .alert-link { color: #953b39; } .alert-info { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #2d6987; } .alert-block { padding-top: 15px; padding-bottom: 15px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .thumbnail, .img-thumbnail { padding: 4px; line-height: 1.428571429; background-color: #f7f7f7; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail { display: block; } .thumbnail > img, .img-thumbnail { display: inline-block; height: auto; max-width: 100%; } a.thumbnail:hover, a.thumbnail:focus { border-color: #d9230f; } .thumbnail > img { margin-right: auto; margin-left: auto; } .thumbnail .caption { padding: 9px; color: #333333; } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .label { display: inline; padding: .25em .6em; font-size: 75%; font-weight: 500; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: middle; background-color: #999999; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; background-color: #808080; } .label-danger { background-color: #d9831f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #ac6819; } .label-success { background-color: #3d9400; } .label-success[href]:hover, .label-success[href]:focus { background-color: #286100; } .label-warning { background-color: #9b479f; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #79377c; } .label-info { background-color: #029acf; } .label-info[href]:hover, .label-info[href]:focus { background-color: #02749c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: middle; background-color: #999999; border-radius: 10px; } .badge:empty { display: none; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .btn .badge { position: relative; top: -1px; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #d9230f; background-color: #ffffff; } .nav-pills > li > a > .badge { margin-left: 3px; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 18px; margin-bottom: 18px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0; height: 100%; font-size: 12px; color: #ffffff; text-align: center; background-color: #d9230f; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-color: #d9230f; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-danger { background-color: #d9831f; } .progress-striped .progress-bar-danger { background-color: #d9831f; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-success { background-color: #3d9400; } .progress-striped .progress-bar-success { background-color: #3d9400; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #9b479f; } .progress-striped .progress-bar-warning { background-color: #9b479f; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #029acf; } .progress-striped .progress-bar-info { background-color: #029acf; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .accordion { margin-bottom: 18px; } .accordion-group { margin-bottom: 2px; border: 1px solid #e5e5e5; border-radius: 4px; } .accordion-heading { border-bottom: 0; } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; cursor: pointer; } .accordion-inner { padding: 9px 15px; border-top: 1px solid #e5e5e5; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: inline-block; height: auto; max-width: 100%; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.left { background-color: rgba(0, 0, 0, 0.0001); background-color: transparent; background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { right: 0; left: auto; background-color: rgba(0, 0, 0, 0.5); background-color: transparent; background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .glyphicon, .carousel-control .icon-prev, .carousel-control .icon-next { position: absolute; top: 50%; left: 50%; z-index: 5; display: inline-block; width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 120px; padding-left: 0; margin-left: -60px; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; border: 1px solid #ffffff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #ffffff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .jumbotron { padding: 30px; margin-bottom: 30px; font-size: 19.5px; font-weight: 200; line-height: 2.1428571435; color: inherit; background-color: #efefef; } .jumbotron h1 { line-height: 1; color: inherit; } .jumbotron p { line-height: 1.4; } @media screen and (min-width: 768px) { .jumbotron { padding: 50px 60px; border-radius: 6px; } .jumbotron h1 { font-size: 58.5px; } } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .affix { position: fixed; } @-ms-viewport { width: device-width; } @media screen and (max-width: 400px) { @-ms-viewport { width: 320px; } } .hidden { display: none !important; visibility: hidden !important; } .visible-sm { display: block !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } .visible-md { display: none !important; } tr.visible-md { display: none !important; } th.visible-md, td.visible-md { display: none !important; } .visible-lg { display: none !important; } tr.visible-lg { display: none !important; } th.visible-lg, td.visible-lg { display: none !important; } .hidden-sm { display: none !important; } tr.hidden-sm { display: none !important; } th.hidden-sm, td.hidden-sm { display: none !important; } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: none !important; } tr.visible-sm { display: none !important; } th.visible-sm, td.visible-sm { display: none !important; } .visible-md { display: block !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } .visible-lg { display: none !important; } tr.visible-lg { display: none !important; } th.visible-lg, td.visible-lg { display: none !important; } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } .hidden-md { display: none !important; } tr.hidden-md { display: none !important; } th.hidden-md, td.hidden-md { display: none !important; } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } } @media (min-width: 992px) { .visible-sm { display: none !important; } tr.visible-sm { display: none !important; } th.visible-sm, td.visible-sm { display: none !important; } .visible-md { display: none !important; } tr.visible-md { display: none !important; } th.visible-md, td.visible-md { display: none !important; } .visible-lg { display: block !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } .hidden-lg { display: none !important; } tr.hidden-lg { display: none !important; } th.hidden-lg, td.hidden-lg { display: none !important; } } .visible-print { display: none !important; } tr.visible-print { display: none !important; } th.visible-print, td.visible-print { display: none !important; } @media print { .visible-print { display: block !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } .hidden-print { display: none !important; } tr.hidden-print { display: none !important; } th.hidden-print, td.hidden-print { display: none !important; } } .navbar { font-family: "Josefin Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; border-bottom: 1px solid #dfdfdf; } .navbar-nav > li > a { padding-top: 13px; padding-bottom: 9px; } .navbar-brand { padding: 14px 15px 8px; } .btn { font-family: "Josefin Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; } .btn-default, .btn-default:hover { background-color: #454747; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#6d7070), color-stop(6%, #474949), to(#3d3f3f)); background-image: -webkit-linear-gradient(#6d7070, #474949 6%, #3d3f3f); background-image: -moz-linear-gradient(top, #6d7070, #474949 6%, #3d3f3f); background-image: linear-gradient(#6d7070, #474949 6%, #3d3f3f); background-repeat: no-repeat; border: 1px solid #2e2f2f; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6d7070', endColorstr='#ff3d3f3f', GradientType=0); } .btn-primary, .btn-primary:hover { background-color: #d5220f; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f25443), color-stop(6%, #d9230f), to(#c6200e)); background-image: -webkit-linear-gradient(#f25443, #d9230f 6%, #c6200e); background-image: -moz-linear-gradient(top, #f25443, #d9230f 6%, #c6200e); background-image: linear-gradient(#f25443, #d9230f 6%, #c6200e); background-repeat: no-repeat; border: 1px solid #a91b0c; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff25443', endColorstr='#ffc6200e', GradientType=0); } .btn-success, .btn-success:hover { background-color: #3b9000; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5de100), color-stop(6%, #3d9400), to(#358000)); background-image: -webkit-linear-gradient(#5de100, #3d9400 6%, #358000); background-image: -moz-linear-gradient(top, #5de100, #3d9400 6%, #358000); background-image: linear-gradient(#5de100, #3d9400 6%, #358000); background-repeat: no-repeat; border: 1px solid #286100; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5de100', endColorstr='#ff358000', GradientType=0); } .btn-info, .btn-info:hover { background-color: #0297cb; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#21c4fd), color-stop(6%, #029acf), to(#028bbb)); background-image: -webkit-linear-gradient(#21c4fd, #029acf 6%, #028bbb); background-image: -moz-linear-gradient(top, #21c4fd, #029acf 6%, #028bbb); background-image: linear-gradient(#21c4fd, #029acf 6%, #028bbb); background-repeat: no-repeat; border: 1px solid #02749c; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff21c4fd', endColorstr='#ff028bbb', GradientType=0); } .btn-warning, .btn-warning:hover { background-color: #98469c; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd72c0), color-stop(6%, #9b479f), to(#8d4191)); background-image: -webkit-linear-gradient(#bd72c0, #9b479f 6%, #8d4191); background-image: -moz-linear-gradient(top, #bd72c0, #9b479f 6%, #8d4191); background-image: linear-gradient(#bd72c0, #9b479f 6%, #8d4191); background-repeat: no-repeat; border: 1px solid #79377c; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd72c0', endColorstr='#ff8d4191', GradientType=0); } .btn-danger, .btn-danger:hover { background-color: #d5811e; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e8a75d), color-stop(6%, #d9831f), to(#c7781c)); background-image: -webkit-linear-gradient(#e8a75d, #d9831f 6%, #c7781c); background-image: -moz-linear-gradient(top, #e8a75d, #d9831f 6%, #c7781c); background-image: linear-gradient(#e8a75d, #d9831f 6%, #c7781c); background-repeat: no-repeat; border: 1px solid #ac6819; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8a75d', endColorstr='#ffc7781c', GradientType=0); } h1, h2, h3, h4, h5, h6 { font-family: "Josefin Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; } .has-warning .help-block, .has-warning .control-label { color: #d9831f; } .has-warning .form-control, .has-warning .form-control:focus { border-color: #d9831f; } .has-error .help-block, .has-error .control-label { color: #d9230f; } .has-error .form-control, .has-error .form-control:focus { border-color: #d9230f; } .has-success .help-block, .has-success .control-label { color: #3d9400; } .has-success .form-control, .has-success .form-control:focus { border-color: #3d9400; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .affix { position: fixed; }
danielnaranjo/cdnjs
ajax/libs/bootswatch/3.0.0-rc1/css/simplex/bootstrap.css
CSS
mit
91,090
@import url('https://fonts.googleapis.com/css?family=Droid+Sans:400,700'); /*! * Bootstrap v2.1.0 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } a:hover, a:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { max-width: 100%; height: auto; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } #map_canvas img { max-width: none; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { *overflow: visible; line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; } .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; } .clearfix:after { clear: both; } .hide-text { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .input-block-level { display: block; width: 100%; min-height: 30px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } body { margin: 0; font-family: 'Droid Sans', sans-serif; font-size: 14px; line-height: 20px; color: #999999; background-color: #060606; } a { color: #33b5e5; text-decoration: none; } a:hover { color: #ffffff; text-decoration: underline; } .img-rounded { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .img-polaroid { padding: 4px; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .img-circle { -webkit-border-radius: 500px; -moz-border-radius: 500px; border-radius: 500px; } .row { margin-left: -20px; *zoom: 1; } .row:before, .row:after { display: table; content: ""; line-height: 0; } .row:after { clear: both; } [class*="span"] { float: left; margin-left: 20px; } .container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .span12 { width: 940px; } .span11 { width: 860px; } .span10 { width: 780px; } .span9 { width: 700px; } .span8 { width: 620px; } .span7 { width: 540px; } .span6 { width: 460px; } .span5 { width: 380px; } .span4 { width: 300px; } .span3 { width: 220px; } .span2 { width: 140px; } .span1 { width: 60px; } .offset12 { margin-left: 980px; } .offset11 { margin-left: 900px; } .offset10 { margin-left: 820px; } .offset9 { margin-left: 740px; } .offset8 { margin-left: 660px; } .offset7 { margin-left: 580px; } .offset6 { margin-left: 500px; } .offset5 { margin-left: 420px; } .offset4 { margin-left: 340px; } .offset3 { margin-left: 260px; } .offset2 { margin-left: 180px; } .offset1 { margin-left: 100px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; content: ""; line-height: 0; } .row-fluid:after { clear: both; } .row-fluid [class*="span"] { display: block; width: 100%; min-height: 30px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; margin-left: 2.127659574468085%; *margin-left: 2.074468085106383%; } .row-fluid [class*="span"]:first-child { margin-left: 0; } .row-fluid .span12 { width: 100%; *width: 99.94680851063829%; } .row-fluid .span11 { width: 91.48936170212765%; *width: 91.43617021276594%; } .row-fluid .span10 { width: 82.97872340425532%; *width: 82.92553191489361%; } .row-fluid .span9 { width: 74.46808510638297%; *width: 74.41489361702126%; } .row-fluid .span8 { width: 65.95744680851064%; *width: 65.90425531914893%; } .row-fluid .span7 { width: 57.44680851063829%; *width: 57.39361702127659%; } .row-fluid .span6 { width: 48.93617021276595%; *width: 48.88297872340425%; } .row-fluid .span5 { width: 40.42553191489362%; *width: 40.37234042553192%; } .row-fluid .span4 { width: 31.914893617021278%; *width: 31.861702127659576%; } .row-fluid .span3 { width: 23.404255319148934%; *width: 23.351063829787233%; } .row-fluid .span2 { width: 14.893617021276595%; *width: 14.840425531914894%; } .row-fluid .span1 { width: 6.382978723404255%; *width: 6.329787234042553%; } .row-fluid .offset12 { margin-left: 104.25531914893617%; *margin-left: 104.14893617021275%; } .row-fluid .offset12:first-child { margin-left: 102.12765957446808%; *margin-left: 102.02127659574467%; } .row-fluid .offset11 { margin-left: 95.74468085106382%; *margin-left: 95.6382978723404%; } .row-fluid .offset11:first-child { margin-left: 93.61702127659574%; *margin-left: 93.51063829787232%; } .row-fluid .offset10 { margin-left: 87.23404255319149%; *margin-left: 87.12765957446807%; } .row-fluid .offset10:first-child { margin-left: 85.1063829787234%; *margin-left: 84.99999999999999%; } .row-fluid .offset9 { margin-left: 78.72340425531914%; *margin-left: 78.61702127659572%; } .row-fluid .offset9:first-child { margin-left: 76.59574468085106%; *margin-left: 76.48936170212764%; } .row-fluid .offset8 { margin-left: 70.2127659574468%; *margin-left: 70.10638297872339%; } .row-fluid .offset8:first-child { margin-left: 68.08510638297872%; *margin-left: 67.9787234042553%; } .row-fluid .offset7 { margin-left: 61.70212765957446%; *margin-left: 61.59574468085106%; } .row-fluid .offset7:first-child { margin-left: 59.574468085106375%; *margin-left: 59.46808510638297%; } .row-fluid .offset6 { margin-left: 53.191489361702125%; *margin-left: 53.085106382978715%; } .row-fluid .offset6:first-child { margin-left: 51.063829787234035%; *margin-left: 50.95744680851063%; } .row-fluid .offset5 { margin-left: 44.68085106382979%; *margin-left: 44.57446808510638%; } .row-fluid .offset5:first-child { margin-left: 42.5531914893617%; *margin-left: 42.4468085106383%; } .row-fluid .offset4 { margin-left: 36.170212765957444%; *margin-left: 36.06382978723405%; } .row-fluid .offset4:first-child { margin-left: 34.04255319148936%; *margin-left: 33.93617021276596%; } .row-fluid .offset3 { margin-left: 27.659574468085104%; *margin-left: 27.5531914893617%; } .row-fluid .offset3:first-child { margin-left: 25.53191489361702%; *margin-left: 25.425531914893618%; } .row-fluid .offset2 { margin-left: 19.148936170212764%; *margin-left: 19.04255319148936%; } .row-fluid .offset2:first-child { margin-left: 17.02127659574468%; *margin-left: 16.914893617021278%; } .row-fluid .offset1 { margin-left: 10.638297872340425%; *margin-left: 10.53191489361702%; } .row-fluid .offset1:first-child { margin-left: 8.51063829787234%; *margin-left: 8.404255319148938%; } [class*="span"].hide, .row-fluid [class*="span"].hide { display: none; } [class*="span"].pull-right, .row-fluid [class*="span"].pull-right { float: right; } .container { margin-right: auto; margin-left: auto; *zoom: 1; } .container:before, .container:after { display: table; content: ""; line-height: 0; } .container:after { clear: both; } .container-fluid { padding-right: 20px; padding-left: 20px; *zoom: 1; } .container-fluid:before, .container-fluid:after { display: table; content: ""; line-height: 0; } .container-fluid:after { clear: both; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 20px; font-weight: 200; line-height: 30px; } small { font-size: 85%; } strong { font-weight: bold; } em { font-style: italic; } cite { font-style: normal; } .muted { color: #adafae; } h1, h2, h3, h4, h5, h6 { margin: 10px 0; font-family: inherit; font-weight: normal; line-height: 1; color: #ffffff; text-rendering: optimizelegibility; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: normal; line-height: 1; color: #adafae; } h1 { font-size: 36px; line-height: 40px; } h2 { font-size: 30px; line-height: 40px; } h3 { font-size: 24px; line-height: 40px; } h4 { font-size: 18px; line-height: 20px; } h5 { font-size: 14px; line-height: 20px; } h6 { font-size: 12px; line-height: 20px; } h1 small { font-size: 24px; } h2 small { font-size: 18px; } h3 small { font-size: 14px; } h4 small { font-size: 14px; } .page-header { padding-bottom: 9px; margin: 20px 0 30px; border-bottom: 1px solid #eeeeee; } ul, ol { padding: 0; margin: 0 0 10px 25px; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; } li { line-height: 20px; } ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } dl { margin-bottom: 20px; } dt, dd { line-height: 20px; } dt { font-weight: bold; } dd { margin-left: 10px; } .dl-horizontal dt { float: left; width: 120px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 130px; } hr { margin: 20px 0; border: 0; border-top: 1px solid #999999; border-bottom: 1px solid #ffffff; } abbr[title] { cursor: help; border-bottom: 1px dotted #adafae; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 0 0 0 15px; margin: 0 0 20px; border-left: 5px solid #eeeeee; } blockquote p { margin-bottom: 0; font-size: 16px; font-weight: 300; line-height: 25px; } blockquote small { display: block; line-height: 20px; color: #adafae; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 20px; font-style: normal; line-height: 20px; } code, pre { padding: 0 3px 2px; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 12px; color: #282828; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } code { padding: 2px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } pre.prettyprint { margin-bottom: 20px; } pre code { padding: 0; color: inherit; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } form { margin: 0 0 20px; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: 40px; color: #282828; border: 0; border-bottom: 1px solid #e5e5e5; } legend small { font-size: 15px; color: #adafae; } label, input, button, select, textarea { font-size: 14px; font-weight: normal; line-height: 20px; } input, button, select, textarea { font-family: 'Droid Sans', sans-serif; } label { display: block; margin-bottom: 5px; } select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { display: inline-block; height: 20px; padding: 4px 6px; margin-bottom: 9px; font-size: 14px; line-height: 20px; color: #999999; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } input, textarea { width: 210px; } textarea { height: auto; } textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { background-color: #cccccc; border: 1px solid #bbbbbb; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear .2s, box-shadow linear .2s; -moz-transition: border linear .2s, box-shadow linear .2s; -o-transition: border linear .2s, box-shadow linear .2s; transition: border linear .2s, box-shadow linear .2s; } textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus { border-color: rgba(82, 168, 236, 0.8); outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; *margin-top: 0; /* IE7 */ margin-top: 1px \9; /* IE8-9 */ line-height: normal; cursor: pointer; } input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] { width: auto; } select, input[type="file"] { height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */ line-height: 30px; } select { width: 220px; border: 1px solid #bbb; background-color: #cccccc; } select[multiple], select[size] { height: auto; } select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .uneditable-input, .uneditable-textarea { color: #adafae; background-color: #c9c9c9; border-color: #bbbbbb; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); cursor: not-allowed; } .uneditable-input { overflow: hidden; white-space: nowrap; } .uneditable-textarea { width: auto; height: auto; } input:-moz-placeholder, textarea:-moz-placeholder { color: #adafae; } input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #adafae; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #adafae; } .radio, .checkbox { min-height: 18px; padding-left: 18px; } .radio input[type="radio"], .checkbox input[type="checkbox"] { float: left; margin-left: -18px; } .controls > .radio:first-child, .controls > .checkbox:first-child { padding-top: 5px; } .radio.inline, .checkbox.inline { display: inline-block; padding-top: 5px; margin-bottom: 0; vertical-align: middle; } .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline { margin-left: 10px; } .input-mini { width: 60px; } .input-small { width: 90px; } .input-medium { width: 150px; } .input-large { width: 210px; } .input-xlarge { width: 270px; } .input-xxlarge { width: 530px; } input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"] { float: none; margin-left: 0; } .input-append input[class*="span"], .input-append .uneditable-input[class*="span"], .input-prepend input[class*="span"], .input-prepend .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"], .row-fluid .input-prepend [class*="span"], .row-fluid .input-append [class*="span"] { display: inline-block; } input, textarea, .uneditable-input { margin-left: 0; } .controls-row [class*="span"] + [class*="span"] { margin-left: 20px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 926px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 846px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 766px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 686px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 606px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 526px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 446px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 366px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 286px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 206px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 126px; } input.span1, textarea.span1, .uneditable-input.span1 { width: 46px; } .controls-row { *zoom: 1; } .controls-row:before, .controls-row:after { display: table; content: ""; line-height: 0; } .controls-row:after { clear: both; } .controls-row [class*="span"] { float: left; } input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] { cursor: not-allowed; background-color: #eeeeee; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"][readonly], input[type="checkbox"][readonly] { background-color: transparent; } .control-group.warning > label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #a47e3c; } .control-group.warning .checkbox, .control-group.warning .radio, .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #a47e3c; border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.warning .checkbox:focus, .control-group.warning .radio:focus, .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #7f612e; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ceae78; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ceae78; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ceae78; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #a47e3c; background-color: #eeeeee; border-color: #a47e3c; } .control-group.error > label, .control-group.error .help-block, .control-group.error .help-inline { color: #b94a48; } .control-group.error .checkbox, .control-group.error .radio, .control-group.error input, .control-group.error select, .control-group.error textarea { color: #b94a48; border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.error .checkbox:focus, .control-group.error .radio:focus, .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #b94a48; background-color: #eeeeee; border-color: #b94a48; } .control-group.success > label, .control-group.success .help-block, .control-group.success .help-inline { color: #468847; } .control-group.success .checkbox, .control-group.success .radio, .control-group.success input, .control-group.success select, .control-group.success textarea { color: #468847; border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.success .checkbox:focus, .control-group.success .radio:focus, .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #468847; background-color: #eeeeee; border-color: #468847; } input:focus:required:invalid, textarea:focus:required:invalid, select:focus:required:invalid { color: #b94a48; border-color: #ee5f5b; } input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, select:focus:required:invalid:focus { border-color: #e9322d; -webkit-box-shadow: 0 0 6px #f8b9b7; -moz-box-shadow: 0 0 6px #f8b9b7; box-shadow: 0 0 6px #f8b9b7; } .form-actions { padding: 19px 20px 20px; margin-top: 20px; margin-bottom: 20px; background-color: transparent; border-top: 1px solid #e5e5e5; *zoom: 1; } .form-actions:before, .form-actions:after { display: table; content: ""; line-height: 0; } .form-actions:after { clear: both; } .help-block, .help-inline { color: #bfbfbf; } .help-block { display: block; margin-bottom: 10px; } .help-inline { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; vertical-align: middle; padding-left: 5px; } .input-append, .input-prepend { margin-bottom: 5px; font-size: 0; white-space: nowrap; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input { position: relative; margin-bottom: 0; *margin-left: 0; font-size: 14px; vertical-align: top; -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } .input-append input:focus, .input-prepend input:focus, .input-append select:focus, .input-prepend select:focus, .input-append .uneditable-input:focus, .input-prepend .uneditable-input:focus { z-index: 2; } .input-append .add-on, .input-prepend .add-on { display: inline-block; width: auto; height: 20px; min-width: 16px; padding: 4px 5px; font-size: 14px; font-weight: normal; line-height: 20px; text-align: center; text-shadow: 0 1px 0 #ffffff; background-color: #eeeeee; border: 1px solid #ccc; } .input-append .add-on, .input-prepend .add-on, .input-append .btn, .input-prepend .btn { margin-left: -1px; vertical-align: top; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-append .active, .input-prepend .active { background-color: #bbff33; border-color: #669900; } .input-prepend .add-on, .input-prepend .btn { margin-right: -1px; } .input-prepend .add-on:first-child, .input-prepend .btn:first-child { -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .input-append input, .input-append select, .input-append .uneditable-input { -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .input-append .add-on:last-child, .input-append .btn:last-child { -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } .input-prepend.input-append input, .input-prepend.input-append select, .input-prepend.input-append .uneditable-input { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-prepend.input-append .add-on:first-child, .input-prepend.input-append .btn:first-child { margin-right: -1px; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .input-prepend.input-append .add-on:last-child, .input-prepend.input-append .btn:last-child { margin-left: -1px; -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } input.search-query { padding-right: 14px; padding-right: 4px \9; padding-left: 14px; padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */ margin-bottom: 0; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } /* Allow for input prepend/append in search forms */ .form-search .input-append .search-query, .form-search .input-prepend .search-query { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .form-search .input-append .search-query { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search .input-append .btn { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .search-query { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .btn { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search input, .form-inline input, .form-horizontal input, .form-search textarea, .form-inline textarea, .form-horizontal textarea, .form-search select, .form-inline select, .form-horizontal select, .form-search .help-inline, .form-inline .help-inline, .form-horizontal .help-inline, .form-search .uneditable-input, .form-inline .uneditable-input, .form-horizontal .uneditable-input, .form-search .input-prepend, .form-inline .input-prepend, .form-horizontal .input-prepend, .form-search .input-append, .form-inline .input-append, .form-horizontal .input-append { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; margin-bottom: 0; vertical-align: middle; } .form-search .hide, .form-inline .hide, .form-horizontal .hide { display: none; } .form-search label, .form-inline label, .form-search .btn-group, .form-inline .btn-group { display: inline-block; } .form-search .input-append, .form-inline .input-append, .form-search .input-prepend, .form-inline .input-prepend { margin-bottom: 0; } .form-search .radio, .form-search .checkbox, .form-inline .radio, .form-inline .checkbox { padding-left: 0; margin-bottom: 0; vertical-align: middle; } .form-search .radio input[type="radio"], .form-search .checkbox input[type="checkbox"], .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: left; margin-right: 3px; margin-left: 0; } .control-group { margin-bottom: 10px; } legend + .control-group { margin-top: 20px; -webkit-margin-top-collapse: separate; } .form-horizontal .control-group { margin-bottom: 20px; *zoom: 1; } .form-horizontal .control-group:before, .form-horizontal .control-group:after { display: table; content: ""; line-height: 0; } .form-horizontal .control-group:after { clear: both; } .form-horizontal .control-label { float: left; width: 140px; padding-top: 5px; text-align: right; } .form-horizontal .controls { *display: inline-block; *padding-left: 20px; margin-left: 160px; *margin-left: 0; } .form-horizontal .controls:first-child { *padding-left: 160px; } .form-horizontal .help-block { margin-top: 10px; margin-bottom: 0; } .form-horizontal .form-actions { padding-left: 160px; } table { max-width: 100%; background-color: transparent; border-collapse: collapse; border-spacing: 0; } .table { width: 100%; margin-bottom: 20px; } .table th, .table td { padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top: 1px solid #222222; } .table th { font-weight: bold; } .table thead th { vertical-align: bottom; } .table caption + thead tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child th, .table colgroup + thead tr:first-child td, .table thead:first-child tr:first-child th, .table thead:first-child tr:first-child td { border-top: 0; } .table tbody + tbody { border-top: 2px solid #222222; } .table-condensed th, .table-condensed td { padding: 4px 5px; } .table-bordered { border: 1px solid #222222; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .table-bordered th, .table-bordered td { border-left: 1px solid #222222; } .table-bordered caption + thead tr:first-child th, .table-bordered caption + tbody tr:first-child th, .table-bordered caption + tbody tr:first-child td, .table-bordered colgroup + thead tr:first-child th, .table-bordered colgroup + tbody tr:first-child th, .table-bordered colgroup + tbody tr:first-child td, .table-bordered thead:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child td { border-top: 0; } .table-bordered thead:first-child tr:first-child th:first-child, .table-bordered tbody:first-child tr:first-child td:first-child { -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; } .table-bordered thead:first-child tr:first-child th:last-child, .table-bordered tbody:first-child tr:first-child td:last-child { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-topright: 4px; } .table-bordered thead:last-child tr:last-child th:first-child, .table-bordered tbody:last-child tr:last-child td:first-child, .table-bordered tfoot:last-child tr:last-child td:first-child { -webkit-border-radius: 0 0 0 4px; -moz-border-radius: 0 0 0 4px; border-radius: 0 0 0 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; } .table-bordered thead:last-child tr:last-child th:last-child, .table-bordered tbody:last-child tr:last-child td:last-child, .table-bordered tfoot:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; } .table-bordered caption + thead tr:first-child th:first-child, .table-bordered caption + tbody tr:first-child td:first-child, .table-bordered colgroup + thead tr:first-child th:first-child, .table-bordered colgroup + tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; } .table-bordered caption + thead tr:first-child th:last-child, .table-bordered caption + tbody tr:first-child td:last-child, .table-bordered colgroup + thead tr:first-child th:last-child, .table-bordered colgroup + tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-right-topleft: 4px; } .table-striped tbody tr:nth-child(odd) td, .table-striped tbody tr:nth-child(odd) th { background-color: rgba(100, 100, 100, 0.1); } .table-hover tbody tr:hover td, .table-hover tbody tr:hover th { background-color: #282828; } table [class*=span], .row-fluid table [class*=span] { display: table-cell; float: none; margin-left: 0; } table .span1 { float: none; width: 44px; margin-left: 0; } table .span2 { float: none; width: 124px; margin-left: 0; } table .span3 { float: none; width: 204px; margin-left: 0; } table .span4 { float: none; width: 284px; margin-left: 0; } table .span5 { float: none; width: 364px; margin-left: 0; } table .span6 { float: none; width: 444px; margin-left: 0; } table .span7 { float: none; width: 524px; margin-left: 0; } table .span8 { float: none; width: 604px; margin-left: 0; } table .span9 { float: none; width: 684px; margin-left: 0; } table .span10 { float: none; width: 764px; margin-left: 0; } table .span11 { float: none; width: 844px; margin-left: 0; } table .span12 { float: none; width: 924px; margin-left: 0; } table .span13 { float: none; width: 1004px; margin-left: 0; } table .span14 { float: none; width: 1084px; margin-left: 0; } table .span15 { float: none; width: 1164px; margin-left: 0; } table .span16 { float: none; width: 1244px; margin-left: 0; } table .span17 { float: none; width: 1324px; margin-left: 0; } table .span18 { float: none; width: 1404px; margin-left: 0; } table .span19 { float: none; width: 1484px; margin-left: 0; } table .span20 { float: none; width: 1564px; margin-left: 0; } table .span21 { float: none; width: 1644px; margin-left: 0; } table .span22 { float: none; width: 1724px; margin-left: 0; } table .span23 { float: none; width: 1804px; margin-left: 0; } table .span24 { float: none; width: 1884px; margin-left: 0; } .table tbody tr.success td { background-color: #eeeeee; } .table tbody tr.error td { background-color: #eeeeee; } .table tbody tr.info td { background-color: #eeeeee; } [class^="icon-"], [class*=" icon-"] { display: inline-block; width: 14px; height: 14px; *margin-right: .3em; line-height: 14px; vertical-align: text-top; background-image: url("../img/glyphicons-halflings.png"); background-position: 14px 14px; background-repeat: no-repeat; margin-top: 1px; } /* White icons with optional class, or on hover/active states of certain elements */ .icon-white, .nav > .active > a > [class^="icon-"], .nav > .active > a > [class*=" icon-"], .dropdown-menu > li > a:hover > [class^="icon-"], .dropdown-menu > li > a:hover > [class*=" icon-"], .dropdown-menu > .active > a > [class^="icon-"], .dropdown-menu > .active > a > [class*=" icon-"] { background-image: url("../img/glyphicons-halflings-white.png"); } .icon-glass { background-position: 0 0; } .icon-music { background-position: -24px 0; } .icon-search { background-position: -48px 0; } .icon-envelope { background-position: -72px 0; } .icon-heart { background-position: -96px 0; } .icon-star { background-position: -120px 0; } .icon-star-empty { background-position: -144px 0; } .icon-user { background-position: -168px 0; } .icon-film { background-position: -192px 0; } .icon-th-large { background-position: -216px 0; } .icon-th { background-position: -240px 0; } .icon-th-list { background-position: -264px 0; } .icon-ok { background-position: -288px 0; } .icon-remove { background-position: -312px 0; } .icon-zoom-in { background-position: -336px 0; } .icon-zoom-out { background-position: -360px 0; } .icon-off { background-position: -384px 0; } .icon-signal { background-position: -408px 0; } .icon-cog { background-position: -432px 0; } .icon-trash { background-position: -456px 0; } .icon-home { background-position: 0 -24px; } .icon-file { background-position: -24px -24px; } .icon-time { background-position: -48px -24px; } .icon-road { background-position: -72px -24px; } .icon-download-alt { background-position: -96px -24px; } .icon-download { background-position: -120px -24px; } .icon-upload { background-position: -144px -24px; } .icon-inbox { background-position: -168px -24px; } .icon-play-circle { background-position: -192px -24px; } .icon-repeat { background-position: -216px -24px; } .icon-refresh { background-position: -240px -24px; } .icon-list-alt { background-position: -264px -24px; } .icon-lock { background-position: -287px -24px; } .icon-flag { background-position: -312px -24px; } .icon-headphones { background-position: -336px -24px; } .icon-volume-off { background-position: -360px -24px; } .icon-volume-down { background-position: -384px -24px; } .icon-volume-up { background-position: -408px -24px; } .icon-qrcode { background-position: -432px -24px; } .icon-barcode { background-position: -456px -24px; } .icon-tag { background-position: 0 -48px; } .icon-tags { background-position: -25px -48px; } .icon-book { background-position: -48px -48px; } .icon-bookmark { background-position: -72px -48px; } .icon-print { background-position: -96px -48px; } .icon-camera { background-position: -120px -48px; } .icon-font { background-position: -144px -48px; } .icon-bold { background-position: -167px -48px; } .icon-italic { background-position: -192px -48px; } .icon-text-height { background-position: -216px -48px; } .icon-text-width { background-position: -240px -48px; } .icon-align-left { background-position: -264px -48px; } .icon-align-center { background-position: -288px -48px; } .icon-align-right { background-position: -312px -48px; } .icon-align-justify { background-position: -336px -48px; } .icon-list { background-position: -360px -48px; } .icon-indent-left { background-position: -384px -48px; } .icon-indent-right { background-position: -408px -48px; } .icon-facetime-video { background-position: -432px -48px; } .icon-picture { background-position: -456px -48px; } .icon-pencil { background-position: 0 -72px; } .icon-map-marker { background-position: -24px -72px; } .icon-adjust { background-position: -48px -72px; } .icon-tint { background-position: -72px -72px; } .icon-edit { background-position: -96px -72px; } .icon-share { background-position: -120px -72px; } .icon-check { background-position: -144px -72px; } .icon-move { background-position: -168px -72px; } .icon-step-backward { background-position: -192px -72px; } .icon-fast-backward { background-position: -216px -72px; } .icon-backward { background-position: -240px -72px; } .icon-play { background-position: -264px -72px; } .icon-pause { background-position: -288px -72px; } .icon-stop { background-position: -312px -72px; } .icon-forward { background-position: -336px -72px; } .icon-fast-forward { background-position: -360px -72px; } .icon-step-forward { background-position: -384px -72px; } .icon-eject { background-position: -408px -72px; } .icon-chevron-left { background-position: -432px -72px; } .icon-chevron-right { background-position: -456px -72px; } .icon-plus-sign { background-position: 0 -96px; } .icon-minus-sign { background-position: -24px -96px; } .icon-remove-sign { background-position: -48px -96px; } .icon-ok-sign { background-position: -72px -96px; } .icon-question-sign { background-position: -96px -96px; } .icon-info-sign { background-position: -120px -96px; } .icon-screenshot { background-position: -144px -96px; } .icon-remove-circle { background-position: -168px -96px; } .icon-ok-circle { background-position: -192px -96px; } .icon-ban-circle { background-position: -216px -96px; } .icon-arrow-left { background-position: -240px -96px; } .icon-arrow-right { background-position: -264px -96px; } .icon-arrow-up { background-position: -289px -96px; } .icon-arrow-down { background-position: -312px -96px; } .icon-share-alt { background-position: -336px -96px; } .icon-resize-full { background-position: -360px -96px; } .icon-resize-small { background-position: -384px -96px; } .icon-plus { background-position: -408px -96px; } .icon-minus { background-position: -433px -96px; } .icon-asterisk { background-position: -456px -96px; } .icon-exclamation-sign { background-position: 0 -120px; } .icon-gift { background-position: -24px -120px; } .icon-leaf { background-position: -48px -120px; } .icon-fire { background-position: -72px -120px; } .icon-eye-open { background-position: -96px -120px; } .icon-eye-close { background-position: -120px -120px; } .icon-warning-sign { background-position: -144px -120px; } .icon-plane { background-position: -168px -120px; } .icon-calendar { background-position: -192px -120px; } .icon-random { background-position: -216px -120px; width: 16px; } .icon-comment { background-position: -240px -120px; } .icon-magnet { background-position: -264px -120px; } .icon-chevron-up { background-position: -288px -120px; } .icon-chevron-down { background-position: -313px -119px; } .icon-retweet { background-position: -336px -120px; } .icon-shopping-cart { background-position: -360px -120px; } .icon-folder-close { background-position: -384px -120px; } .icon-folder-open { background-position: -408px -120px; width: 16px; } .icon-resize-vertical { background-position: -432px -119px; } .icon-resize-horizontal { background-position: -456px -118px; } .icon-hdd { background-position: 0 -144px; } .icon-bullhorn { background-position: -24px -144px; } .icon-bell { background-position: -48px -144px; } .icon-certificate { background-position: -72px -144px; } .icon-thumbs-up { background-position: -96px -144px; } .icon-thumbs-down { background-position: -120px -144px; } .icon-hand-right { background-position: -144px -144px; } .icon-hand-left { background-position: -168px -144px; } .icon-hand-up { background-position: -192px -144px; } .icon-hand-down { background-position: -216px -144px; } .icon-circle-arrow-right { background-position: -240px -144px; } .icon-circle-arrow-left { background-position: -264px -144px; } .icon-circle-arrow-up { background-position: -288px -144px; } .icon-circle-arrow-down { background-position: -312px -144px; } .icon-globe { background-position: -336px -144px; } .icon-wrench { background-position: -360px -144px; } .icon-tasks { background-position: -384px -144px; } .icon-filter { background-position: -408px -144px; } .icon-briefcase { background-position: -432px -144px; } .icon-fullscreen { background-position: -456px -144px; } .dropup, .dropdown { position: relative; } .dropdown-toggle { *margin-bottom: -3px; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .caret { display: inline-block; width: 0; height: 0; vertical-align: top; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; } .dropdown .caret { margin-top: 8px; margin-left: 2px; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; background-color: #ffffff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); *border-right-width: 2px; *border-bottom-width: 2px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: transparent; border-bottom: 1px solid #222222; } .dropdown-menu a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 20px; color: #999999; white-space: nowrap; } .dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a { text-decoration: none; color: #ffffff; background-color: #33b5e5; background-color: #2ab2e4; background-image: -moz-linear-gradient(top, #33b5e5, #1dade2); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#33b5e5), to(#1dade2)); background-image: -webkit-linear-gradient(top, #33b5e5, #1dade2); background-image: -o-linear-gradient(top, #33b5e5, #1dade2); background-image: linear-gradient(to bottom, #33b5e5, #1dade2); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff33b5e5', endColorstr='#ff1dade2', GradientType=0); } .dropdown-menu .active > a, .dropdown-menu .active > a:hover { color: #ffffff; text-decoration: none; outline: 0; background-color: #33b5e5; background-color: #2ab2e4; background-image: -moz-linear-gradient(top, #33b5e5, #1dade2); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#33b5e5), to(#1dade2)); background-image: -webkit-linear-gradient(top, #33b5e5, #1dade2); background-image: -o-linear-gradient(top, #33b5e5, #1dade2); background-image: linear-gradient(to bottom, #33b5e5, #1dade2); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff33b5e5', endColorstr='#ff1dade2', GradientType=0); } .dropdown-menu .disabled > a, .dropdown-menu .disabled > a:hover { color: #adafae; } .dropdown-menu .disabled > a:hover { text-decoration: none; background-color: transparent; cursor: default; } .open { *z-index: 1000; } .open > .dropdown-menu { display: block; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid #000000; content: "\2191"; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; margin-left: -1px; -webkit-border-radius: 0 6px 6px 6px; -moz-border-radius: 0 6px 6px 6px; border-radius: 0 6px 6px 6px; } .dropdown-submenu:hover .dropdown-menu { display: block; } .dropdown-submenu > a:after { display: block; content: " "; float: right; width: 0; height: 0; border-color: transparent; border-style: solid; border-width: 5px 0 5px 5px; border-left-color: #cccccc; margin-top: 5px; margin-right: -10px; } .dropdown-submenu:hover > a:after { border-left-color: #ffffff; } .dropdown .dropdown-menu .nav-header { padding-left: 20px; padding-right: 20px; } .typeahead { margin-top: 2px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #131517; border: 1px solid #030303; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-large { padding: 24px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .well-small { padding: 9px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -moz-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { position: relative; height: 0; overflow: hidden; overflow: visible \9; -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; } .collapse.in { height: auto; } .close { float: right; font-size: 20px; font-weight: bold; line-height: 20px; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.4; filter: alpha(opacity=40); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .btn { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; padding: 4px 14px; margin-bottom: 0; font-size: 14px; line-height: 20px; *line-height: 20px; text-align: center; vertical-align: middle; cursor: pointer; color: #282828; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); background-color: #616161; background-image: -moz-linear-gradient(top, #666666, #595959); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#666666), to(#595959)); background-image: -webkit-linear-gradient(top, #666666, #595959); background-image: -o-linear-gradient(top, #666666, #595959); background-image: linear-gradient(to bottom, #666666, #595959); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff666666', endColorstr='#ff595959', GradientType=0); border-color: #595959 #595959 #333333; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #595959; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); border: 1px solid rgba(0, 0, 0, 0); *border: 0; border-bottom-color: rgba(0, 0, 0, 0); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; *margin-left: .3em; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); } .btn:hover, .btn:active, .btn.active, .btn.disabled, .btn[disabled] { color: #282828; background-color: #595959; *background-color: #4d4d4d; } .btn:active, .btn.active { background-color: #404040 \9; } .btn:first-child { *margin-left: 0; } .btn:hover { color: #282828; text-decoration: none; background-color: #e6e6e6; *background-color: #d9d9d9; /* Buttons in IE7 don't get borders, so darken on hover */ background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn.active, .btn:active { background-color: #e6e6e6; background-color: #d9d9d9 \9; background-image: none; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); } .btn.disabled, .btn[disabled] { cursor: default; background-color: #e6e6e6; background-image: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-large { padding: 9px 14px; font-size: 16px; line-height: normal; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .btn-large [class^="icon-"] { margin-top: 2px; } .btn-small { padding: 3px 9px; font-size: 12px; line-height: 18px; } .btn-small [class^="icon-"] { margin-top: 0; } .btn-mini { padding: 2px 6px; font-size: 11px; line-height: 16px; } .btn-block { display: block; width: 100%; padding-left: 0; padding-right: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .btn-block + .btn-block { margin-top: 5px; } .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active { color: rgba(255, 255, 255, 0.75); } .btn { border-color: #c5c5c5; border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25); } .btn-primary { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #008ab8; background-image: -moz-linear-gradient(top, #0099cc, #007399); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0099cc), to(#007399)); background-image: -webkit-linear-gradient(top, #0099cc, #007399); background-image: -o-linear-gradient(top, #0099cc, #007399); background-image: linear-gradient(to bottom, #0099cc, #007399); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0099cc', endColorstr='#ff007399', GradientType=0); border-color: #007399 #007399 #00394d; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #007399; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { color: #ffffff; background-color: #007399; *background-color: #006080; } .btn-primary:active, .btn-primary.active { background-color: #004d66 \9; } .btn-warning { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #ff9d2e; background-image: -moz-linear-gradient(top, #ffac4d, #ff8800); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffac4d), to(#ff8800)); background-image: -webkit-linear-gradient(top, #ffac4d, #ff8800); background-image: -o-linear-gradient(top, #ffac4d, #ff8800); background-image: linear-gradient(to bottom, #ffac4d, #ff8800); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffac4d', endColorstr='#ffff8800', GradientType=0); border-color: #ff8800 #ff8800 #b35f00; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #ff8800; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { color: #ffffff; background-color: #ff8800; *background-color: #e67a00; } .btn-warning:active, .btn-warning.active { background-color: #cc6d00 \9; } .btn-danger { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #eb0000; background-image: -moz-linear-gradient(top, #ff0000, #cc0000); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ff0000), to(#cc0000)); background-image: -webkit-linear-gradient(top, #ff0000, #cc0000); background-image: -o-linear-gradient(top, #ff0000, #cc0000); background-image: linear-gradient(to bottom, #ff0000, #cc0000); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff0000', endColorstr='#ffcc0000', GradientType=0); border-color: #cc0000 #cc0000 #800000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #cc0000; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { color: #ffffff; background-color: #cc0000; *background-color: #b30000; } .btn-danger:active, .btn-danger.active { background-color: #990000 \9; } .btn-success { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #7ab800; background-image: -moz-linear-gradient(top, #88cc00, #669900); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#88cc00), to(#669900)); background-image: -webkit-linear-gradient(top, #88cc00, #669900); background-image: -o-linear-gradient(top, #88cc00, #669900); background-image: linear-gradient(to bottom, #88cc00, #669900); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff88cc00', endColorstr='#ff669900', GradientType=0); border-color: #669900 #669900 #334d00; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #669900; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-success:hover, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { color: #ffffff; background-color: #669900; *background-color: #558000; } .btn-success:active, .btn-success.active { background-color: #446600 \9; } .btn-info { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #292929; background-image: -moz-linear-gradient(top, #333333, #191919); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#191919)); background-image: -webkit-linear-gradient(top, #333333, #191919); background-image: -o-linear-gradient(top, #333333, #191919); background-image: linear-gradient(to bottom, #333333, #191919); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff333333', endColorstr='#ff191919', GradientType=0); border-color: #191919 #191919 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #191919; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { color: #ffffff; background-color: #191919; *background-color: #0d0d0d; } .btn-info:active, .btn-info.active { background-color: #000000 \9; } .btn-inverse { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #9f3fcf; background-image: -moz-linear-gradient(top, #a347d1, #9933cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#a347d1), to(#9933cc)); background-image: -webkit-linear-gradient(top, #a347d1, #9933cc); background-image: -o-linear-gradient(top, #a347d1, #9933cc); background-image: linear-gradient(to bottom, #a347d1, #9933cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffa347d1', endColorstr='#ff9933cc', GradientType=0); border-color: #9933cc #9933cc #6b248f; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #9933cc; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { color: #ffffff; background-color: #9933cc; *background-color: #8a2eb8; } .btn-inverse:active, .btn-inverse.active { background-color: #7a29a3 \9; } button.btn, input[type="submit"].btn { *padding-top: 3px; *padding-bottom: 3px; } button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner { padding: 0; border: 0; } button.btn.btn-large, input[type="submit"].btn.btn-large { *padding-top: 7px; *padding-bottom: 7px; } button.btn.btn-small, input[type="submit"].btn.btn-small { *padding-top: 3px; *padding-bottom: 3px; } button.btn.btn-mini, input[type="submit"].btn.btn-mini { *padding-top: 1px; *padding-bottom: 1px; } .btn-link, .btn-link:active { background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { border-color: transparent; cursor: pointer; color: #33b5e5; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover { color: #ffffff; text-decoration: underline; background-color: transparent; } .btn-group { position: relative; font-size: 0; white-space: nowrap; *margin-left: .3em; } .btn-group:first-child { *margin-left: 0; } .btn-group + .btn-group { margin-left: 5px; } .btn-toolbar { font-size: 0; margin-top: 10px; margin-bottom: 10px; } .btn-toolbar .btn-group { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; } .btn-toolbar .btn + .btn, .btn-toolbar .btn-group + .btn, .btn-toolbar .btn + .btn-group { margin-left: 5px; } .btn-group > .btn { position: relative; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group > .btn + .btn { margin-left: -1px; } .btn-group > .btn, .btn-group > .dropdown-menu { font-size: 14px; } .btn-group > .btn-mini { font-size: 11px; } .btn-group > .btn-small { font-size: 12px; } .btn-group > .btn-large { font-size: 16px; } .btn-group > .btn:first-child { margin-left: 0; -webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; border-top-left-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; border-bottom-left-radius: 4px; } .btn-group > .btn:last-child, .btn-group > .dropdown-toggle { -webkit-border-top-right-radius: 4px; -moz-border-radius-topright: 4px; border-top-right-radius: 4px; -webkit-border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; border-bottom-right-radius: 4px; } .btn-group > .btn.large:first-child { margin-left: 0; -webkit-border-top-left-radius: 6px; -moz-border-radius-topleft: 6px; border-top-left-radius: 6px; -webkit-border-bottom-left-radius: 6px; -moz-border-radius-bottomleft: 6px; border-bottom-left-radius: 6px; } .btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle { -webkit-border-top-right-radius: 6px; -moz-border-radius-topright: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; -moz-border-radius-bottomright: 6px; border-bottom-right-radius: 6px; } .btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active { z-index: 2; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); *padding-top: 5px; *padding-bottom: 5px; } .btn-group > .btn-mini + .dropdown-toggle { padding-left: 5px; padding-right: 5px; *padding-top: 2px; *padding-bottom: 2px; } .btn-group > .btn-small + .dropdown-toggle { *padding-top: 5px; *padding-bottom: 4px; } .btn-group > .btn-large + .dropdown-toggle { padding-left: 12px; padding-right: 12px; *padding-top: 7px; *padding-bottom: 7px; } .btn-group.open .dropdown-toggle { background-image: none; -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); } .btn-group.open .btn.dropdown-toggle { background-color: #595959; } .btn-group.open .btn-primary.dropdown-toggle { background-color: #007399; } .btn-group.open .btn-warning.dropdown-toggle { background-color: #ff8800; } .btn-group.open .btn-danger.dropdown-toggle { background-color: #cc0000; } .btn-group.open .btn-success.dropdown-toggle { background-color: #669900; } .btn-group.open .btn-info.dropdown-toggle { background-color: #191919; } .btn-group.open .btn-inverse.dropdown-toggle { background-color: #9933cc; } .btn .caret { margin-top: 8px; margin-left: 0; } .btn-mini .caret, .btn-small .caret, .btn-large .caret { margin-top: 6px; } .btn-large .caret { border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; } .dropup .btn-large .caret { border-bottom: 5px solid #000000; border-top: 0; } .btn-primary .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret, .btn-inverse .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .btn-group-vertical { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; } .btn-group-vertical .btn { display: block; float: none; width: 100%; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group-vertical .btn + .btn { margin-left: 0; margin-top: -1px; } .btn-group-vertical .btn:first-child { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .btn-group-vertical .btn:last-child { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .btn-group-vertical .btn-large:first-child { -webkit-border-radius: 6px 6px 0 0; -moz-border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0; } .btn-group-vertical .btn-large:last-child { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .alert { padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); background-color: #eeeeee; border: 1px solid transparent; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; color: #a47e3c; } .alert h4 { margin: 0; } .alert .close { position: relative; top: -2px; right: -21px; line-height: 20px; } .alert-success { background-color: #eeeeee; border-color: #e1e1e1; color: #468847; } .alert-danger, .alert-error { background-color: #eeeeee; border-color: #e6e6e6; color: #b94a48; } .alert-info { background-color: #eeeeee; border-color: #dcdcdc; color: #0099cc; } .alert-block { padding-top: 14px; padding-bottom: 14px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .nav { margin-left: 0; margin-bottom: 20px; list-style: none; } .nav > li > a { display: block; } .nav > li > a:hover { text-decoration: none; background-color: #eeeeee; } .nav > .pull-right { float: right; } .nav-header { display: block; padding: 3px 15px; font-size: 11px; font-weight: bold; line-height: 20px; color: #adafae; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-transform: uppercase; } .nav li + .nav-header { margin-top: 9px; } .nav-list { padding-left: 15px; padding-right: 15px; margin-bottom: 0; } .nav-list > li > a, .nav-list .nav-header { margin-left: -15px; margin-right: -15px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .nav-list > li > a { padding: 3px 15px; } .nav-list > .active > a, .nav-list > .active > a:hover { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background-color: #33b5e5; } .nav-list [class^="icon-"] { margin-right: 2px; } .nav-list .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; } .nav-tabs, .nav-pills { *zoom: 1; } .nav-tabs:before, .nav-pills:before, .nav-tabs:after, .nav-pills:after { display: table; content: ""; line-height: 0; } .nav-tabs:after, .nav-pills:after { clear: both; } .nav-tabs > li, .nav-pills > li { float: left; } .nav-tabs > li > a, .nav-pills > li > a { padding-right: 12px; padding-left: 12px; margin-right: 2px; line-height: 14px; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { margin-bottom: -1px; } .nav-tabs > li > a { padding-top: 8px; padding-bottom: 8px; line-height: 20px; border: 1px solid transparent; -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > .active > a, .nav-tabs > .active > a:hover { color: #999999; background-color: #ffffff; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default; } .nav-pills > li > a { padding-top: 8px; padding-bottom: 8px; margin-top: 2px; margin-bottom: 2px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .nav-pills > .active > a, .nav-pills > .active > a:hover { color: #ffffff; background-color: #33b5e5; } .nav-stacked > li { float: none; } .nav-stacked > li > a { margin-right: 0; } .nav-tabs.nav-stacked { border-bottom: 0; } .nav-tabs.nav-stacked > li > a { border: 1px solid #ddd; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .nav-tabs.nav-stacked > li:first-child > a { -webkit-border-top-right-radius: 4px; -moz-border-radius-topright: 4px; border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; border-top-left-radius: 4px; } .nav-tabs.nav-stacked > li:last-child > a { -webkit-border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; border-bottom-right-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; border-bottom-left-radius: 4px; } .nav-tabs.nav-stacked > li > a:hover { border-color: #ddd; z-index: 2; } .nav-pills.nav-stacked > li > a { margin-bottom: 3px; } .nav-pills.nav-stacked > li:last-child > a { margin-bottom: 1px; } .nav-tabs .dropdown-menu { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .nav-pills .dropdown-menu { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .nav .dropdown-toggle .caret { border-top-color: #33b5e5; border-bottom-color: #33b5e5; margin-top: 6px; } .nav .dropdown-toggle:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } /* move down carets for tabs */ .nav-tabs .dropdown-toggle .caret { margin-top: 8px; } .nav .active .dropdown-toggle .caret { border-top-color: #fff; border-bottom-color: #fff; } .nav-tabs .active .dropdown-toggle .caret { border-top-color: #999999; border-bottom-color: #999999; } .nav > .dropdown.active > a:hover { cursor: pointer; } .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > li.dropdown.open.active > a:hover { color: #ffffff; background-color: #adafae; border-color: #adafae; } .nav li.dropdown.open .caret, .nav li.dropdown.open.active .caret, .nav li.dropdown.open a:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; opacity: 1; filter: alpha(opacity=100); } .tabs-stacked .open > a:hover { border-color: #adafae; } .tabbable { *zoom: 1; } .tabbable:before, .tabbable:after { display: table; content: ""; line-height: 0; } .tabbable:after { clear: both; } .tab-content { overflow: auto; } .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left > .nav-tabs { border-bottom: 0; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .tabs-below > .nav-tabs { border-top: 1px solid #ddd; } .tabs-below > .nav-tabs > li { margin-top: -1px; margin-bottom: 0; } .tabs-below > .nav-tabs > li > a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .tabs-below > .nav-tabs > li > a:hover { border-bottom-color: transparent; border-top-color: #ddd; } .tabs-below > .nav-tabs > .active > a, .tabs-below > .nav-tabs > .active > a:hover { border-color: transparent #ddd #ddd #ddd; } .tabs-left > .nav-tabs > li, .tabs-right > .nav-tabs > li { float: none; } .tabs-left > .nav-tabs > li > a, .tabs-right > .nav-tabs > li > a { min-width: 74px; margin-right: 0; margin-bottom: 3px; } .tabs-left > .nav-tabs { float: left; margin-right: 19px; border-right: 1px solid #ddd; } .tabs-left > .nav-tabs > li > a { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .tabs-left > .nav-tabs > li > a:hover { border-color: #eeeeee #dddddd #eeeeee #eeeeee; } .tabs-left > .nav-tabs .active > a, .tabs-left > .nav-tabs .active > a:hover { border-color: #ddd transparent #ddd #ddd; *border-right-color: #ffffff; } .tabs-right > .nav-tabs { float: right; margin-left: 19px; border-left: 1px solid #ddd; } .tabs-right > .nav-tabs > li > a { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .tabs-right > .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #eeeeee #dddddd; } .tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a:hover { border-color: #ddd #ddd #ddd transparent; *border-left-color: #ffffff; } .nav > .disabled > a { color: #adafae; } .nav > .disabled > a:hover { text-decoration: none; background-color: transparent; cursor: default; } .navbar { overflow: visible; margin-bottom: 20px; color: #adafae; *position: relative; *z-index: 2; } .navbar-inner { min-height: 40px; padding-left: 20px; padding-right: 20px; background-color: #020202; background-image: -moz-linear-gradient(top, #020202, #020202); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#020202), to(#020202)); background-image: -webkit-linear-gradient(top, #020202, #020202); background-image: -o-linear-gradient(top, #020202, #020202); background-image: linear-gradient(to bottom, #020202, #020202); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff020202', GradientType=0); border: 1px solid #000000; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); } .navbar .container { width: auto; } .nav-collapse.collapse { height: auto; } .navbar .brand { float: left; display: block; padding: 10px 20px 10px; margin-left: -20px; font-size: 20px; font-weight: 200; color: #adafae; text-shadow: 0 1px 0 #020202; } .navbar .brand:hover { text-decoration: none; } .navbar-text { margin-bottom: 0; line-height: 40px; } .navbar-link { color: #adafae; } .navbar-link:hover { color: #ffffff; } .navbar .divider-vertical { height: 40px; margin: 0 9px; border-left: 1px solid #020202; border-right: 1px solid #020202; } .navbar .btn, .navbar .btn-group { margin-top: 6px; } .navbar .btn-group .btn { margin: 0; } .navbar-form { margin-bottom: 0; *zoom: 1; } .navbar-form:before, .navbar-form:after { display: table; content: ""; line-height: 0; } .navbar-form:after { clear: both; } .navbar-form input, .navbar-form select, .navbar-form .radio, .navbar-form .checkbox { margin-top: 5px; } .navbar-form input, .navbar-form select, .navbar-form .btn { display: inline-block; margin-bottom: 0; } .navbar-form input[type="image"], .navbar-form input[type="checkbox"], .navbar-form input[type="radio"] { margin-top: 3px; } .navbar-form .input-append, .navbar-form .input-prepend { margin-top: 6px; white-space: nowrap; } .navbar-form .input-append input, .navbar-form .input-prepend input { margin-top: 0; } .navbar-search { position: relative; float: left; margin-top: 5px; margin-bottom: 0; } .navbar-search .search-query { margin-bottom: 0; padding: 4px 14px; font-family: 'Droid Sans', sans-serif; font-size: 13px; font-weight: normal; line-height: 1; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .navbar-static-top { position: static; width: 100%; margin-bottom: 0; } .navbar-static-top .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; margin-bottom: 0; } .navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner, .navbar-static-top .navbar-inner { border: 0; } .navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner { padding-left: 0; padding-right: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .navbar-fixed-top { top: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1); -moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1); box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1); } .navbar-fixed-bottom { bottom: 0; } .navbar-fixed-bottom .navbar-inner { -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1); -moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1); box-shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1); } .navbar .nav { position: relative; left: 0; display: block; float: left; margin: 0 10px 0 0; } .navbar .nav.pull-right { float: right; } .navbar .nav > li { float: left; } .navbar .nav > li > a { float: none; padding: 10px 15px 10px; color: #adafae; text-decoration: none; text-shadow: 0 1px 0 #020202; } .navbar .nav .dropdown-toggle .caret { margin-top: 8px; } .navbar .nav > li > a:focus, .navbar .nav > li > a:hover { background-color: transparent; color: #ffffff; text-decoration: none; } .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #020202; -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); } .navbar .btn-navbar { display: none; float: right; padding: 7px 10px; margin-left: 5px; margin-right: 5px; color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #000000; background-image: -moz-linear-gradient(top, #000000, #000000); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#000000), to(#000000)); background-image: -webkit-linear-gradient(top, #000000, #000000); background-image: -o-linear-gradient(top, #000000, #000000); background-image: linear-gradient(to bottom, #000000, #000000); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff000000', endColorstr='#ff000000', GradientType=0); border-color: #000000 #000000 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #000000; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075); } .navbar .btn-navbar:hover, .navbar .btn-navbar:active, .navbar .btn-navbar.active, .navbar .btn-navbar.disabled, .navbar .btn-navbar[disabled] { color: #ffffff; background-color: #000000; *background-color: #000000; } .navbar .btn-navbar:active, .navbar .btn-navbar.active { background-color: #000000 \9; } .navbar .btn-navbar .icon-bar { display: block; width: 18px; height: 2px; background-color: #f5f5f5; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); } .btn-navbar .icon-bar + .icon-bar { margin-top: 3px; } .navbar .nav > li > .dropdown-menu:before { content: ''; display: inline-block; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-bottom-color: rgba(0, 0, 0, 0.2); position: absolute; top: -7px; left: 9px; } .navbar .nav > li > .dropdown-menu:after { content: ''; display: inline-block; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #ffffff; position: absolute; top: -6px; left: 10px; } .navbar-fixed-bottom .nav > li > .dropdown-menu:before { border-top: 7px solid #ccc; border-top-color: rgba(0, 0, 0, 0.2); border-bottom: 0; bottom: -7px; top: auto; } .navbar-fixed-bottom .nav > li > .dropdown-menu:after { border-top: 6px solid #ffffff; border-bottom: 0; bottom: -6px; top: auto; } .navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle { background-color: #020202; color: #ffffff; } .navbar .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #adafae; border-bottom-color: #adafae; } .navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar .pull-right > li > .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right { left: auto; right: 0; } .navbar .pull-right > li > .dropdown-menu:before, .navbar .nav > li > .dropdown-menu.pull-right:before { left: auto; right: 12px; } .navbar .pull-right > li > .dropdown-menu:after, .navbar .nav > li > .dropdown-menu.pull-right:after { left: auto; right: 13px; } .navbar .pull-right > li > .dropdown-menu .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu { left: auto; right: 100%; margin-left: 0; margin-right: -1px; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .navbar-inverse { color: #eeeeee; } .navbar-inverse .navbar-inner { background-color: #252a30; background-image: -moz-linear-gradient(top, #252a30, #252a30); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#252a30), to(#252a30)); background-image: -webkit-linear-gradient(top, #252a30, #252a30); background-image: -o-linear-gradient(top, #252a30, #252a30); background-image: linear-gradient(to bottom, #252a30, #252a30); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff252a30', endColorstr='#ff252a30', GradientType=0); border-color: transparent; } .navbar-inverse .brand, .navbar-inverse .nav > li > a { color: #eeeeee; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .navbar-inverse .brand:hover, .navbar-inverse .nav > li > a:hover { color: #ffffff; } .navbar-inverse .nav > li > a:focus, .navbar-inverse .nav > li > a:hover { background-color: #000000; color: #ffffff; } .navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus { color: #ffffff; background-color: #000000; } .navbar-inverse .navbar-link { color: #eeeeee; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .navbar-inverse .divider-vertical { border-left-color: #252a30; border-right-color: #252a30; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { background-color: #000000; color: #ffffff; } .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #eeeeee; border-bottom-color: #eeeeee; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-search .search-query { color: #ffffff; background-color: #5d6978; border-color: #252a30; -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15); -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15); box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15); -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .navbar-inverse .navbar-search .search-query:-moz-placeholder { color: #ffffff; } .navbar-inverse .navbar-search .search-query:-ms-input-placeholder { color: #ffffff; } .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { color: #ffffff; } .navbar-inverse .navbar-search .search-query:focus, .navbar-inverse .navbar-search .search-query.focused { padding: 5px 15px; color: #282828; text-shadow: 0 1px 0 #ffffff; background-color: #ffffff; border: 0; -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); outline: 0; } .navbar-inverse .btn-navbar { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #1a1d22; background-image: -moz-linear-gradient(top, #1a1d22, #1a1d22); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1a1d22), to(#1a1d22)); background-image: -webkit-linear-gradient(top, #1a1d22, #1a1d22); background-image: -o-linear-gradient(top, #1a1d22, #1a1d22); background-image: linear-gradient(to bottom, #1a1d22, #1a1d22); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1a1d22', endColorstr='#ff1a1d22', GradientType=0); border-color: #1a1d22 #1a1d22 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #1a1d22; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .navbar-inverse .btn-navbar:hover, .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active, .navbar-inverse .btn-navbar.disabled, .navbar-inverse .btn-navbar[disabled] { color: #ffffff; background-color: #1a1d22; *background-color: #0f1113; } .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active { background-color: #040405 \9; } .breadcrumb { padding: 8px 15px; margin: 0 0 20px; list-style: none; background-color: #f5f5f5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .breadcrumb li { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; text-shadow: 0 1px 0 #ffffff; } .breadcrumb .divider { padding: 0 5px; color: #ccc; } .breadcrumb .active { color: #adafae; } .pagination { height: 40px; margin: 20px 0; } .pagination ul { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; margin-left: 0; margin-bottom: 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .pagination li { display: inline; } .pagination a, .pagination span { float: left; padding: 0 14px; line-height: 38px; text-decoration: none; background-color: #060606; border: 1px solid #dddddd; border-left-width: 0; } .pagination a:hover, .pagination .active a, .pagination .active span { background-color: #f5f5f5; } .pagination .active a, .pagination .active span { color: #adafae; cursor: default; } .pagination .disabled span, .pagination .disabled a, .pagination .disabled a:hover { color: #adafae; background-color: transparent; cursor: default; } .pagination li:first-child a, .pagination li:first-child span { border-left-width: 1px; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .pagination li:last-child a, .pagination li:last-child span { -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } .pagination-centered { text-align: center; } .pagination-right { text-align: right; } .pager { margin: 20px 0; list-style: none; text-align: center; *zoom: 1; } .pager:before, .pager:after { display: table; content: ""; line-height: 0; } .pager:after { clear: both; } .pager li { display: inline; } .pager a { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .pager a:hover { text-decoration: none; background-color: #f5f5f5; } .pager .next a { float: right; } .pager .previous a { float: left; } .pager .disabled a, .pager .disabled a:hover { color: #adafae; background-color: #fff; cursor: default; } .modal-open .dropdown-menu { z-index: 2050; } .modal-open .dropdown.open { *z-index: 2050; } .modal-open .popover { z-index: 2060; } .modal-open .tooltip { z-index: 2070; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop, .modal-backdrop.fade.in { opacity: 0.8; filter: alpha(opacity=80); } .modal { position: fixed; top: 50%; left: 50%; z-index: 1050; overflow: auto; width: 560px; margin: -250px 0 0 -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; /* IE6-7 */ -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; } .modal.fade { -webkit-transition: opacity .3s linear, top .3s ease-out; -moz-transition: opacity .3s linear, top .3s ease-out; -o-transition: opacity .3s linear, top .3s ease-out; transition: opacity .3s linear, top .3s ease-out; top: -25%; } .modal.fade.in { top: 50%; } .modal-header { padding: 9px 15px; border-bottom: 1px solid #eee; } .modal-header .close { margin-top: 2px; } .modal-header h3 { margin: 0; line-height: 30px; } .modal-body { overflow-y: auto; max-height: 400px; padding: 15px; } .modal-form { margin-bottom: 0; } .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; text-align: right; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #ffffff; -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; *zoom: 1; } .modal-footer:before, .modal-footer:after { display: table; content: ""; line-height: 0; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .tooltip { position: absolute; z-index: 1020; display: block; visibility: visible; padding: 5px; font-size: 11px; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.8; filter: alpha(opacity=80); } .tooltip.top { margin-top: -3px; } .tooltip.right { margin-left: 3px; } .tooltip.bottom { margin-top: 3px; } .tooltip.left { margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #000000; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; width: 236px; padding: 1px; background-color: #ffffff; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } .popover.top { margin-bottom: 10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-right: 10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover-content p, .popover-content ul, .popover-content ol { margin-bottom: 0; } .popover .arrow, .popover .arrow:after { position: absolute; display: inline-block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow:after { content: ""; z-index: -1; } .popover.top .arrow { bottom: -10px; left: 50%; margin-left: -10px; border-width: 10px 10px 0; border-top-color: #ffffff; } .popover.top .arrow:after { border-width: 11px 11px 0; border-top-color: rgba(0, 0, 0, 0.25); bottom: -1px; left: -11px; } .popover.right .arrow { top: 50%; left: -10px; margin-top: -10px; border-width: 10px 10px 10px 0; border-right-color: #ffffff; } .popover.right .arrow:after { border-width: 11px 11px 11px 0; border-right-color: rgba(0, 0, 0, 0.25); bottom: -11px; left: -1px; } .popover.bottom .arrow { top: -10px; left: 50%; margin-left: -10px; border-width: 0 10px 10px; border-bottom-color: #ffffff; } .popover.bottom .arrow:after { border-width: 0 11px 11px; border-bottom-color: rgba(0, 0, 0, 0.25); top: -1px; left: -11px; } .popover.left .arrow { top: 50%; right: -10px; margin-top: -10px; border-width: 10px 0 10px 10px; border-left-color: #ffffff; } .popover.left .arrow:after { border-width: 11px 0 11px 11px; border-left-color: rgba(0, 0, 0, 0.25); bottom: -11px; right: -1px; } .thumbnails { margin-left: -20px; list-style: none; *zoom: 1; } .thumbnails:before, .thumbnails:after { display: table; content: ""; line-height: 0; } .thumbnails:after { clear: both; } .row-fluid .thumbnails { margin-left: 0; } .thumbnails > li { float: left; margin-bottom: 20px; margin-left: 20px; } .thumbnail { display: block; padding: 4px; line-height: 20px; border: 1px solid #ddd; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } a.thumbnail:hover { border-color: #33b5e5; -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); } .thumbnail > img { display: block; max-width: 100%; margin-left: auto; margin-right: auto; } .thumbnail .caption { padding: 9px; color: #999999; } .label, .badge { font-size: 11.844px; font-weight: bold; line-height: 14px; color: #ffffff; vertical-align: baseline; white-space: nowrap; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #adafae; } .label { padding: 1px 4px 2px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .badge { padding: 1px 9px 2px; -webkit-border-radius: 9px; -moz-border-radius: 9px; border-radius: 9px; } a.label:hover, a.badge:hover { color: #ffffff; text-decoration: none; cursor: pointer; } .label-important, .badge-important { background-color: #b94a48; } .label-important[href], .badge-important[href] { background-color: #953b39; } .label-warning, .badge-warning { background-color: #ff8800; } .label-warning[href], .badge-warning[href] { background-color: #cc6d00; } .label-success, .badge-success { background-color: #468847; } .label-success[href], .badge-success[href] { background-color: #356635; } .label-info, .badge-info { background-color: #0099cc; } .label-info[href], .badge-info[href] { background-color: #007399; } .label-inverse, .badge-inverse { background-color: #282828; } .label-inverse[href], .badge-inverse[href] { background-color: #0e0e0e; } .btn .label, .btn .badge { position: relative; top: -1px; } .btn-mini .label, .btn-mini .badge { top: 0; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #f7f7f7; background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .progress .bar { width: 0%; height: 100%; color: #ffffff; float: left; font-size: 12px; text-align: center; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #0e90d2; background-image: -moz-linear-gradient(top, #149bdf, #0480be); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); background-image: -webkit-linear-gradient(top, #149bdf, #0480be); background-image: -o-linear-gradient(top, #149bdf, #0480be); background-image: linear-gradient(to bottom, #149bdf, #0480be); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: width 0.6s ease; -moz-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress .bar + .bar { -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15); -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15); box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15); } .progress-striped .bar { background-color: #149bdf; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -webkit-background-size: 40px 40px; -moz-background-size: 40px 40px; -o-background-size: 40px 40px; background-size: 40px 40px; } .progress.active .bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-danger .bar, .progress .bar-danger { background-color: #dd514c; background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); } .progress-danger.progress-striped .bar, .progress-striped .bar-danger { background-color: #ee5f5b; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-success .bar, .progress .bar-success { background-color: #5eb95e; background-image: -moz-linear-gradient(top, #62c462, #57a957); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); background-image: -webkit-linear-gradient(top, #62c462, #57a957); background-image: -o-linear-gradient(top, #62c462, #57a957); background-image: linear-gradient(to bottom, #62c462, #57a957); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); } .progress-success.progress-striped .bar, .progress-striped .bar-success { background-color: #62c462; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-info .bar, .progress .bar-info { background-color: #4bb1cf; background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); background-image: -o-linear-gradient(top, #5bc0de, #339bb9); background-image: linear-gradient(to bottom, #5bc0de, #339bb9); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); } .progress-info.progress-striped .bar, .progress-striped .bar-info { background-color: #5bc0de; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-warning .bar, .progress .bar-warning { background-color: #ff9d2e; background-image: -moz-linear-gradient(top, #ffac4d, #ff8800); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffac4d), to(#ff8800)); background-image: -webkit-linear-gradient(top, #ffac4d, #ff8800); background-image: -o-linear-gradient(top, #ffac4d, #ff8800); background-image: linear-gradient(to bottom, #ffac4d, #ff8800); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffac4d', endColorstr='#ffff8800', GradientType=0); } .progress-warning.progress-striped .bar, .progress-striped .bar-warning { background-color: #ffac4d; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .accordion { margin-bottom: 20px; } .accordion-group { margin-bottom: 2px; border: 1px solid #e5e5e5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .accordion-heading { border-bottom: 0; } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; } .accordion-toggle { cursor: pointer; } .accordion-inner { padding: 9px 15px; border-top: 1px solid #e5e5e5; } .carousel { position: relative; margin-bottom: 20px; line-height: 1; } .carousel-inner { overflow: hidden; width: 100%; position: relative; } .carousel .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel .item > img { display: block; line-height: 1; } .carousel .active, .carousel .next, .carousel .prev { display: block; } .carousel .active { left: 0; } .carousel .next, .carousel .prev { position: absolute; top: 0; width: 100%; } .carousel .next { left: 100%; } .carousel .prev { left: -100%; } .carousel .next.left, .carousel .prev.right { left: 0; } .carousel .active.left { left: -100%; } .carousel .active.right { left: 100%; } .carousel-control { position: absolute; top: 40%; left: 15px; width: 40px; height: 40px; margin-top: -20px; font-size: 60px; font-weight: 100; line-height: 30px; color: #ffffff; text-align: center; background: #020202; border: 3px solid #ffffff; -webkit-border-radius: 23px; -moz-border-radius: 23px; border-radius: 23px; opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.right { left: auto; right: 15px; } .carousel-control:hover { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px; background: #282828; background: rgba(0, 0, 0, 0.75); } .carousel-caption h4, .carousel-caption p { color: #ffffff; line-height: 20px; } .carousel-caption h4 { margin: 0 0 5px; } .carousel-caption p { margin-bottom: 0; } .hero-unit { padding: 60px; margin-bottom: 30px; background-color: #131517; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .hero-unit h1 { margin-bottom: 0; font-size: 60px; line-height: 1; color: inherit; letter-spacing: -1px; } .hero-unit p { font-size: 18px; font-weight: 200; line-height: 30px; color: inherit; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; } label, input, button, select, textarea, .navbar .search-query:-moz-placeholder, .navbar .search-query::-webkit-input-placeholder { font-family: 'Droid Sans', sans-serif; color: #999999; } code, pre { background-color: #eeeeee; } blockquote { border-left: 5px solid #33b5e5; } blockquote.pull-right { border-right: 5px solid #33b5e5; } html { min-height: 100%; } body { min-height: 100%; background-color: #121417; background-image: -moz-linear-gradient(top, #060606, #252a30); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#060606), to(#252a30)); background-image: -webkit-linear-gradient(top, #060606, #252a30); background-image: -o-linear-gradient(top, #060606, #252a30); background-image: linear-gradient(to bottom, #060606, #252a30); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff060606', endColorstr='#ff252a30', GradientType=0); } .page-header { border-bottom: 2px solid #33b5e5; } .navbar { font-size: 16px; } .navbar .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; border-bottom: 2px solid #33b5e5; } .navbar .brand { padding: 12px 20px 11px; color: #eeeeee; font-weight: normal; text-shadow: none; } .navbar li { line-height: 19px; } .navbar .nav > li > a { padding: 13px 10px 8px; border-bottom: 3px solid transparent; border-left: 1px solid rgba(255, 255, 255, 0.1); } .navbar .nav > li > a:hover { border-bottom: 3px solid #33b5e5; } .navbar .nav > .active > a { border-bottom: 3px solid #33b5e5; } .navbar .nav .active > a, .navbar .nav .active > a:hover, .navbar .nav .active > a:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .nav > li > .dropdown-menu::before, .navbar .nav > li > .dropdown-menu::after { display: none; } .navbar .dropdown-menu li > a:hover, .navbar .dropdown-menu li > a:focus, .navbar .dropdown-submenu:hover > a { background-image: none; } .navbar .navbar-text { margin-left: 15px; margin-right: 15px; line-height: 43px; } .navbar .search-query, .navbar .search-query:focus, .navbar .search-query.focused { color: #adafae; text-shadow: none; background-color: #222; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .navbar .search-query:-moz-placeholder, .navbar .search-query:focus:-moz-placeholder, .navbar .search-query.focused:-moz-placeholder { color: #999999; } .navbar .search-query:-ms-input-placeholder, .navbar .search-query:focus:-ms-input-placeholder, .navbar .search-query.focused:-ms-input-placeholder { color: #999999; } .navbar .search-query::-webkit-input-placeholder, .navbar .search-query:focus::-webkit-input-placeholder, .navbar .search-query.focused::-webkit-input-placeholder { color: #999999; } .navbar-inverse .navbar-inner { border: none; border-bottom: 3px solid #000000; } .navbar-inverse .brand:hover { border-bottom: none; background-color: #000000; } .navbar-inverse .nav li > a:hover { border-bottom-color: transparent; } .navbar-inverse .nav .active > a { border-bottom-color: transparent; } @media (max-width: 979px) { .navbar .nav-collapse .nav li > a { border: none; color: #eeeeee; font-weight: normal; text-shadow: none; } .navbar .nav-collapse .nav li > a:hover { border: none; background-color: #33b5e5; } .navbar .nav-collapse .nav .active > a { border: none; background-color: #33b5e5; } .navbar .nav-collapse .dropdown-menu a:hover { background-color: #33b5e5; } .navbar .nav-collapse .navbar-form, .navbar .nav-collapse .navbar-search { border-top: none; border-bottom: none; } .navbar .nav-collapse .nav-header { color: rgba(128, 128, 128, 0.6); } .navbar-inverse .nav-collapse .nav li > a:hover { background-color: #111; } .navbar-inverse .nav-collapse .nav .active > a { background-color: #111; } .navbar-inverse .nav-collapse .nav li.dropdown.open > .dropdown-toggle, .navbar-inverse .nav-collapse .nav li.dropdown.active > .dropdown-toggle, .navbar-inverse .nav-collapse .nav li.dropdown.open.active > .dropdown-toggle { background-color: #111; } } div.subnav { position: static; background-color: #020202; background-image: none; border: 0; } div.subnav.subnav-fixed { position: relative; left: -1px; top: auto; } div.subnav .nav > li > a, div.subnav .nav .active a { background-color: #020202; border-left: 1px solid #222; border-right: 0; color: #eeeeee; } div.subnav .nav li.nav-header { text-shadow: none; } div.subnav .nav > li > a:hover, div.subnav .nav > li.active > a:hover, div.subnav .nav > li:first-child > a:hover { background: transparent; border-bottom: 2px solid #33b5e5; border-left: 1px solid #222; color: #ffffff; } div.subnav .nav .open .dropdown-toggle { border: 0; border-left: 1px solid #222; border-bottom: 2px solid #33b5e5; background-color: #060606; } div.subnav .nav .open .dropdown-menu { background-color: #020202; border-left: solid 1px rgba(255, 255, 255, 0.1); } div.subnav .nav .open .dropdown-menu li > a:hover { border-bottom: 0; background: #33b5e5; } .nav-tabs { border-bottom: 1px solid #222; } .nav-tabs li > a:hover, .nav-tabs li.active > a, .nav-tabs li.active > a:hover { border: 1px solid #222; background-color: #33b5e5; color: #ffffff; } .nav-tabs .open .dropdown-toggle { background-color: #060606 !important; border: 1px solid #222; } .nav-tabs .dropdown-menu li > a:hover { border: none; } .nav-pills li > a:hover { background-color: #33b5e5; color: #ffffff; } .nav-pills .open .dropdown-toggle { background-color: #060606; } .nav-pills .dropdown-menu li > a:hover { border: none; } .nav-list li > a { text-shadow: none; } .nav-list li > a:hover { background-color: #33b5e5; color: #ffffff; } .nav-list .nav-header { text-shadow: none; } .nav-list .divider { background-color: transparent; border-bottom: 1px solid #222; } .nav-stacked li > a { border: 1px solid #222 !important; } .nav-stacked li > a:hover, .nav-stacked li.active > a { background-color: #33b5e5; color: #ffffff; } .tabbable .nav-tabs, .tabbable .nav-tabs li.active > a { border-color: #222; } .breadcrumb { background-color: transparent; background-image: none; border-width: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; font-size: 14px; } .breadcrumb li > a { color: #33b5e5; text-shadow: none; } .breadcrumb li.active { text-shadow: none; } .pagination ul { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .pagination a { border: 0; font-size: 14px; } .pagination a:hover, .pagination .active a { background-color: #33b5e5; color: #ffffff; } .pagination .disabled span, .pagination .disabled a, .pagination .disabled a:hover { background-color: rgba(0, 0, 0, 0.2); } .pager a { background-color: #060606; border: none; } .pager a:hover { background-color: #33b5e5; } .pager .disabled a, .pager .disabled a:hover { background-color: #060606; } .btn { -webkit-box-shadow: 1px 1px 2px #111111; -moz-box-shadow: 1px 1px 2px #111111; box-shadow: 1px 1px 2px #111111; color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5c5c5c; background-image: -moz-linear-gradient(top, #666666, #4d4d4d); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#666666), to(#4d4d4d)); background-image: -webkit-linear-gradient(top, #666666, #4d4d4d); background-image: -o-linear-gradient(top, #666666, #4d4d4d); background-image: linear-gradient(to bottom, #666666, #4d4d4d); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff666666', endColorstr='#ff4d4d4d', GradientType=0); border-color: #4d4d4d #4d4d4d #262626; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #4d4d4d; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); color: #ffffff; text-shadow: none; } .btn:hover, .btn:active, .btn.active, .btn.disabled, .btn[disabled] { color: #ffffff; background-color: #4d4d4d; *background-color: #404040; } .btn:active, .btn.active { background-color: #333333 \9; } .btn:hover { text-shadow: none; color: #ffffff; } .btn-primary { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #008ab8; background-image: -moz-linear-gradient(top, #0099cc, #007399); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0099cc), to(#007399)); background-image: -webkit-linear-gradient(top, #0099cc, #007399); background-image: -o-linear-gradient(top, #0099cc, #007399); background-image: linear-gradient(to bottom, #0099cc, #007399); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0099cc', endColorstr='#ff007399', GradientType=0); border-color: #007399 #007399 #00394d; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #007399; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { color: #ffffff; background-color: #007399; *background-color: #006080; } .btn-primary:active, .btn-primary.active { background-color: #004d66 \9; } .btn-warning { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #ff961f; background-image: -moz-linear-gradient(top, #ffa033, #ff8800); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffa033), to(#ff8800)); background-image: -webkit-linear-gradient(top, #ffa033, #ff8800); background-image: -o-linear-gradient(top, #ffa033, #ff8800); background-image: linear-gradient(to bottom, #ffa033, #ff8800); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffa033', endColorstr='#ffff8800', GradientType=0); border-color: #ff8800 #ff8800 #b35f00; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #ff8800; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { color: #ffffff; background-color: #ff8800; *background-color: #e67a00; } .btn-warning:active, .btn-warning.active { background-color: #cc6d00 \9; } .btn-danger { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #eb0000; background-image: -moz-linear-gradient(top, #ff0000, #cc0000); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ff0000), to(#cc0000)); background-image: -webkit-linear-gradient(top, #ff0000, #cc0000); background-image: -o-linear-gradient(top, #ff0000, #cc0000); background-image: linear-gradient(to bottom, #ff0000, #cc0000); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff0000', endColorstr='#ffcc0000', GradientType=0); border-color: #cc0000 #cc0000 #800000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #cc0000; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { color: #ffffff; background-color: #cc0000; *background-color: #b30000; } .btn-danger:active, .btn-danger.active { background-color: #990000 \9; } .btn-success { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #7ab800; background-image: -moz-linear-gradient(top, #88cc00, #669900); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#88cc00), to(#669900)); background-image: -webkit-linear-gradient(top, #88cc00, #669900); background-image: -o-linear-gradient(top, #88cc00, #669900); background-image: linear-gradient(to bottom, #88cc00, #669900); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff88cc00', endColorstr='#ff669900', GradientType=0); border-color: #669900 #669900 #334d00; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #669900; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-success:hover, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { color: #ffffff; background-color: #669900; *background-color: #558000; } .btn-success:active, .btn-success.active { background-color: #446600 \9; } .btn-info { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #292929; background-image: -moz-linear-gradient(top, #333333, #191919); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#191919)); background-image: -webkit-linear-gradient(top, #333333, #191919); background-image: -o-linear-gradient(top, #333333, #191919); background-image: linear-gradient(to bottom, #333333, #191919); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff333333', endColorstr='#ff191919', GradientType=0); border-color: #191919 #191919 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #191919; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { color: #ffffff; background-color: #191919; *background-color: #0d0d0d; } .btn-info:active, .btn-info.active { background-color: #000000 \9; } .btn-inverse { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #9f3fcf; background-image: -moz-linear-gradient(top, #a347d1, #9933cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#a347d1), to(#9933cc)); background-image: -webkit-linear-gradient(top, #a347d1, #9933cc); background-image: -o-linear-gradient(top, #a347d1, #9933cc); background-image: linear-gradient(to bottom, #a347d1, #9933cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffa347d1', endColorstr='#ff9933cc', GradientType=0); border-color: #9933cc #9933cc #6b248f; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #9933cc; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { color: #ffffff; background-color: #9933cc; *background-color: #8a2eb8; } .btn-inverse:active, .btn-inverse.active { background-color: #7a29a3 \9; } .btn .caret { border-top: 4px solid black; opacity: 0.3; } .btn-group > .dropdown-menu > li > a:hover { border-bottom: 0; } .btn.disabled, .btn[disabled] { background-color: #adafae; } input, textarea, select { border-width: 2px; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } legend, label { color: #999999; border-bottom: 0px solid #222; } input, textarea, select, .uneditable-input { color: #282828; } input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .uneditable-input { background-color: #555; border-color: #444; } input:focus, textarea:focus, input.focused, textarea.focused { border-color: #52a8ec; outline: 0; outline: thin dotted \9; /* IE6-9 */ } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus, select:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .form-actions { border-top: 1px solid #222; } .table { -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .table tbody tr.success td { background-color: #669900; color: #ffffff; } .table tbody tr.error td { background-color: #cc0000; color: #ffffff; } .table tbody tr.info td { background-color: #33b5e5; color: #ffffff; } .dropdown-menu { background-color: #191A1A; -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); } .dropdown-menu li > a:hover { background-color: #33b5e5; } .alert, .alert .alert-heading, .alert-success, .alert-success .alert-heading, .alert-danger, .alert-error, .alert-danger .alert-heading, .alert-error .alert-heading, .alert-info, .alert-info .alert-heading { color: #eeeeee; text-shadow: none; border: none; } .label { color: #eeeeee; } .label, .alert { background-color: #666666; } .label:hover { background-color: #4d4d4d; } .label-important, .alert-danger, .alert-error { background-color: #cc0000; } .label-important:hover { background-color: #990000; } .label-warning { background-color: #cc6d00; } .label-warning:hover { background-color: #995200; } .label-success, .alert-success { background-color: #5c8a00; } .label-success:hover { background-color: #3a5700; } .label-info, .alert-info { background-color: #007399; } .label-info:hover { background-color: #004d66; } .well, .hero-unit { -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .well, .hero-unit { border-top: solid 1px #353535; -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); } .thumbnail { border-color: #222; } .progress { background-color: #060606; background-image: none; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .modal { -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; border-top: solid 1px #353535; background-color: #282828; } .modal-header { border-bottom: 1px solid #222; } .modal-footer { background-color: #282828; border-top: 1px solid #222; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .footer { border-top: 1px solid #222; } @media (max-width: 768px) { div.subnav .nav > li + li > a, div.subnav .nav > li:first-child > a { border-top: 1px solid #222; border-left: 1px solid #222; } .subnav .nav > li + li > a:hover, .subnav .nav > li:first-child > a:hover { border-bottom: 0; background-color: #33b5e5; } } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; }
MMore/cdnjs
ajax/libs/bootswatch/2.1.0/cyborg/bootstrap.css
CSS
mit
133,056
({"dateFormat-medium":"d MMM y G","dateFormatItem-MMMEd":"E d MMM","dateFormatItem-MMdd":"dd/MM","dateFormatItem-MEd":"E, d/M","dateFormatItem-yMEd":"EEE, d/M/yyyy","dateFormatItem-yyyyMMM":"MMM y G","eraNarrow":["AH"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-yyMMM":"MMM y G","dateFormatItem-Md":"d/M","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"months-standAlone-wide":["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"],"eraNames":["AH"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateFormatItem-yyyyMEd":"EEE, d/M/y G","dateFormatItem-yyyyMMMM":"MMMM y G","dateFormatItem-MMMMd":"d MMMM","months-standAlone-abbr":["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],"dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yyyyMM":"MM/y G","dateFormat-long":"d MMMM y G","dateFormat-short":"dd/MM/y G","dateFormatItem-yMMMEd":"EEE, MMM d, y","months-format-wide":["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"],"dateFormatItem-yM":"M/y","months-format-abbr":["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],"eraAbbr":["AH"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dateFormatItem-yQ":"Q y","dateFormatItem-yMMM":"MMM y","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-yyyyMd":"d/M/y G","dateFormat-full":"EEEE, d MMMM y G","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-yyyyMMMEd":"EEE, MMM d, y G","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-MMM":"LLL","timeFormat-full":"h:mm:ss a zzzz","dateFormatItem-yyyy":"y G","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","dateFormatItem-Hm":"HH:mm","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-ms":"mm:ss","dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormatItem-M":"L","dateFormatItem-yyyyQQQ":"QQQ y G","dateFormatItem-hm":"h:mm a","dateFormatItem-yyyyM":"M/y G","dateFormatItem-yyyyQ":"Q y G","dateFormatItem-d":"d","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dateTimeFormats-appendItem-Era":"{0} {1}","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","dateFormatItem-H":"HH","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"days-standAlone-wide":["1","2","3","4","5","6","7"],"quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"days-standAlone-abbr":["1","2","3","4","5","6","7"],"quarters-format-narrow":["1","2","3","4"],"dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","dateTimeFormat-full":"{1} {0}","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-narrow":["1","2","3","4","5","6","7"],"dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateTimeFormats-appendItem-Timezone":"{0} {1}","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}"})
emmy41124/cdnjs
ajax/libs/dojo/1.6.2/cldr/nls/en-gb/islamic.js
JavaScript
mit
3,697
({"quarters-standAlone-wide":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"quarters-format-abbr":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dayPeriods-standAlone-wide-am":"a.m.","dateFormat-medium":"d 'de' MMM 'de' yyyy","quarters-standAlone-abbr":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dateFormatItem-Hm":"HH:mm","dayPeriods-standAlone-abbr-pm":"p.m.","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-hm":"h:mm a","months-standAlone-wide":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"dayPeriods-standAlone-abbr-am":"a.m.","dayPeriods-format-wide-pm":"Depois do meio-dia","months-standAlone-abbr":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"dateFormatItem-yQQQ":"QQQ 'de' y","dayPeriods-format-wide-am":"Antes do meio-dia","dateFormatItem-Hms":"HH:mm:ss","dayPeriods-format-abbr-pm":"p.m.","dateFormatItem-yyQ":"QQQ 'de' yy","dateFormatItem-ms":"mm:ss","dayPeriods-format-abbr-am":"a.m.","months-format-wide":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"days-standAlone-wide":["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],"dateFormatItem-HHmm":"HH:mm","months-format-abbr":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"days-standAlone-abbr":["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],"days-format-wide":["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],"dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQ":"QQQ 'de' yyyy","quarters-format-wide":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dayPeriods-standAlone-wide-pm":"p.m.","days-format-abbr":["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-weekday":"Dia da semana","dateFormatItem-yMEd":"EEE, dd/MM/yyyy","dateFormatItem-MMMEd":"EEE, d 'de' MMM","eraNarrow":["a.C.","d.C."],"dayPeriods-format-wide-morning":"manhã","dateFormat-long":"d 'de' MMMM 'de' y","dateFormatItem-EEEd":"EEE, d","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","dateFormatItem-Md":"d/M","dayPeriods-format-wide-noon":"meio-dia","field-era":"Era","dateFormatItem-yM":"MM/yyyy","timeFormat-short":"HH:mm","timeFormat-long":"HH'h'mm'min'ss's' z","field-year":"Ano","dateFormatItem-yMMM":"MMM 'de' y","field-hour":"Hora","dateFormatItem-MMdd":"dd/MM","timeFormat-full":"HH'h'mm'min'ss's' zzzz","field-day-relative+0":"Hoje","field-day-relative+1":"Amanhã","field-day-relative+2":"Depois de amanhã","field-day-relative+3":"Daqui a três dias","dateFormatItem-M":"L","dateFormatItem-yyyyMMM":"MMM 'de' y","dateFormatItem-yyMMMEEEd":"EEE, d 'de' MMM 'de' yy","dateFormatItem-yyMMM":"MMM 'de' yy","timeFormat-medium":"HH:mm:ss","eraAbbr":["a.C.","d.C."],"field-minute":"Minuto","field-dayperiod":"Período do dia","dayPeriods-format-wide-night":"noite","dateFormatItem-yyMMMd":"d 'de' MMM 'de' yy","dateFormatItem-d":"d","field-day-relative+-1":"Ontem","field-day-relative+-2":"Anteontem","field-day-relative+-3":"Há três dias","dateFormatItem-MMMd":"d 'de' MMM","dateFormatItem-MEd":"EEE, dd/MM","field-day":"Dia","field-zone":"Fuso","dateFormatItem-yyyyMM":"MM/yyyy","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-yyMM":"MM/yy","eraNames":["Antes de Cristo","Ano do Senhor"],"days-format-narrow":["D","S","T","Q","Q","S","S"],"field-month":"Mês","days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"dateFormatItem-MMM":"LLL","dateFormat-short":"dd/MM/yy","dayPeriods-format-wide-afternoon":"tarde","field-second":"Segundo","dateFormatItem-yMMMEd":"EEE, d 'de' MMM 'de' y","field-week":"Semana","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateTimeFormat-medium":"{1} {0}","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dateTimeFormats-appendItem-Era":"{0} {1}","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","dateFormatItem-H":"HH","quarters-format-narrow":["1","2","3","4"],"dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","dateTimeFormat-full":"{1} {0}","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateTimeFormats-appendItem-Timezone":"{0} {1}","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}"})
iwdmb/cdnjs
ajax/libs/dojo/1.6.1/cldr/nls/pt-pt/gregorian.js
JavaScript
mit
4,879
// oj.VimeoVideo.min.js v0.0.4 | Copyright 2013 Evan Moran | ojjs.org/license (function(){function t(e,t){var n="http://player.vimeo.com/video/"+e+"?api=1&player_id="+t.player_id;for(k in t)n+="&"+k+"="+t[k];return n}var e=function(){function e(t){return new e.fn.init(t)}function t(e,t,n){if(!n.contentWindow.postMessage)return!1;var r=n.getAttribute("src").split("?")[0],e=JSON.stringify({method:e,value:t});"//"===r.substr(0,2)&&(r=window.location.protocol+r),n.contentWindow.postMessage(e,r)}function n(e){var t,n;try{t=JSON.parse(e.data),n=t.event||t.method}catch(r){}"ready"==n&&!s&&(s=!0);if(e.origin!=o)return!1;var e=t.value,u=t.data,a=""===a?null:t.player_id;return t=a?i[a][n]:i[n],n=[],t?(void 0!==e&&n.push(e),u&&n.push(u),a&&n.push(a),0<n.length?t.apply(null,n):t.call()):!1}function r(e,t,n){n?(i[n]||(i[n]={}),i[n][e]=t):i[e]=t}var i={},s=!1,o="";return e.fn=e.prototype={element:null,init:function(e){"string"==typeof e&&(e=document.getElementById(e)),this.element=e,e=this.element.getAttribute("src"),"//"===e.substr(0,2)&&(e=window.location.protocol+e);for(var e=e.split("/"),t="",n=0,r=e.length;n<r;n++){if(!(3>n))break;t+=e[n],2>n&&(t+="/")}return o=t,this},api:function(e,n){if(!this.element||!e)return!1;var i=this.element,s=""!==i.id?i.id:null,o=!n||!n.constructor||!n.call||!n.apply?n:null,u=n&&n.constructor&&n.call&&n.apply?n:null;return u&&r(e,u,s),t(e,o,i),this},addEvent:function(e,n){if(!this.element)return!1;var i=this.element,o=""!==i.id?i.id:null;return r(e,n,o),"ready"!=e?t("addEventListener",e,i):"ready"==e&&s&&n.call(null,o),this},removeEvent:function(e){if(!this.element)return!1;var n=this.element,r;e:{if((r=""!==n.id?n.id:null)&&i[r]){if(!i[r][e]){r=!1;break e}i[r][e]=null}else{if(!i[e]){r=!1;break e}i[e]=null}r=!0}"ready"!=e&&r&&t("removeEventListener",e,n)}},e.fn.init.prototype=e.fn,window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent("onmessage",n),window.Froogaloop=e}(),n=function(e,n){typeof n!="object"&&(n={});var r=e.createType("VimeoVideo",{base:e.View,constructor:function(){var t=this,n=e.unionArguments(arguments),i=n.options,s=n.args;s.length>0&&(this.video=s[0]);var o=["width","height","video","showTitle","showByline","showPortrait","color","autoplay","loop"];for(var u=0;u<o.length;u++){var a=o[u];i[a]!=null&&(this[a]=e.argumentShift(i,a))}this.el=e(function(){e.iframe({src:t.src,width:t.width,height:t.height,frameborder:0,webkitAllowFullScreen:1,mozallowfullscreen:1,allowFullScreen:1})}),r.base.constructor.apply(this,[i])},properties:{width:{get:function(){return this._width||300},set:function(e){this._width=e,this.isConstructed&&this.$el.attr("width",e)}},height:{get:function(){return this._height||178},set:function(e){this._height=e,this.isConstructed&&this.$el.attr("height",e)}},video:24715531,showTitle:!1,showByline:!1,showPortrait:!1,color:{get:function(){return this._color||"00adef"},set:function(e){e.length>0&&e[0]=="#"&&(e=e.slice(1)),this._color=e}},autoplay:!1,loop:!1,src:{get:function(){return t(this.video,this.videoOptions)}},videoOptions:{get:function(){return{title:this.showTitle?1:0,byline:this.showByline?1:0,portrait:this.showPortrait?1:0,color:this.color,autoplay:this.autoplay?1:0,loop:this.loop?1:0,player_id:this.id?1:0}}}},methods:{play:function(){},stop:function(){},rewind:function(){},onPause:function(e){console.log("paused",e)},onFinish:function(e){console.log("finish",e)},onPlayProgress:function(e,t){console.log("playProgress: ",e,t)}}});return{VimeoVideo:r}};typeof oj!="undefined"&&oj.use(n),typeof module!="undefined"&&typeof module.exports!="undefined"&&(module.exports=n)})(this)
aheinze/cdnjs
ajax/libs/oj.VimeoVideo/0.0.4/oj.VimeoVideo.min.js
JavaScript
mit
3,627
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a. m.", "p. m." ], "DAY": [ "domingo", "lunes", "martes", "mi\u00e9rcoles", "jueves", "viernes", "s\u00e1bado" ], "ERANAMES": [ "antes de Cristo", "despu\u00e9s de Cristo" ], "ERAS": [ "a. C.", "d. C." ], "FIRSTDAYOFWEEK": 6, "MONTH": [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], "SHORTDAY": [ "dom.", "lun.", "mar.", "mi\u00e9.", "jue.", "vie.", "s\u00e1b." ], "SHORTMONTH": [ "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "MM/dd/y h:mm:ss a", "mediumDate": "MM/dd/y", "mediumTime": "h:mm:ss a", "short": "MM/dd/yy h:mm a", "shortDate": "MM/dd/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "B/.", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "es-pa", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
joeyparrish/cdnjs
ajax/libs/angular-i18n/1.4.5/angular-locale_es-pa.js
JavaScript
mit
2,155
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u09aa\u09c2\u09f0\u09cd\u09ac\u09be\u09b9\u09cd\u09a3", "\u0985\u09aa\u09f0\u09be\u09b9\u09cd\u09a3" ], "DAY": [ "\u09a6\u09c7\u0993\u09ac\u09be\u09f0", "\u09b8\u09cb\u09ae\u09ac\u09be\u09f0", "\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09f0", "\u09ac\u09c1\u09a7\u09ac\u09be\u09f0", "\u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09f0", "\u09b6\u09c1\u0995\u09cd\u09f0\u09ac\u09be\u09f0", "\u09b6\u09a8\u09bf\u09ac\u09be\u09f0" ], "ERANAMES": [ "BCE", "CE" ], "ERAS": [ "BCE", "CE" ], "FIRSTDAYOFWEEK": 6, "MONTH": [ "\u099c\u09be\u09a8\u09c1\u09f1\u09be\u09f0\u09c0", "\u09ab\u09c7\u09ac\u09cd\u09f0\u09c1\u09f1\u09be\u09f0\u09c0", "\u09ae\u09be\u09f0\u09cd\u099a", "\u098f\u09aa\u09cd\u09f0\u09bf\u09b2", "\u09ae\u09c7", "\u099c\u09c1\u09a8", "\u099c\u09c1\u09b2\u09be\u0987", "\u0986\u0997\u09b7\u09cd\u099f", "\u099b\u09c7\u09aa\u09cd\u09a4\u09c7\u09ae\u09cd\u09ac\u09f0", "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09f0", "\u09a8\u09f1\u09c7\u09ae\u09cd\u09ac\u09f0", "\u09a1\u09bf\u099a\u09c7\u09ae\u09cd\u09ac\u09f0" ], "SHORTDAY": [ "\u09f0\u09ac\u09bf", "\u09b8\u09cb\u09ae", "\u09ae\u0999\u09cd\u0997\u09b2", "\u09ac\u09c1\u09a7", "\u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf", "\u09b6\u09c1\u0995\u09cd\u09f0", "\u09b6\u09a8\u09bf" ], "SHORTMONTH": [ "\u099c\u09be\u09a8\u09c1", "\u09ab\u09c7\u09ac\u09cd\u09f0\u09c1", "\u09ae\u09be\u09f0\u09cd\u099a", "\u098f\u09aa\u09cd\u09f0\u09bf\u09b2", "\u09ae\u09c7", "\u099c\u09c1\u09a8", "\u099c\u09c1\u09b2\u09be\u0987", "\u0986\u0997", "\u09b8\u09c7\u09aa\u09cd\u099f", "\u0985\u0995\u09cd\u099f\u09cb", "\u09a8\u09ad\u09c7", "\u09a1\u09bf\u09b8\u09c7" ], "WEEKENDRANGE": [ 6, 6 ], "fullDate": "EEEE, d MMMM, y", "longDate": "d MMMM, y", "medium": "dd-MM-y h.mm.ss a", "mediumDate": "dd-MM-y", "mediumTime": "h.mm.ss a", "short": "d-M-y h.mm. a", "shortDate": "d-M-y", "shortTime": "h.mm. a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20b9", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 2, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 2, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4\u00a0", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "as", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
drewfreyling/cdnjs
ajax/libs/angular-i18n/1.5.0-beta.2/angular-locale_as.js
JavaScript
mit
3,611
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u014bdi", "\u0263etr\u0254" ], "DAY": [ "k\u0254si\u0256a", "dzo\u0256a", "bla\u0256a", "ku\u0256a", "yawo\u0256a", "fi\u0256a", "memle\u0256a" ], "ERANAMES": [ "Hafi Yesu Va Do \u014bg\u0254", "Yesu \u014a\u0254li" ], "ERAS": [ "hY", "Y\u014b" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "dzove", "dzodze", "tedoxe", "af\u0254f\u0129e", "dama", "masa", "siaml\u0254m", "deasiamime", "any\u0254ny\u0254", "kele", "ade\u025bmekp\u0254xe", "dzome" ], "SHORTDAY": [ "k\u0254s", "dzo", "bla", "ku\u0256", "yaw", "fi\u0256", "mem" ], "SHORTMONTH": [ "dzv", "dzd", "ted", "af\u0254", "dam", "mas", "sia", "dea", "any", "kel", "ade", "dzm" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, MMMM d 'lia' y", "longDate": "MMMM d 'lia' y", "medium": "MMM d 'lia', y a 'ga' h:mm:ss", "mediumDate": "MMM d 'lia', y", "mediumTime": "a 'ga' h:mm:ss", "short": "M/d/yy a 'ga' h:mm", "shortDate": "M/d/yy", "shortTime": "a 'ga' h:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CFA", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "ee-tg", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
amoyeh/cdnjs
ajax/libs/angular.js/1.5.0-beta.1/i18n/angular-locale_ee-tg.js
JavaScript
mit
2,639
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u4e0a\u5348", "\u4e0b\u5348" ], "DAY": [ "\u661f\u671f\u65e5", "\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d" ], "ERANAMES": [ "\u516c\u5143\u524d", "\u516c\u5143" ], "ERAS": [ "BC", "AD" ], "FIRSTDAYOFWEEK": 6, "MONTH": [ "1\u6708", "2\u6708", "3\u6708", "4\u6708", "5\u6708", "6\u6708", "7\u6708", "8\u6708", "9\u6708", "10\u6708", "11\u6708", "12\u6708" ], "SHORTDAY": [ "\u9031\u65e5", "\u9031\u4e00", "\u9031\u4e8c", "\u9031\u4e09", "\u9031\u56db", "\u9031\u4e94", "\u9031\u516d" ], "SHORTMONTH": [ "1\u6708", "2\u6708", "3\u6708", "4\u6708", "5\u6708", "6\u6708", "7\u6708", "8\u6708", "9\u6708", "10\u6708", "11\u6708", "12\u6708" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "y\u5e74M\u6708d\u65e5EEEE", "longDate": "y\u5e74M\u6708d\u65e5", "medium": "y\u5e74M\u6708d\u65e5 ah:mm:ss", "mediumDate": "y\u5e74M\u6708d\u65e5", "mediumTime": "ah:mm:ss", "short": "d/M/yy ah:mm", "shortDate": "d/M/yy", "shortTime": "ah:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "MOP", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "zh-hant-mo", "pluralCat": function(n, opt_precision) { return PLURAL_CATEGORY.OTHER;} }); }]);
wil93/cdnjs
ajax/libs/angular-i18n/1.4.6/angular-locale_zh-hant-mo.js
JavaScript
mit
2,300
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "ERANAMES": [ "Before Christ", "Anno Domini" ], "ERAS": [ "BC", "AD" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "SHORTDAY": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "dd/MM/y h:mm a", "shortDate": "dd/MM/y", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "VUV", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "en-vu", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
samthor/cdnjs
ajax/libs/angular.js/1.5.0-beta.1/i18n/angular-locale_en-vu.js
JavaScript
mit
2,464
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "prije podne", "popodne" ], "DAY": [ "nedjelja", "ponedjeljak", "utorak", "srijeda", "\u010detvrtak", "petak", "subota" ], "ERANAMES": [ "Prije nove ere", "Nove ere" ], "ERAS": [ "p. n. e.", "n. e." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "januar", "februar", "mart", "april", "maj", "juni", "juli", "august", "septembar", "oktobar", "novembar", "decembar" ], "SHORTDAY": [ "ned", "pon", "uto", "sri", "\u010det", "pet", "sub" ], "SHORTMONTH": [ "jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, dd. MMMM y.", "longDate": "dd. MMMM y.", "medium": "dd. MMM. y. HH:mm:ss", "mediumDate": "dd. MMM. y.", "mediumTime": "HH:mm:ss", "short": "dd.MM.yy. HH:mm", "shortDate": "dd.MM.yy.", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "KM", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "bs-latn", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} }); }]);
honestree/cdnjs
ajax/libs/angular-i18n/1.5.0-beta.2/angular-locale_bs-latn.js
JavaScript
mit
2,772
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "\u0627\u062a\u0648\u0627\u0631", "\u067e\u06cc\u0631", "\u0645\u0646\u06af\u0644", "\u0628\u064f\u062f\u06be", "\u062c\u0645\u0639\u0631\u0627\u062a", "\u062c\u0645\u0639\u06c1", "\u06c1\u0641\u062a\u06c1" ], "ERANAMES": [ "\u0627\u064a\u0633\u0627\u067e\u0648\u0631\u0648", "\u0633\u06ba" ], "ERAS": [ "BCE", "CE" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "\u062c\u0646\u0648\u0631\u06cc", "\u0641\u0631\u0648\u0631\u06cc", "\u0645\u0627\u0631\u0686", "\u0627\u067e\u0631\u06cc\u0644", "\u0645\u0626", "\u062c\u0648\u0646", "\u062c\u0648\u0644\u0627\u0626\u06cc", "\u0627\u06af\u0633\u062a", "\u0633\u062a\u0645\u0628\u0631", "\u0627\u06a9\u062a\u0648\u0628\u0631", "\u0646\u0648\u0645\u0628\u0631", "\u062f\u0633\u0645\u0628\u0631" ], "SHORTDAY": [ "\u0627\u062a\u0648\u0627\u0631", "\u067e\u06cc\u0631", "\u0645\u0646\u06af\u0644", "\u0628\u064f\u062f\u06be", "\u062c\u0645\u0639\u0631\u0627\u062a", "\u062c\u0645\u0639\u06c1", "\u06c1\u0641\u062a\u06c1" ], "SHORTMONTH": [ "\u062c\u0646\u0648\u0631\u06cc", "\u0641\u0631\u0648\u0631\u06cc", "\u0645\u0627\u0631\u0686", "\u0627\u067e\u0631\u06cc\u0644", "\u0645\u0626", "\u062c\u0648\u0646", "\u062c\u0648\u0644\u0627\u0626\u06cc", "\u0627\u06af\u0633\u062a", "\u0633\u062a\u0645\u0628\u0631", "\u0627\u06a9\u062a\u0648\u0628\u0631", "\u0646\u0648\u0645\u0628\u0631", "\u062f\u0633\u0645\u0628\u0631" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, dd MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "dd/MM/y h:mm a", "shortDate": "dd/MM/y", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Rs", "DECIMAL_SEP": "\u066b", "GROUP_SEP": "\u066c", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4\u00a0", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "pa-arab-pk", "pluralCat": function(n, opt_precision) { if (n >= 0 && n <= 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
wil93/cdnjs
ajax/libs/angular.js/1.4.8/i18n/angular-locale_pa-arab-pk.js
JavaScript
mit
2,982
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "am", "pm" ], "DAY": [ "\u0b30\u0b2c\u0b3f\u0b2c\u0b3e\u0b30", "\u0b38\u0b4b\u0b2e\u0b2c\u0b3e\u0b30", "\u0b2e\u0b19\u0b4d\u0b17\u0b33\u0b2c\u0b3e\u0b30", "\u0b2c\u0b41\u0b27\u0b2c\u0b3e\u0b30", "\u0b17\u0b41\u0b30\u0b41\u0b2c\u0b3e\u0b30", "\u0b36\u0b41\u0b15\u0b4d\u0b30\u0b2c\u0b3e\u0b30", "\u0b36\u0b28\u0b3f\u0b2c\u0b3e\u0b30" ], "ERANAMES": [ "BCE", "CE" ], "ERAS": [ "BCE", "CE" ], "FIRSTDAYOFWEEK": 6, "MONTH": [ "\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40", "\u0b2b\u0b47\u0b2c\u0b43\u0b06\u0b30\u0b40", "\u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a", "\u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32", "\u0b2e\u0b07", "\u0b1c\u0b41\u0b28", "\u0b1c\u0b41\u0b32\u0b3e\u0b07", "\u0b05\u0b17\u0b37\u0b4d\u0b1f", "\u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30", "\u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30", "\u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30", "\u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30" ], "SHORTDAY": [ "\u0b30\u0b2c\u0b3f", "\u0b38\u0b4b\u0b2e", "\u0b2e\u0b19\u0b4d\u0b17\u0b33", "\u0b2c\u0b41\u0b27", "\u0b17\u0b41\u0b30\u0b41", "\u0b36\u0b41\u0b15\u0b4d\u0b30", "\u0b36\u0b28\u0b3f" ], "SHORTMONTH": [ "\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40", "\u0b2b\u0b47\u0b2c\u0b43\u0b06\u0b30\u0b40", "\u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a", "\u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32", "\u0b2e\u0b07", "\u0b1c\u0b41\u0b28", "\u0b1c\u0b41\u0b32\u0b3e\u0b07", "\u0b05\u0b17\u0b37\u0b4d\u0b1f", "\u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30", "\u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30", "\u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30", "\u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30" ], "WEEKENDRANGE": [ 6, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "d-M-yy h:mm a", "shortDate": "d-M-yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20b9", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 2, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 2, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4\u00a0", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "or", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
amaric/angular.js
src/ngLocale/angular-locale_or.js
JavaScript
mit
3,206
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "mba\ua78cmba\ua78c", "\u014bka mb\u0254\u0301t nji" ], "DAY": [ "S\u0254\u0301ndi", "M\u0254\u0301ndi", "\u00c1pta M\u0254\u0301ndi", "W\u025b\u0301n\u025bs\u025bd\u025b", "T\u0254\u0301s\u025bd\u025b", "F\u025bl\u00e2y\u025bd\u025b", "S\u00e1sid\u025b" ], "ERANAMES": [ "ts\u025btts\u025bt m\u025b\u014bgu\ua78c mi \u025b\u0301 l\u025b\u025bn\u025b K\u025bl\u00eds\u025bt\u0254 g\u0254 \u0144\u0254\u0301", "ts\u025btts\u025bt m\u025b\u014bgu\ua78c mi \u025b\u0301 f\u00fan\u025b K\u025bl\u00eds\u025bt\u0254 t\u0254\u0301 m\u0254\u0301" ], "ERAS": [ "ts\u025btts\u025bt m\u025b\u014bgu\ua78c mi \u025b\u0301 l\u025b\u025bn\u025b K\u025bl\u00eds\u025bt\u0254 g\u0254 \u0144\u0254\u0301", "ts\u025btts\u025bt m\u025b\u014bgu\ua78c mi \u025b\u0301 f\u00fan\u025b K\u025bl\u00eds\u025bt\u0254 t\u0254\u0301 m\u0254\u0301" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Ndu\u014bmbi Sa\u014b", "P\u025bsa\u014b P\u025b\u0301p\u00e1", "P\u025bsa\u014b P\u025b\u0301t\u00e1t", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301kwa", "P\u025bsa\u014b Pataa", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301nt\u00fak\u00fa", "P\u025bsa\u014b Saamb\u00e1", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301f\u0254m", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301pf\u00fa\ua78b\u00fa", "P\u025bsa\u014b N\u025bg\u025b\u0301m", "P\u025bsa\u014b Nts\u0254\u030cpm\u0254\u0301", "P\u025bsa\u014b Nts\u0254\u030cpp\u00e1" ], "SHORTDAY": [ "S\u0254\u0301ndi", "M\u0254\u0301ndi", "\u00c1pta M\u0254\u0301ndi", "W\u025b\u0301n\u025bs\u025bd\u025b", "T\u0254\u0301s\u025bd\u025b", "F\u025bl\u00e2y\u025bd\u025b", "S\u00e1sid\u025b" ], "SHORTMONTH": [ "Ndu\u014bmbi Sa\u014b", "P\u025bsa\u014b P\u025b\u0301p\u00e1", "P\u025bsa\u014b P\u025b\u0301t\u00e1t", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301kwa", "P\u025bsa\u014b Pataa", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301nt\u00fak\u00fa", "P\u025bsa\u014b Saamb\u00e1", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301f\u0254m", "P\u025bsa\u014b P\u025b\u0301n\u025b\u0301pf\u00fa\ua78b\u00fa", "P\u025bsa\u014b N\u025bg\u025b\u0301m", "P\u025bsa\u014b Nts\u0254\u030cpm\u0254\u0301", "P\u025bsa\u014b Nts\u0254\u030cpp\u00e1" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, y MMMM dd", "longDate": "y MMMM d", "medium": "y MMM d HH:mm:ss", "mediumDate": "y MMM d", "mediumTime": "HH:mm:ss", "short": "y-MM-dd HH:mm", "shortDate": "y-MM-dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FCFA", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4\u00a0", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "jgo-cm", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
seydu/angular.js
src/ngLocale/angular-locale_jgo-cm.js
JavaScript
mit
4,110
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a.m.", "p.m." ], "DAY": [ "Jedoonee", "Jelhein", "Jemayrt", "Jercean", "Jerdein", "Jeheiney", "Jesarn" ], "ERANAMES": [ "RC", "AD" ], "ERAS": [ "RC", "AD" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Jerrey-geuree", "Toshiaght-arree", "Mayrnt", "Averil", "Boaldyn", "Mean-souree", "Jerrey-souree", "Luanistyn", "Mean-fouyir", "Jerrey-fouyir", "Mee Houney", "Mee ny Nollick" ], "SHORTDAY": [ "Jed", "Jel", "Jem", "Jerc", "Jerd", "Jeh", "Jes" ], "SHORTMONTH": [ "J-guer", "T-arree", "Mayrnt", "Avrril", "Boaldyn", "M-souree", "J-souree", "Luanistyn", "M-fouyir", "J-fouyir", "M.Houney", "M.Nollick" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE dd MMMM y", "longDate": "dd MMMM y", "medium": "MMM dd, y HH:mm:ss", "mediumDate": "MMM dd, y", "mediumTime": "HH:mm:ss", "short": "dd/MM/yy HH:mm", "shortDate": "dd/MM/yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u00a3", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "gv", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
ColinEberhardt/cdnjs
ajax/libs/angular.js/1.4.5/i18n/angular-locale_gv.js
JavaScript
mit
2,561
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "m", "f" ], "DAY": [ "DiD\u00f2mhnaich", "DiLuain", "DiM\u00e0irt", "DiCiadain", "DiarDaoin", "DihAoine", "DiSathairne" ], "ERANAMES": [ "Ro Chr\u00ecosta", "An d\u00e8idh Chr\u00ecosta" ], "ERAS": [ "RC", "AD" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "dhen Fhaoilleach", "dhen Ghearran", "dhen Mh\u00e0rt", "dhen Ghiblean", "dhen Ch\u00e8itean", "dhen \u00d2gmhios", "dhen Iuchar", "dhen L\u00f9nastal", "dhen t-Sultain", "dhen D\u00e0mhair", "dhen t-Samhain", "dhen D\u00f9bhlachd" ], "SHORTDAY": [ "DiD", "DiL", "DiM", "DiC", "Dia", "Dih", "DiS" ], "SHORTMONTH": [ "Faoi", "Gearr", "M\u00e0rt", "Gibl", "C\u00e8it", "\u00d2gmh", "Iuch", "L\u00f9na", "Sult", "D\u00e0mh", "Samh", "D\u00f9bh" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d'mh' MMMM y", "longDate": "d'mh' MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u00a3", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "gd", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
boneskull/cdnjs
ajax/libs/angular-i18n/1.4.4/angular-locale_gd.js
JavaScript
mit
2,661
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a. m.", "p. m." ], "DAY": [ "domingo", "lunes", "martes", "mi\u00e9rcoles", "jueves", "viernes", "s\u00e1bado" ], "ERANAMES": [ "antes de Cristo", "despu\u00e9s de Cristo" ], "ERAS": [ "a. C.", "d. C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], "SHORTDAY": [ "dom.", "lun.", "mar.", "mi\u00e9.", "jue.", "vie.", "s\u00e1b." ], "SHORTMONTH": [ "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "d/M/yy h:mm a", "shortDate": "d/M/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "es-ec", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
kartikrao31/cdnjs
ajax/libs/angular.js/1.4.4/i18n/angular-locale_es-ec.js
JavaScript
mit
2,149
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Ku cyumweru", "Kuwa mbere", "Kuwa kabiri", "Kuwa gatatu", "Kuwa kane", "Kuwa gatanu", "Kuwa gatandatu" ], "ERANAMES": [ "BCE", "CE" ], "ERAS": [ "BCE", "CE" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "Mutarama", "Gashyantare", "Werurwe", "Mata", "Gicuransi", "Kamena", "Nyakanga", "Kanama", "Nzeli", "Ukwakira", "Ugushyingo", "Ukuboza" ], "SHORTDAY": [ "cyu.", "mbe.", "kab.", "gtu.", "kan.", "gnu.", "gnd." ], "SHORTMONTH": [ "mut.", "gas.", "wer.", "mat.", "gic.", "kam.", "nya.", "kan.", "nze.", "ukw.", "ugu.", "uku." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, y MMMM dd", "longDate": "y MMMM d", "medium": "y MMM d HH:mm:ss", "mediumDate": "y MMM d", "mediumTime": "HH:mm:ss", "short": "yy/MM/dd HH:mm", "shortDate": "yy/MM/dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "RF", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4\u00a0", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "rw-rw", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
froala/cdnjs
ajax/libs/angular.js/1.4.8/i18n/angular-locale_rw-rw.js
JavaScript
mit
2,517
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "priek\u0161pusdien\u0101", "p\u0113cpusdien\u0101" ], "DAY": [ "sv\u0113tdiena", "pirmdiena", "otrdiena", "tre\u0161diena", "ceturtdiena", "piektdiena", "sestdiena" ], "ERANAMES": [ "pirms m\u016bsu \u0113ras", "m\u016bsu \u0113r\u0101" ], "ERAS": [ "p.m.\u0113.", "m.\u0113." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janv\u0101ris", "febru\u0101ris", "marts", "apr\u012blis", "maijs", "j\u016bnijs", "j\u016blijs", "augusts", "septembris", "oktobris", "novembris", "decembris" ], "SHORTDAY": [ "Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "Se" ], "SHORTMONTH": [ "janv.", "febr.", "marts", "apr.", "maijs", "j\u016bn.", "j\u016bl.", "aug.", "sept.", "okt.", "nov.", "dec." ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, y. 'gada' d. MMMM", "longDate": "y. 'gada' d. MMMM", "medium": "y. 'gada' d. MMM HH:mm:ss", "mediumDate": "y. 'gada' d. MMM", "mediumTime": "HH:mm:ss", "short": "dd.MM.yy HH:mm", "shortDate": "dd.MM.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 0, "lgSize": 0, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "lv-lv", "pluralCat": function(n, opt_precision) { var vf = getVF(n, opt_precision); if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) { return PLURAL_CATEGORY.ZERO; } if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
LeaYeh/cdnjs
ajax/libs/angular.js/1.4.6/i18n/angular-locale_lv-lv.js
JavaScript
mit
2,889
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd", "\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd" ], "DAY": [ "\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1", "\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd", "\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd", "\u0baa\u0bc1\u0ba4\u0ba9\u0bcd", "\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd", "\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf", "\u0b9a\u0ba9\u0bbf" ], "ERANAMES": [ "\u0b95\u0bbf\u0bb1\u0bbf\u0bb8\u0bcd\u0ba4\u0bc1\u0bb5\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd", "\u0b85\u0ba9\u0bcb \u0b9f\u0bcb\u0bae\u0bbf\u0ba9\u0bbf" ], "ERAS": [ "\u0b95\u0bbf.\u0bae\u0bc1.", "\u0b95\u0bbf.\u0baa\u0bbf." ], "FIRSTDAYOFWEEK": 6, "MONTH": [ "\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf", "\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf", "\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd", "\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd", "\u0bae\u0bc7", "\u0b9c\u0bc2\u0ba9\u0bcd", "\u0b9c\u0bc2\u0bb2\u0bc8", "\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd", "\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd", "\u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd", "\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd", "\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd" ], "SHORTDAY": [ "\u0b9e\u0bbe", "\u0ba4\u0bbf", "\u0b9a\u0bc6", "\u0baa\u0bc1", "\u0bb5\u0bbf", "\u0bb5\u0bc6", "\u0b9a" ], "SHORTMONTH": [ "\u0b9c\u0ba9.", "\u0baa\u0bbf\u0baa\u0bcd.", "\u0bae\u0bbe\u0bb0\u0bcd.", "\u0b8f\u0baa\u0bcd.", "\u0bae\u0bc7", "\u0b9c\u0bc2\u0ba9\u0bcd", "\u0b9c\u0bc2\u0bb2\u0bc8", "\u0b86\u0b95.", "\u0b9a\u0bc6\u0baa\u0bcd.", "\u0b85\u0b95\u0bcd.", "\u0ba8\u0bb5.", "\u0b9f\u0bbf\u0b9a." ], "WEEKENDRANGE": [ 6, 6 ], "fullDate": "EEEE, d MMMM, y", "longDate": "d MMMM, y", "medium": "d MMM, y h:mm:ss a", "mediumDate": "d MMM, y", "mediumTime": "h:mm:ss a", "short": "d-M-yy h:mm a", "shortDate": "d-M-yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20b9", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 2, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 2, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4\u00a0", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "ta", "pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
earthrid/angular.js
src/ngLocale/angular-locale_ta.js
JavaScript
mit
3,187
/* * Copyright 2013, Widen Enterprises info@fineuploader.com * * Licensed under GNU GPL v3, see license.txt. */ .qq-uploader { position: relative; width: 100%; } .qq-upload-button { display: block; width: 105px; padding: 7px 0; text-align: center; background: #880000; border-bottom: 1px solid #DDD; color: #FFF; } .qq-upload-button-hover { background: #CC0000; } .qq-upload-button-focus { outline: 1px dotted #000000; } .qq-upload-drop-area, .qq-upload-extra-drop-area { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 30px; z-index: 2; background: #FF9797; text-align: center; } .qq-upload-drop-area span { display: block; position: absolute; top: 50%; width: 100%; margin-top: -8px; font-size: 16px; } .qq-upload-extra-drop-area { position: relative; margin-top: 50px; font-size: 16px; padding-top: 30px; height: 20px; min-height: 40px; } .qq-upload-drop-area-active { background: #FF7171; } .qq-upload-list { margin: 0; padding: 0; list-style: none; } .qq-upload-list li { margin: 0; padding: 9px; line-height: 15px; font-size: 16px; background-color: #FFF0BD; } .qq-upload-file, .qq-upload-spinner, .qq-upload-size, .qq-upload-cancel, .qq-upload-retry, .qq-upload-failed-text, .qq-upload-finished, .qq-upload-delete { margin-right: 12px; } .qq-upload-file { } .qq-upload-spinner { display: inline-block; background: url("loading.gif"); width: 15px; height: 15px; vertical-align: text-bottom; } .qq-drop-processing { display: none; } .qq-drop-processing-spinner { display: inline-block; background: url("processing.gif"); width: 24px; height: 24px; vertical-align: text-bottom; } .qq-upload-finished { display:none; width:15px; height:15px; vertical-align:text-bottom; } .qq-upload-retry, .qq-upload-delete { display: none; color: #000000; } .qq-upload-cancel, .qq-upload-delete { color: #000000; } .qq-upload-retryable .qq-upload-retry { display: inline; } .qq-upload-size, .qq-upload-cancel, .qq-upload-retry, .qq-upload-delete { font-size: 12px; font-weight: normal; } .qq-upload-failed-text { display: none; font-style: italic; font-weight: bold; } .qq-upload-failed-icon { display:none; width:15px; height:15px; vertical-align:text-bottom; } .qq-upload-fail .qq-upload-failed-text { display: inline; } .qq-upload-retrying .qq-upload-failed-text { display: inline; color: #D60000; } .qq-upload-list li.qq-upload-success { background-color: #5DA30C; color: #FFFFFF; } .qq-upload-list li.qq-upload-fail { background-color: #D60000; color: #FFFFFF; } .qq-progress-bar { background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C */ width: 0%; height: 15px; border-radius: 6px; margin-bottom: 3px; display: none; }
xubowenjx/cdnjs
ajax/libs/file-uploader/3.4.0/fineuploader.css
CSS
mit
3,915
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u134b\u12f1\u1235 \u1303\u1265", "\u134b\u12f1\u1235 \u12f0\u121d\u1262" ], "DAY": [ "\u1230\u1295\u1260\u122d \u1245\u12f3\u12c5", "\u1230\u1291", "\u1230\u120a\u131d", "\u1208\u1313 \u12c8\u122a \u1208\u1265\u12cb", "\u12a3\u121d\u12f5", "\u12a3\u122d\u1265", "\u1230\u1295\u1260\u122d \u123d\u1313\u12c5" ], "MONTH": [ "\u120d\u12f0\u1275\u122a", "\u12ab\u1265\u12bd\u1265\u1272", "\u12ad\u1265\u120b", "\u134b\u1305\u12ba\u122a", "\u12ad\u1262\u1245\u122a", "\u121d\u12aa\u12a4\u120d \u1275\u131f\u1292\u122a", "\u12b0\u122d\u12a9", "\u121b\u122d\u12eb\u121d \u1275\u122a", "\u12eb\u12b8\u1292 \u1218\u1233\u1245\u1208\u122a", "\u1218\u1270\u1209", "\u121d\u12aa\u12a4\u120d \u1218\u123d\u12c8\u122a", "\u1270\u1215\u1233\u1235\u122a" ], "SHORTDAY": [ "\u1230/\u1245", "\u1230\u1291", "\u1230\u120a\u131d", "\u1208\u1313", "\u12a3\u121d\u12f5", "\u12a3\u122d\u1265", "\u1230/\u123d" ], "SHORTMONTH": [ "\u120d\u12f0\u1275", "\u12ab\u1265\u12bd", "\u12ad\u1265\u120b", "\u134b\u1305\u12ba", "\u12ad\u1262\u1245", "\u121d/\u1275", "\u12b0\u122d", "\u121b\u122d\u12eb", "\u12eb\u12b8\u1292", "\u1218\u1270\u1209", "\u121d/\u121d", "\u1270\u1215\u1233" ], "fullDate": "EEEE\u1361 dd MMMM \u130d\u122d\u130b y G", "longDate": "dd MMMM y", "medium": "dd-MMM-y h:mm:ss a", "mediumDate": "dd-MMM-y", "mediumTime": "h:mm:ss a", "short": "dd/MM/yy h:mm a", "shortDate": "dd/MM/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Nfk", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "byn-er", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
holtkamp/cdnjs
ajax/libs/angular.js/1.5.11/i18n/angular-locale_byn-er.js
JavaScript
mit
3,067
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. 'use strict'; var assert = require('assert'); var build = require('./build'), webdriver = require('../..'), flow = webdriver.promise.controlFlow(), _base = require('../../_base'), remote = require('../../remote'), testing = require('../../testing'), fileserver = require('./fileserver'); /** * Browsers with native support. * @type {!Array.<webdriver.Browser>} */ var NATIVE_BROWSERS = [ webdriver.Browser.CHROME, webdriver.Browser.FIREFOX, webdriver.Browser.IE, webdriver.Browser.OPERA, webdriver.Browser.PHANTOM_JS, webdriver.Browser.SAFARI ]; var serverJar = process.env['SELENIUM_SERVER_JAR']; var remoteUrl = process.env['SELENIUM_REMOTE_URL']; var startServer = !!serverJar && !remoteUrl; var nativeRun = !serverJar && !remoteUrl; var browsersToTest = (function() { var permitRemoteBrowsers = !!remoteUrl || !!serverJar; var permitUnknownBrowsers = !nativeRun; var browsers = process.env['SELENIUM_BROWSER'] || webdriver.Browser.FIREFOX; browsers = browsers.split(',').map(function(browser) { var parts = browser.split(/:/); if (parts[0] === 'ie') { parts[0] = webdriver.Browser.IE; } return parts.join(':'); }); browsers.forEach(function(browser) { var parts = browser.split(/:/, 3); if (parts[0] === 'ie') { parts[0] = webdriver.Browser.IE; } if (NATIVE_BROWSERS.indexOf(parts[0]) == -1 && !permitRemoteBrowsers) { throw Error('Browser ' + parts[0] + ' requires a WebDriver server and ' + 'neither the SELENIUM_REMOTE_URL nor the SELENIUM_SERVER_JAR ' + 'environment variables have been set.'); } var recognized = false; for (var prop in webdriver.Browser) { if (webdriver.Browser.hasOwnProperty(prop) && webdriver.Browser[prop] === parts[0]) { recognized = true; break; } } if (!recognized && !permitUnknownBrowsers) { throw Error('Unrecognized browser: ' + browser); } }); console.log('Running tests against [' + browsers.join(',') + ']'); if (remoteUrl) { console.log('Using remote server ' + remoteUrl); } else if (serverJar) { console.log('Using standalone Selenium server ' + serverJar); } return browsers; })(); /** * Creates a predicate function that ignores tests for specific browsers. * @param {string} currentBrowser The name of the current browser. * @param {!Array.<!Browser>} browsersToIgnore The browsers to ignore. * @return {function(): boolean} The predicate function. */ function browsers(currentBrowser, browsersToIgnore) { return function() { return browsersToIgnore.indexOf(currentBrowser) != -1; }; } /** * @param {string} browserName The name to use. * @param {remote.DriverService} server The server to use, if any. * @constructor */ function TestEnvironment(browserName, server) { var name = browserName; this.currentBrowser = function() { return browserName; }; this.isRemote = function() { return server || remoteUrl; }; this.browsers = function(var_args) { var browsersToIgnore = Array.prototype.slice.apply(arguments, [0]); return browsers(browserName, browsersToIgnore); }; this.builder = function() { var builder = new webdriver.Builder(); var realBuild = builder.build; builder.build = function() { var parts = browserName.split(/:/, 3); builder.forBrowser(parts[0], parts[1], parts[2]); if (server) { builder.usingServer(server.address()); } else if (remoteUrl) { builder.usingServer(remoteUrl); } builder.disableEnvironmentOverrides(); return realBuild.call(builder); }; return builder; }; } var seleniumServer; var inSuite = false; /** * Expands a function to cover each of the target browsers. * @param {function(!TestEnvironment)} fn The top level suite * function. * @param {{browsers: !Array.<string>}=} opt_options Suite specific options. */ function suite(fn, opt_options) { assert.ok(!inSuite, 'You may not nest suite calls'); inSuite = true; var suiteOptions = opt_options || {}; var browsers = suiteOptions.browsers; if (browsers) { // Filter out browser specific tests when that browser is not currently // selected for testing. browsers = browsers.filter(function(browser) { return browsersToTest.indexOf(browser) != -1; }); } else { browsers = browsersToTest; } try { // Server is only started if required for a specific config. testing.after(function() { if (seleniumServer) { return seleniumServer.stop(); } }); browsers.forEach(function(browser) { testing.describe('[' + browser + ']', function() { if (_base.isDevMode() && nativeRun) { if (browser === webdriver.Browser.FIREFOX) { testing.before(function() { return build.of('//javascript/firefox-driver:webdriver') .onlyOnce().go(); }); } else if (browser === webdriver.Browser.SAFARI) { testing.before(function() { return build.of('//javascript/safari-driver:client') .onlyOnce().go(); }); } } var serverToUse = null; if (!!serverJar && !remoteUrl) { if (!(serverToUse = seleniumServer)) { serverToUse = seleniumServer = new remote.SeleniumServer(serverJar); } testing.before(function() { this.timeout(0); return seleniumServer.start(60 * 1000); }); } fn(new TestEnvironment(browser, serverToUse)); }); }); } finally { inSuite = false; } } // GLOBAL TEST SETUP testing.before(function() { // Do not pass register fileserver.start directly with testing.before, // as start takes an optional port, which before assumes is an async // callback. return fileserver.start(); }); testing.after(function() { return fileserver.stop(); }); // PUBLIC API exports.suite = suite; exports.after = testing.after; exports.afterEach = testing.afterEach; exports.before = testing.before; exports.beforeEach = testing.beforeEach; exports.it = testing.it; exports.ignore = testing.ignore; exports.Pages = fileserver.Pages; exports.whereIs = fileserver.whereIs;
jnwu/activebuddy-ui
node_modules/protractor/node_modules/selenium-webdriver/lib/test/index.js
JavaScript
mit
7,132
/*! * Font Awesome 4.0.2 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot');src:url('../fonts/fontawesome-webfont.eot#iefix') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff') format('woff'),url('../fonts/fontawesome-webfont.ttf') format('truetype'),url('../fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.3333333333333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.2857142857142858em;text-align:center}.fa-ul{padding-left:0;margin-left:2.142857142857143em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;top:.14285714285714285em;text-align:center}.fa-li.fa-lg{left:-1.8571428571428572em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-asc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-desc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-reply-all:before{content:"\f122"}.fa-mail-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}
pvnr0082t/cdnjs
ajax/libs/onsen/1.0.3/css/font_awesome/css/font-awesome.min.css
CSS
mit
17,739
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Query Helper Methods &mdash; CodeIgniter 3.1.4 documentation</title> <link rel="shortcut icon" href="../_static/ci-icon.ico"/> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../_static/css/citheme.css" type="text/css" /> <link rel="top" title="CodeIgniter 3.1.4 documentation" href="../index.html"/> <link rel="up" title="Database Reference" href="index.html"/> <link rel="next" title="Query Builder Class" href="query_builder.html"/> <link rel="prev" title="Generating Query Results" href="results.html"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div id="nav"> <div id="nav_inner"> <div id="pulldown-menu" class="ciNav"> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/index.html">General Topics</a><ul> <li class="toctree-l2"><a class="reference internal" href="../general/urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/cli.html">Running via the CLI</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/managing_apps.html">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../libraries/index.html">Libraries</a><ul> <li class="toctree-l2"><a class="reference internal" href="../libraries/benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/form_validation.html">Form Validation</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/ftp.html">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/javascript.html">Javascript Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/language.html">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Database Reference</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="results.html">Generating Query Results</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../helpers/index.html">Helpers</a><ul> <li class="toctree-l2"><a class="reference internal" href="../helpers/array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/path_helper.html">Path Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/security_helper.html">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/xml_helper.html">XML Helper</a></li> </ul> </li> </ul> </div> </div> </div> <div id="nav2"> <a href="#" id="openToc"> <img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAARgAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABAMDAwMDBAMDBAYEAwQGBwUEBAUHCAYGBwYGCAoICQkJCQgKCgwMDAwMCgwMDQ0MDBERERERFBQUFBQUFBQUFAEEBQUIBwgPCgoPFA4ODhQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAKwCaAwERAAIRAQMRAf/EAHsAAQAABwEBAAAAAAAAAAAAAAABAwQFBgcIAgkBAQAAAAAAAAAAAAAAAAAAAAAQAAEDAwICBwYEAgsAAAAAAAIBAwQAEQUSBiEHkROTVNQWGDFBUVIUCHEiMtOUFWGBobHRQlMkZIRVEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwDSC+ygkOOaUoKigUCgUCgUCgUCgUCgUCgUCgkuGguIP9FBMFb0Hqg7We+3jlmIqqYFf4ub+/QYlnOR/LqIBKGFUbf8qWv971BytQXXE7Y3Lnm3HsFhp2TaZJAdchRXpIgSpdEJWxJEW3xoKV7F5OMy7JkQn2o7D6w33XGjEAkoiqrJEqIiOIiKuhePCgqp22dyYyS3CyWHnQ5joG61HkRnmnTbaFSMhExRVQRRVJU9iUHjE7ez+fJ0MFipmUNhBV8YUd2SoIV9KkjQla9ltegttBdPLW4/qocL+UTfrMiHW4+P9M71shuyrqaHTcxsl7jegpsji8nh5ZwMvDfgTm0RTjSmjYdFCS6KoOIipdFunCgmNYTMv457MMY6U7iI6oMieDDhRm1VbIhuoOkbqtuK0Hpzb+eZcYZexUxt6UyUqK2cd0SdjtgrhOgijcgERUlJOCIl6CpgbP3blRI8XgMjNARAyKNDfeRBdFDBVUAXgQrqH4pxoJTu2NysY97LP4ac1io5q1InHFeGO24LnVKJuKOkSQ/yKir+rh7aCLG1dzypZQI2FnvTgccYOM3FeN0XWERXAUEFVQgQkUktdLpegm+Td3/Xli/L+S/mYNJIOF9G/wBeLKrZHFb0akG6W1WtQWSg3Dyg5e7V3fipE3O4/wCrktyzYA+ufas2LbZIlmnAT2kvuoN1wft95augilglX/tzP3qCu9O3LL/wV/i5v79BvmTADq14UGu91467Z6U9y0HzH/ncj/U/sT/CgynZG7I2NezpZGUjIycJkYkZSG+uQ81pbBNKLxJfjwoMqZ3/ALYHl35AJ7/cuwHcu5k7r1Q5pHetBjquqVVJWGxj9Zrtcl/Ggy3dHMvauR3HFZj5nHNxSyW5JISYDMoIwx8tFIGHZhPNaykGapr6rUAiicEoMG21lMRj8buPAz8xhJrr7uOeiPTCyAwXUaGR1mgozbTusOsFLEiJ7fbQa/h7gcjy2H3V6xppwDNtUSxCJIqp7valBuWVzJ22xuCROXNNZiJkMtms0DbjUkAZjzoDrTMd9dDRI44ZC2YsrYdKWP2WDT2S3N9dNdlRYrGMYc06IURXSYb0igrpWS485xVNS6nF4rwslkoMwnbpgZLB7bmt5uMweAhDEl4B5uSLzzqTnnyVpW2jaJHRMSIjdDiiotvy3DOE5rYTEbkl5yFn28k7JyG4c7AU2HtLH1uKfaiMPI40CdYbpNtmLdwTSn5rewLNld+7TLdeal4WarWBkbVKBjgdElMJJwAAY5fl4kB3b1fp4XvagsGS3FjJfLzDNtS8aeXx7LzT7TyzByQE5PccRGRC0ZRUDRV6y62vbjagzLmJzS2vuPK43JY6aP1TW6Jz+RIWyFtyC06y3EkiiinAo7YCqfq1AqqnGgsOH3lhZO8d1pmcpB8j5XIm9OYlBJSQ/FSS4427DKO0RC8AlcEMhFdViRR1WDWR5t3WXVuL1d106kG9vdeye2g60+1FDyW0shIcXVpyroXt8I8dfd+NB1vioAdWnD3UF1+gD4UFc6CEKpagxXN43rwJLUHz7yX2c8zokt9uHlsPIhA4aRnnHJTLptIS6CNsY7iASpxUUMkReGpfbQW0vtN5pitvrsN28rwtBD0nc0+/Yft5XhaB6TuaXfsP28rwtA9J3NPv2H7eV4Wgek7mn37D9vK8LQPSdzT79h+3leFoHpO5pd+w/byvC0D0nc0u/Yft5XhaB6TuaXfsP28rwtA9J3NLv2H7eV4Wgek7ml37D9vK8LQPSdzS79h+3leFoHpO5p9+w/byvC0E9r7Reazy2HIYVPxkS/CUHVn26cosxyv2g7h89LYmZSXOenvLEQ1YaQ222RATcQCP8rSGqqA8S02W2pQ6FhMoAIlqCtsnwoCpdKClejI4i3Sgtb+GBxVuNBSFt1pV/RQefLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8utJ/koJ7WCbBU/LQXOPAFq1koK8B0pag90CggtBBf6qB0UDooHRQOigdFA6KB0UDooHRQOigdFA6KB0UDooI0EaBQf//Z" title="Toggle Table of Contents" alt="Toggle Table of Contents" /> </a> </div> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="../index.html" class="fa fa-home"> CodeIgniter</a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/index.html">General Topics</a><ul> <li class="toctree-l2"><a class="reference internal" href="../general/urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/cli.html">Running via the CLI</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/managing_apps.html">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../libraries/index.html">Libraries</a><ul> <li class="toctree-l2"><a class="reference internal" href="../libraries/benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/form_validation.html">Form Validation</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/ftp.html">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/javascript.html">Javascript Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/language.html">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Database Reference</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="results.html">Generating Query Results</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../helpers/index.html">Helpers</a><ul> <li class="toctree-l2"><a class="reference internal" href="../helpers/array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/path_helper.html">Path Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/security_helper.html">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/xml_helper.html">XML Helper</a></li> </ul> </li> </ul> </div> &nbsp; </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">CodeIgniter</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> &raquo;</li> <li><a href="index.html">Database Reference</a> &raquo;</li> <li>Query Helper Methods</li> <li class="wy-breadcrumbs-aside"> </li> <div style="float:right;margin-left:5px;" id="closeMe"> <img title="Classic Layout" alt="classic layout" src="data:image/gif;base64,R0lGODlhFAAUAJEAAAAAADMzM////wAAACH5BAUUAAIALAAAAAAUABQAAAImlI+py+0PU5gRBRDM3DxbWoXis42X13USOLauUIqnlsaH/eY6UwAAOw==" /> </div> </ul> <hr/> </div> <div role="main" class="document"> <div class="section" id="query-helper-methods"> <h1>Query Helper Methods<a class="headerlink" href="#query-helper-methods" title="Permalink to this headline">¶</a></h1> <div class="section" id="information-from-executing-a-query"> <h2>Information From Executing a Query<a class="headerlink" href="#information-from-executing-a-query" title="Permalink to this headline">¶</a></h2> <p><strong>$this-&gt;db-&gt;insert_id()</strong></p> <p>The insert ID number when performing database inserts.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">If using the PDO driver with PostgreSQL, or using the Interbase driver, this function requires a $name parameter, which specifies the appropriate sequence to check for the insert id.</p> </div> <p><strong>$this-&gt;db-&gt;affected_rows()</strong></p> <p>Displays the number of affected rows, when doing &#8220;write&#8221; type queries (insert, update, etc.).</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">In MySQL &#8220;DELETE FROM TABLE&#8221; returns 0 affected rows. The database class has a small hack that allows it to return the correct number of affected rows. By default this hack is enabled but it can be turned off in the database driver file.</p> </div> <p><strong>$this-&gt;db-&gt;last_query()</strong></p> <p>Returns the last query that was run (the query string, not the result). Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="nv">$str</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">db</span><span class="o">-&gt;</span><span class="na">last_query</span><span class="p">();</span> <span class="c1">// Produces: SELECT * FROM sometable....</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Disabling the <strong>save_queries</strong> setting in your database configuration will render this function useless.</p> </div> </div> <div class="section" id="information-about-your-database"> <h2>Information About Your Database<a class="headerlink" href="#information-about-your-database" title="Permalink to this headline">¶</a></h2> <p><strong>$this-&gt;db-&gt;count_all()</strong></p> <p>Permits you to determine the number of rows in a particular table. Submit the table name in the first parameter. Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="k">echo</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">db</span><span class="o">-&gt;</span><span class="na">count_all</span><span class="p">(</span><span class="s1">&#39;my_table&#39;</span><span class="p">);</span> <span class="c1">// Produces an integer, like 25</span> </pre></div> </div> <p><strong>$this-&gt;db-&gt;platform()</strong></p> <p>Outputs the database platform you are running (MySQL, MS SQL, Postgres, etc...):</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="k">echo</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">db</span><span class="o">-&gt;</span><span class="na">platform</span><span class="p">();</span> </pre></div> </div> <p><strong>$this-&gt;db-&gt;version()</strong></p> <p>Outputs the database version you are running:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="k">echo</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">db</span><span class="o">-&gt;</span><span class="na">version</span><span class="p">();</span> </pre></div> </div> </div> <div class="section" id="making-your-queries-easier"> <h2>Making Your Queries Easier<a class="headerlink" href="#making-your-queries-easier" title="Permalink to this headline">¶</a></h2> <p><strong>$this-&gt;db-&gt;insert_string()</strong></p> <p>This function simplifies the process of writing database inserts. It returns a correctly formatted SQL insert string. Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="nv">$data</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span><span class="s1">&#39;name&#39;</span> <span class="o">=&gt;</span> <span class="nv">$name</span><span class="p">,</span> <span class="s1">&#39;email&#39;</span> <span class="o">=&gt;</span> <span class="nv">$email</span><span class="p">,</span> <span class="s1">&#39;url&#39;</span> <span class="o">=&gt;</span> <span class="nv">$url</span><span class="p">);</span> <span class="nv">$str</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">db</span><span class="o">-&gt;</span><span class="na">insert_string</span><span class="p">(</span><span class="s1">&#39;table_name&#39;</span><span class="p">,</span> <span class="nv">$data</span><span class="p">);</span> </pre></div> </div> <p>The first parameter is the table name, the second is an associative array with the data to be inserted. The above example produces:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="nx">INSERT</span> <span class="nx">INTO</span> <span class="nx">table_name</span> <span class="p">(</span><span class="nx">name</span><span class="p">,</span> <span class="nx">email</span><span class="p">,</span> <span class="nx">url</span><span class="p">)</span> <span class="nx">VALUES</span> <span class="p">(</span><span class="s1">&#39;Rick&#39;</span><span class="p">,</span> <span class="s1">&#39;rick@example.com&#39;</span><span class="p">,</span> <span class="s1">&#39;example.com&#39;</span><span class="p">)</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Values are automatically escaped, producing safer queries.</p> </div> <p><strong>$this-&gt;db-&gt;update_string()</strong></p> <p>This function simplifies the process of writing database updates. It returns a correctly formatted SQL update string. Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="nv">$data</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span><span class="s1">&#39;name&#39;</span> <span class="o">=&gt;</span> <span class="nv">$name</span><span class="p">,</span> <span class="s1">&#39;email&#39;</span> <span class="o">=&gt;</span> <span class="nv">$email</span><span class="p">,</span> <span class="s1">&#39;url&#39;</span> <span class="o">=&gt;</span> <span class="nv">$url</span><span class="p">);</span> <span class="nv">$where</span> <span class="o">=</span> <span class="s2">&quot;author_id = 1 AND status = &#39;active&#39;&quot;</span><span class="p">;</span> <span class="nv">$str</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">db</span><span class="o">-&gt;</span><span class="na">update_string</span><span class="p">(</span><span class="s1">&#39;table_name&#39;</span><span class="p">,</span> <span class="nv">$data</span><span class="p">,</span> <span class="nv">$where</span><span class="p">);</span> </pre></div> </div> <p>The first parameter is the table name, the second is an associative array with the data to be updated, and the third parameter is the &#8220;where&#8221; clause. The above example produces:</p> <div class="highlight-ci"><div class="highlight"><pre><span></span><span class="nx">UPDATE</span> <span class="nx">table_name</span> <span class="nx">SET</span> <span class="nx">name</span> <span class="o">=</span> <span class="s1">&#39;Rick&#39;</span><span class="p">,</span> <span class="nx">email</span> <span class="o">=</span> <span class="s1">&#39;rick@example.com&#39;</span><span class="p">,</span> <span class="nx">url</span> <span class="o">=</span> <span class="s1">&#39;example.com&#39;</span> <span class="nx">WHERE</span> <span class="nx">author_id</span> <span class="o">=</span> <span class="mi">1</span> <span class="k">AND</span> <span class="nx">status</span> <span class="o">=</span> <span class="s1">&#39;active&#39;</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Values are automatically escaped, producing safer queries.</p> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="query_builder.html" class="btn btn-neutral float-right" title="Query Builder Class">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="results.html" class="btn btn-neutral" title="Generating Query Results"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2014 - 2017, British Columbia Institute of Technology. Last updated on Mar 20, 2017. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'3.1.4', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
mizukagetobi/ect
user_guide/database/helpers.html
HTML
mit
42,672
@import url('//fonts.googleapis.com/css?family=Lobster|Cabin:400,700'); /*! * Bootstrap v2.3.1 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; line-height: 0; content: ""; } .clearfix:after { clear: both; } .hide-text { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .input-block-level { display: block; width: 100%; min-height: 30px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } a:hover, a:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { width: auto\9; height: auto; max-width: 100%; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } #map_canvas img, .google-maps img { max-width: none; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { *overflow: visible; line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] { cursor: pointer; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } body { margin: 0; font-family: 'Cabin', Verdana, sans-serif; font-size: 14px; line-height: 20px; color: #e1f0f0; background-color: #003f4d; } a { color: #e8d069; text-decoration: none; } a:hover, a:focus { color: #e8d069; text-decoration: underline; } .img-rounded { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .img-polaroid { padding: 4px; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .img-circle { -webkit-border-radius: 500px; -moz-border-radius: 500px; border-radius: 500px; } .row { margin-left: -20px; *zoom: 1; } .row:before, .row:after { display: table; line-height: 0; content: ""; } .row:after { clear: both; } [class*="span"] { float: left; min-height: 1px; margin-left: 20px; } .container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .span12 { width: 940px; } .span11 { width: 860px; } .span10 { width: 780px; } .span9 { width: 700px; } .span8 { width: 620px; } .span7 { width: 540px; } .span6 { width: 460px; } .span5 { width: 380px; } .span4 { width: 300px; } .span3 { width: 220px; } .span2 { width: 140px; } .span1 { width: 60px; } .offset12 { margin-left: 980px; } .offset11 { margin-left: 900px; } .offset10 { margin-left: 820px; } .offset9 { margin-left: 740px; } .offset8 { margin-left: 660px; } .offset7 { margin-left: 580px; } .offset6 { margin-left: 500px; } .offset5 { margin-left: 420px; } .offset4 { margin-left: 340px; } .offset3 { margin-left: 260px; } .offset2 { margin-left: 180px; } .offset1 { margin-left: 100px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; line-height: 0; content: ""; } .row-fluid:after { clear: both; } .row-fluid [class*="span"] { display: block; float: left; width: 100%; min-height: 30px; margin-left: 2.127659574468085%; *margin-left: 2.074468085106383%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .row-fluid [class*="span"]:first-child { margin-left: 0; } .row-fluid .controls-row [class*="span"] + [class*="span"] { margin-left: 2.127659574468085%; } .row-fluid .span12 { width: 100%; *width: 99.94680851063829%; } .row-fluid .span11 { width: 91.48936170212765%; *width: 91.43617021276594%; } .row-fluid .span10 { width: 82.97872340425532%; *width: 82.92553191489361%; } .row-fluid .span9 { width: 74.46808510638297%; *width: 74.41489361702126%; } .row-fluid .span8 { width: 65.95744680851064%; *width: 65.90425531914893%; } .row-fluid .span7 { width: 57.44680851063829%; *width: 57.39361702127659%; } .row-fluid .span6 { width: 48.93617021276595%; *width: 48.88297872340425%; } .row-fluid .span5 { width: 40.42553191489362%; *width: 40.37234042553192%; } .row-fluid .span4 { width: 31.914893617021278%; *width: 31.861702127659576%; } .row-fluid .span3 { width: 23.404255319148934%; *width: 23.351063829787233%; } .row-fluid .span2 { width: 14.893617021276595%; *width: 14.840425531914894%; } .row-fluid .span1 { width: 6.382978723404255%; *width: 6.329787234042553%; } .row-fluid .offset12 { margin-left: 104.25531914893617%; *margin-left: 104.14893617021275%; } .row-fluid .offset12:first-child { margin-left: 102.12765957446808%; *margin-left: 102.02127659574467%; } .row-fluid .offset11 { margin-left: 95.74468085106382%; *margin-left: 95.6382978723404%; } .row-fluid .offset11:first-child { margin-left: 93.61702127659574%; *margin-left: 93.51063829787232%; } .row-fluid .offset10 { margin-left: 87.23404255319149%; *margin-left: 87.12765957446807%; } .row-fluid .offset10:first-child { margin-left: 85.1063829787234%; *margin-left: 84.99999999999999%; } .row-fluid .offset9 { margin-left: 78.72340425531914%; *margin-left: 78.61702127659572%; } .row-fluid .offset9:first-child { margin-left: 76.59574468085106%; *margin-left: 76.48936170212764%; } .row-fluid .offset8 { margin-left: 70.2127659574468%; *margin-left: 70.10638297872339%; } .row-fluid .offset8:first-child { margin-left: 68.08510638297872%; *margin-left: 67.9787234042553%; } .row-fluid .offset7 { margin-left: 61.70212765957446%; *margin-left: 61.59574468085106%; } .row-fluid .offset7:first-child { margin-left: 59.574468085106375%; *margin-left: 59.46808510638297%; } .row-fluid .offset6 { margin-left: 53.191489361702125%; *margin-left: 53.085106382978715%; } .row-fluid .offset6:first-child { margin-left: 51.063829787234035%; *margin-left: 50.95744680851063%; } .row-fluid .offset5 { margin-left: 44.68085106382979%; *margin-left: 44.57446808510638%; } .row-fluid .offset5:first-child { margin-left: 42.5531914893617%; *margin-left: 42.4468085106383%; } .row-fluid .offset4 { margin-left: 36.170212765957444%; *margin-left: 36.06382978723405%; } .row-fluid .offset4:first-child { margin-left: 34.04255319148936%; *margin-left: 33.93617021276596%; } .row-fluid .offset3 { margin-left: 27.659574468085104%; *margin-left: 27.5531914893617%; } .row-fluid .offset3:first-child { margin-left: 25.53191489361702%; *margin-left: 25.425531914893618%; } .row-fluid .offset2 { margin-left: 19.148936170212764%; *margin-left: 19.04255319148936%; } .row-fluid .offset2:first-child { margin-left: 17.02127659574468%; *margin-left: 16.914893617021278%; } .row-fluid .offset1 { margin-left: 10.638297872340425%; *margin-left: 10.53191489361702%; } .row-fluid .offset1:first-child { margin-left: 8.51063829787234%; *margin-left: 8.404255319148938%; } [class*="span"].hide, .row-fluid [class*="span"].hide { display: none; } [class*="span"].pull-right, .row-fluid [class*="span"].pull-right { float: right; } .container { margin-right: auto; margin-left: auto; *zoom: 1; } .container:before, .container:after { display: table; line-height: 0; content: ""; } .container:after { clear: both; } .container-fluid { padding-right: 20px; padding-left: 20px; *zoom: 1; } .container-fluid:before, .container-fluid:after { display: table; line-height: 0; content: ""; } .container-fluid:after { clear: both; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 21px; font-weight: 200; line-height: 30px; } small { font-size: 85%; } strong { font-weight: bold; } em { font-style: italic; } cite { font-style: normal; } .muted { color: #aaaaaa; } a.muted:hover, a.muted:focus { color: #919191; } .text-warning { color: #e1f0f0; } a.text-warning:hover, a.text-warning:focus { color: #bfdfdf; } .text-error { color: #e1f0f0; } a.text-error:hover, a.text-error:focus { color: #bfdfdf; } .text-info { color: #e1f0f0; } a.text-info:hover, a.text-info:focus { color: #bfdfdf; } .text-success { color: #e1f0f0; } a.text-success:hover, a.text-success:focus { color: #bfdfdf; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6 { margin: 10px 0; font-family: 'Lobster', cursive; font-weight: normal; line-height: 20px; color: inherit; text-rendering: optimizelegibility; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: normal; line-height: 1; color: #aaaaaa; } h1, h2, h3 { line-height: 40px; } h1 { font-size: 38.5px; } h2 { font-size: 31.5px; } h3 { font-size: 24.5px; } h4 { font-size: 17.5px; } h5 { font-size: 14px; } h6 { font-size: 11.9px; } h1 small { font-size: 24.5px; } h2 small { font-size: 17.5px; } h3 small { font-size: 14px; } h4 small { font-size: 14px; } .page-header { padding-bottom: 9px; margin: 20px 0 30px; border-bottom: 1px solid #dddddd; } ul, ol { padding: 0; margin: 0 0 10px 25px; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; } li { line-height: 20px; } ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } ul.inline, ol.inline { margin-left: 0; list-style: none; } ul.inline > li, ol.inline > li { display: inline-block; *display: inline; padding-right: 5px; padding-left: 5px; *zoom: 1; } dl { margin-bottom: 20px; } dt, dd { line-height: 20px; } dt { font-weight: bold; } dd { margin-left: 10px; } .dl-horizontal { *zoom: 1; } .dl-horizontal:before, .dl-horizontal:after { display: table; line-height: 0; content: ""; } .dl-horizontal:after { clear: both; } .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } hr { margin: 20px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); border-bottom: 1px solid #ffffff; } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #aaaaaa; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 0 0 0 15px; margin: 0 0 20px; border-left: 5px solid #dddddd; } blockquote p { margin-bottom: 0; font-size: 17.5px; font-weight: 300; line-height: 1.25; } blockquote small { display: block; line-height: 20px; color: #aaaaaa; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #dddddd; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 20px; font-style: normal; line-height: 20px; } code, pre { padding: 0 3px 2px; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 12px; color: #444444; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } code { padding: 2px 4px; color: #d14; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } pre.prettyprint { margin-bottom: 20px; } pre code { padding: 0; color: inherit; white-space: pre; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } form { margin: 0 0 20px; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: 40px; color: #444444; border: 0; border-bottom: 1px solid #e5e5e5; } legend small { font-size: 15px; color: #aaaaaa; } label, input, button, select, textarea { font-size: 14px; font-weight: normal; line-height: 20px; } input, button, select, textarea { font-family: 'Cabin', Verdana, sans-serif; } label { display: block; margin-bottom: 5px; } select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { display: inline-block; height: 20px; padding: 4px 6px; margin-bottom: 10px; font-size: 14px; line-height: 20px; color: #555555; vertical-align: middle; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } input, textarea, .uneditable-input { width: 206px; } textarea { height: auto; } textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { background-color: #ffffff; border: 1px solid transparent; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; } textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus { border-color: rgba(82, 168, 236, 0.8); outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; *margin-top: 0; line-height: normal; } input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] { width: auto; } select, input[type="file"] { height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */ line-height: 30px; } select { width: 220px; background-color: #ffffff; border: 1px solid transparent; } select[multiple], select[size] { height: auto; } select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .uneditable-input, .uneditable-textarea { color: #aaaaaa; cursor: not-allowed; background-color: #fcfcfc; border-color: transparent; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); } .uneditable-input { overflow: hidden; white-space: nowrap; } .uneditable-textarea { width: auto; height: auto; } input:-moz-placeholder, textarea:-moz-placeholder { color: #aaaaaa; } input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #aaaaaa; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #aaaaaa; } .radio, .checkbox { min-height: 20px; padding-left: 20px; } .radio input[type="radio"], .checkbox input[type="checkbox"] { float: left; margin-left: -20px; } .controls > .radio:first-child, .controls > .checkbox:first-child { padding-top: 5px; } .radio.inline, .checkbox.inline { display: inline-block; padding-top: 5px; margin-bottom: 0; vertical-align: middle; } .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline { margin-left: 10px; } .input-mini { width: 60px; } .input-small { width: 90px; } .input-medium { width: 150px; } .input-large { width: 210px; } .input-xlarge { width: 270px; } .input-xxlarge { width: 530px; } input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"] { float: none; margin-left: 0; } .input-append input[class*="span"], .input-append .uneditable-input[class*="span"], .input-prepend input[class*="span"], .input-prepend .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"], .row-fluid .input-prepend [class*="span"], .row-fluid .input-append [class*="span"] { display: inline-block; } input, textarea, .uneditable-input { margin-left: 0; } .controls-row [class*="span"] + [class*="span"] { margin-left: 20px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 926px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 846px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 766px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 686px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 606px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 526px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 446px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 366px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 286px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 206px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 126px; } input.span1, textarea.span1, .uneditable-input.span1 { width: 46px; } .controls-row { *zoom: 1; } .controls-row:before, .controls-row:after { display: table; line-height: 0; content: ""; } .controls-row:after { clear: both; } .controls-row [class*="span"], .row-fluid .controls-row [class*="span"] { float: left; } .controls-row .checkbox[class*="span"], .controls-row .radio[class*="span"] { padding-top: 5px; } input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] { cursor: not-allowed; background-color: #dddddd; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"][readonly], input[type="checkbox"][readonly] { background-color: transparent; } .control-group.warning .control-label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #e1f0f0; } .control-group.warning .checkbox, .control-group.warning .radio, .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #e1f0f0; } .control-group.warning input, .control-group.warning select, .control-group.warning textarea { border-color: #e1f0f0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #bfdfdf; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #e1f0f0; background-color: #df6e1e; border-color: #e1f0f0; } .control-group.error .control-label, .control-group.error .help-block, .control-group.error .help-inline { color: #e1f0f0; } .control-group.error .checkbox, .control-group.error .radio, .control-group.error input, .control-group.error select, .control-group.error textarea { color: #e1f0f0; } .control-group.error input, .control-group.error select, .control-group.error textarea { border-color: #e1f0f0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #bfdfdf; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #e1f0f0; background-color: #ad1d28; border-color: #e1f0f0; } .control-group.success .control-label, .control-group.success .help-block, .control-group.success .help-inline { color: #e1f0f0; } .control-group.success .checkbox, .control-group.success .radio, .control-group.success input, .control-group.success select, .control-group.success textarea { color: #e1f0f0; } .control-group.success input, .control-group.success select, .control-group.success textarea { border-color: #e1f0f0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #bfdfdf; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #e1f0f0; background-color: #48ca3b; border-color: #e1f0f0; } .control-group.info .control-label, .control-group.info .help-block, .control-group.info .help-inline { color: #e1f0f0; } .control-group.info .checkbox, .control-group.info .radio, .control-group.info input, .control-group.info select, .control-group.info textarea { color: #e1f0f0; } .control-group.info input, .control-group.info select, .control-group.info textarea { border-color: #e1f0f0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.info input:focus, .control-group.info select:focus, .control-group.info textarea:focus { border-color: #bfdfdf; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .control-group.info .input-prepend .add-on, .control-group.info .input-append .add-on { color: #e1f0f0; background-color: #4d3a7d; border-color: #e1f0f0; } input:focus:invalid, textarea:focus:invalid, select:focus:invalid { color: #b94a48; border-color: #ee5f5b; } input:focus:invalid:focus, textarea:focus:invalid:focus, select:focus:invalid:focus { border-color: #e9322d; -webkit-box-shadow: 0 0 6px #f8b9b7; -moz-box-shadow: 0 0 6px #f8b9b7; box-shadow: 0 0 6px #f8b9b7; } .form-actions { padding: 19px 20px 20px; margin-top: 20px; margin-bottom: 20px; background-color: transparent; border-top: 1px solid #e5e5e5; *zoom: 1; } .form-actions:before, .form-actions:after { display: table; line-height: 0; content: ""; } .form-actions:after { clear: both; } .help-block, .help-inline { color: #ffffff; } .help-block { display: block; margin-bottom: 10px; } .help-inline { display: inline-block; *display: inline; padding-left: 5px; vertical-align: middle; *zoom: 1; } .input-append, .input-prepend { display: inline-block; margin-bottom: 10px; font-size: 0; white-space: nowrap; vertical-align: middle; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input, .input-append .dropdown-menu, .input-prepend .dropdown-menu, .input-append .popover, .input-prepend .popover { font-size: 14px; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input { position: relative; margin-bottom: 0; *margin-left: 0; vertical-align: top; -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-append input:focus, .input-prepend input:focus, .input-append select:focus, .input-prepend select:focus, .input-append .uneditable-input:focus, .input-prepend .uneditable-input:focus { z-index: 2; } .input-append .add-on, .input-prepend .add-on { display: inline-block; width: auto; height: 20px; min-width: 16px; padding: 4px 5px; font-size: 14px; font-weight: normal; line-height: 20px; text-align: center; text-shadow: 0 1px 0 #ffffff; background-color: #dddddd; border: 1px solid #ccc; } .input-append .add-on, .input-prepend .add-on, .input-append .btn, .input-prepend .btn, .input-append .btn-group > .dropdown-toggle, .input-prepend .btn-group > .dropdown-toggle { vertical-align: top; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-append .active, .input-prepend .active { background-color: #b8ebb3; border-color: #48ca3b; } .input-prepend .add-on, .input-prepend .btn { margin-right: -1px; } .input-prepend .add-on:first-child, .input-prepend .btn:first-child { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-append input, .input-append select, .input-append .uneditable-input { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-append input + .btn-group .btn:last-child, .input-append select + .btn-group .btn:last-child, .input-append .uneditable-input + .btn-group .btn:last-child { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-append .add-on, .input-append .btn, .input-append .btn-group { margin-left: -1px; } .input-append .add-on:last-child, .input-append .btn:last-child, .input-append .btn-group:last-child > .dropdown-toggle { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-prepend.input-append input, .input-prepend.input-append select, .input-prepend.input-append .uneditable-input { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-prepend.input-append input + .btn-group .btn, .input-prepend.input-append select + .btn-group .btn, .input-prepend.input-append .uneditable-input + .btn-group .btn { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-prepend.input-append .add-on:first-child, .input-prepend.input-append .btn:first-child { margin-right: -1px; -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-prepend.input-append .add-on:last-child, .input-prepend.input-append .btn:last-child { margin-left: -1px; -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .input-prepend.input-append .btn-group:first-child { margin-left: 0; } input.search-query { padding-right: 14px; padding-right: 4px \9; padding-left: 14px; padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */ margin-bottom: 0; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } /* Allow for input prepend/append in search forms */ .form-search .input-append .search-query, .form-search .input-prepend .search-query { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .form-search .input-append .search-query { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search .input-append .btn { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .search-query { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .btn { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search input, .form-inline input, .form-horizontal input, .form-search textarea, .form-inline textarea, .form-horizontal textarea, .form-search select, .form-inline select, .form-horizontal select, .form-search .help-inline, .form-inline .help-inline, .form-horizontal .help-inline, .form-search .uneditable-input, .form-inline .uneditable-input, .form-horizontal .uneditable-input, .form-search .input-prepend, .form-inline .input-prepend, .form-horizontal .input-prepend, .form-search .input-append, .form-inline .input-append, .form-horizontal .input-append { display: inline-block; *display: inline; margin-bottom: 0; vertical-align: middle; *zoom: 1; } .form-search .hide, .form-inline .hide, .form-horizontal .hide { display: none; } .form-search label, .form-inline label, .form-search .btn-group, .form-inline .btn-group { display: inline-block; } .form-search .input-append, .form-inline .input-append, .form-search .input-prepend, .form-inline .input-prepend { margin-bottom: 0; } .form-search .radio, .form-search .checkbox, .form-inline .radio, .form-inline .checkbox { padding-left: 0; margin-bottom: 0; vertical-align: middle; } .form-search .radio input[type="radio"], .form-search .checkbox input[type="checkbox"], .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: left; margin-right: 3px; margin-left: 0; } .control-group { margin-bottom: 10px; } legend + .control-group { margin-top: 20px; -webkit-margin-top-collapse: separate; } .form-horizontal .control-group { margin-bottom: 20px; *zoom: 1; } .form-horizontal .control-group:before, .form-horizontal .control-group:after { display: table; line-height: 0; content: ""; } .form-horizontal .control-group:after { clear: both; } .form-horizontal .control-label { float: left; width: 160px; padding-top: 5px; text-align: right; } .form-horizontal .controls { *display: inline-block; *padding-left: 20px; margin-left: 180px; *margin-left: 0; } .form-horizontal .controls:first-child { *padding-left: 180px; } .form-horizontal .help-block { margin-bottom: 0; } .form-horizontal input + .help-block, .form-horizontal select + .help-block, .form-horizontal textarea + .help-block, .form-horizontal .uneditable-input + .help-block, .form-horizontal .input-prepend + .help-block, .form-horizontal .input-append + .help-block { margin-top: 10px; } .form-horizontal .form-actions { padding-left: 180px; } table { max-width: 100%; background-color: #1ba7b4; border-collapse: collapse; border-spacing: 0; } .table { width: 100%; margin-bottom: 20px; } .table th, .table td { padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top: 1px solid #1cafbd; } .table th { font-weight: bold; } .table thead th { vertical-align: bottom; } .table caption + thead tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child th, .table colgroup + thead tr:first-child td, .table thead:first-child tr:first-child th, .table thead:first-child tr:first-child td { border-top: 0; } .table tbody + tbody { border-top: 2px solid #1cafbd; } .table .table { background-color: #003f4d; } .table-condensed th, .table-condensed td { padding: 4px 5px; } .table-bordered { border: 1px solid #1cafbd; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .table-bordered th, .table-bordered td { border-left: 1px solid #1cafbd; } .table-bordered caption + thead tr:first-child th, .table-bordered caption + tbody tr:first-child th, .table-bordered caption + tbody tr:first-child td, .table-bordered colgroup + thead tr:first-child th, .table-bordered colgroup + tbody tr:first-child th, .table-bordered colgroup + tbody tr:first-child td, .table-bordered thead:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child td { border-top: 0; } .table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr:first-child > th:first-child { -webkit-border-top-left-radius: 0; border-top-left-radius: 0; -moz-border-radius-topleft: 0; } .table-bordered thead:first-child tr:first-child > th:last-child, .table-bordered tbody:first-child tr:first-child > td:last-child, .table-bordered tbody:first-child tr:first-child > th:last-child { -webkit-border-top-right-radius: 0; border-top-right-radius: 0; -moz-border-radius-topright: 0; } .table-bordered thead:last-child tr:last-child > th:first-child, .table-bordered tbody:last-child tr:last-child > td:first-child, .table-bordered tbody:last-child tr:last-child > th:first-child, .table-bordered tfoot:last-child tr:last-child > td:first-child, .table-bordered tfoot:last-child tr:last-child > th:first-child { -webkit-border-bottom-left-radius: 0; border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; } .table-bordered thead:last-child tr:last-child > th:last-child, .table-bordered tbody:last-child tr:last-child > td:last-child, .table-bordered tbody:last-child tr:last-child > th:last-child, .table-bordered tfoot:last-child tr:last-child > td:last-child, .table-bordered tfoot:last-child tr:last-child > th:last-child { -webkit-border-bottom-right-radius: 0; border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; } .table-bordered tfoot + tbody:last-child tr:last-child td:first-child { -webkit-border-bottom-left-radius: 0; border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; } .table-bordered tfoot + tbody:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 0; border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; } .table-bordered caption + thead tr:first-child th:first-child, .table-bordered caption + tbody tr:first-child td:first-child, .table-bordered colgroup + thead tr:first-child th:first-child, .table-bordered colgroup + tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 0; border-top-left-radius: 0; -moz-border-radius-topleft: 0; } .table-bordered caption + thead tr:first-child th:last-child, .table-bordered caption + tbody tr:first-child td:last-child, .table-bordered colgroup + thead tr:first-child th:last-child, .table-bordered colgroup + tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 0; border-top-right-radius: 0; -moz-border-radius-topright: 0; } .table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th { background-color: #1ebccb; } .table-hover tbody tr:hover > td, .table-hover tbody tr:hover > th { background-color: rgba(255, 255, 255, 0.4); } table td[class*="span"], table th[class*="span"], .row-fluid table td[class*="span"], .row-fluid table th[class*="span"] { display: table-cell; float: none; margin-left: 0; } .table td.span1, .table th.span1 { float: none; width: 44px; margin-left: 0; } .table td.span2, .table th.span2 { float: none; width: 124px; margin-left: 0; } .table td.span3, .table th.span3 { float: none; width: 204px; margin-left: 0; } .table td.span4, .table th.span4 { float: none; width: 284px; margin-left: 0; } .table td.span5, .table th.span5 { float: none; width: 364px; margin-left: 0; } .table td.span6, .table th.span6 { float: none; width: 444px; margin-left: 0; } .table td.span7, .table th.span7 { float: none; width: 524px; margin-left: 0; } .table td.span8, .table th.span8 { float: none; width: 604px; margin-left: 0; } .table td.span9, .table th.span9 { float: none; width: 684px; margin-left: 0; } .table td.span10, .table th.span10 { float: none; width: 764px; margin-left: 0; } .table td.span11, .table th.span11 { float: none; width: 844px; margin-left: 0; } .table td.span12, .table th.span12 { float: none; width: 924px; margin-left: 0; } .table tbody tr.success > td { background-color: #48ca3b; } .table tbody tr.error > td { background-color: #ad1d28; } .table tbody tr.warning > td { background-color: #df6e1e; } .table tbody tr.info > td { background-color: #4d3a7d; } .table-hover tbody tr.success:hover > td { background-color: #3eb932; } .table-hover tbody tr.error:hover > td { background-color: #971923; } .table-hover tbody tr.warning:hover > td { background-color: #c9631b; } .table-hover tbody tr.info:hover > td { background-color: #42326c; } [class^="icon-"], [class*=" icon-"] { display: inline-block; width: 14px; height: 14px; margin-top: 1px; *margin-right: .3em; line-height: 14px; vertical-align: text-top; background-image: url("../img/glyphicons-halflings.png"); background-position: 14px 14px; background-repeat: no-repeat; } /* White icons with optional class, or on hover/focus/active states of certain elements */ .icon-white, .nav-pills > .active > a > [class^="icon-"], .nav-pills > .active > a > [class*=" icon-"], .nav-list > .active > a > [class^="icon-"], .nav-list > .active > a > [class*=" icon-"], .navbar-inverse .nav > .active > a > [class^="icon-"], .navbar-inverse .nav > .active > a > [class*=" icon-"], .dropdown-menu > li > a:hover > [class^="icon-"], .dropdown-menu > li > a:focus > [class^="icon-"], .dropdown-menu > li > a:hover > [class*=" icon-"], .dropdown-menu > li > a:focus > [class*=" icon-"], .dropdown-menu > .active > a > [class^="icon-"], .dropdown-menu > .active > a > [class*=" icon-"], .dropdown-submenu:hover > a > [class^="icon-"], .dropdown-submenu:focus > a > [class^="icon-"], .dropdown-submenu:hover > a > [class*=" icon-"], .dropdown-submenu:focus > a > [class*=" icon-"] { background-image: url("../img/glyphicons-halflings-white.png"); } .icon-glass { background-position: 0 0; } .icon-music { background-position: -24px 0; } .icon-search { background-position: -48px 0; } .icon-envelope { background-position: -72px 0; } .icon-heart { background-position: -96px 0; } .icon-star { background-position: -120px 0; } .icon-star-empty { background-position: -144px 0; } .icon-user { background-position: -168px 0; } .icon-film { background-position: -192px 0; } .icon-th-large { background-position: -216px 0; } .icon-th { background-position: -240px 0; } .icon-th-list { background-position: -264px 0; } .icon-ok { background-position: -288px 0; } .icon-remove { background-position: -312px 0; } .icon-zoom-in { background-position: -336px 0; } .icon-zoom-out { background-position: -360px 0; } .icon-off { background-position: -384px 0; } .icon-signal { background-position: -408px 0; } .icon-cog { background-position: -432px 0; } .icon-trash { background-position: -456px 0; } .icon-home { background-position: 0 -24px; } .icon-file { background-position: -24px -24px; } .icon-time { background-position: -48px -24px; } .icon-road { background-position: -72px -24px; } .icon-download-alt { background-position: -96px -24px; } .icon-download { background-position: -120px -24px; } .icon-upload { background-position: -144px -24px; } .icon-inbox { background-position: -168px -24px; } .icon-play-circle { background-position: -192px -24px; } .icon-repeat { background-position: -216px -24px; } .icon-refresh { background-position: -240px -24px; } .icon-list-alt { background-position: -264px -24px; } .icon-lock { background-position: -287px -24px; } .icon-flag { background-position: -312px -24px; } .icon-headphones { background-position: -336px -24px; } .icon-volume-off { background-position: -360px -24px; } .icon-volume-down { background-position: -384px -24px; } .icon-volume-up { background-position: -408px -24px; } .icon-qrcode { background-position: -432px -24px; } .icon-barcode { background-position: -456px -24px; } .icon-tag { background-position: 0 -48px; } .icon-tags { background-position: -25px -48px; } .icon-book { background-position: -48px -48px; } .icon-bookmark { background-position: -72px -48px; } .icon-print { background-position: -96px -48px; } .icon-camera { background-position: -120px -48px; } .icon-font { background-position: -144px -48px; } .icon-bold { background-position: -167px -48px; } .icon-italic { background-position: -192px -48px; } .icon-text-height { background-position: -216px -48px; } .icon-text-width { background-position: -240px -48px; } .icon-align-left { background-position: -264px -48px; } .icon-align-center { background-position: -288px -48px; } .icon-align-right { background-position: -312px -48px; } .icon-align-justify { background-position: -336px -48px; } .icon-list { background-position: -360px -48px; } .icon-indent-left { background-position: -384px -48px; } .icon-indent-right { background-position: -408px -48px; } .icon-facetime-video { background-position: -432px -48px; } .icon-picture { background-position: -456px -48px; } .icon-pencil { background-position: 0 -72px; } .icon-map-marker { background-position: -24px -72px; } .icon-adjust { background-position: -48px -72px; } .icon-tint { background-position: -72px -72px; } .icon-edit { background-position: -96px -72px; } .icon-share { background-position: -120px -72px; } .icon-check { background-position: -144px -72px; } .icon-move { background-position: -168px -72px; } .icon-step-backward { background-position: -192px -72px; } .icon-fast-backward { background-position: -216px -72px; } .icon-backward { background-position: -240px -72px; } .icon-play { background-position: -264px -72px; } .icon-pause { background-position: -288px -72px; } .icon-stop { background-position: -312px -72px; } .icon-forward { background-position: -336px -72px; } .icon-fast-forward { background-position: -360px -72px; } .icon-step-forward { background-position: -384px -72px; } .icon-eject { background-position: -408px -72px; } .icon-chevron-left { background-position: -432px -72px; } .icon-chevron-right { background-position: -456px -72px; } .icon-plus-sign { background-position: 0 -96px; } .icon-minus-sign { background-position: -24px -96px; } .icon-remove-sign { background-position: -48px -96px; } .icon-ok-sign { background-position: -72px -96px; } .icon-question-sign { background-position: -96px -96px; } .icon-info-sign { background-position: -120px -96px; } .icon-screenshot { background-position: -144px -96px; } .icon-remove-circle { background-position: -168px -96px; } .icon-ok-circle { background-position: -192px -96px; } .icon-ban-circle { background-position: -216px -96px; } .icon-arrow-left { background-position: -240px -96px; } .icon-arrow-right { background-position: -264px -96px; } .icon-arrow-up { background-position: -289px -96px; } .icon-arrow-down { background-position: -312px -96px; } .icon-share-alt { background-position: -336px -96px; } .icon-resize-full { background-position: -360px -96px; } .icon-resize-small { background-position: -384px -96px; } .icon-plus { background-position: -408px -96px; } .icon-minus { background-position: -433px -96px; } .icon-asterisk { background-position: -456px -96px; } .icon-exclamation-sign { background-position: 0 -120px; } .icon-gift { background-position: -24px -120px; } .icon-leaf { background-position: -48px -120px; } .icon-fire { background-position: -72px -120px; } .icon-eye-open { background-position: -96px -120px; } .icon-eye-close { background-position: -120px -120px; } .icon-warning-sign { background-position: -144px -120px; } .icon-plane { background-position: -168px -120px; } .icon-calendar { background-position: -192px -120px; } .icon-random { width: 16px; background-position: -216px -120px; } .icon-comment { background-position: -240px -120px; } .icon-magnet { background-position: -264px -120px; } .icon-chevron-up { background-position: -288px -120px; } .icon-chevron-down { background-position: -313px -119px; } .icon-retweet { background-position: -336px -120px; } .icon-shopping-cart { background-position: -360px -120px; } .icon-folder-close { width: 16px; background-position: -384px -120px; } .icon-folder-open { width: 16px; background-position: -408px -120px; } .icon-resize-vertical { background-position: -432px -119px; } .icon-resize-horizontal { background-position: -456px -118px; } .icon-hdd { background-position: 0 -144px; } .icon-bullhorn { background-position: -24px -144px; } .icon-bell { background-position: -48px -144px; } .icon-certificate { background-position: -72px -144px; } .icon-thumbs-up { background-position: -96px -144px; } .icon-thumbs-down { background-position: -120px -144px; } .icon-hand-right { background-position: -144px -144px; } .icon-hand-left { background-position: -168px -144px; } .icon-hand-up { background-position: -192px -144px; } .icon-hand-down { background-position: -216px -144px; } .icon-circle-arrow-right { background-position: -240px -144px; } .icon-circle-arrow-left { background-position: -264px -144px; } .icon-circle-arrow-up { background-position: -288px -144px; } .icon-circle-arrow-down { background-position: -312px -144px; } .icon-globe { background-position: -336px -144px; } .icon-wrench { background-position: -360px -144px; } .icon-tasks { background-position: -384px -144px; } .icon-filter { background-position: -408px -144px; } .icon-briefcase { background-position: -432px -144px; } .icon-fullscreen { background-position: -456px -144px; } .dropup, .dropdown { position: relative; } .dropdown-toggle { *margin-bottom: -3px; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .caret { display: inline-block; width: 0; height: 0; vertical-align: top; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; } .dropdown .caret { margin-top: 8px; margin-left: 2px; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; background-color: #ffffff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); *border-right-width: 2px; *border-bottom-width: 2px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 20px; color: #444444; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-submenu:hover > a, .dropdown-submenu:focus > a { color: #ffffff; text-decoration: none; background-color: #a41c26; background-image: -moz-linear-gradient(top, #ad1d28, #971923); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ad1d28), to(#971923)); background-image: -webkit-linear-gradient(top, #ad1d28, #971923); background-image: -o-linear-gradient(top, #ad1d28, #971923); background-image: linear-gradient(to bottom, #ad1d28, #971923); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffad1d28', endColorstr='#ff971923', GradientType=0); } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #a41c26; background-image: -moz-linear-gradient(top, #ad1d28, #971923); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ad1d28), to(#971923)); background-image: -webkit-linear-gradient(top, #ad1d28, #971923); background-image: -o-linear-gradient(top, #ad1d28, #971923); background-image: linear-gradient(to bottom, #ad1d28, #971923); background-repeat: repeat-x; outline: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffad1d28', endColorstr='#ff971923', GradientType=0); } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #aaaaaa; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: default; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open { *z-index: 1000; } .open > .dropdown-menu { display: block; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; margin-left: -1px; -webkit-border-radius: 0 6px 6px 6px; -moz-border-radius: 0 6px 6px 6px; border-radius: 0 6px 6px 6px; } .dropdown-submenu:hover > .dropdown-menu { display: block; } .dropup .dropdown-submenu > .dropdown-menu { top: auto; bottom: 0; margin-top: 0; margin-bottom: -2px; -webkit-border-radius: 5px 5px 5px 0; -moz-border-radius: 5px 5px 5px 0; border-radius: 5px 5px 5px 0; } .dropdown-submenu > a:after { display: block; float: right; width: 0; height: 0; margin-top: 5px; margin-right: -10px; border-color: transparent; border-left-color: #cccccc; border-style: solid; border-width: 5px 0 5px 5px; content: " "; } .dropdown-submenu:hover > a:after { border-left-color: #ffffff; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: 10px; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .dropdown .dropdown-menu .nav-header { padding-right: 20px; padding-left: 20px; } .typeahead { z-index: 1051; margin-top: 2px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #3cb9c6; border: 1px solid #32a1ac; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-large { padding: 24px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .well-small { padding: 9px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -moz-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; } .collapse.in { height: auto; } .close { float: right; font-size: 20px; font-weight: bold; line-height: 20px; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.4; filter: alpha(opacity=40); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .btn { display: inline-block; *display: inline; padding: 4px 12px; margin-bottom: 0; *margin-left: .3em; font-size: 14px; line-height: 20px; color: #444444; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); vertical-align: middle; cursor: pointer; background-color: #dddddd; *background-color: #dddddd; background-image: -moz-linear-gradient(top, #dddddd, #dddddd); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dddddd), to(#dddddd)); background-image: -webkit-linear-gradient(top, #dddddd, #dddddd); background-image: -o-linear-gradient(top, #dddddd, #dddddd); background-image: linear-gradient(to bottom, #dddddd, #dddddd); background-repeat: repeat-x; border: 1px solid rgba(0, 0, 0, 0); *border: 0; border-color: #dddddd #dddddd #b7b7b7; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); border-bottom-color: rgba(0, 0, 0, 0); -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdddddd', endColorstr='#ffdddddd', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); *zoom: 1; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] { color: #444444; background-color: #dddddd; *background-color: #d0d0d0; } .btn:active, .btn.active { background-color: #c4c4c4 \9; } .btn:first-child { *margin-left: 0; } .btn:hover, .btn:focus { color: #444444; text-decoration: none; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn.active, .btn:active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn.disabled, .btn[disabled] { cursor: default; background-image: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-large { padding: 20px 24px; font-size: 17.5px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .btn-large [class^="icon-"], .btn-large [class*=" icon-"] { margin-top: 4px; } .btn-small { padding: 8px 12px; font-size: 11.9px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn-small [class^="icon-"], .btn-small [class*=" icon-"] { margin-top: 0; } .btn-mini [class^="icon-"], .btn-mini [class*=" icon-"] { margin-top: -1px; } .btn-mini { padding: 4px 8px; font-size: 10.5px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active { color: rgba(255, 255, 255, 0.75); } .btn-primary { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #ad1d28; *background-color: #ad1d28; background-image: -moz-linear-gradient(top, #ad1d28, #ad1d28); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ad1d28), to(#ad1d28)); background-image: -webkit-linear-gradient(top, #ad1d28, #ad1d28); background-image: -o-linear-gradient(top, #ad1d28, #ad1d28); background-image: linear-gradient(to bottom, #ad1d28, #ad1d28); background-repeat: repeat-x; border-color: #ad1d28 #ad1d28 #6b1219; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffad1d28', endColorstr='#ffad1d28', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { color: #ffffff; background-color: #ad1d28; *background-color: #971923; } .btn-primary:active, .btn-primary.active { background-color: #81161e \9; } .btn-warning { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #df6e1e; *background-color: #df6e1e; background-image: -moz-linear-gradient(top, #df6e1e, #df6e1e); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#df6e1e), to(#df6e1e)); background-image: -webkit-linear-gradient(top, #df6e1e, #df6e1e); background-image: -o-linear-gradient(top, #df6e1e, #df6e1e); background-image: linear-gradient(to bottom, #df6e1e, #df6e1e); background-repeat: repeat-x; border-color: #df6e1e #df6e1e #9c4d15; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdf6e1e', endColorstr='#ffdf6e1e', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { color: #ffffff; background-color: #df6e1e; *background-color: #c9631b; } .btn-warning:active, .btn-warning.active { background-color: #b25818 \9; } .btn-danger { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #debb27; *background-color: #debb27; background-image: -moz-linear-gradient(top, #debb27, #debb27); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#debb27), to(#debb27)); background-image: -webkit-linear-gradient(top, #debb27, #debb27); background-image: -o-linear-gradient(top, #debb27, #debb27); background-image: linear-gradient(to bottom, #debb27, #debb27); background-repeat: repeat-x; border-color: #debb27 #debb27 #a08618; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdebb27', endColorstr='#ffdebb27', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { color: #ffffff; background-color: #debb27; *background-color: #ccab1f; } .btn-danger:active, .btn-danger.active { background-color: #b6991c \9; } .btn-success { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #48ca3b; *background-color: #48ca3b; background-image: -moz-linear-gradient(top, #48ca3b, #48ca3b); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#48ca3b), to(#48ca3b)); background-image: -webkit-linear-gradient(top, #48ca3b, #48ca3b); background-image: -o-linear-gradient(top, #48ca3b, #48ca3b); background-image: linear-gradient(to bottom, #48ca3b, #48ca3b); background-repeat: repeat-x; border-color: #48ca3b #48ca3b #319127; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff48ca3b', endColorstr='#ff48ca3b', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { color: #ffffff; background-color: #48ca3b; *background-color: #3eb932; } .btn-success:active, .btn-success.active { background-color: #38a52d \9; } .btn-info { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #4d3a7d; *background-color: #4d3a7d; background-image: -moz-linear-gradient(top, #4d3a7d, #4d3a7d); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d3a7d), to(#4d3a7d)); background-image: -webkit-linear-gradient(top, #4d3a7d, #4d3a7d); background-image: -o-linear-gradient(top, #4d3a7d, #4d3a7d); background-image: linear-gradient(to bottom, #4d3a7d, #4d3a7d); background-repeat: repeat-x; border-color: #4d3a7d #4d3a7d #2d2249; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4d3a7d', endColorstr='#ff4d3a7d', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { color: #ffffff; background-color: #4d3a7d; *background-color: #42326c; } .btn-info:active, .btn-info.active { background-color: #382a5a \9; } .btn-inverse { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #27666d; *background-color: #27666d; background-image: -moz-linear-gradient(top, #27666d, #27666d); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#27666d), to(#27666d)); background-image: -webkit-linear-gradient(top, #27666d, #27666d); background-image: -o-linear-gradient(top, #27666d, #27666d); background-image: linear-gradient(to bottom, #27666d, #27666d); background-repeat: repeat-x; border-color: #27666d #27666d #133135; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff27666d', endColorstr='#ff27666d', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { color: #ffffff; background-color: #27666d; *background-color: #20545a; } .btn-inverse:active, .btn-inverse.active { background-color: #1a4347 \9; } button.btn, input[type="submit"].btn { *padding-top: 3px; *padding-bottom: 3px; } button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner { padding: 0; border: 0; } button.btn.btn-large, input[type="submit"].btn.btn-large { *padding-top: 7px; *padding-bottom: 7px; } button.btn.btn-small, input[type="submit"].btn.btn-small { *padding-top: 3px; *padding-bottom: 3px; } button.btn.btn-mini, input[type="submit"].btn.btn-mini { *padding-top: 1px; *padding-bottom: 1px; } .btn-link, .btn-link:active, .btn-link[disabled] { background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { color: #e8d069; cursor: pointer; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover, .btn-link:focus { color: #e8d069; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, .btn-link[disabled]:focus { color: #444444; text-decoration: none; } .btn-group { position: relative; display: inline-block; *display: inline; *margin-left: .3em; font-size: 0; white-space: nowrap; vertical-align: middle; *zoom: 1; } .btn-group:first-child { *margin-left: 0; } .btn-group + .btn-group { margin-left: 5px; } .btn-toolbar { margin-top: 10px; margin-bottom: 10px; font-size: 0; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group { margin-left: 5px; } .btn-group > .btn { position: relative; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group > .btn + .btn { margin-left: -1px; } .btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { font-size: 14px; } .btn-group > .btn-mini { font-size: 10.5px; } .btn-group > .btn-small { font-size: 11.9px; } .btn-group > .btn-large { font-size: 17.5px; } .btn-group > .btn:first-child { margin-left: 0; -webkit-border-bottom-left-radius: 0; border-bottom-left-radius: 0; -webkit-border-top-left-radius: 0; border-top-left-radius: 0; -moz-border-radius-bottomleft: 0; -moz-border-radius-topleft: 0; } .btn-group > .btn:last-child, .btn-group > .dropdown-toggle { -webkit-border-top-right-radius: 0; border-top-right-radius: 0; -webkit-border-bottom-right-radius: 0; border-bottom-right-radius: 0; -moz-border-radius-topright: 0; -moz-border-radius-bottomright: 0; } .btn-group > .btn.large:first-child { margin-left: 0; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-topleft: 6px; } .btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle { -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; } .btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active { z-index: 2; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { *padding-top: 5px; padding-right: 8px; *padding-bottom: 5px; padding-left: 8px; -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn-group > .btn-mini + .dropdown-toggle { *padding-top: 2px; padding-right: 5px; *padding-bottom: 2px; padding-left: 5px; } .btn-group > .btn-small + .dropdown-toggle { *padding-top: 5px; *padding-bottom: 4px; } .btn-group > .btn-large + .dropdown-toggle { *padding-top: 7px; padding-right: 12px; *padding-bottom: 7px; padding-left: 12px; } .btn-group.open .dropdown-toggle { background-image: none; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn-group.open .btn.dropdown-toggle { background-color: #dddddd; } .btn-group.open .btn-primary.dropdown-toggle { background-color: #ad1d28; } .btn-group.open .btn-warning.dropdown-toggle { background-color: #df6e1e; } .btn-group.open .btn-danger.dropdown-toggle { background-color: #debb27; } .btn-group.open .btn-success.dropdown-toggle { background-color: #48ca3b; } .btn-group.open .btn-info.dropdown-toggle { background-color: #4d3a7d; } .btn-group.open .btn-inverse.dropdown-toggle { background-color: #27666d; } .btn .caret { margin-top: 8px; margin-left: 0; } .btn-large .caret { margin-top: 6px; } .btn-large .caret { border-top-width: 5px; border-right-width: 5px; border-left-width: 5px; } .btn-mini .caret, .btn-small .caret { margin-top: 8px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-primary .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret, .btn-inverse .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .btn-group-vertical { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; } .btn-group-vertical > .btn { display: block; float: none; max-width: 100%; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group-vertical > .btn + .btn { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:first-child { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .btn-group-vertical > .btn:last-child { -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .btn-group-vertical > .btn-large:first-child { -webkit-border-radius: 6px 6px 0 0; -moz-border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0; } .btn-group-vertical > .btn-large:last-child { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .alert { padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); background-color: #df6e1e; border: 1px solid #d2491c; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .alert, .alert h4 { color: #e1f0f0; } .alert h4 { margin: 0; } .alert .close { position: relative; top: -2px; right: -21px; line-height: 20px; } .alert-success { color: #e1f0f0; background-color: #48ca3b; border-color: #55b932; } .alert-success h4 { color: #e1f0f0; } .alert-danger, .alert-error { color: #e1f0f0; background-color: #ad1d28; border-color: #a01b3b; } .alert-danger h4, .alert-error h4 { color: #e1f0f0; } .alert-info { color: #e1f0f0; background-color: #4d3a7d; border-color: #352f65; } .alert-info h4 { color: #e1f0f0; } .alert-block { padding-top: 14px; padding-bottom: 14px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .nav { margin-bottom: 20px; margin-left: 0; list-style: none; } .nav > li > a { display: block; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #dddddd; } .nav > li > a > img { max-width: none; } .nav > .pull-right { float: right; } .nav-header { display: block; padding: 3px 15px; font-size: 11px; font-weight: bold; line-height: 20px; color: #aaaaaa; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-transform: uppercase; } .nav li + .nav-header { margin-top: 9px; } .nav-list { padding-right: 15px; padding-left: 15px; margin-bottom: 0; } .nav-list > li > a, .nav-list .nav-header { margin-right: -15px; margin-left: -15px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .nav-list > li > a { padding: 3px 15px; } .nav-list > .active > a, .nav-list > .active > a:hover, .nav-list > .active > a:focus { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background-color: #e8d069; } .nav-list [class^="icon-"], .nav-list [class*=" icon-"] { margin-right: 2px; } .nav-list .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; } .nav-tabs, .nav-pills { *zoom: 1; } .nav-tabs:before, .nav-pills:before, .nav-tabs:after, .nav-pills:after { display: table; line-height: 0; content: ""; } .nav-tabs:after, .nav-pills:after { clear: both; } .nav-tabs > li, .nav-pills > li { float: left; } .nav-tabs > li > a, .nav-pills > li > a { padding-right: 12px; padding-left: 12px; margin-right: 2px; line-height: 14px; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { margin-bottom: -1px; } .nav-tabs > li > a { padding-top: 8px; padding-bottom: 8px; line-height: 20px; border: 1px solid transparent; -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover, .nav-tabs > li > a:focus { border-color: #dddddd #dddddd #dddddd; } .nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus { color: #555555; cursor: default; background-color: #003f4d; border: 1px solid #ddd; border-bottom-color: transparent; } .nav-pills > li > a { padding-top: 8px; padding-bottom: 8px; margin-top: 2px; margin-bottom: 2px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .nav-pills > .active > a, .nav-pills > .active > a:hover, .nav-pills > .active > a:focus { color: #ffffff; background-color: #e8d069; } .nav-stacked > li { float: none; } .nav-stacked > li > a { margin-right: 0; } .nav-tabs.nav-stacked { border-bottom: 0; } .nav-tabs.nav-stacked > li > a { border: 1px solid #ddd; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .nav-tabs.nav-stacked > li:first-child > a { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; } .nav-tabs.nav-stacked > li:last-child > a { -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -moz-border-radius-bottomleft: 4px; } .nav-tabs.nav-stacked > li > a:hover, .nav-tabs.nav-stacked > li > a:focus { z-index: 2; border-color: #ddd; } .nav-pills.nav-stacked > li > a { margin-bottom: 3px; } .nav-pills.nav-stacked > li:last-child > a { margin-bottom: 1px; } .nav-tabs .dropdown-menu { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .nav-pills .dropdown-menu { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .nav .dropdown-toggle .caret { margin-top: 6px; border-top-color: #e8d069; border-bottom-color: #e8d069; } .nav .dropdown-toggle:hover .caret, .nav .dropdown-toggle:focus .caret { border-top-color: #e8d069; border-bottom-color: #e8d069; } /* move down carets for tabs */ .nav-tabs .dropdown-toggle .caret { margin-top: 8px; } .nav .active .dropdown-toggle .caret { border-top-color: #fff; border-bottom-color: #fff; } .nav-tabs .active .dropdown-toggle .caret { border-top-color: #555555; border-bottom-color: #555555; } .nav > .dropdown.active > a:hover, .nav > .dropdown.active > a:focus { cursor: pointer; } .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > li.dropdown.open.active > a:hover, .nav > li.dropdown.open.active > a:focus { color: #ffffff; background-color: #aaaaaa; border-color: #aaaaaa; } .nav li.dropdown.open .caret, .nav li.dropdown.open.active .caret, .nav li.dropdown.open a:hover .caret, .nav li.dropdown.open a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; opacity: 1; filter: alpha(opacity=100); } .tabs-stacked .open > a:hover, .tabs-stacked .open > a:focus { border-color: #aaaaaa; } .tabbable { *zoom: 1; } .tabbable:before, .tabbable:after { display: table; line-height: 0; content: ""; } .tabbable:after { clear: both; } .tab-content { overflow: auto; } .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left > .nav-tabs { border-bottom: 0; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .tabs-below > .nav-tabs { border-top: 1px solid #ddd; } .tabs-below > .nav-tabs > li { margin-top: -1px; margin-bottom: 0; } .tabs-below > .nav-tabs > li > a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .tabs-below > .nav-tabs > li > a:hover, .tabs-below > .nav-tabs > li > a:focus { border-top-color: #ddd; border-bottom-color: transparent; } .tabs-below > .nav-tabs > .active > a, .tabs-below > .nav-tabs > .active > a:hover, .tabs-below > .nav-tabs > .active > a:focus { border-color: transparent #ddd #ddd #ddd; } .tabs-left > .nav-tabs > li, .tabs-right > .nav-tabs > li { float: none; } .tabs-left > .nav-tabs > li > a, .tabs-right > .nav-tabs > li > a { min-width: 74px; margin-right: 0; margin-bottom: 3px; } .tabs-left > .nav-tabs { float: left; margin-right: 19px; border-right: 1px solid #ddd; } .tabs-left > .nav-tabs > li > a { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .tabs-left > .nav-tabs > li > a:hover, .tabs-left > .nav-tabs > li > a:focus { border-color: #dddddd #dddddd #dddddd #dddddd; } .tabs-left > .nav-tabs .active > a, .tabs-left > .nav-tabs .active > a:hover, .tabs-left > .nav-tabs .active > a:focus { border-color: #ddd transparent #ddd #ddd; *border-right-color: #ffffff; } .tabs-right > .nav-tabs { float: right; margin-left: 19px; border-left: 1px solid #ddd; } .tabs-right > .nav-tabs > li > a { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .tabs-right > .nav-tabs > li > a:hover, .tabs-right > .nav-tabs > li > a:focus { border-color: #dddddd #dddddd #dddddd #dddddd; } .tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a:hover, .tabs-right > .nav-tabs .active > a:focus { border-color: #ddd #ddd #ddd transparent; *border-left-color: #ffffff; } .nav > .disabled > a { color: #aaaaaa; } .nav > .disabled > a:hover, .nav > .disabled > a:focus { text-decoration: none; cursor: default; background-color: transparent; } .navbar { *position: relative; *z-index: 2; margin-bottom: 20px; overflow: visible; } .navbar-inner { min-height: 50px; padding-right: 20px; padding-left: 20px; background-color: #ad1d28; background-image: -moz-linear-gradient(top, #ad1d28, #ad1d28); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ad1d28), to(#ad1d28)); background-image: -webkit-linear-gradient(top, #ad1d28, #ad1d28); background-image: -o-linear-gradient(top, #ad1d28, #ad1d28); background-image: linear-gradient(to bottom, #ad1d28, #ad1d28); background-repeat: repeat-x; border: 1px solid #79141c; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffad1d28', endColorstr='#ffad1d28', GradientType=0); *zoom: 1; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); } .navbar-inner:before, .navbar-inner:after { display: table; line-height: 0; content: ""; } .navbar-inner:after { clear: both; } .navbar .container { width: auto; } .nav-collapse.collapse { height: auto; overflow: visible; } .navbar .brand { display: block; float: left; padding: 15px 20px 15px; margin-left: -20px; font-size: 20px; font-weight: 200; color: #ffffff; text-shadow: 0 1px 0 #ad1d28; } .navbar .brand:hover, .navbar .brand:focus { text-decoration: none; } .navbar-text { margin-bottom: 0; line-height: 50px; color: #ffffff; } .navbar-link { color: #ffffff; } .navbar-link:hover, .navbar-link:focus { color: #ffffff; } .navbar .divider-vertical { height: 50px; margin: 0 9px; border-right: 1px solid #ad1d28; border-left: 1px solid #ad1d28; } .navbar .btn, .navbar .btn-group { margin-top: 10px; } .navbar .btn-group .btn, .navbar .input-prepend .btn, .navbar .input-append .btn, .navbar .input-prepend .btn-group, .navbar .input-append .btn-group { margin-top: 0; } .navbar-form { margin-bottom: 0; *zoom: 1; } .navbar-form:before, .navbar-form:after { display: table; line-height: 0; content: ""; } .navbar-form:after { clear: both; } .navbar-form input, .navbar-form select, .navbar-form .radio, .navbar-form .checkbox { margin-top: 10px; } .navbar-form input, .navbar-form select, .navbar-form .btn { display: inline-block; margin-bottom: 0; } .navbar-form input[type="image"], .navbar-form input[type="checkbox"], .navbar-form input[type="radio"] { margin-top: 3px; } .navbar-form .input-append, .navbar-form .input-prepend { margin-top: 5px; white-space: nowrap; } .navbar-form .input-append input, .navbar-form .input-prepend input { margin-top: 0; } .navbar-search { position: relative; float: left; margin-top: 10px; margin-bottom: 0; } .navbar-search .search-query { padding: 4px 14px; margin-bottom: 0; font-family: 'Cabin', Verdana, sans-serif; font-size: 13px; font-weight: normal; line-height: 1; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .navbar-static-top { position: static; margin-bottom: 0; } .navbar-static-top .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; margin-bottom: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { border-width: 0 0 1px; } .navbar-fixed-bottom .navbar-inner { border-width: 1px 0 0; } .navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner { padding-right: 0; padding-left: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .navbar-fixed-top { top: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); } .navbar-fixed-bottom { bottom: 0; } .navbar-fixed-bottom .navbar-inner { -webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); } .navbar .nav { position: relative; left: 0; display: block; float: left; margin: 0 10px 0 0; } .navbar .nav.pull-right { float: right; margin-right: 0; } .navbar .nav > li { float: left; } .navbar .nav > li > a { float: none; padding: 15px 15px 15px; color: #ffffff; text-decoration: none; text-shadow: 0 1px 0 #ad1d28; } .navbar .nav .dropdown-toggle .caret { margin-top: 8px; } .navbar .nav > li > a:focus, .navbar .nav > li > a:hover { color: #ffffff; text-decoration: none; background-color: #d92432; } .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #d92432; -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); } .navbar .btn-navbar { display: none; float: right; padding: 7px 10px; margin-right: 5px; margin-left: 5px; color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #971923; *background-color: #971923; background-image: -moz-linear-gradient(top, #971923, #971923); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#971923), to(#971923)); background-image: -webkit-linear-gradient(top, #971923, #971923); background-image: -o-linear-gradient(top, #971923, #971923); background-image: linear-gradient(to bottom, #971923, #971923); background-repeat: repeat-x; border-color: #971923 #971923 #560e14; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff971923', endColorstr='#ff971923', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); } .navbar .btn-navbar:hover, .navbar .btn-navbar:focus, .navbar .btn-navbar:active, .navbar .btn-navbar.active, .navbar .btn-navbar.disabled, .navbar .btn-navbar[disabled] { color: #ffffff; background-color: #971923; *background-color: #81161e; } .navbar .btn-navbar:active, .navbar .btn-navbar.active { background-color: #6b1219 \9; } .navbar .btn-navbar .icon-bar { display: block; width: 18px; height: 2px; background-color: #f5f5f5; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); } .btn-navbar .icon-bar + .icon-bar { margin-top: 3px; } .navbar .nav > li > .dropdown-menu:before { position: absolute; top: -7px; left: 9px; display: inline-block; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-left: 7px solid transparent; border-bottom-color: rgba(0, 0, 0, 0.2); content: ''; } .navbar .nav > li > .dropdown-menu:after { position: absolute; top: -6px; left: 10px; display: inline-block; border-right: 6px solid transparent; border-bottom: 6px solid #ffffff; border-left: 6px solid transparent; content: ''; } .navbar-fixed-bottom .nav > li > .dropdown-menu:before { top: auto; bottom: -7px; border-top: 7px solid #ccc; border-bottom: 0; border-top-color: rgba(0, 0, 0, 0.2); } .navbar-fixed-bottom .nav > li > .dropdown-menu:after { top: auto; bottom: -6px; border-top: 6px solid #ffffff; border-bottom: 0; } .navbar .nav li.dropdown > a:hover .caret, .navbar .nav li.dropdown > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle { color: #ffffff; background-color: #d92432; } .navbar .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar .pull-right > li > .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar .pull-right > li > .dropdown-menu:before, .navbar .nav > li > .dropdown-menu.pull-right:before { right: 12px; left: auto; } .navbar .pull-right > li > .dropdown-menu:after, .navbar .nav > li > .dropdown-menu.pull-right:after { right: 13px; left: auto; } .navbar .pull-right > li > .dropdown-menu .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu { right: 100%; left: auto; margin-right: -1px; margin-left: 0; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .navbar-inverse .navbar-inner { background-color: #debb27; background-image: -moz-linear-gradient(top, #debb27, #debb27); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#debb27), to(#debb27)); background-image: -webkit-linear-gradient(top, #debb27, #debb27); background-image: -o-linear-gradient(top, #debb27, #debb27); background-image: linear-gradient(to bottom, #debb27, #debb27); background-repeat: repeat-x; border-color: rgba(0, 0, 0, 0.1); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdebb27', endColorstr='#ffdebb27', GradientType=0); } .navbar-inverse .brand, .navbar-inverse .nav > li > a { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .navbar-inverse .brand:hover, .navbar-inverse .nav > li > a:hover, .navbar-inverse .brand:focus, .navbar-inverse .nav > li > a:focus { color: #ffffff; } .navbar-inverse .brand { color: #ffffff; } .navbar-inverse .navbar-text { color: #ffffff; } .navbar-inverse .nav > li > a:focus, .navbar-inverse .nav > li > a:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.2); } .navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus { color: #ffffff; background-color: rgba(255, 255, 255, 0.2); } .navbar-inverse .navbar-link { color: #ffffff; } .navbar-inverse .navbar-link:hover, .navbar-inverse .navbar-link:focus { color: #ffffff; } .navbar-inverse .divider-vertical { border-right-color: #debb27; border-left-color: #debb27; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { color: #ffffff; background-color: rgba(255, 255, 255, 0.2); } .navbar-inverse .nav li.dropdown > a:hover .caret, .navbar-inverse .nav li.dropdown > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-search .search-query { color: #ffffff; background-color: #efde96; border-color: #debb27; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .navbar-inverse .navbar-search .search-query:-moz-placeholder { color: #ffffff; } .navbar-inverse .navbar-search .search-query:-ms-input-placeholder { color: #ffffff; } .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { color: #ffffff; } .navbar-inverse .navbar-search .search-query:focus, .navbar-inverse .navbar-search .search-query.focused { padding: 5px 15px; color: #444444; text-shadow: 0 1px 0 #ffffff; background-color: #ffffff; border: 0; outline: 0; -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); } .navbar-inverse .btn-navbar { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #ccab1f; *background-color: #ccab1f; background-image: -moz-linear-gradient(top, #ccab1f, #ccab1f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ccab1f), to(#ccab1f)); background-image: -webkit-linear-gradient(top, #ccab1f, #ccab1f); background-image: -o-linear-gradient(top, #ccab1f, #ccab1f); background-image: linear-gradient(to bottom, #ccab1f, #ccab1f); background-repeat: repeat-x; border-color: #ccab1f #ccab1f #8a7415; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffccab1f', endColorstr='#ffccab1f', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .navbar-inverse .btn-navbar:hover, .navbar-inverse .btn-navbar:focus, .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active, .navbar-inverse .btn-navbar.disabled, .navbar-inverse .btn-navbar[disabled] { color: #ffffff; background-color: #ccab1f; *background-color: #b6991c; } .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active { background-color: #a08618 \9; } .breadcrumb { padding: 8px 15px; margin: 0 0 20px; list-style: none; background-color: #f5f5f5; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .breadcrumb > li { display: inline-block; *display: inline; text-shadow: 0 1px 0 #ffffff; *zoom: 1; } .breadcrumb > li > .divider { padding: 0 5px; color: #ccc; } .breadcrumb > .active { color: #aaaaaa; } .pagination { margin: 20px 0; } .pagination ul { display: inline-block; *display: inline; margin-bottom: 0; margin-left: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; *zoom: 1; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .pagination ul > li { display: inline; } .pagination ul > li > a, .pagination ul > li > span { float: left; padding: 4px 12px; line-height: 20px; text-decoration: none; background-color: #3cb9c6; border: 1px solid transparent; border-left-width: 0; } .pagination ul > li > a:hover, .pagination ul > li > a:focus, .pagination ul > .active > a, .pagination ul > .active > span { background-color: rgba(255, 255, 255, 0.4); } .pagination ul > .active > a, .pagination ul > .active > span { color: #aaaaaa; cursor: default; } .pagination ul > .disabled > span, .pagination ul > .disabled > a, .pagination ul > .disabled > a:hover, .pagination ul > .disabled > a:focus { color: #aaaaaa; cursor: default; background-color: transparent; } .pagination ul > li:first-child > a, .pagination ul > li:first-child > span { border-left-width: 1px; -webkit-border-bottom-left-radius: 0; border-bottom-left-radius: 0; -webkit-border-top-left-radius: 0; border-top-left-radius: 0; -moz-border-radius-bottomleft: 0; -moz-border-radius-topleft: 0; } .pagination ul > li:last-child > a, .pagination ul > li:last-child > span { -webkit-border-top-right-radius: 0; border-top-right-radius: 0; -webkit-border-bottom-right-radius: 0; border-bottom-right-radius: 0; -moz-border-radius-topright: 0; -moz-border-radius-bottomright: 0; } .pagination-centered { text-align: center; } .pagination-right { text-align: right; } .pagination-large ul > li > a, .pagination-large ul > li > span { padding: 20px 24px; font-size: 17.5px; } .pagination-large ul > li:first-child > a, .pagination-large ul > li:first-child > span { -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-topleft: 6px; } .pagination-large ul > li:last-child > a, .pagination-large ul > li:last-child > span { -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; } .pagination-mini ul > li:first-child > a, .pagination-small ul > li:first-child > a, .pagination-mini ul > li:first-child > span, .pagination-small ul > li:first-child > span { -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -moz-border-radius-topleft: 3px; } .pagination-mini ul > li:last-child > a, .pagination-small ul > li:last-child > a, .pagination-mini ul > li:last-child > span, .pagination-small ul > li:last-child > span { -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; -moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; } .pagination-small ul > li > a, .pagination-small ul > li > span { padding: 8px 12px; font-size: 11.9px; } .pagination-mini ul > li > a, .pagination-mini ul > li > span { padding: 4px 8px; font-size: 10.5px; } .pager { margin: 20px 0; text-align: center; list-style: none; *zoom: 1; } .pager:before, .pager:after { display: table; line-height: 0; content: ""; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #f5f5f5; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #aaaaaa; cursor: default; background-color: #fff; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop, .modal-backdrop.fade.in { opacity: 0.8; filter: alpha(opacity=80); } .modal { position: fixed; top: 10%; left: 50%; z-index: 1050; width: 560px; margin-left: -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; } .modal.fade { top: -25%; -webkit-transition: opacity 0.3s linear, top 0.3s ease-out; -moz-transition: opacity 0.3s linear, top 0.3s ease-out; -o-transition: opacity 0.3s linear, top 0.3s ease-out; transition: opacity 0.3s linear, top 0.3s ease-out; } .modal.fade.in { top: 10%; } .modal-header { padding: 9px 15px; border-bottom: 1px solid #eee; } .modal-header .close { margin-top: 2px; } .modal-header h3 { margin: 0; line-height: 30px; } .modal-body { position: relative; max-height: 400px; padding: 15px; overflow-y: auto; } .modal-form { margin-bottom: 0; } .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; text-align: right; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; *zoom: 1; -webkit-box-shadow: inset 0 1px 0 #ffffff; -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; } .modal-footer:before, .modal-footer:after { display: table; line-height: 0; content: ""; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .tooltip { position: absolute; z-index: 1020; display: block; font-size: 11px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 0.8; filter: alpha(opacity=80); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #000000; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: #000000; border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: #000000; border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: #000000; border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: #000000; border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #ffffff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #ad1d28; border-bottom: 1px solid #971923; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .popover-title:empty { display: none; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #ffffff; border-bottom-width: 0; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #ffffff; border-left-width: 0; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #ffffff; border-top-width: 0; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #ffffff; border-right-width: 0; } .thumbnails { margin-left: -20px; list-style: none; *zoom: 1; } .thumbnails:before, .thumbnails:after { display: table; line-height: 0; content: ""; } .thumbnails:after { clear: both; } .row-fluid .thumbnails { margin-left: 0; } .thumbnails > li { float: left; margin-bottom: 20px; margin-left: 20px; } .thumbnail { display: block; padding: 4px; line-height: 20px; border: 1px solid #ddd; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } a.thumbnail:hover, a.thumbnail:focus { border-color: #e8d069; -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); } .thumbnail > img { display: block; max-width: 100%; margin-right: auto; margin-left: auto; } .thumbnail .caption { padding: 9px; color: #555555; } .media, .media-body { overflow: hidden; *overflow: visible; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { margin-left: 0; list-style: none; } .label, .badge { display: inline-block; padding: 2px 4px; font-size: 11.844px; font-weight: bold; line-height: 14px; color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); white-space: nowrap; vertical-align: baseline; background-color: #aaaaaa; } .label { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .badge { padding-right: 9px; padding-left: 9px; -webkit-border-radius: 9px; -moz-border-radius: 9px; border-radius: 9px; } .label:empty, .badge:empty { display: none; } a.label:hover, a.label:focus, a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label-important, .badge-important { background-color: #e1f0f0; } .label-important[href], .badge-important[href] { background-color: #bfdfdf; } .label-warning, .badge-warning { background-color: #df6e1e; } .label-warning[href], .badge-warning[href] { background-color: #b25818; } .label-success, .badge-success { background-color: #e1f0f0; } .label-success[href], .badge-success[href] { background-color: #bfdfdf; } .label-info, .badge-info { background-color: #e1f0f0; } .label-info[href], .badge-info[href] { background-color: #bfdfdf; } .label-inverse, .badge-inverse { background-color: #444444; } .label-inverse[href], .badge-inverse[href] { background-color: #2b2b2b; } .btn .label, .btn .badge { position: relative; top: -1px; } .btn-mini .label, .btn-mini .badge { top: 0; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #f7f7f7; background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); background-repeat: repeat-x; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress .bar { float: left; width: 0; height: 100%; font-size: 12px; color: #ffffff; text-align: center; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #0e90d2; background-image: -moz-linear-gradient(top, #149bdf, #0480be); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); background-image: -webkit-linear-gradient(top, #149bdf, #0480be); background-image: -o-linear-gradient(top, #149bdf, #0480be); background-image: linear-gradient(to bottom, #149bdf, #0480be); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: width 0.6s ease; -moz-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress .bar + .bar { -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); } .progress-striped .bar { background-color: #149bdf; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -webkit-background-size: 40px 40px; -moz-background-size: 40px 40px; -o-background-size: 40px 40px; background-size: 40px 40px; } .progress.active .bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-danger .bar, .progress .bar-danger { background-color: #dd514c; background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); } .progress-danger.progress-striped .bar, .progress-striped .bar-danger { background-color: #ee5f5b; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-success .bar, .progress .bar-success { background-color: #5eb95e; background-image: -moz-linear-gradient(top, #62c462, #57a957); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); background-image: -webkit-linear-gradient(top, #62c462, #57a957); background-image: -o-linear-gradient(top, #62c462, #57a957); background-image: linear-gradient(to bottom, #62c462, #57a957); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); } .progress-success.progress-striped .bar, .progress-striped .bar-success { background-color: #62c462; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-info .bar, .progress .bar-info { background-color: #4bb1cf; background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); background-image: -o-linear-gradient(top, #5bc0de, #339bb9); background-image: linear-gradient(to bottom, #5bc0de, #339bb9); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); } .progress-info.progress-striped .bar, .progress-striped .bar-info { background-color: #5bc0de; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-warning .bar, .progress .bar-warning { background-color: #e58846; background-image: -moz-linear-gradient(top, #ea9960, #df6e1e); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ea9960), to(#df6e1e)); background-image: -webkit-linear-gradient(top, #ea9960, #df6e1e); background-image: -o-linear-gradient(top, #ea9960, #df6e1e); background-image: linear-gradient(to bottom, #ea9960, #df6e1e); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffea9960', endColorstr='#ffdf6e1e', GradientType=0); } .progress-warning.progress-striped .bar, .progress-striped .bar-warning { background-color: #ea9960; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .accordion { margin-bottom: 20px; } .accordion-group { margin-bottom: 2px; border: 1px solid #e5e5e5; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .accordion-heading { border-bottom: 0; } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; } .accordion-toggle { cursor: pointer; } .accordion-inner { padding: 9px 15px; border-top: 1px solid #e5e5e5; } .carousel { position: relative; margin-bottom: 20px; line-height: 1; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 40%; left: 15px; width: 40px; height: 40px; margin-top: -20px; font-size: 60px; font-weight: 100; line-height: 30px; color: #ffffff; text-align: center; background: #111111; border: 3px solid #ffffff; -webkit-border-radius: 23px; -moz-border-radius: 23px; border-radius: 23px; opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.right { right: 15px; left: auto; } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-indicators { position: absolute; top: 15px; right: 15px; z-index: 5; margin: 0; list-style: none; } .carousel-indicators li { display: block; float: left; width: 10px; height: 10px; margin-left: 5px; text-indent: -999px; background-color: #ccc; background-color: rgba(255, 255, 255, 0.25); border-radius: 5px; } .carousel-indicators .active { background-color: #fff; } .carousel-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 15px; background: #444444; background: rgba(0, 0, 0, 0.75); } .carousel-caption h4, .carousel-caption p { line-height: 20px; color: #ffffff; } .carousel-caption h4 { margin: 0 0 5px; } .carousel-caption p { margin-bottom: 0; } .hero-unit { padding: 60px; margin-bottom: 30px; font-size: 18px; font-weight: 200; line-height: 30px; color: inherit; background-color: #3cb9c6; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .hero-unit h1 { margin-bottom: 0; font-size: 60px; line-height: 1; letter-spacing: -1px; color: inherit; } .hero-unit li { line-height: 30px; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; } h6 { color: #e1f0f0; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-family: 'Cabin', Verdana, sans-serif; color: #e1f0f0; } code, pre { padding: 2px; background-color: rgba(255, 255, 255, 0.3); } blockquote { border-left-color: #1cafbd; } blockquote.pull-right { border-right-color: #1cafbd; } blockquote small { color: rgba(255, 255, 255, 0.6); } .muted { color: rgba(255, 255, 255, 0.6); } body { background-color: #0f8790; background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(#12a5b0), to(#0f8790)); background-image: -webkit-radial-gradient(circle, #12a5b0, #0f8790); background-image: -moz-radial-gradient(circle, #12a5b0, #0f8790); background-image: -o-radial-gradient(circle, #12a5b0, #0f8790); background-repeat: no-repeat; } hr { border-bottom: none; } .page-header { margin: 30px 0 15px; border-bottom: 0 solid transparent; } .navbar .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar .brand { padding: 15px 20px 14px; font-family: 'Lobster', cursive; font-size: 24px; font-weight: normal; } .navbar .nav > li > a { padding-top: 17px; padding-bottom: 14px; text-shadow: none; } .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .navbar .nav > .active > a:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .navbar-search { margin-top: 10px; } .navbar .navbar-search .search-query { padding-top: 5px; padding-bottom: 5px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar .navbar-text { margin: 17px 15px 14px; line-height: 20px; } .navbar .btn, .navbar .btn-group { padding: 4px; } .navbar-inverse .dropdown-menu li > a:hover, .navbar-inverse .dropdown-menu li > a:focus, .navbar-inverse .dropdown-submenu:hover > a { background-color: #debb27; background-image: none; } @media (max-width: 979px) { .navbar .nav-collapse .nav li > a { color: #e1f0f0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar .nav-collapse .nav li > a:hover { background-color: #d92432; } .navbar .nav-collapse .dropdown-menu li > a:hover, .navbar .nav-collapse .dropdown-menu li > a:focus, .navbar .nav-collapse .dropdown-submenu:hover > a { background-image: none; } .navbar .nav-collapse .navbar-form, .navbar .nav-collapse .navbar-search { border: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .nav-collapse .navbar-search .search-query { border: 2px solid #e1f0f0; } .navbar .nav-collapse .nav-header { color: rgba(255, 255, 255, 0.5); } .navbar-inverse .nav-collapse .nav > li > a, .navbar-inverse .nav-collapse .dropdown-menu a { color: #ffffff !important; } .navbar-inverse .nav-collapse .nav li > a:hover, .navbar-inverse .nav-collapse .dropdown-menu a:hover { background-color: #e5c953 !important; } } div.subnav { margin: 0 1px; background: rgba(42, 99, 105, 0.9) none; border: none; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } div.subnav .nav > li > a { color: #e1f0f0; border-color: transparent; } div.subnav .nav > li:first-child > a, div.subnav .nav > li:first-child > a:hover { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } div.subnav .nav > .active > a { color: #e1f0f0; background-color: rgba(255, 255, 255, 0.4); border-color: transparent; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } div.subnav .nav > li > a:hover, div.subnav .nav > .active > a:hover { color: #e1f0f0; background-color: rgba(255, 255, 255, 0.4); border-right-color: transparent; } div.subnav .nav > li.open > a { background-color: rgba(255, 255, 255, 0.4); border-color: transparent; } div.subnav-fixed { top: 51px; margin: 0; } @media (max-width: 767px) { div.subnav .nav > li + li > a { border-top: 1px solid rgba(255, 255, 255, 0.4); } } .nav-tabs, .nav-pills { border-color: transparent; } .nav-tabs > li > a, .nav-pills > li > a { border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: 0; -moz-box-shadow: 0; box-shadow: 0; } .nav-tabs > li > a:hover, .nav-pills > li > a:hover { text-shadow: none; background-color: #8AD5DC; border-color: transparent; } .nav-tabs > .active > a, .nav-pills > .active > a, .nav-tabs > .active > a:hover, .nav-pills > .active > a:hover { color: #e1f0f0; text-shadow: none; background-color: #8AD5DC; border-color: transparent; } .nav-tabs > .disabled > a, .nav-pills > .disabled > a, .nav-tabs > .disabled > a:hover, .nav-pills > .disabled > a:hover { color: #dddddd; background: none; } .nav-tabs > .open > .dropdown-toggle, .nav-pills > .open > .dropdown-toggle, .nav-tabs > .open > .dropdown-toggle, .nav-pills > .open > .dropdown-toggle { color: #e8d069; background-color: #8AD5DC; border-color: transparent; } .nav-tabs { border-bottom: 1px solid rgba(255, 255, 255, 0.5); } .nav-tabs > li > a { background-color: #3CB9C6; } .nav-tabs.nav-stacked li > a:first-child, .nav-tabs.nav-stacked li > a:last-child { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .nav-tabs.nav-stacked li > a, .nav-tabs.nav-stacked li > a:hover, .nav-tabs.nav-stacked li.active > a, .nav-tabs.nav-stacked li.active > a:hover { border-color: transparent; } .nav-list .nav-header { color: #e1f0f0; text-shadow: none; } .nav-list li > a { text-shadow: none; } .nav-list li.active > a, .nav-list li > a:hover, .nav-list li.active > a:hover { text-shadow: none; background-color: #8AD5DC; } .nav-list .divider { background-color: rgba(255, 255, 255, 0.3); border-bottom: none; } .breadcrumb, .pager > li > a { text-shadow: none; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .breadcrumb { background-color: #3CB9C6; background-image: none; } .breadcrumb li { text-shadow: none; } .breadcrumb .active { color: #ffffff; } .breadcrumb > li > a.divider, .breadcrumb > li > span.divider { color: #dddddd; } .pagination ul { background-color: #3cb9c6; background-image: none; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .pagination ul > li > a:hover { color: #e8d069; background-color: rgba(255, 255, 255, 0.4); } .pagination ul > li:first-child > a, .pagination ul > li:last-child > a { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .pagination ul > .disabled > a, .pagination ul > .disabled > a:hover, .pagination ul > .disabled > span, .pagination ul > .disabled > span:hover { color: #e1f0f0; } .pagination ul > .active > a, .pagination ul > .active > a:hover, .pagination ul > .active > span, .pagination ul > .active > span:hover { color: #e1f0f0; background-color: rgba(255, 255, 255, 0.4); } .pager li > a { background-color: #3CB9C6; } .pager li > a:hover { background-color: #8AD5DC; } .pager .disabled a, .pager .disabled a:hover { color: #ffffff; background-color: #3CB9C6; } .btn { padding: 12px 16px; text-shadow: none; background-color: #dddddd; background-image: none; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn:hover, .btn:active, .btn.active, .btn.disabled, .btn[disabled] { text-shadow: none; background-color: #d0d0d0; } .btn:active, .btn.active { background-color: #b7b7b7; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn:active, .btn.active { background-color: #b7b7b7 \9; } .btn-large { padding: 20px 24px; } .btn-small { padding: 8px 12px; } .btn-mini { padding: 4px 8px; } .btn-group .btn:first-child { margin-left: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group .btn:last-child, .btn-group .dropdown-toggle { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group .dropdown-toggle, .btn-group.open .dropdown-toggle, .btn.open .dropdown-toggle { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-primary { background-color: #ad1d28; border-color: transparent; } .btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { text-shadow: none; background-color: #971923; } .btn-primary:active, .btn-primary.active { background-color: #6b1219; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-primary:active, .btn-primary.active { background-color: #6b1219 \9; } .btn-info { background-color: #4d3a7d; border-color: transparent; } .btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { text-shadow: none; background-color: #42326c; } .btn-info:active, .btn-info.active { background-color: #2d2249; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-info:active, .btn-info.active { background-color: #2d2249 \9; } .btn-success { background-color: #48ca3b; border-color: transparent; } .btn-success:hover, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { text-shadow: none; background-color: #3eb932; } .btn-success:active, .btn-success.active { background-color: #319127; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-success:active, .btn-success.active { background-color: #319127 \9; } .btn-warning { background-color: #df6e1e; border-color: transparent; } .btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { text-shadow: none; background-color: #c9631b; } .btn-warning:active, .btn-warning.active { background-color: #9c4d15; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-warning:active, .btn-warning.active { background-color: #9c4d15 \9; } .btn-danger { background-color: #debb27; border-color: transparent; } .btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { text-shadow: none; background-color: #ccab1f; } .btn-danger:active, .btn-danger.active { background-color: #a08618; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-danger:active, .btn-danger.active { background-color: #a08618 \9; } .btn-inverse { background-color: #27666d; border-color: transparent; } .btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { text-shadow: none; background-color: #20545a; } .btn-inverse:active, .btn-inverse.active { background-color: #133135; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-inverse:active, .btn-inverse.active { background-color: #133135 \9; } .btn-link { background-color: #ad1d28; border-color: transparent; } .btn-link:hover, .btn-link:active, .btn-link.active, .btn-link.disabled, .btn-link[disabled] { text-shadow: none; background-color: #971923; } .btn-link:active, .btn-link.active { background-color: #6b1219; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link:active, .btn-link.active { background-color: #6b1219 \9; } .btn-small [class^="icon-"] { margin-top: 1px; } .add-on [class^="icon-"] { margin-left: 5px; } .table th, .table td, .table tbody + tbody { border-top: 0 solid transparent; } .table-bordered { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .table tbody tr.success td { background-color: #48ca3b; } .table tbody tr.error td { background-color: #ad1d28; } .table tbody tr.info td { background-color: #00bce1; } legend { font-family: 'Lobster', cursive; } legend, label, .help-block, .input-file { color: inherit; border: 0 solid transparent; } input, textarea, .uneditable-input { padding: 10px; border: 0 solid transparent; } .uneditable-input { padding-bottom: 30px; } select { border: 0 solid transparent; } button { margin-left: 12px; } input, textarea, .search-query, .uneditable-input, .input-append input, .input-append .uneditable-input, .input-prepend input, .input-prepend .uneditable-input { border-color: transparent; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .form-actions { border-top: 0 solid transparent; } .control-group.warning .control-label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #debb27; } .control-group.warning .checkbox, .control-group.warning .radio, .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #debb27; } .control-group.warning input, .control-group.warning select, .control-group.warning textarea { border-color: #f2e5ac; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #ecd77f; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #debb27; background-color: #df6e1e; border-color: #debb27; } .control-group.error .control-label, .control-group.error .help-block, .control-group.error .help-inline { color: #df6e1e; } .control-group.error .checkbox, .control-group.error .radio, .control-group.error input, .control-group.error select, .control-group.error textarea { color: #df6e1e; } .control-group.error input, .control-group.error select, .control-group.error textarea { border-color: #f3c4a3; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #eda776; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #fffefd; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #fffefd; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #fffefd; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #df6e1e; background-color: #ad1d28; border-color: #df6e1e; } .control-group.success .control-label, .control-group.success .help-block, .control-group.success .help-inline { color: #48ca3b; } .control-group.success .checkbox, .control-group.success .radio, .control-group.success input, .control-group.success select, .control-group.success textarea { color: #48ca3b; } .control-group.success input, .control-group.success select, .control-group.success textarea { border-color: #93e08b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #6dd563; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #def5dc; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #def5dc; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #def5dc; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #48ca3b; background-color: #48ca3b; border-color: #48ca3b; } .control-group.info .control-label, .control-group.info .help-block, .control-group.info .help-inline { color: #4d3a7d; } .control-group.info .checkbox, .control-group.info .radio, .control-group.info input, .control-group.info select, .control-group.info textarea { color: #4d3a7d; } .control-group.info input, .control-group.info select, .control-group.info textarea { border-color: #7d65b8; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.info input:focus, .control-group.info select:focus, .control-group.info textarea:focus { border-color: #624aa0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #b8abd8; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #b8abd8; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #b8abd8; } .control-group.info .input-prepend .add-on, .control-group.info .input-append .add-on { color: #4d3a7d; background-color: #4d3a7d; border-color: #4d3a7d; } .control-group.warning .control-label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #f2e5ac; } .control-group.error .control-label, .control-group.error .help-block, .control-group.error .help-inline { color: #f3c4a3; } .control-group.success .control-label, .control-group.success .help-block, .control-group.success .help-inline { color: #93e08b; } .control-group.info .control-label, .control-group.info .help-block, .control-group.info .help-inline { color: #7d65b8; } .input-prepend .add-on, .input-append .add-on { height: 20px; padding-top: 4px; color: #555555; text-shadow: none; background-color: #dddddd; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-append .btn, .input-prepend .btn { padding: 4px 10px; } .alert { text-shadow: none; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .alert h1, .alert h2, .alert h3, .alert h4, .alert h5, .alert h6 { color: #e1f0f0; } .alert-heading { color: #e1f0f0; } .label, .badge { background-color: #00bce1; } .label-success, .badge-success { background-color: #48ca3b; } .label-important, .badge-important { background-color: #ad1d28; } .label-warning, .badge-warning { background-color: #df6e1e; } .label-info, .badge-info { background-color: #4d3a7d; } .label-inverse, .badge-inverse { background-color: #27666d; } .progress, .well, pre, code { text-shadow: none; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .well { background-image: none; } .hero-unit { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .thumbnail { border: 0 solid transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .progress { background-color: #27666D; background-image: none; } .progress .bar { background-color: #debb27; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .progress .bar-success { background-color: #48ca3b; } .progress .bar-warning { background-color: #df6e1e; } .progress .bar-error { background-color: #ad1d28; } .progress-danger .bar { background-color: #AD1D28; background-image: none; } .progress-danger.progress-striped .bar { background-color: #ad1d28; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-success .bar { background-color: #48ca3b; background-image: none; } .progress-success.progress-striped .bar { background-color: #48ca3b; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-info .bar { background-color: #00bce1; background-image: none; } .progress-info.progress-striped .bar { background-color: #00bce1; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .modal { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .modal-header { color: #ffffff; background-color: #ad1d28; } .modal-body { color: #444444; } .modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4, .modal-body h5, .modal-body h6, .modal-body legend { color: #ad1d28; } .modal-body label, .modal-body .input-file { color: #444444; } .modal-body .help-block, .modal-body .help-inline { color: #aaaaaa; } .modal-body textarea, .modal-body input, .modal-body .uneditable-input { border: 1px solid #aaaaaa; } .popover { padding: 0; color: #444444; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .popover .popover-title { color: #ffffff; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; }
senekis/cdnjs
ajax/libs/bootswatch/2.3.1-1/amelia/bootstrap.css
CSS
mit
152,356
webshims.register('form-shim-extend', function($, webshims, window, document, undefined, options){ "use strict"; webshims.inputTypes = webshims.inputTypes || {}; //some helper-functions var cfg = webshims.cfg.forms; var bugs = webshims.bugs; var splitReg = /\s*,\s*/g; var typeModels = webshims.inputTypes, checkTypes = { radio: 1, checkbox: 1 }, getType = function(){ var elem = this; var type = (elem.getAttribute('type') || '').toLowerCase(); return (webshims.inputTypes[type]) ? type : elem.type; }, cacheType = function(cache, input){ if(!('type' in cache)){ cache.type = getType.call(input); } } ; (function(){ if('querySelector' in document){ try { bugs.findRequired = !($('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /></form>')[0].querySelector('select:required')); } catch(er){ bugs.findRequired = false; } if (bugs.bustedValidity || bugs.findRequired) { (function(){ var find = $.find; var matchesSelector = $.find.matchesSelector; var regExp = /(\:valid|\:invalid|\:optional|\:required)(?=[\s\[\~\.\+\>\:\#*]|$)/ig; var regFn = function(sel){ return sel + '-element'; }; $.find = (function(){ var slice = Array.prototype.slice; var fn = function(sel){ var ar = arguments; ar = slice.call(ar, 1, ar.length); ar.unshift(sel.replace(regExp, regFn)); return find.apply(this, ar); }; for (var i in find) { if(find.hasOwnProperty(i)){ fn[i] = find[i]; } } return fn; })(); if(!Modernizr.prefixed || Modernizr.prefixed("matchesSelector", document.documentElement)){ $.find.matchesSelector = function(node, expr){ expr = expr.replace(regExp, regFn); return matchesSelector.call(this, node, expr); }; } })(); } } })(); //API to add new input types webshims.addInputType = function(type, obj){ typeModels[type] = obj; }; //contsrain-validation-api var validityPrototype = { customError: false, typeMismatch: false, badInput: false, rangeUnderflow: false, rangeOverflow: false, stepMismatch: false, tooLong: false, tooShort: false, patternMismatch: false, valueMissing: false, valid: true }; var isPlaceholderOptionSelected = function(select){ if(select.type == 'select-one' && select.size < 2){ var option = $('> option:first-child', select); return !!option.prop('selected'); } return false; }; var emptyJ = $([]); var getGroupElements = function(elem){ elem = $(elem); var name, form; var ret = emptyJ; if(elem[0].type == 'radio'){ name = elem[0].name; if(!name){ ret = elem; } else { form = elem.prop('form'); ret = $(document.getElementsByName(name)).filter(function(){ return this.type == 'radio' && this.name == name && $.prop(this, 'form') == form; }); } } return ret; }; var patternTypes = {url: 1, email: 1, text: 1, search: 1, tel: 1, password: 1}; var lengthTypes = $.extend({textarea: 1}, patternTypes); var validityRules = { valueMissing: function(input, val, cache){ if(!input.prop('required')){return false;} var ret = false; cacheType(cache, input[0]); if(cache.nodeName == 'select'){ ret = (!val && (input[0].selectedIndex < 0 || isPlaceholderOptionSelected(input[0]) )); } else if(checkTypes[cache.type]){ ret = (cache.type == 'checkbox') ? !input.is(':checked') : !getGroupElements(input).filter(':checked')[0]; } else { ret = !(val); } return ret; }, patternMismatch: function(input, val, cache) { var i; var ret = false; if(val === '' || cache.nodeName == 'select'){return ret;} cacheType(cache, input[0]); if(!patternTypes[cache.type]){return ret;} var pattern = input.attr('pattern'); if(!pattern){return ret;} try { pattern = new RegExp('^(?:' + pattern + ')$'); } catch(er){ webshims.error('invalid pattern value: "'+ pattern +'" | '+ er); pattern = ret; } if(!pattern){return ret;} val = cache.type == 'email' && input.prop('multiple') ? val.split(splitReg) : [val]; for(i = 0; i < val.length; i++){ if(!pattern.test(val[i])){ ret = true; break; } } return ret; } } ; $.each({tooShort: ['minLength', -1], tooLong: ['maxLength', 1]}, function(name, props){ validityRules[name] = function(input, val, cache){ //defaultValue is not the same as dirty flag, but very similiar if(cache.nodeName == 'select' || input.prop('defaultValue') == val){return false;} cacheType(cache, input[0]); if(!lengthTypes[cache.type]){return false;} var prop = input.prop(props[0]); return ( prop > 0 && prop * props[1] < val.length * props[1] ); }; }); $.each({typeMismatch: 'mismatch', badInput: 'bad'}, function(name, fn){ validityRules[name] = function (input, val, cache){ if(val === '' || cache.nodeName == 'select'){return false;} var ret = false; cacheType(cache, input[0]); if(typeModels[cache.type] && typeModels[cache.type][fn]){ ret = typeModels[cache.type][fn](val, input); } else if('validity' in input[0] && ('name' in input[0].validity)){ ret = input[0].validity[name] || false; } return ret; }; }); webshims.addValidityRule = function(type, fn){ validityRules[type] = fn; }; $.event.special.invalid = { add: function(){ $.event.special.invalid.setup.call(this.form || this); }, setup: function(){ var form = this.form || this; if( $.data(form, 'invalidEventShim') ){ form = null; return; } $(form) .data('invalidEventShim', true) .on('submit', $.event.special.invalid.handler) ; webshims.moveToFirstEvent(form, 'submit'); if(webshims.bugs.bustedValidity && $.nodeName(form, 'form')){ (function(){ var noValidate = form.getAttribute('novalidate'); form.setAttribute('novalidate', 'novalidate'); webshims.data(form, 'bustedNoValidate', (noValidate == null) ? null : noValidate); })(); } form = null; }, teardown: $.noop, handler: function(e, d){ if( e.type != 'submit' || e.testedValidity || !e.originalEvent || !$.nodeName(e.target, 'form') || $.prop(e.target, 'noValidate') ){return;} e.testedValidity = true; var notValid = !($(e.target).callProp('reportValidity')); if(notValid){ e.stopImmediatePropagation(); if(!options.noFormInvalid){ $(e.target).trigger('invalid'); } return false; } } }; $.event.special.submit = $.event.special.submit || {setup: function(){return false;}}; var submitSetup = $.event.special.submit.setup; $.extend($.event.special.submit, { setup: function(){ if($.nodeName(this, 'form')){ $(this).on('invalid', $.noop); } else { $('form', this).on('invalid', $.noop); } return submitSetup.apply(this, arguments); } }); webshims.ready('form-shim-extend2 WINDOWLOAD', function(){ $(window).on('invalid', $.noop); }); webshims.addInputType('email', { mismatch: (function(){ //taken from http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address var test = cfg.emailReg || /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; return function(val, input){ var i; var ret = false; if(val){ val = input.prop('multiple') ? val.split(splitReg) : [val]; for(i = 0; i < val.length; i++){ if(!test.test(val[i])){ ret = true; break; } } } return ret; }; })() }); webshims.addInputType('url', { mismatch: (function(){ //taken from scott gonzales var test = cfg.urlReg || /^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i; return function(val){ return val && !test.test(val); }; })() }); webshims.defineNodeNameProperty('input', 'type', { prop: { get: getType } }); // IDLs for constrain validation API //ToDo: add object to this list webshims.defineNodeNamesProperties(['button', 'fieldset', 'output'], { checkValidity: { value: function(){return true;} }, reportValidity: { value: function(){return true;} }, willValidate: { value: false }, setCustomValidity: { value: $.noop }, validity: { writeable: false, get: function(){ return $.extend({}, validityPrototype); } } }, 'prop'); var baseCheckValidity = function(elem, type){ var e, v = $.prop(elem, 'validity') ; if(v){ $.data(elem, 'cachedValidity', v); } else { return true; } if( !v.valid ){ e = $.Event('invalid'); var jElm = $(elem).trigger(e); if(type == 'reportValidity' && !baseCheckValidity.unhandledInvalids && !e.isDefaultPrevented()){ webshims.validityAlert.showFor(jElm); baseCheckValidity.unhandledInvalids = true; } } $.removeData(elem, 'cachedValidity'); return v.valid; }; var rsubmittable = /^(?:select|textarea|input)/i; ['checkValidity', 'reportValidity'].forEach(function(name){ webshims.defineNodeNameProperty('form', name, { prop: { value: function(){ var ret = true, elems = $($.prop(this, 'elements')).filter(function(){ if(!rsubmittable.test(this.nodeName)){return false;} var shadowData = webshims.data(this, 'shadowData'); return !shadowData || !shadowData.nativeElement || shadowData.nativeElement === this; }) ; baseCheckValidity.unhandledInvalids = false; for(var i = 0, len = elems.length; i < len; i++){ if( !baseCheckValidity(elems[i], name) ){ ret = false; } } return ret; } } }); }); ['input', 'textarea', 'select'].forEach(function(nodeName){ var inputValidationAPI = { setCustomValidity: { value: function(error){ $.removeData(this, 'cachedValidity'); webshims.data(this, 'customvalidationMessage', ''+error); if(bugs.bustedValidity && inputValidationAPI.setCustomValidity.prop._supvalue){ inputValidationAPI.setCustomValidity.prop._supvalue.apply(this, arguments); } } }, willValidate: { writeable: false, get: (function(){ var types = { button: 1, reset: 1, hidden: 1, image: 1 } ; return function(){ var elem = $(this).getNativeElement()[0]; return !!(!elem.readOnly && !types[elem.type] && !$(elem).is(':disabled') ); }; })() }, validity: { writeable: false, get: function(){ var jElm = $(this).getNativeElement(); var elem = jElm[0]; var validityState = $.data(elem, 'cachedValidity'); if(validityState){ return validityState; } validityState = $.extend({}, validityPrototype); if( !$.prop(elem, 'willValidate') || elem.type == 'submit' ){ return validityState; } var val = jElm.val(); var cache = {nodeName: elem.nodeName.toLowerCase()}; validityState.customError = !!(webshims.data(elem, 'customvalidationMessage')); if( validityState.customError ){ validityState.valid = false; } $.each(validityRules, function(rule, fn){ if (fn(jElm, val, cache)) { validityState[rule] = true; validityState.valid = false; } }); $(this).getShadowFocusElement().attr('aria-invalid', validityState.valid ? 'false' : 'true'); jElm = null; elem = null; return validityState; } } }; ['checkValidity', 'reportValidity'].forEach(function(name){ inputValidationAPI[name] = { value: function(){ baseCheckValidity.unhandledInvalids = false; return baseCheckValidity($(this).getNativeElement()[0], name); } }; }); webshims.defineNodeNameProperties(nodeName, inputValidationAPI, 'prop'); }); webshims.defineNodeNamesBooleanProperty(['input', 'textarea', 'select'], 'required', { set: function(value){ $(this).getShadowFocusElement().attr('aria-required', !!(value)+''); }, initAttr: true }); webshims.defineNodeNamesBooleanProperty(['input'], 'multiple'); if(bugs.bustedValidity){ webshims.defineNodeNameProperty('form', 'novalidate', { attr: { set: function(val){ webshims.data(this, 'bustedNoValidate', ''+val); }, get: function(){ var ret = webshims.data(this, 'bustedNoValidate'); return ret == null ? undefined : ret; } }, removeAttr: { value: function(){ webshims.data(this, 'bustedNoValidate', null); } } }); $.each(['rangeUnderflow', 'rangeOverflow', 'stepMismatch'], function(i, name){ validityRules[name] = function(elem){ return (elem[0].validity || {})[name] || false; }; }); } webshims.defineNodeNameProperty('form', 'noValidate', { prop: { set: function(val){ val = !!val; if(val){ $.attr(this, 'novalidate', 'novalidate'); } else { $(this).removeAttr('novalidate'); } }, get: function(){ return $.attr(this, 'novalidate') != null; } } }); ['minlength', 'minLength'].forEach(function(propName){ webshims.defineNodeNamesProperty(['input', 'textarea'], propName, { prop: { set: function(val){ val *= 1; if(val < 0){ throw('INDEX_SIZE_ERR'); } this.setAttribute('minlength', val || 0); }, get: function(){ var val = this.getAttribute('minlength'); return val == null ? -1 : (val * 1) || 0; } } }); }); if(Modernizr.inputtypes.date && /webkit/i.test(navigator.userAgent)){ (function(){ var noInputTriggerEvts = {updateInput: 1, input: 1}, fixInputTypes = { date: 1, time: 1, month: 1, week: 1, "datetime-local": 1 }, noFocusEvents = { focusout: 1, blur: 1 }, changeEvts = { updateInput: 1, change: 1 }, observe = function(input){ var timer, focusedin = true, lastInputVal = input.prop('value'), lastChangeVal = lastInputVal, trigger = function(e){ //input === null if(!input){return;} var newVal = input.prop('value'); if(newVal !== lastInputVal){ lastInputVal = newVal; if(!e || !noInputTriggerEvts[e.type]){ input.trigger('input'); } } if(e && changeEvts[e.type]){ lastChangeVal = newVal; } if(!focusedin && newVal !== lastChangeVal){ input.trigger('change'); } }, extraTimer, extraTest = function(){ clearTimeout(extraTimer); extraTimer = setTimeout(trigger, 9); }, unbind = function(e){ clearInterval(timer); setTimeout(function(){ if(e && noFocusEvents[e.type]){ focusedin = false; } if(input){ input.off('focusout blur', unbind).off('input change updateInput', trigger); trigger(); } input = null; }, 1); } ; clearInterval(timer); timer = setInterval(trigger, 160); extraTest(); input .off({ 'focusout blur': unbind, 'input change updateInput': trigger }) .on({ 'focusout blur': unbind, 'input updateInput change': trigger }) ; } ; $(document) .on('focusin', function(e){ if( e.target && fixInputTypes[e.target.type] && !e.target.readOnly && !e.target.disabled ){ observe($(e.target)); } }) ; })(); } webshims.addReady(function(context, contextElem){ //start constrain-validation var focusElem; $('form', context) .add(contextElem.filter('form')) .on('invalid', $.noop) ; try { if(context == document && !('form' in (document.activeElement || {}))) { focusElem = $(context.querySelector('input[autofocus], select[autofocus], textarea[autofocus]')).eq(0).getShadowFocusElement()[0]; if (focusElem && focusElem.offsetHeight && focusElem.offsetWidth) { focusElem.focus(); } } } catch (er) {} }); if(!Modernizr.input.list){ webshims.defineNodeNameProperty('datalist', 'options', { prop: { writeable: false, get: function(){ var elem = this; var select = $('select', elem); var options; if(select[0]){ options = $.makeArray(select[0].options || []); } else { options = elem.getElementsByTagName('option'); if(options.length){ webshims.warn('you should wrap your option-elements for a datalist in a select element to support IE and other old browsers.'); } } return options; } } }); } var submitterTypes = {submit: 1, button: 1, image: 1}; var formSubmitterDescriptors = {}; [ { name: "enctype", limitedTo: { "application/x-www-form-urlencoded": 1, "multipart/form-data": 1, "text/plain": 1 }, defaultProp: "application/x-www-form-urlencoded", proptype: "enum" }, { name: "method", limitedTo: { "get": 1, "post": 1 }, defaultProp: "get", proptype: "enum" }, { name: "action", proptype: "url" }, { name: "target" }, { name: "novalidate", propName: "noValidate", proptype: "boolean" } ].forEach(function(desc){ var propName = 'form'+ (desc.propName || desc.name).replace(/^[a-z]/, function(f){ return f.toUpperCase(); }); var attrName = 'form'+ desc.name; var formName = desc.name; var eventName = 'click.webshimssubmittermutate'+formName; var changeSubmitter = function(){ var elem = this; if( !('form' in elem) || !submitterTypes[elem.type] ){return;} var form = $.prop(elem, 'form'); if(!form){return;} var attr = $.attr(elem, attrName); if(attr != null && ( !desc.limitedTo || attr.toLowerCase() === $.prop(elem, propName))){ var oldAttr = $.attr(form, formName); $.attr(form, formName, attr); setTimeout(function(){ if(oldAttr != null){ $.attr(form, formName, oldAttr); } else { try { $(form).removeAttr(formName); } catch(er){ form.removeAttribute(formName); } } }, 9); } }; switch(desc.proptype) { case "url": var urlForm = document.createElement('form'); formSubmitterDescriptors[propName] = { prop: { set: function(value){ $.attr(this, attrName, value); }, get: function(){ var value = $.attr(this, attrName); if(value == null){return '';} urlForm.setAttribute('action', value); return urlForm.action; } } }; break; case "boolean": formSubmitterDescriptors[propName] = { prop: { set: function(val){ val = !!val; if(val){ $.attr(this, 'formnovalidate', 'formnovalidate'); } else { $(this).removeAttr('formnovalidate'); } }, get: function(){ return $.attr(this, 'formnovalidate') != null; } } }; break; case "enum": formSubmitterDescriptors[propName] = { prop: { set: function(value){ $.attr(this, attrName, value); }, get: function(){ var value = $.attr(this, attrName); return (!value || ( (value = value.toLowerCase()) && !desc.limitedTo[value] )) ? desc.defaultProp : value; } } }; break; default: formSubmitterDescriptors[propName] = { prop: { set: function(value){ $.attr(this, attrName, value); }, get: function(){ var value = $.attr(this, attrName); return (value != null) ? value : ""; } } }; } if(!formSubmitterDescriptors[attrName]){ formSubmitterDescriptors[attrName] = {}; } formSubmitterDescriptors[attrName].attr = { set: function(value){ formSubmitterDescriptors[attrName].attr._supset.call(this, value); $(this).off(eventName).on(eventName, changeSubmitter); }, get: function(){ return formSubmitterDescriptors[attrName].attr._supget.call(this); } }; formSubmitterDescriptors[attrName].initAttr = true; formSubmitterDescriptors[attrName].removeAttr = { value: function(){ $(this).off(eventName); formSubmitterDescriptors[attrName].removeAttr._supvalue.call(this); } }; }); webshims.defineNodeNamesProperties(['input', 'button'], formSubmitterDescriptors); }); //webshims.ready end
whardier/cdnjs
ajax/libs/webshim/1.13.1/dev/shims/form-shim-extend.js
JavaScript
mit
21,009
@import url('//fonts.googleapis.com/css?family=Oswald|Noticia+Text'); /*! * Bootstrap v2.3.1 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; line-height: 0; content: ""; } .clearfix:after { clear: both; } .hide-text { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .input-block-level { display: block; width: 100%; min-height: 30px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } a:hover, a:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { width: auto\9; height: auto; max-width: 100%; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } #map_canvas img, .google-maps img { max-width: none; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { *overflow: visible; line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] { cursor: pointer; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } body { margin: 0; font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif; font-size: 15px; line-height: 20px; color: #ece9d7; background-color: #2a333c; } a { color: #e36b23; text-decoration: none; } a:hover, a:focus { color: #e36b23; text-decoration: underline; } .img-rounded { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .img-polaroid { padding: 4px; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .img-circle { -webkit-border-radius: 500px; -moz-border-radius: 500px; border-radius: 500px; } .row { margin-left: -20px; *zoom: 1; } .row:before, .row:after { display: table; line-height: 0; content: ""; } .row:after { clear: both; } [class*="span"] { float: left; min-height: 1px; margin-left: 20px; } .container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .span12 { width: 940px; } .span11 { width: 860px; } .span10 { width: 780px; } .span9 { width: 700px; } .span8 { width: 620px; } .span7 { width: 540px; } .span6 { width: 460px; } .span5 { width: 380px; } .span4 { width: 300px; } .span3 { width: 220px; } .span2 { width: 140px; } .span1 { width: 60px; } .offset12 { margin-left: 980px; } .offset11 { margin-left: 900px; } .offset10 { margin-left: 820px; } .offset9 { margin-left: 740px; } .offset8 { margin-left: 660px; } .offset7 { margin-left: 580px; } .offset6 { margin-left: 500px; } .offset5 { margin-left: 420px; } .offset4 { margin-left: 340px; } .offset3 { margin-left: 260px; } .offset2 { margin-left: 180px; } .offset1 { margin-left: 100px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; line-height: 0; content: ""; } .row-fluid:after { clear: both; } .row-fluid [class*="span"] { display: block; float: left; width: 100%; min-height: 30px; margin-left: 2.127659574468085%; *margin-left: 2.074468085106383%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .row-fluid [class*="span"]:first-child { margin-left: 0; } .row-fluid .controls-row [class*="span"] + [class*="span"] { margin-left: 2.127659574468085%; } .row-fluid .span12 { width: 100%; *width: 99.94680851063829%; } .row-fluid .span11 { width: 91.48936170212765%; *width: 91.43617021276594%; } .row-fluid .span10 { width: 82.97872340425532%; *width: 82.92553191489361%; } .row-fluid .span9 { width: 74.46808510638297%; *width: 74.41489361702126%; } .row-fluid .span8 { width: 65.95744680851064%; *width: 65.90425531914893%; } .row-fluid .span7 { width: 57.44680851063829%; *width: 57.39361702127659%; } .row-fluid .span6 { width: 48.93617021276595%; *width: 48.88297872340425%; } .row-fluid .span5 { width: 40.42553191489362%; *width: 40.37234042553192%; } .row-fluid .span4 { width: 31.914893617021278%; *width: 31.861702127659576%; } .row-fluid .span3 { width: 23.404255319148934%; *width: 23.351063829787233%; } .row-fluid .span2 { width: 14.893617021276595%; *width: 14.840425531914894%; } .row-fluid .span1 { width: 6.382978723404255%; *width: 6.329787234042553%; } .row-fluid .offset12 { margin-left: 104.25531914893617%; *margin-left: 104.14893617021275%; } .row-fluid .offset12:first-child { margin-left: 102.12765957446808%; *margin-left: 102.02127659574467%; } .row-fluid .offset11 { margin-left: 95.74468085106382%; *margin-left: 95.6382978723404%; } .row-fluid .offset11:first-child { margin-left: 93.61702127659574%; *margin-left: 93.51063829787232%; } .row-fluid .offset10 { margin-left: 87.23404255319149%; *margin-left: 87.12765957446807%; } .row-fluid .offset10:first-child { margin-left: 85.1063829787234%; *margin-left: 84.99999999999999%; } .row-fluid .offset9 { margin-left: 78.72340425531914%; *margin-left: 78.61702127659572%; } .row-fluid .offset9:first-child { margin-left: 76.59574468085106%; *margin-left: 76.48936170212764%; } .row-fluid .offset8 { margin-left: 70.2127659574468%; *margin-left: 70.10638297872339%; } .row-fluid .offset8:first-child { margin-left: 68.08510638297872%; *margin-left: 67.9787234042553%; } .row-fluid .offset7 { margin-left: 61.70212765957446%; *margin-left: 61.59574468085106%; } .row-fluid .offset7:first-child { margin-left: 59.574468085106375%; *margin-left: 59.46808510638297%; } .row-fluid .offset6 { margin-left: 53.191489361702125%; *margin-left: 53.085106382978715%; } .row-fluid .offset6:first-child { margin-left: 51.063829787234035%; *margin-left: 50.95744680851063%; } .row-fluid .offset5 { margin-left: 44.68085106382979%; *margin-left: 44.57446808510638%; } .row-fluid .offset5:first-child { margin-left: 42.5531914893617%; *margin-left: 42.4468085106383%; } .row-fluid .offset4 { margin-left: 36.170212765957444%; *margin-left: 36.06382978723405%; } .row-fluid .offset4:first-child { margin-left: 34.04255319148936%; *margin-left: 33.93617021276596%; } .row-fluid .offset3 { margin-left: 27.659574468085104%; *margin-left: 27.5531914893617%; } .row-fluid .offset3:first-child { margin-left: 25.53191489361702%; *margin-left: 25.425531914893618%; } .row-fluid .offset2 { margin-left: 19.148936170212764%; *margin-left: 19.04255319148936%; } .row-fluid .offset2:first-child { margin-left: 17.02127659574468%; *margin-left: 16.914893617021278%; } .row-fluid .offset1 { margin-left: 10.638297872340425%; *margin-left: 10.53191489361702%; } .row-fluid .offset1:first-child { margin-left: 8.51063829787234%; *margin-left: 8.404255319148938%; } [class*="span"].hide, .row-fluid [class*="span"].hide { display: none; } [class*="span"].pull-right, .row-fluid [class*="span"].pull-right { float: right; } .container { margin-right: auto; margin-left: auto; *zoom: 1; } .container:before, .container:after { display: table; line-height: 0; content: ""; } .container:after { clear: both; } .container-fluid { padding-right: 20px; padding-left: 20px; *zoom: 1; } .container-fluid:before, .container-fluid:after { display: table; line-height: 0; content: ""; } .container-fluid:after { clear: both; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 22.5px; font-weight: 200; line-height: 30px; } small { font-size: 85%; } strong { font-weight: bold; } em { font-style: italic; } cite { font-style: normal; } .muted { color: #999999; } a.muted:hover, a.muted:focus { color: #808080; } .text-warning { color: #c09853; } a.text-warning:hover, a.text-warning:focus { color: #a47e3c; } .text-error { color: #b94a48; } a.text-error:hover, a.text-error:focus { color: #953b39; } .text-info { color: #3a87ad; } a.text-info:hover, a.text-info:focus { color: #2d6987; } .text-success { color: #468847; } a.text-success:hover, a.text-success:focus { color: #356635; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6 { margin: 10px 0; font-family: 'Oswald', sans-serif; font-weight: bold; line-height: 20px; color: #e36b23; text-rendering: optimizelegibility; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: normal; line-height: 1; color: #999999; } h1, h2, h3 { line-height: 40px; } h1 { font-size: 41.25px; } h2 { font-size: 33.75px; } h3 { font-size: 26.25px; } h4 { font-size: 18.75px; } h5 { font-size: 15px; } h6 { font-size: 12.75px; } h1 small { font-size: 26.25px; } h2 small { font-size: 18.75px; } h3 small { font-size: 15px; } h4 small { font-size: 15px; } .page-header { padding-bottom: 9px; margin: 20px 0 30px; border-bottom: 1px solid #eeeeee; } ul, ol { padding: 0; margin: 0 0 10px 25px; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; } li { line-height: 20px; } ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } ul.inline, ol.inline { margin-left: 0; list-style: none; } ul.inline > li, ol.inline > li { display: inline-block; *display: inline; padding-right: 5px; padding-left: 5px; *zoom: 1; } dl { margin-bottom: 20px; } dt, dd { line-height: 20px; } dt { font-weight: bold; } dd { margin-left: 10px; } .dl-horizontal { *zoom: 1; } .dl-horizontal:before, .dl-horizontal:after { display: table; line-height: 0; content: ""; } .dl-horizontal:after { clear: both; } .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } hr { margin: 20px 0; border: 0; border-top: 1px solid transparent; border-bottom: 1px solid #ffffff; } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 0 0 0 15px; margin: 0 0 20px; border-left: 5px solid #eeeeee; } blockquote p { margin-bottom: 0; font-size: 18.75px; font-weight: 300; line-height: 1.25; } blockquote small { display: block; line-height: 20px; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 20px; font-style: normal; line-height: 20px; } code, pre { padding: 0 3px 2px; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; color: #333333; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } code { padding: 2px 4px; color: #d14; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 14px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } pre.prettyprint { margin-bottom: 20px; } pre code { padding: 0; color: inherit; white-space: pre; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } form { margin: 0 0 20px; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 22.5px; line-height: 40px; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } legend small { font-size: 15px; color: #999999; } label, input, button, select, textarea { font-size: 15px; font-weight: normal; line-height: 20px; } input, button, select, textarea { font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif; } label { display: block; margin-bottom: 5px; } select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { display: inline-block; height: 20px; padding: 4px 6px; margin-bottom: 10px; font-size: 15px; line-height: 20px; color: #555555; vertical-align: middle; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } input, textarea, .uneditable-input { width: 206px; } textarea { height: auto; } textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { background-color: #ffffff; border: 1px solid #cccccc; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; } textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus { border-color: rgba(82, 168, 236, 0.8); outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; *margin-top: 0; line-height: normal; } input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] { width: auto; } select, input[type="file"] { height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */ line-height: 30px; } select { width: 220px; background-color: #ffffff; border: 1px solid #cccccc; } select[multiple], select[size] { height: auto; } select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .uneditable-input, .uneditable-textarea { color: #999999; cursor: not-allowed; background-color: #fcfcfc; border-color: #cccccc; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); } .uneditable-input { overflow: hidden; white-space: nowrap; } .uneditable-textarea { width: auto; height: auto; } input:-moz-placeholder, textarea:-moz-placeholder { color: #999999; } input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #999999; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #999999; } .radio, .checkbox { min-height: 20px; padding-left: 20px; } .radio input[type="radio"], .checkbox input[type="checkbox"] { float: left; margin-left: -20px; } .controls > .radio:first-child, .controls > .checkbox:first-child { padding-top: 5px; } .radio.inline, .checkbox.inline { display: inline-block; padding-top: 5px; margin-bottom: 0; vertical-align: middle; } .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline { margin-left: 10px; } .input-mini { width: 60px; } .input-small { width: 90px; } .input-medium { width: 150px; } .input-large { width: 210px; } .input-xlarge { width: 270px; } .input-xxlarge { width: 530px; } input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"] { float: none; margin-left: 0; } .input-append input[class*="span"], .input-append .uneditable-input[class*="span"], .input-prepend input[class*="span"], .input-prepend .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"], .row-fluid .input-prepend [class*="span"], .row-fluid .input-append [class*="span"] { display: inline-block; } input, textarea, .uneditable-input { margin-left: 0; } .controls-row [class*="span"] + [class*="span"] { margin-left: 20px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 926px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 846px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 766px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 686px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 606px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 526px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 446px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 366px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 286px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 206px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 126px; } input.span1, textarea.span1, .uneditable-input.span1 { width: 46px; } .controls-row { *zoom: 1; } .controls-row:before, .controls-row:after { display: table; line-height: 0; content: ""; } .controls-row:after { clear: both; } .controls-row [class*="span"], .row-fluid .controls-row [class*="span"] { float: left; } .controls-row .checkbox[class*="span"], .controls-row .radio[class*="span"] { padding-top: 5px; } input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] { cursor: not-allowed; background-color: #eeeeee; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"][readonly], input[type="checkbox"][readonly] { background-color: transparent; } .control-group.warning .control-label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #c09853; } .control-group.warning .checkbox, .control-group.warning .radio, .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #c09853; } .control-group.warning input, .control-group.warning select, .control-group.warning textarea { border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .control-group.error .control-label, .control-group.error .help-block, .control-group.error .help-inline { color: #b94a48; } .control-group.error .checkbox, .control-group.error .radio, .control-group.error input, .control-group.error select, .control-group.error textarea { color: #b94a48; } .control-group.error input, .control-group.error select, .control-group.error textarea { border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .control-group.success .control-label, .control-group.success .help-block, .control-group.success .help-inline { color: #468847; } .control-group.success .checkbox, .control-group.success .radio, .control-group.success input, .control-group.success select, .control-group.success textarea { color: #468847; } .control-group.success input, .control-group.success select, .control-group.success textarea { border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #468847; background-color: #dff0d8; border-color: #468847; } .control-group.info .control-label, .control-group.info .help-block, .control-group.info .help-inline { color: #3a87ad; } .control-group.info .checkbox, .control-group.info .radio, .control-group.info input, .control-group.info select, .control-group.info textarea { color: #3a87ad; } .control-group.info input, .control-group.info select, .control-group.info textarea { border-color: #3a87ad; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.info input:focus, .control-group.info select:focus, .control-group.info textarea:focus { border-color: #2d6987; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; } .control-group.info .input-prepend .add-on, .control-group.info .input-append .add-on { color: #3a87ad; background-color: #d9edf7; border-color: #3a87ad; } input:focus:invalid, textarea:focus:invalid, select:focus:invalid { color: #b94a48; border-color: #ee5f5b; } input:focus:invalid:focus, textarea:focus:invalid:focus, select:focus:invalid:focus { border-color: #e9322d; -webkit-box-shadow: 0 0 6px #f8b9b7; -moz-box-shadow: 0 0 6px #f8b9b7; box-shadow: 0 0 6px #f8b9b7; } .form-actions { padding: 19px 20px 20px; margin-top: 20px; margin-bottom: 20px; background-color: transparent; border-top: 1px solid #e5e5e5; *zoom: 1; } .form-actions:before, .form-actions:after { display: table; line-height: 0; content: ""; } .form-actions:after { clear: both; } .help-block, .help-inline { color: #ffffff; } .help-block { display: block; margin-bottom: 10px; } .help-inline { display: inline-block; *display: inline; padding-left: 5px; vertical-align: middle; *zoom: 1; } .input-append, .input-prepend { display: inline-block; margin-bottom: 10px; font-size: 0; white-space: nowrap; vertical-align: middle; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input, .input-append .dropdown-menu, .input-prepend .dropdown-menu, .input-append .popover, .input-prepend .popover { font-size: 15px; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input { position: relative; margin-bottom: 0; *margin-left: 0; vertical-align: top; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-append input:focus, .input-prepend input:focus, .input-append select:focus, .input-prepend select:focus, .input-append .uneditable-input:focus, .input-prepend .uneditable-input:focus { z-index: 2; } .input-append .add-on, .input-prepend .add-on { display: inline-block; width: auto; height: 20px; min-width: 16px; padding: 4px 5px; font-size: 15px; font-weight: normal; line-height: 20px; text-align: center; text-shadow: 0 1px 0 #ffffff; background-color: #eeeeee; border: 1px solid #ccc; } .input-append .add-on, .input-prepend .add-on, .input-append .btn, .input-prepend .btn, .input-append .btn-group > .dropdown-toggle, .input-prepend .btn-group > .dropdown-toggle { vertical-align: top; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-append .active, .input-prepend .active { background-color: #abe081; border-color: #5da028; } .input-prepend .add-on, .input-prepend .btn { margin-right: -1px; } .input-prepend .add-on:first-child, .input-prepend .btn:first-child { -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .input-append input, .input-append select, .input-append .uneditable-input { -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .input-append input + .btn-group .btn:last-child, .input-append select + .btn-group .btn:last-child, .input-append .uneditable-input + .btn-group .btn:last-child { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-append .add-on, .input-append .btn, .input-append .btn-group { margin-left: -1px; } .input-append .add-on:last-child, .input-append .btn:last-child, .input-append .btn-group:last-child > .dropdown-toggle { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-prepend.input-append input, .input-prepend.input-append select, .input-prepend.input-append .uneditable-input { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-prepend.input-append input + .btn-group .btn, .input-prepend.input-append select + .btn-group .btn, .input-prepend.input-append .uneditable-input + .btn-group .btn { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-prepend.input-append .add-on:first-child, .input-prepend.input-append .btn:first-child { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .input-prepend.input-append .add-on:last-child, .input-prepend.input-append .btn:last-child { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-prepend.input-append .btn-group:first-child { margin-left: 0; } input.search-query { padding-right: 14px; padding-right: 4px \9; padding-left: 14px; padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */ margin-bottom: 0; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } /* Allow for input prepend/append in search forms */ .form-search .input-append .search-query, .form-search .input-prepend .search-query { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .form-search .input-append .search-query { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search .input-append .btn { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .search-query { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .btn { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search input, .form-inline input, .form-horizontal input, .form-search textarea, .form-inline textarea, .form-horizontal textarea, .form-search select, .form-inline select, .form-horizontal select, .form-search .help-inline, .form-inline .help-inline, .form-horizontal .help-inline, .form-search .uneditable-input, .form-inline .uneditable-input, .form-horizontal .uneditable-input, .form-search .input-prepend, .form-inline .input-prepend, .form-horizontal .input-prepend, .form-search .input-append, .form-inline .input-append, .form-horizontal .input-append { display: inline-block; *display: inline; margin-bottom: 0; vertical-align: middle; *zoom: 1; } .form-search .hide, .form-inline .hide, .form-horizontal .hide { display: none; } .form-search label, .form-inline label, .form-search .btn-group, .form-inline .btn-group { display: inline-block; } .form-search .input-append, .form-inline .input-append, .form-search .input-prepend, .form-inline .input-prepend { margin-bottom: 0; } .form-search .radio, .form-search .checkbox, .form-inline .radio, .form-inline .checkbox { padding-left: 0; margin-bottom: 0; vertical-align: middle; } .form-search .radio input[type="radio"], .form-search .checkbox input[type="checkbox"], .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: left; margin-right: 3px; margin-left: 0; } .control-group { margin-bottom: 10px; } legend + .control-group { margin-top: 20px; -webkit-margin-top-collapse: separate; } .form-horizontal .control-group { margin-bottom: 20px; *zoom: 1; } .form-horizontal .control-group:before, .form-horizontal .control-group:after { display: table; line-height: 0; content: ""; } .form-horizontal .control-group:after { clear: both; } .form-horizontal .control-label { float: left; width: 160px; padding-top: 5px; text-align: right; } .form-horizontal .controls { *display: inline-block; *padding-left: 20px; margin-left: 180px; *margin-left: 0; } .form-horizontal .controls:first-child { *padding-left: 180px; } .form-horizontal .help-block { margin-bottom: 0; } .form-horizontal input + .help-block, .form-horizontal select + .help-block, .form-horizontal textarea + .help-block, .form-horizontal .uneditable-input + .help-block, .form-horizontal .input-prepend + .help-block, .form-horizontal .input-append + .help-block { margin-top: 10px; } .form-horizontal .form-actions { padding-left: 180px; } table { max-width: 100%; background-color: #3f4956; border-collapse: collapse; border-spacing: 0; } .table { width: 100%; margin-bottom: 20px; } .table th, .table td { padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top: 1px solid transparent; } .table th { font-weight: bold; } .table thead th { vertical-align: bottom; } .table caption + thead tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child th, .table colgroup + thead tr:first-child td, .table thead:first-child tr:first-child th, .table thead:first-child tr:first-child td { border-top: 0; } .table tbody + tbody { border-top: 2px solid transparent; } .table .table { background-color: #2a333c; } .table-condensed th, .table-condensed td { padding: 4px 5px; } .table-bordered { border: 1px solid transparent; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .table-bordered th, .table-bordered td { border-left: 1px solid transparent; } .table-bordered caption + thead tr:first-child th, .table-bordered caption + tbody tr:first-child th, .table-bordered caption + tbody tr:first-child td, .table-bordered colgroup + thead tr:first-child th, .table-bordered colgroup + tbody tr:first-child th, .table-bordered colgroup + tbody tr:first-child td, .table-bordered thead:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child td { border-top: 0; } .table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr:first-child > th:first-child { -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; } .table-bordered thead:first-child tr:first-child > th:last-child, .table-bordered tbody:first-child tr:first-child > td:last-child, .table-bordered tbody:first-child tr:first-child > th:last-child { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-topright: 4px; } .table-bordered thead:last-child tr:last-child > th:first-child, .table-bordered tbody:last-child tr:last-child > td:first-child, .table-bordered tbody:last-child tr:last-child > th:first-child, .table-bordered tfoot:last-child tr:last-child > td:first-child, .table-bordered tfoot:last-child tr:last-child > th:first-child { -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; } .table-bordered thead:last-child tr:last-child > th:last-child, .table-bordered tbody:last-child tr:last-child > td:last-child, .table-bordered tbody:last-child tr:last-child > th:last-child, .table-bordered tfoot:last-child tr:last-child > td:last-child, .table-bordered tfoot:last-child tr:last-child > th:last-child { -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; } .table-bordered tfoot + tbody:last-child tr:last-child td:first-child { -webkit-border-bottom-left-radius: 0; border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; } .table-bordered tfoot + tbody:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 0; border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; } .table-bordered caption + thead tr:first-child th:first-child, .table-bordered caption + tbody tr:first-child td:first-child, .table-bordered colgroup + thead tr:first-child th:first-child, .table-bordered colgroup + tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; } .table-bordered caption + thead tr:first-child th:last-child, .table-bordered caption + tbody tr:first-child td:last-child, .table-bordered colgroup + thead tr:first-child th:last-child, .table-bordered colgroup + tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-topright: 4px; } .table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th { background-color: #45515f; } .table-hover tbody tr:hover > td, .table-hover tbody tr:hover > th { background-color: #505e6e; } table td[class*="span"], table th[class*="span"], .row-fluid table td[class*="span"], .row-fluid table th[class*="span"] { display: table-cell; float: none; margin-left: 0; } .table td.span1, .table th.span1 { float: none; width: 44px; margin-left: 0; } .table td.span2, .table th.span2 { float: none; width: 124px; margin-left: 0; } .table td.span3, .table th.span3 { float: none; width: 204px; margin-left: 0; } .table td.span4, .table th.span4 { float: none; width: 284px; margin-left: 0; } .table td.span5, .table th.span5 { float: none; width: 364px; margin-left: 0; } .table td.span6, .table th.span6 { float: none; width: 444px; margin-left: 0; } .table td.span7, .table th.span7 { float: none; width: 524px; margin-left: 0; } .table td.span8, .table th.span8 { float: none; width: 604px; margin-left: 0; } .table td.span9, .table th.span9 { float: none; width: 684px; margin-left: 0; } .table td.span10, .table th.span10 { float: none; width: 764px; margin-left: 0; } .table td.span11, .table th.span11 { float: none; width: 844px; margin-left: 0; } .table td.span12, .table th.span12 { float: none; width: 924px; margin-left: 0; } .table tbody tr.success > td { background-color: #dff0d8; } .table tbody tr.error > td { background-color: #f2dede; } .table tbody tr.warning > td { background-color: #fcf8e3; } .table tbody tr.info > td { background-color: #d9edf7; } .table-hover tbody tr.success:hover > td { background-color: #d0e9c6; } .table-hover tbody tr.error:hover > td { background-color: #ebcccc; } .table-hover tbody tr.warning:hover > td { background-color: #faf2cc; } .table-hover tbody tr.info:hover > td { background-color: #c4e3f3; } [class^="icon-"], [class*=" icon-"] { display: inline-block; width: 14px; height: 14px; margin-top: 1px; *margin-right: .3em; line-height: 14px; vertical-align: text-top; background-image: url("../img/glyphicons-halflings.png"); background-position: 14px 14px; background-repeat: no-repeat; } /* White icons with optional class, or on hover/focus/active states of certain elements */ .icon-white, .nav-pills > .active > a > [class^="icon-"], .nav-pills > .active > a > [class*=" icon-"], .nav-list > .active > a > [class^="icon-"], .nav-list > .active > a > [class*=" icon-"], .navbar-inverse .nav > .active > a > [class^="icon-"], .navbar-inverse .nav > .active > a > [class*=" icon-"], .dropdown-menu > li > a:hover > [class^="icon-"], .dropdown-menu > li > a:focus > [class^="icon-"], .dropdown-menu > li > a:hover > [class*=" icon-"], .dropdown-menu > li > a:focus > [class*=" icon-"], .dropdown-menu > .active > a > [class^="icon-"], .dropdown-menu > .active > a > [class*=" icon-"], .dropdown-submenu:hover > a > [class^="icon-"], .dropdown-submenu:focus > a > [class^="icon-"], .dropdown-submenu:hover > a > [class*=" icon-"], .dropdown-submenu:focus > a > [class*=" icon-"] { background-image: url("../img/glyphicons-halflings-white.png"); } .icon-glass { background-position: 0 0; } .icon-music { background-position: -24px 0; } .icon-search { background-position: -48px 0; } .icon-envelope { background-position: -72px 0; } .icon-heart { background-position: -96px 0; } .icon-star { background-position: -120px 0; } .icon-star-empty { background-position: -144px 0; } .icon-user { background-position: -168px 0; } .icon-film { background-position: -192px 0; } .icon-th-large { background-position: -216px 0; } .icon-th { background-position: -240px 0; } .icon-th-list { background-position: -264px 0; } .icon-ok { background-position: -288px 0; } .icon-remove { background-position: -312px 0; } .icon-zoom-in { background-position: -336px 0; } .icon-zoom-out { background-position: -360px 0; } .icon-off { background-position: -384px 0; } .icon-signal { background-position: -408px 0; } .icon-cog { background-position: -432px 0; } .icon-trash { background-position: -456px 0; } .icon-home { background-position: 0 -24px; } .icon-file { background-position: -24px -24px; } .icon-time { background-position: -48px -24px; } .icon-road { background-position: -72px -24px; } .icon-download-alt { background-position: -96px -24px; } .icon-download { background-position: -120px -24px; } .icon-upload { background-position: -144px -24px; } .icon-inbox { background-position: -168px -24px; } .icon-play-circle { background-position: -192px -24px; } .icon-repeat { background-position: -216px -24px; } .icon-refresh { background-position: -240px -24px; } .icon-list-alt { background-position: -264px -24px; } .icon-lock { background-position: -287px -24px; } .icon-flag { background-position: -312px -24px; } .icon-headphones { background-position: -336px -24px; } .icon-volume-off { background-position: -360px -24px; } .icon-volume-down { background-position: -384px -24px; } .icon-volume-up { background-position: -408px -24px; } .icon-qrcode { background-position: -432px -24px; } .icon-barcode { background-position: -456px -24px; } .icon-tag { background-position: 0 -48px; } .icon-tags { background-position: -25px -48px; } .icon-book { background-position: -48px -48px; } .icon-bookmark { background-position: -72px -48px; } .icon-print { background-position: -96px -48px; } .icon-camera { background-position: -120px -48px; } .icon-font { background-position: -144px -48px; } .icon-bold { background-position: -167px -48px; } .icon-italic { background-position: -192px -48px; } .icon-text-height { background-position: -216px -48px; } .icon-text-width { background-position: -240px -48px; } .icon-align-left { background-position: -264px -48px; } .icon-align-center { background-position: -288px -48px; } .icon-align-right { background-position: -312px -48px; } .icon-align-justify { background-position: -336px -48px; } .icon-list { background-position: -360px -48px; } .icon-indent-left { background-position: -384px -48px; } .icon-indent-right { background-position: -408px -48px; } .icon-facetime-video { background-position: -432px -48px; } .icon-picture { background-position: -456px -48px; } .icon-pencil { background-position: 0 -72px; } .icon-map-marker { background-position: -24px -72px; } .icon-adjust { background-position: -48px -72px; } .icon-tint { background-position: -72px -72px; } .icon-edit { background-position: -96px -72px; } .icon-share { background-position: -120px -72px; } .icon-check { background-position: -144px -72px; } .icon-move { background-position: -168px -72px; } .icon-step-backward { background-position: -192px -72px; } .icon-fast-backward { background-position: -216px -72px; } .icon-backward { background-position: -240px -72px; } .icon-play { background-position: -264px -72px; } .icon-pause { background-position: -288px -72px; } .icon-stop { background-position: -312px -72px; } .icon-forward { background-position: -336px -72px; } .icon-fast-forward { background-position: -360px -72px; } .icon-step-forward { background-position: -384px -72px; } .icon-eject { background-position: -408px -72px; } .icon-chevron-left { background-position: -432px -72px; } .icon-chevron-right { background-position: -456px -72px; } .icon-plus-sign { background-position: 0 -96px; } .icon-minus-sign { background-position: -24px -96px; } .icon-remove-sign { background-position: -48px -96px; } .icon-ok-sign { background-position: -72px -96px; } .icon-question-sign { background-position: -96px -96px; } .icon-info-sign { background-position: -120px -96px; } .icon-screenshot { background-position: -144px -96px; } .icon-remove-circle { background-position: -168px -96px; } .icon-ok-circle { background-position: -192px -96px; } .icon-ban-circle { background-position: -216px -96px; } .icon-arrow-left { background-position: -240px -96px; } .icon-arrow-right { background-position: -264px -96px; } .icon-arrow-up { background-position: -289px -96px; } .icon-arrow-down { background-position: -312px -96px; } .icon-share-alt { background-position: -336px -96px; } .icon-resize-full { background-position: -360px -96px; } .icon-resize-small { background-position: -384px -96px; } .icon-plus { background-position: -408px -96px; } .icon-minus { background-position: -433px -96px; } .icon-asterisk { background-position: -456px -96px; } .icon-exclamation-sign { background-position: 0 -120px; } .icon-gift { background-position: -24px -120px; } .icon-leaf { background-position: -48px -120px; } .icon-fire { background-position: -72px -120px; } .icon-eye-open { background-position: -96px -120px; } .icon-eye-close { background-position: -120px -120px; } .icon-warning-sign { background-position: -144px -120px; } .icon-plane { background-position: -168px -120px; } .icon-calendar { background-position: -192px -120px; } .icon-random { width: 16px; background-position: -216px -120px; } .icon-comment { background-position: -240px -120px; } .icon-magnet { background-position: -264px -120px; } .icon-chevron-up { background-position: -288px -120px; } .icon-chevron-down { background-position: -313px -119px; } .icon-retweet { background-position: -336px -120px; } .icon-shopping-cart { background-position: -360px -120px; } .icon-folder-close { width: 16px; background-position: -384px -120px; } .icon-folder-open { width: 16px; background-position: -408px -120px; } .icon-resize-vertical { background-position: -432px -119px; } .icon-resize-horizontal { background-position: -456px -118px; } .icon-hdd { background-position: 0 -144px; } .icon-bullhorn { background-position: -24px -144px; } .icon-bell { background-position: -48px -144px; } .icon-certificate { background-position: -72px -144px; } .icon-thumbs-up { background-position: -96px -144px; } .icon-thumbs-down { background-position: -120px -144px; } .icon-hand-right { background-position: -144px -144px; } .icon-hand-left { background-position: -168px -144px; } .icon-hand-up { background-position: -192px -144px; } .icon-hand-down { background-position: -216px -144px; } .icon-circle-arrow-right { background-position: -240px -144px; } .icon-circle-arrow-left { background-position: -264px -144px; } .icon-circle-arrow-up { background-position: -288px -144px; } .icon-circle-arrow-down { background-position: -312px -144px; } .icon-globe { background-position: -336px -144px; } .icon-wrench { background-position: -360px -144px; } .icon-tasks { background-position: -384px -144px; } .icon-filter { background-position: -408px -144px; } .icon-briefcase { background-position: -432px -144px; } .icon-fullscreen { background-position: -456px -144px; } .dropup, .dropdown { position: relative; } .dropdown-toggle { *margin-bottom: -3px; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .caret { display: inline-block; width: 0; height: 0; vertical-align: top; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; } .dropdown .caret { margin-top: 8px; margin-left: 2px; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; background-color: #5a6a7d; border: 1px solid #ccc; border: 1px solid transparent; *border-right-width: 2px; *border-bottom-width: 2px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: transparent; border-bottom: 1px solid #45515f; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 20px; color: #ece9d7; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-submenu:hover > a, .dropdown-submenu:focus > a { color: #ffffff; text-decoration: none; background-color: #dc6620; background-image: -moz-linear-gradient(top, #e36b23, #d25f1b); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e36b23), to(#d25f1b)); background-image: -webkit-linear-gradient(top, #e36b23, #d25f1b); background-image: -o-linear-gradient(top, #e36b23, #d25f1b); background-image: linear-gradient(to bottom, #e36b23, #d25f1b); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe36b23', endColorstr='#ffd25f1b', GradientType=0); } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #dc6620; background-image: -moz-linear-gradient(top, #e36b23, #d25f1b); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e36b23), to(#d25f1b)); background-image: -webkit-linear-gradient(top, #e36b23, #d25f1b); background-image: -o-linear-gradient(top, #e36b23, #d25f1b); background-image: linear-gradient(to bottom, #e36b23, #d25f1b); background-repeat: repeat-x; outline: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe36b23', endColorstr='#ffd25f1b', GradientType=0); } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: default; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open { *z-index: 1000; } .open > .dropdown-menu { display: block; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; margin-left: -1px; -webkit-border-radius: 0 6px 6px 6px; -moz-border-radius: 0 6px 6px 6px; border-radius: 0 6px 6px 6px; } .dropdown-submenu:hover > .dropdown-menu { display: block; } .dropup .dropdown-submenu > .dropdown-menu { top: auto; bottom: 0; margin-top: 0; margin-bottom: -2px; -webkit-border-radius: 5px 5px 5px 0; -moz-border-radius: 5px 5px 5px 0; border-radius: 5px 5px 5px 0; } .dropdown-submenu > a:after { display: block; float: right; width: 0; height: 0; margin-top: 5px; margin-right: -10px; border-color: transparent; border-left-color: #303841; border-style: solid; border-width: 5px 0 5px 5px; content: " "; } .dropdown-submenu:hover > a:after { border-left-color: #ffffff; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: 10px; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .dropdown .dropdown-menu .nav-header { padding-right: 20px; padding-left: 20px; } .typeahead { z-index: 1051; margin-top: 2px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #45515f; border: 1px solid #363f4a; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-large { padding: 24px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .well-small { padding: 9px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -moz-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; } .collapse.in { height: auto; } .close { float: right; font-size: 20px; font-weight: bold; line-height: 20px; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.4; filter: alpha(opacity=40); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .btn { display: inline-block; *display: inline; padding: 4px 12px; margin-bottom: 0; *margin-left: .3em; font-size: 15px; line-height: 20px; color: #333333; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); vertical-align: middle; cursor: pointer; background-color: #f5f5f5; *background-color: #e6e6e6; background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); background-repeat: repeat-x; border: 1px solid #cccccc; *border: 0; border-color: #e6e6e6 #e6e6e6 #bfbfbf; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); border-bottom-color: #b3b3b3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); *zoom: 1; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] { color: #333333; background-color: #e6e6e6; *background-color: #d9d9d9; } .btn:active, .btn.active { background-color: #cccccc \9; } .btn:first-child { *margin-left: 0; } .btn:hover, .btn:focus { color: #333333; text-decoration: none; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn.active, .btn:active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn.disabled, .btn[disabled] { cursor: default; background-image: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-large { padding: 11px 19px; font-size: 18.75px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .btn-large [class^="icon-"], .btn-large [class*=" icon-"] { margin-top: 4px; } .btn-small { padding: 2px 10px; font-size: 12.75px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn-small [class^="icon-"], .btn-small [class*=" icon-"] { margin-top: 0; } .btn-mini [class^="icon-"], .btn-mini [class*=" icon-"] { margin-top: -1px; } .btn-mini { padding: 0 6px; font-size: 11.25px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active { color: rgba(255, 255, 255, 0.75); } .btn-primary { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #e37e23; *background-color: #e39b23; background-image: -moz-linear-gradient(top, #e36b23, #e39b23); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e36b23), to(#e39b23)); background-image: -webkit-linear-gradient(top, #e36b23, #e39b23); background-image: -o-linear-gradient(top, #e36b23, #e39b23); background-image: linear-gradient(to bottom, #e36b23, #e39b23); background-repeat: repeat-x; border-color: #e39b23 #e39b23 #a56f15; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe36b23', endColorstr='#ffe39b23', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { color: #ffffff; background-color: #e39b23; *background-color: #d28d1b; } .btn-primary:active, .btn-primary.active { background-color: #bb7e18 \9; } .btn-warning { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #e8864c; *background-color: #e36b23; background-image: -moz-linear-gradient(top, #ec9967, #e36b23); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ec9967), to(#e36b23)); background-image: -webkit-linear-gradient(top, #ec9967, #e36b23); background-image: -o-linear-gradient(top, #ec9967, #e36b23); background-image: linear-gradient(to bottom, #ec9967, #e36b23); background-repeat: repeat-x; border-color: #e36b23 #e36b23 #a54b15; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec9967', endColorstr='#ffe36b23', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { color: #ffffff; background-color: #e36b23; *background-color: #d25f1b; } .btn-warning:active, .btn-warning.active { background-color: #bb5518 \9; } .btn-danger { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #da4f49; *background-color: #bd362f; background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); background-repeat: repeat-x; border-color: #bd362f #bd362f #802420; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { color: #ffffff; background-color: #bd362f; *background-color: #a9302a; } .btn-danger:active, .btn-danger.active { background-color: #942a25 \9; } .btn-success { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5bb75b; *background-color: #51a351; background-image: -moz-linear-gradient(top, #62c462, #51a351); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); background-image: -webkit-linear-gradient(top, #62c462, #51a351); background-image: -o-linear-gradient(top, #62c462, #51a351); background-image: linear-gradient(to bottom, #62c462, #51a351); background-repeat: repeat-x; border-color: #51a351 #51a351 #387038; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { color: #ffffff; background-color: #51a351; *background-color: #499249; } .btn-success:active, .btn-success.active { background-color: #408140 \9; } .btn-info { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #49afcd; *background-color: #2f96b4; background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); background-image: linear-gradient(to bottom, #5bc0de, #2f96b4); background-repeat: repeat-x; border-color: #2f96b4 #2f96b4 #1f6377; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { color: #ffffff; background-color: #2f96b4; *background-color: #2a85a0; } .btn-info:active, .btn-info.active { background-color: #24748c \9; } .btn-inverse { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #414141; *background-color: #222222; background-image: -moz-linear-gradient(top, #555555, #222222); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222)); background-image: -webkit-linear-gradient(top, #555555, #222222); background-image: -o-linear-gradient(top, #555555, #222222); background-image: linear-gradient(to bottom, #555555, #222222); background-repeat: repeat-x; border-color: #222222 #222222 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff222222', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { color: #ffffff; background-color: #222222; *background-color: #151515; } .btn-inverse:active, .btn-inverse.active { background-color: #080808 \9; } button.btn, input[type="submit"].btn { *padding-top: 3px; *padding-bottom: 3px; } button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner { padding: 0; border: 0; } button.btn.btn-large, input[type="submit"].btn.btn-large { *padding-top: 7px; *padding-bottom: 7px; } button.btn.btn-small, input[type="submit"].btn.btn-small { *padding-top: 3px; *padding-bottom: 3px; } button.btn.btn-mini, input[type="submit"].btn.btn-mini { *padding-top: 1px; *padding-bottom: 1px; } .btn-link, .btn-link:active, .btn-link[disabled] { background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { color: #e36b23; cursor: pointer; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover, .btn-link:focus { color: #e36b23; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, .btn-link[disabled]:focus { color: #333333; text-decoration: none; } .btn-group { position: relative; display: inline-block; *display: inline; *margin-left: .3em; font-size: 0; white-space: nowrap; vertical-align: middle; *zoom: 1; } .btn-group:first-child { *margin-left: 0; } .btn-group + .btn-group { margin-left: 5px; } .btn-toolbar { margin-top: 10px; margin-bottom: 10px; font-size: 0; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group { margin-left: 5px; } .btn-group > .btn { position: relative; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group > .btn + .btn { margin-left: -1px; } .btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { font-size: 15px; } .btn-group > .btn-mini { font-size: 11.25px; } .btn-group > .btn-small { font-size: 12.75px; } .btn-group > .btn-large { font-size: 18.75px; } .btn-group > .btn:first-child { margin-left: 0; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-topleft: 4px; } .btn-group > .btn:last-child, .btn-group > .dropdown-toggle { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; -moz-border-radius-topright: 4px; -moz-border-radius-bottomright: 4px; } .btn-group > .btn.large:first-child { margin-left: 0; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-topleft: 6px; } .btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle { -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; } .btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active { z-index: 2; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { *padding-top: 5px; padding-right: 8px; *padding-bottom: 5px; padding-left: 8px; -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn-group > .btn-mini + .dropdown-toggle { *padding-top: 2px; padding-right: 5px; *padding-bottom: 2px; padding-left: 5px; } .btn-group > .btn-small + .dropdown-toggle { *padding-top: 5px; *padding-bottom: 4px; } .btn-group > .btn-large + .dropdown-toggle { *padding-top: 7px; padding-right: 12px; *padding-bottom: 7px; padding-left: 12px; } .btn-group.open .dropdown-toggle { background-image: none; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn-group.open .btn.dropdown-toggle { background-color: #e6e6e6; } .btn-group.open .btn-primary.dropdown-toggle { background-color: #e39b23; } .btn-group.open .btn-warning.dropdown-toggle { background-color: #e36b23; } .btn-group.open .btn-danger.dropdown-toggle { background-color: #bd362f; } .btn-group.open .btn-success.dropdown-toggle { background-color: #51a351; } .btn-group.open .btn-info.dropdown-toggle { background-color: #2f96b4; } .btn-group.open .btn-inverse.dropdown-toggle { background-color: #222222; } .btn .caret { margin-top: 8px; margin-left: 0; } .btn-large .caret { margin-top: 6px; } .btn-large .caret { border-top-width: 5px; border-right-width: 5px; border-left-width: 5px; } .btn-mini .caret, .btn-small .caret { margin-top: 8px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-primary .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret, .btn-inverse .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .btn-group-vertical { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; } .btn-group-vertical > .btn { display: block; float: none; max-width: 100%; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group-vertical > .btn + .btn { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:first-child { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .btn-group-vertical > .btn:last-child { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .btn-group-vertical > .btn-large:first-child { -webkit-border-radius: 6px 6px 0 0; -moz-border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0; } .btn-group-vertical > .btn-large:last-child { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .alert { padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); background-color: #fcf8e3; border: 1px solid #fbeed5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .alert, .alert h4 { color: #c09853; } .alert h4 { margin: 0; } .alert .close { position: relative; top: -2px; right: -21px; line-height: 20px; } .alert-success { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success h4 { color: #468847; } .alert-danger, .alert-error { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .alert-danger h4, .alert-error h4 { color: #b94a48; } .alert-info { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .alert-info h4 { color: #3a87ad; } .alert-block { padding-top: 14px; padding-bottom: 14px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .nav { margin-bottom: 20px; margin-left: 0; list-style: none; } .nav > li > a { display: block; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li > a > img { max-width: none; } .nav > .pull-right { float: right; } .nav-header { display: block; padding: 3px 15px; font-size: 11px; font-weight: bold; line-height: 20px; color: #999999; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-transform: uppercase; } .nav li + .nav-header { margin-top: 9px; } .nav-list { padding-right: 15px; padding-left: 15px; margin-bottom: 0; } .nav-list > li > a, .nav-list .nav-header { margin-right: -15px; margin-left: -15px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .nav-list > li > a { padding: 3px 15px; } .nav-list > .active > a, .nav-list > .active > a:hover, .nav-list > .active > a:focus { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background-color: #e36b23; } .nav-list [class^="icon-"], .nav-list [class*=" icon-"] { margin-right: 2px; } .nav-list .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; } .nav-tabs, .nav-pills { *zoom: 1; } .nav-tabs:before, .nav-pills:before, .nav-tabs:after, .nav-pills:after { display: table; line-height: 0; content: ""; } .nav-tabs:after, .nav-pills:after { clear: both; } .nav-tabs > li, .nav-pills > li { float: left; } .nav-tabs > li > a, .nav-pills > li > a { padding-right: 12px; padding-left: 12px; margin-right: 2px; line-height: 14px; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { margin-bottom: -1px; } .nav-tabs > li > a { padding-top: 8px; padding-bottom: 8px; line-height: 20px; border: 1px solid transparent; -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover, .nav-tabs > li > a:focus { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus { color: #555555; cursor: default; background-color: #2a333c; border: 1px solid #ddd; border-bottom-color: transparent; } .nav-pills > li > a { padding-top: 8px; padding-bottom: 8px; margin-top: 2px; margin-bottom: 2px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .nav-pills > .active > a, .nav-pills > .active > a:hover, .nav-pills > .active > a:focus { color: #ffffff; background-color: #e36b23; } .nav-stacked > li { float: none; } .nav-stacked > li > a { margin-right: 0; } .nav-tabs.nav-stacked { border-bottom: 0; } .nav-tabs.nav-stacked > li > a { border: 1px solid #ddd; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .nav-tabs.nav-stacked > li:first-child > a { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; } .nav-tabs.nav-stacked > li:last-child > a { -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -moz-border-radius-bottomleft: 4px; } .nav-tabs.nav-stacked > li > a:hover, .nav-tabs.nav-stacked > li > a:focus { z-index: 2; border-color: #ddd; } .nav-pills.nav-stacked > li > a { margin-bottom: 3px; } .nav-pills.nav-stacked > li:last-child > a { margin-bottom: 1px; } .nav-tabs .dropdown-menu { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .nav-pills .dropdown-menu { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .nav .dropdown-toggle .caret { margin-top: 6px; border-top-color: #e36b23; border-bottom-color: #e36b23; } .nav .dropdown-toggle:hover .caret, .nav .dropdown-toggle:focus .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } /* move down carets for tabs */ .nav-tabs .dropdown-toggle .caret { margin-top: 8px; } .nav .active .dropdown-toggle .caret { border-top-color: #fff; border-bottom-color: #fff; } .nav-tabs .active .dropdown-toggle .caret { border-top-color: #555555; border-bottom-color: #555555; } .nav > .dropdown.active > a:hover, .nav > .dropdown.active > a:focus { cursor: pointer; } .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > li.dropdown.open.active > a:hover, .nav > li.dropdown.open.active > a:focus { color: #ffffff; background-color: #999999; border-color: #999999; } .nav li.dropdown.open .caret, .nav li.dropdown.open.active .caret, .nav li.dropdown.open a:hover .caret, .nav li.dropdown.open a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; opacity: 1; filter: alpha(opacity=100); } .tabs-stacked .open > a:hover, .tabs-stacked .open > a:focus { border-color: #999999; } .tabbable { *zoom: 1; } .tabbable:before, .tabbable:after { display: table; line-height: 0; content: ""; } .tabbable:after { clear: both; } .tab-content { overflow: auto; } .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left > .nav-tabs { border-bottom: 0; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .tabs-below > .nav-tabs { border-top: 1px solid #ddd; } .tabs-below > .nav-tabs > li { margin-top: -1px; margin-bottom: 0; } .tabs-below > .nav-tabs > li > a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .tabs-below > .nav-tabs > li > a:hover, .tabs-below > .nav-tabs > li > a:focus { border-top-color: #ddd; border-bottom-color: transparent; } .tabs-below > .nav-tabs > .active > a, .tabs-below > .nav-tabs > .active > a:hover, .tabs-below > .nav-tabs > .active > a:focus { border-color: transparent #ddd #ddd #ddd; } .tabs-left > .nav-tabs > li, .tabs-right > .nav-tabs > li { float: none; } .tabs-left > .nav-tabs > li > a, .tabs-right > .nav-tabs > li > a { min-width: 74px; margin-right: 0; margin-bottom: 3px; } .tabs-left > .nav-tabs { float: left; margin-right: 19px; border-right: 1px solid #ddd; } .tabs-left > .nav-tabs > li > a { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .tabs-left > .nav-tabs > li > a:hover, .tabs-left > .nav-tabs > li > a:focus { border-color: #eeeeee #dddddd #eeeeee #eeeeee; } .tabs-left > .nav-tabs .active > a, .tabs-left > .nav-tabs .active > a:hover, .tabs-left > .nav-tabs .active > a:focus { border-color: #ddd transparent #ddd #ddd; *border-right-color: #ffffff; } .tabs-right > .nav-tabs { float: right; margin-left: 19px; border-left: 1px solid #ddd; } .tabs-right > .nav-tabs > li > a { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .tabs-right > .nav-tabs > li > a:hover, .tabs-right > .nav-tabs > li > a:focus { border-color: #eeeeee #eeeeee #eeeeee #dddddd; } .tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a:hover, .tabs-right > .nav-tabs .active > a:focus { border-color: #ddd #ddd #ddd transparent; *border-left-color: #ffffff; } .nav > .disabled > a { color: #999999; } .nav > .disabled > a:hover, .nav > .disabled > a:focus { text-decoration: none; cursor: default; background-color: transparent; } .navbar { *position: relative; *z-index: 2; margin-bottom: 20px; overflow: visible; } .navbar-inner { min-height: 70px; padding-right: 20px; padding-left: 20px; background-color: #2a333c; background-image: -moz-linear-gradient(top, #2a333c, #2a333c); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2a333c), to(#2a333c)); background-image: -webkit-linear-gradient(top, #2a333c, #2a333c); background-image: -o-linear-gradient(top, #2a333c, #2a333c); background-image: linear-gradient(to bottom, #2a333c, #2a333c); background-repeat: repeat-x; border: 1px solid #20262d; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2a333c', endColorstr='#ff2a333c', GradientType=0); *zoom: 1; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); } .navbar-inner:before, .navbar-inner:after { display: table; line-height: 0; content: ""; } .navbar-inner:after { clear: both; } .navbar .container { width: auto; } .nav-collapse.collapse { height: auto; overflow: visible; } .navbar .brand { display: block; float: left; padding: 25px 20px 25px; margin-left: -20px; font-size: 20px; font-weight: 200; color: #e36b23; text-shadow: 0 1px 0 #2a333c; } .navbar .brand:hover, .navbar .brand:focus { text-decoration: none; } .navbar-text { margin-bottom: 0; line-height: 70px; color: #999999; } .navbar-link { color: #e36b23; } .navbar-link:hover, .navbar-link:focus { color: #e36b23; } .navbar .divider-vertical { height: 70px; margin: 0 9px; border-right: 1px solid #2a333c; border-left: 1px solid #2a333c; } .navbar .btn, .navbar .btn-group { margin-top: 20px; } .navbar .btn-group .btn, .navbar .input-prepend .btn, .navbar .input-append .btn, .navbar .input-prepend .btn-group, .navbar .input-append .btn-group { margin-top: 0; } .navbar-form { margin-bottom: 0; *zoom: 1; } .navbar-form:before, .navbar-form:after { display: table; line-height: 0; content: ""; } .navbar-form:after { clear: both; } .navbar-form input, .navbar-form select, .navbar-form .radio, .navbar-form .checkbox { margin-top: 20px; } .navbar-form input, .navbar-form select, .navbar-form .btn { display: inline-block; margin-bottom: 0; } .navbar-form input[type="image"], .navbar-form input[type="checkbox"], .navbar-form input[type="radio"] { margin-top: 3px; } .navbar-form .input-append, .navbar-form .input-prepend { margin-top: 5px; white-space: nowrap; } .navbar-form .input-append input, .navbar-form .input-prepend input { margin-top: 0; } .navbar-search { position: relative; float: left; margin-top: 20px; margin-bottom: 0; } .navbar-search .search-query { padding: 4px 14px; margin-bottom: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 1; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .navbar-static-top { position: static; margin-bottom: 0; } .navbar-static-top .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; margin-bottom: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { border-width: 0 0 1px; } .navbar-fixed-bottom .navbar-inner { border-width: 1px 0 0; } .navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner { padding-right: 0; padding-left: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .navbar-fixed-top { top: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); } .navbar-fixed-bottom { bottom: 0; } .navbar-fixed-bottom .navbar-inner { -webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); } .navbar .nav { position: relative; left: 0; display: block; float: left; margin: 0 10px 0 0; } .navbar .nav.pull-right { float: right; margin-right: 0; } .navbar .nav > li { float: left; } .navbar .nav > li > a { float: none; padding: 25px 15px 25px; color: #e36b23; text-decoration: none; text-shadow: 0 1px 0 #2a333c; } .navbar .nav .dropdown-toggle .caret { margin-top: 8px; } .navbar .nav > li > a:focus, .navbar .nav > li > a:hover { color: #e36b23; text-decoration: none; background-color: transparent; } .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { color: #e36b23; text-decoration: none; background-color: #2a333c; -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); } .navbar .btn-navbar { display: none; float: right; padding: 7px 10px; margin-right: 5px; margin-left: 5px; color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #20262d; *background-color: #20262d; background-image: -moz-linear-gradient(top, #20262d, #20262d); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#20262d), to(#20262d)); background-image: -webkit-linear-gradient(top, #20262d, #20262d); background-image: -o-linear-gradient(top, #20262d, #20262d); background-image: linear-gradient(to bottom, #20262d, #20262d); background-repeat: repeat-x; border-color: #20262d #20262d #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff20262d', endColorstr='#ff20262d', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); } .navbar .btn-navbar:hover, .navbar .btn-navbar:focus, .navbar .btn-navbar:active, .navbar .btn-navbar.active, .navbar .btn-navbar.disabled, .navbar .btn-navbar[disabled] { color: #ffffff; background-color: #20262d; *background-color: #151a1e; } .navbar .btn-navbar:active, .navbar .btn-navbar.active { background-color: #0b0d0f \9; } .navbar .btn-navbar .icon-bar { display: block; width: 18px; height: 2px; background-color: #f5f5f5; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); } .btn-navbar .icon-bar + .icon-bar { margin-top: 3px; } .navbar .nav > li > .dropdown-menu:before { position: absolute; top: -7px; left: 9px; display: inline-block; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-left: 7px solid transparent; border-bottom-color: transparent; content: ''; } .navbar .nav > li > .dropdown-menu:after { position: absolute; top: -6px; left: 10px; display: inline-block; border-right: 6px solid transparent; border-bottom: 6px solid #5a6a7d; border-left: 6px solid transparent; content: ''; } .navbar-fixed-bottom .nav > li > .dropdown-menu:before { top: auto; bottom: -7px; border-top: 7px solid #ccc; border-bottom: 0; border-top-color: transparent; } .navbar-fixed-bottom .nav > li > .dropdown-menu:after { top: auto; bottom: -6px; border-top: 6px solid #5a6a7d; border-bottom: 0; } .navbar .nav li.dropdown > a:hover .caret, .navbar .nav li.dropdown > a:focus .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } .navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle { color: #e36b23; background-color: #2a333c; } .navbar .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } .navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } .navbar .pull-right > li > .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar .pull-right > li > .dropdown-menu:before, .navbar .nav > li > .dropdown-menu.pull-right:before { right: 12px; left: auto; } .navbar .pull-right > li > .dropdown-menu:after, .navbar .nav > li > .dropdown-menu.pull-right:after { right: 13px; left: auto; } .navbar .pull-right > li > .dropdown-menu .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu { right: 100%; left: auto; margin-right: -1px; margin-left: 0; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .navbar-inverse .navbar-inner { background-color: #45515f; background-image: -moz-linear-gradient(top, #45515f, #45515f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#45515f), to(#45515f)); background-image: -webkit-linear-gradient(top, #45515f, #45515f); background-image: -o-linear-gradient(top, #45515f, #45515f); background-image: linear-gradient(to bottom, #45515f, #45515f); background-repeat: repeat-x; border-color: #20262d; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff45515f', endColorstr='#ff45515f', GradientType=0); } .navbar-inverse .brand, .navbar-inverse .nav > li > a { color: #e36b23; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .navbar-inverse .brand:hover, .navbar-inverse .nav > li > a:hover, .navbar-inverse .brand:focus, .navbar-inverse .nav > li > a:focus { color: #e36b23; } .navbar-inverse .brand { color: #e36b23; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .nav > li > a:focus, .navbar-inverse .nav > li > a:hover { color: #e36b23; background-color: transparent; } .navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus { color: #e36b23; background-color: #45515f; } .navbar-inverse .navbar-link { color: #e36b23; } .navbar-inverse .navbar-link:hover, .navbar-inverse .navbar-link:focus { color: #e36b23; } .navbar-inverse .divider-vertical { border-right-color: #45515f; border-left-color: #45515f; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { color: #e36b23; background-color: #45515f; } .navbar-inverse .nav li.dropdown > a:hover .caret, .navbar-inverse .nav li.dropdown > a:focus .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #e36b23; border-bottom-color: #e36b23; } .navbar-inverse .navbar-search .search-query { color: #ffffff; background-color: #ffffff; border-color: #45515f; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .navbar-inverse .navbar-search .search-query:-moz-placeholder { color: #999999; } .navbar-inverse .navbar-search .search-query:-ms-input-placeholder { color: #999999; } .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { color: #999999; } .navbar-inverse .navbar-search .search-query:focus, .navbar-inverse .navbar-search .search-query.focused { padding: 5px 15px; color: #333333; text-shadow: 0 1px 0 #ffffff; background-color: #ffffff; border: 0; outline: 0; -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); } .navbar-inverse .btn-navbar { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #3a4450; *background-color: #3a4450; background-image: -moz-linear-gradient(top, #3a4450, #3a4450); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3a4450), to(#3a4450)); background-image: -webkit-linear-gradient(top, #3a4450, #3a4450); background-image: -o-linear-gradient(top, #3a4450, #3a4450); background-image: linear-gradient(to bottom, #3a4450, #3a4450); background-repeat: repeat-x; border-color: #3a4450 #3a4450 #1a1f24; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3a4450', endColorstr='#ff3a4450', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .navbar-inverse .btn-navbar:hover, .navbar-inverse .btn-navbar:focus, .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active, .navbar-inverse .btn-navbar.disabled, .navbar-inverse .btn-navbar[disabled] { color: #ffffff; background-color: #3a4450; *background-color: #303841; } .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active { background-color: #252b33 \9; } .breadcrumb { padding: 8px 15px; margin: 0 0 20px; list-style: none; background-color: #f5f5f5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .breadcrumb > li { display: inline-block; *display: inline; text-shadow: 0 1px 0 #ffffff; *zoom: 1; } .breadcrumb > li > .divider { padding: 0 5px; color: #ccc; } .breadcrumb > .active { color: #999999; } .pagination { margin: 20px 0; } .pagination ul { display: inline-block; *display: inline; margin-bottom: 0; margin-left: 0; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; *zoom: 1; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .pagination ul > li { display: inline; } .pagination ul > li > a, .pagination ul > li > span { float: left; padding: 4px 12px; line-height: 20px; text-decoration: none; background-color: #45515f; border: 1px solid transparent; border-left-width: 0; } .pagination ul > li > a:hover, .pagination ul > li > a:focus, .pagination ul > .active > a, .pagination ul > .active > span { background-color: #e36b23; } .pagination ul > .active > a, .pagination ul > .active > span { color: #999999; cursor: default; } .pagination ul > .disabled > span, .pagination ul > .disabled > a, .pagination ul > .disabled > a:hover, .pagination ul > .disabled > a:focus { color: #999999; cursor: default; background-color: transparent; } .pagination ul > li:first-child > a, .pagination ul > li:first-child > span { border-left-width: 1px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-topleft: 4px; } .pagination ul > li:last-child > a, .pagination ul > li:last-child > span { -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; -moz-border-radius-topright: 4px; -moz-border-radius-bottomright: 4px; } .pagination-centered { text-align: center; } .pagination-right { text-align: right; } .pagination-large ul > li > a, .pagination-large ul > li > span { padding: 11px 19px; font-size: 18.75px; } .pagination-large ul > li:first-child > a, .pagination-large ul > li:first-child > span { -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-topleft: 6px; } .pagination-large ul > li:last-child > a, .pagination-large ul > li:last-child > span { -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; } .pagination-mini ul > li:first-child > a, .pagination-small ul > li:first-child > a, .pagination-mini ul > li:first-child > span, .pagination-small ul > li:first-child > span { -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -moz-border-radius-topleft: 3px; } .pagination-mini ul > li:last-child > a, .pagination-small ul > li:last-child > a, .pagination-mini ul > li:last-child > span, .pagination-small ul > li:last-child > span { -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; -moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; } .pagination-small ul > li > a, .pagination-small ul > li > span { padding: 2px 10px; font-size: 12.75px; } .pagination-mini ul > li > a, .pagination-mini ul > li > span { padding: 0 6px; font-size: 11.25px; } .pager { margin: 20px 0; text-align: center; list-style: none; *zoom: 1; } .pager:before, .pager:after { display: table; line-height: 0; content: ""; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #f5f5f5; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; cursor: default; background-color: #fff; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop, .modal-backdrop.fade.in { opacity: 0.8; filter: alpha(opacity=80); } .modal { position: fixed; top: 10%; left: 50%; z-index: 1050; width: 560px; margin-left: -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; } .modal.fade { top: -25%; -webkit-transition: opacity 0.3s linear, top 0.3s ease-out; -moz-transition: opacity 0.3s linear, top 0.3s ease-out; -o-transition: opacity 0.3s linear, top 0.3s ease-out; transition: opacity 0.3s linear, top 0.3s ease-out; } .modal.fade.in { top: 10%; } .modal-header { padding: 9px 15px; border-bottom: 1px solid #eee; } .modal-header .close { margin-top: 2px; } .modal-header h3 { margin: 0; line-height: 30px; } .modal-body { position: relative; max-height: 400px; padding: 15px; overflow-y: auto; } .modal-form { margin-bottom: 0; } .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; text-align: right; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; *zoom: 1; -webkit-box-shadow: inset 0 1px 0 #ffffff; -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; } .modal-footer:before, .modal-footer:after { display: table; line-height: 0; content: ""; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 11px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 0.8; filter: alpha(opacity=80); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #000000; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: #000000; border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: #000000; border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: #000000; border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: #000000; border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #45515f; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #3f4956; border-bottom: 1px solid #343d47; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .popover-title:empty { display: none; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #45515f; border-bottom-width: 0; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #45515f; border-left-width: 0; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #45515f; border-top-width: 0; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #45515f; border-right-width: 0; } .thumbnails { margin-left: -20px; list-style: none; *zoom: 1; } .thumbnails:before, .thumbnails:after { display: table; line-height: 0; content: ""; } .thumbnails:after { clear: both; } .row-fluid .thumbnails { margin-left: 0; } .thumbnails > li { float: left; margin-bottom: 20px; margin-left: 20px; } .thumbnail { display: block; padding: 4px; line-height: 20px; border: 1px solid #ddd; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } a.thumbnail:hover, a.thumbnail:focus { border-color: #e36b23; -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); } .thumbnail > img { display: block; max-width: 100%; margin-right: auto; margin-left: auto; } .thumbnail .caption { padding: 9px; color: #555555; } .media, .media-body { overflow: hidden; *overflow: visible; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { margin-left: 0; list-style: none; } .label, .badge { display: inline-block; padding: 2px 4px; font-size: 12.69px; font-weight: bold; line-height: 14px; color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); white-space: nowrap; vertical-align: baseline; background-color: #999999; } .label { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .badge { padding-right: 9px; padding-left: 9px; -webkit-border-radius: 9px; -moz-border-radius: 9px; border-radius: 9px; } .label:empty, .badge:empty { display: none; } a.label:hover, a.label:focus, a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label-important, .badge-important { background-color: #b94a48; } .label-important[href], .badge-important[href] { background-color: #953b39; } .label-warning, .badge-warning { background-color: #e36b23; } .label-warning[href], .badge-warning[href] { background-color: #bb5518; } .label-success, .badge-success { background-color: #468847; } .label-success[href], .badge-success[href] { background-color: #356635; } .label-info, .badge-info { background-color: #3a87ad; } .label-info[href], .badge-info[href] { background-color: #2d6987; } .label-inverse, .badge-inverse { background-color: #333333; } .label-inverse[href], .badge-inverse[href] { background-color: #1a1a1a; } .btn .label, .btn .badge { position: relative; top: -1px; } .btn-mini .label, .btn-mini .badge { top: 0; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #f7f7f7; background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); background-repeat: repeat-x; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress .bar { float: left; width: 0; height: 100%; font-size: 12px; color: #ffffff; text-align: center; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #0e90d2; background-image: -moz-linear-gradient(top, #149bdf, #0480be); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); background-image: -webkit-linear-gradient(top, #149bdf, #0480be); background-image: -o-linear-gradient(top, #149bdf, #0480be); background-image: linear-gradient(to bottom, #149bdf, #0480be); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: width 0.6s ease; -moz-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress .bar + .bar { -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); } .progress-striped .bar { background-color: #149bdf; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -webkit-background-size: 40px 40px; -moz-background-size: 40px 40px; -o-background-size: 40px 40px; background-size: 40px 40px; } .progress.active .bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-danger .bar, .progress .bar-danger { background-color: #dd514c; background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); } .progress-danger.progress-striped .bar, .progress-striped .bar-danger { background-color: #ee5f5b; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-success .bar, .progress .bar-success { background-color: #5eb95e; background-image: -moz-linear-gradient(top, #62c462, #57a957); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); background-image: -webkit-linear-gradient(top, #62c462, #57a957); background-image: -o-linear-gradient(top, #62c462, #57a957); background-image: linear-gradient(to bottom, #62c462, #57a957); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); } .progress-success.progress-striped .bar, .progress-striped .bar-success { background-color: #62c462; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-info .bar, .progress .bar-info { background-color: #4bb1cf; background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); background-image: -o-linear-gradient(top, #5bc0de, #339bb9); background-image: linear-gradient(to bottom, #5bc0de, #339bb9); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); } .progress-info.progress-striped .bar, .progress-striped .bar-info { background-color: #5bc0de; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-warning .bar, .progress .bar-warning { background-color: #e8864c; background-image: -moz-linear-gradient(top, #ec9967, #e36b23); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ec9967), to(#e36b23)); background-image: -webkit-linear-gradient(top, #ec9967, #e36b23); background-image: -o-linear-gradient(top, #ec9967, #e36b23); background-image: linear-gradient(to bottom, #ec9967, #e36b23); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec9967', endColorstr='#ffe36b23', GradientType=0); } .progress-warning.progress-striped .bar, .progress-striped .bar-warning { background-color: #ec9967; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .accordion { margin-bottom: 20px; } .accordion-group { margin-bottom: 2px; border: 1px solid #e5e5e5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .accordion-heading { border-bottom: 0; } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; } .accordion-toggle { cursor: pointer; } .accordion-inner { padding: 9px 15px; border-top: 1px solid #e5e5e5; } .carousel { position: relative; margin-bottom: 20px; line-height: 1; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 40%; left: 15px; width: 40px; height: 40px; margin-top: -20px; font-size: 60px; font-weight: 100; line-height: 30px; color: #ffffff; text-align: center; background: #222222; border: 3px solid #ffffff; -webkit-border-radius: 23px; -moz-border-radius: 23px; border-radius: 23px; opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.right { right: 15px; left: auto; } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-indicators { position: absolute; top: 15px; right: 15px; z-index: 5; margin: 0; list-style: none; } .carousel-indicators li { display: block; float: left; width: 10px; height: 10px; margin-left: 5px; text-indent: -999px; background-color: #ccc; background-color: rgba(255, 255, 255, 0.25); border-radius: 5px; } .carousel-indicators .active { background-color: #fff; } .carousel-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 15px; background: #333333; background: rgba(0, 0, 0, 0.75); } .carousel-caption h4, .carousel-caption p { line-height: 20px; color: #ffffff; } .carousel-caption h4 { margin: 0 0 5px; } .carousel-caption p { margin-bottom: 0; } .hero-unit { padding: 60px; margin-bottom: 30px; font-size: 18px; font-weight: 200; line-height: 30px; color: inherit; background-color: #45515f; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .hero-unit h1 { margin-bottom: 0; font-size: 60px; line-height: 1; letter-spacing: -1px; color: inherit; } .hero-unit li { line-height: 30px; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, h6 { font-family: 'Oswald', sans-serif; color: #e36b23; text-shadow: -1px 1px 0 #612c0c; } h1, h2 { text-shadow: -2px 2px 0 #612c0c; } h1 { line-height: 55px; } code, pre { color: #ece9d7; background-color: #566577; border: none; } .page-header { border-bottom: none; } blockquote { border-left: 5px solid #45515f; } blockquote.pull-right { border-right: 5px solid #45515f; } .navbar .navbar-inner { background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .brand { padding: 25px 20px 15px; font-family: 'Oswald', sans-serif; font-size: 30px; text-shadow: -2px 2px 0 #612c0c; } .navbar .nav > li > a { padding: 23px 20px 13px; font-family: 'Oswald', sans-serif; font-size: 22px; line-height: 30px; text-shadow: -2px 2px 0 #612c0c; } .navbar .brand:hover, .navbar .nav > li > a:hover, .navbar .nav > li.active > a:hover, .navbar .nav > li.dropdown.open > a, .navbar .nav > li.dropdown.open > a:hover { position: relative; top: 1px; left: -1px; color: #e36b23; text-shadow: -1px 1px 0 #612c0c; } .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .navbar-text { padding: 23px 20px 13px; font-family: 'Oswald', sans-serif; font-size: 22px; line-height: 30px; text-shadow: -2px 2px 0 #555555; } .navbar .navbar-search { margin-top: 24px; } .navbar .navbar-search .search-query { font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif; font-size: 15px; line-height: 20px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar.navbar-inverse .navbar-search .search-query { color: #2a333c; } .navbar .divider-vertical { height: 70px; } .navbar .nav .dropdown-toggle .caret, .navbar .nav .open.dropdown .caret { margin-top: 14px; border-top-color: #ece9d7; } .navbar .dropdown-menu::before { border: none; } .navbar .dropdown-menu::after { left: 20px; border-right: 7px solid transparent; border-bottom: 7px solid #5a6a7d; border-left: 7px solid transparent; } .navbar [class^="icon-"], .navbar [class*=" icon-"] { vertical-align: 20%; } .navbar .btn-navbar { background-color: #45515f; border-color: transparent; } @media (max-width: 979px) { .navbar .nav-collapse { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .navbar .nav-collapse .nav li > a { color: #e36b23; } .navbar .nav-collapse .nav li > a:hover { background-color: #5a6a7d !important; background-image: none; } .navbar .nav-collapse .navbar-form, .navbar .nav-collapse .navbar-search { border-top: none; border-bottom: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .nav-collapse .nav-header { color: #ece9d7; } } div.subnav { margin: 0 1px; background: #45515f none; border: none; } div.subnav .nav > li > a, div.subnav .nav > li.active > a { color: #ece9d7; border-color: transparent; } div.subnav .nav > li > a:hover, div.subnav .nav > li.active > a:hover { background-color: #5a6a7d; border-color: transparent; } div.subnav .nav > li.active > a, div.subnav .nav > li.active > a:hover { color: #ffffff; background: #e36b23 none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } div.subnav.subnav-fixed { top: 71px; margin: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } div.subnav.subnav-fixed .nav > li > a, div.subnav.subnav-fixed .nav > li > a:hover, div.subnav.subnav-fixed .nav > li.active > a, div.subnav.subnav-fixed .nav > li.active > a:hover { border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } div.subnav.subnav-fixed .nav > li > a:hover, div.subnav.subnav-fixed .nav > li.active > a:hover { color: #ffffff; } div.subnav .nav > .active > a .caret, div.subnav .nav > .active > a:hover .caret { border-top-color: #ece9d7; } .nav .nav-header { color: #ece9d7; text-shadow: none; } .nav-list { padding: 0 15px; } .nav-list > li > a, .nav-list > .nav-header { color: #ece9d7; text-shadow: none; } .nav-list .active > a, .nav-list .active > a:hover { color: #ffffff; text-shadow: none; } .nav-list li > a:hover { background-color: #5a6a7d; } .nav-tabs, .nav-tabs.nav-stacked > li > a { border-color: transparent; } .nav-tabs > li > a { color: #ece9d7; background-color: #45515f; } .nav-tabs li.active > a, .nav-tabs li.active > a:hover, .nav-tabs.nav-stacked > li.active > a:hover { color: #ffffff; background-color: #e36b23; border-color: transparent; } .nav-tabs li > a:hover, .nav-tabs.nav-stacked > li > a:hover { background-color: #5a6a7d; border-color: transparent; } .nav-tabs li.disabled > a:hover { background-color: #45515f; } .nav-pills > li > a { color: #ece9d7; background-color: #45515f; } .nav-pills > li > a:hover { background-color: #5a6a7d; border-color: transparent; } .nav-pills > .disabled > a:hover { background-color: #45515f; } .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > .open.active > a:hover { background-color: #5a6a7d; border-color: transparent; } .nav-pills .dropdown .caret, .nav-pills .dropdown:hover .caret { border-top-color: #ece9d7; } .dropdown.open .dropdown-menu > li > a:hover, .dropdown.open .dropdown-menu > li.active > a:hover { color: #ffffff; background-color: #e36b23; } .tabbable .nav-tabs, .tabbable .nav-tabs > li.active > a, .tabbable .nav-tabs > li > a:hover, .tabbable .nav-tabs > li.active > a:hover { border-color: transparent; } .breadcrumb { background-color: #45515f; background-image: none; border: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .breadcrumb li { text-shadow: none; } .breadcrumb .divider { color: #ece9d7; } .pagination ul { background-image: none; border-color: transparent; } .pagination ul > li > a, .pagination ul > li > span { color: #ece9d7; border: none; } .pagination ul > li > a:hover { background: #5a6a7d; } .pagination ul > .active > a, .pagination ul > .active > a:hover, .pagination ul > .active > span, .pagination ul > .active > span:hover { color: #ffffff; background-color: #e36b23; } .pagination ul > .disabled > a, .pagination ul > .disabled > a:hover, .pagination ul > .disabled > span, .pagination ul > .disabled > span:hover { background: #3a4450; } .pager li > a, .pager li > span { color: #ece9d7; background-color: #45515f; border: none; } .pager li > a:hover, .pager li > span:hover { background: #5a6a7d; } .pager .disabled a, .pager .disabled a:hover { background-color: #45515f; } .btn, .btn:hover { text-shadow: none; background-image: none; border: none; -webkit-box-shadow: -2px 2px 0 rgba(0, 0, 0, 0.2); -moz-box-shadow: -2px 2px 0 rgba(0, 0, 0, 0.2); box-shadow: -2px 2px 0 rgba(0, 0, 0, 0.2); } .btn-warning { background-color: #e6c92e; } .btn-primary, .btn-primary:hover { -webkit-box-shadow: -2px 2px 0 #612c0c; -moz-box-shadow: -2px 2px 0 #612c0c; box-shadow: -2px 2px 0 #612c0c; } .btn-warning, .btn-warning:hover { -webkit-box-shadow: -2px 2px 0 #6e5f0d; -moz-box-shadow: -2px 2px 0 #6e5f0d; box-shadow: -2px 2px 0 #6e5f0d; } .btn-danger, .btn-danger:hover { -webkit-box-shadow: -2px 2px 0 #9f1411; -moz-box-shadow: -2px 2px 0 #9f1411; box-shadow: -2px 2px 0 #9f1411; } .btn-success, .btn-success:hover { -webkit-box-shadow: -2px 2px 0 #276627; -moz-box-shadow: -2px 2px 0 #276627; box-shadow: -2px 2px 0 #276627; } .btn-info, .btn-info:hover { -webkit-box-shadow: -2px 2px 0 #124a5b; -moz-box-shadow: -2px 2px 0 #124a5b; box-shadow: -2px 2px 0 #124a5b; } .btn-inverse, .btn-inverse:hover { -webkit-box-shadow: -2px 2px 0 #121212; -moz-box-shadow: -2px 2px 0 #121212; box-shadow: -2px 2px 0 #121212; } .btn.dropdown-toggle, .btn.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #333333; -moz-box-shadow: 0 2px 0 #333333; box-shadow: 0 2px 0 #333333; } .btn-primary.dropdown-toggle, .btn-primary.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #612c0c; -moz-box-shadow: 0 2px 0 #612c0c; box-shadow: 0 2px 0 #612c0c; } .btn-warning.dropdown-toggle, .btn-warning.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #6e5f0d; -moz-box-shadow: 0 2px 0 #6e5f0d; box-shadow: 0 2px 0 #6e5f0d; } .btn-danger.dropdown-toggle, .btn-danger.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #9f1411; -moz-box-shadow: 0 2px 0 #9f1411; box-shadow: 0 2px 0 #9f1411; } .btn-success.dropdown-toggle, .btn-success.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #276627; -moz-box-shadow: 0 2px 0 #276627; box-shadow: 0 2px 0 #276627; } .btn-info.dropdown-toggle, .btn-info.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #124a5b; -moz-box-shadow: 0 2px 0 #124a5b; box-shadow: 0 2px 0 #124a5b; } .btn-inverse.dropdown-toggle, .btn-inverse.dropdown-toggle:hover { -webkit-box-shadow: 0 2px 0 #121212; -moz-box-shadow: 0 2px 0 #121212; box-shadow: 0 2px 0 #121212; } .btn.active, .btn:active { position: relative; top: 1px; left: -1px; -webkit-box-shadow: -1px 1px 0 #333333; -moz-box-shadow: -1px 1px 0 #333333; box-shadow: -1px 1px 0 #333333; } .btn.disabled, .btn.disabled.active, .btn.disabled:active, .btn[disabled] { top: 0; left: 0; text-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } [class^="icon-"], [class*=" icon-"] { vertical-align: -13%; } .table, .table-striped tbody > tr > td:first-child, .table-striped tbody > tr > td:last-child { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } input, button, select, textarea { font-family: 'Noticia Text', serif; } legend { font-family: 'Oswald', sans-serif; color: #e36b23; text-shadow: -2px 2px 0 #612c0c; border-bottom: none; } label { line-height: 15px; color: #ece9d7; } .help-block { color: #ece9d7; opacity: 0.6; } .form-actions { border-top: none; } .control-group.warning .control-label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #ceae78; } .control-group.warning .checkbox, .control-group.warning .radio, .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #ceae78; } .control-group.warning input, .control-group.warning select, .control-group.warning textarea { border-color: #ceae78; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #e9dbc3; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #e9dbc3; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #e9dbc3; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #ceae78; background-color: #fcf8e3; border-color: #ceae78; } .control-group.error .control-label, .control-group.error .help-block, .control-group.error .help-inline { color: #c76e6d; } .control-group.error .checkbox, .control-group.error .radio, .control-group.error input, .control-group.error select, .control-group.error textarea { color: #c76e6d; } .control-group.error input, .control-group.error select, .control-group.error textarea { border-color: #c76e6d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #e3b7b7; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #e3b7b7; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #e3b7b7; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #c76e6d; background-color: #f2dede; border-color: #c76e6d; } .control-group.success .control-label, .control-group.success .help-block, .control-group.success .help-inline { color: #58a959; } .control-group.success .checkbox, .control-group.success .radio, .control-group.success input, .control-group.success select, .control-group.success textarea { color: #58a959; } .control-group.success input, .control-group.success select, .control-group.success textarea { border-color: #58a959; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #9bcc9c; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #9bcc9c; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #9bcc9c; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #58a959; background-color: #dff0d8; border-color: #58a959; } .input-append .add-on, .input-prepend .add-on, .input-append .btn, .input-prepend .btn { color: #2a333c; } .dropdown .caret { margin-top: 14px; border-top: 6px solid #5a6a7d; border-right: 6px solid transparent; border-left: 6px solid transparent; opacity: 1; } .label { color: #ece9d7; background-color: #45515f; } .label-important { background-color: #b94a48; } .label-warning { background-color: #e36b23; } .label-success { background-color: #468847; } .label-info { background-color: #3a87ad; } .alert { color: #ece9d7; text-shadow: none; background-color: #45515f; border: none; } .alert a { color: #ea9059; } .alert .alert-heading { color: #e36b23; } .alert-success { background-color: #468847; } .alert-danger, .alert-error { background-color: #b94a48; } .alert-info { background-color: #3a87ad; } .well, .hero-unit { border: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .hero-unit h1 { line-height: 2em; color: #e36b23; } .progress { background-color: #20262d; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .progress .bar { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .thumbnail { background: #45515f; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .modal { background-color: transparent; } .modal-header, .modal-body, .modal-footer { background-color: #2a333c; border: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .modal-header { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .modal-footer { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } @media (max-width: 768px) { div.subnav .nav > li:first-child > a, div.subnav .nav > li:first-child > a:hover, div.subnav .nav > li.active:first-child > a, div.subnav .nav > li.active:first-child > a:hover { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } div.subnav .nav > li:last-child > a, div.subnav .nav > li:last-child > a:hover, div.subnav .nav > li.active:last-child > a, div.subnav .nav > li.active:last-child > a:hover { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; }
steve-ng/cdnjs
ajax/libs/bootswatch/2.3.1-1/superhero/bootstrap.css
CSS
mit
144,152
/*! Ionicons, v1.5.0 Created by Ben Sperry for the Ionic Framework, http://ionicons.com/ https://twitter.com/benjsperry https://twitter.com/ionicframework MIT License: https://github.com/driftyco/ionicons */@font-face{font-family:"Ionicons";src:url("../fonts/ionicons.eot?v=1.5.0");src:url("../fonts/ionicons.eot?v=1.5.0#iefix") format("embedded-opentype"),url("../fonts/ionicons.ttf?v=1.5.0") format("truetype"),url("../fonts/ionicons.woff?v=1.5.0") format("woff"),url("../fonts/ionicons.svg?v=1.5.0#Ionicons") format("svg");font-weight:normal;font-style:normal}.ion,.ion-loading-a,.ion-loading-b,.ion-loading-c,.ion-loading-d,.ion-looping,.ion-refreshing,.ion-ios7-reloading,.ionicons,.ion-alert,.ion-alert-circled,.ion-android-add,.ion-android-add-contact,.ion-android-alarm,.ion-android-archive,.ion-android-arrow-back,.ion-android-arrow-down-left,.ion-android-arrow-down-right,.ion-android-arrow-forward,.ion-android-arrow-up-left,.ion-android-arrow-up-right,.ion-android-battery,.ion-android-book,.ion-android-calendar,.ion-android-call,.ion-android-camera,.ion-android-chat,.ion-android-checkmark,.ion-android-clock,.ion-android-close,.ion-android-contact,.ion-android-contacts,.ion-android-data,.ion-android-developer,.ion-android-display,.ion-android-download,.ion-android-drawer,.ion-android-dropdown,.ion-android-earth,.ion-android-folder,.ion-android-forums,.ion-android-friends,.ion-android-hand,.ion-android-image,.ion-android-inbox,.ion-android-information,.ion-android-keypad,.ion-android-lightbulb,.ion-android-locate,.ion-android-location,.ion-android-mail,.ion-android-microphone,.ion-android-mixer,.ion-android-more,.ion-android-note,.ion-android-playstore,.ion-android-printer,.ion-android-promotion,.ion-android-reminder,.ion-android-remove,.ion-android-search,.ion-android-send,.ion-android-settings,.ion-android-share,.ion-android-social,.ion-android-social-user,.ion-android-sort,.ion-android-stair-drawer,.ion-android-star,.ion-android-stopwatch,.ion-android-storage,.ion-android-system-back,.ion-android-system-home,.ion-android-system-windows,.ion-android-timer,.ion-android-trash,.ion-android-user-menu,.ion-android-volume,.ion-android-wifi,.ion-aperture,.ion-archive,.ion-arrow-down-a,.ion-arrow-down-b,.ion-arrow-down-c,.ion-arrow-expand,.ion-arrow-graph-down-left,.ion-arrow-graph-down-right,.ion-arrow-graph-up-left,.ion-arrow-graph-up-right,.ion-arrow-left-a,.ion-arrow-left-b,.ion-arrow-left-c,.ion-arrow-move,.ion-arrow-resize,.ion-arrow-return-left,.ion-arrow-return-right,.ion-arrow-right-a,.ion-arrow-right-b,.ion-arrow-right-c,.ion-arrow-shrink,.ion-arrow-swap,.ion-arrow-up-a,.ion-arrow-up-b,.ion-arrow-up-c,.ion-asterisk,.ion-at,.ion-bag,.ion-battery-charging,.ion-battery-empty,.ion-battery-full,.ion-battery-half,.ion-battery-low,.ion-beaker,.ion-beer,.ion-bluetooth,.ion-bonfire,.ion-bookmark,.ion-briefcase,.ion-bug,.ion-calculator,.ion-calendar,.ion-camera,.ion-card,.ion-cash,.ion-chatbox,.ion-chatbox-working,.ion-chatboxes,.ion-chatbubble,.ion-chatbubble-working,.ion-chatbubbles,.ion-checkmark,.ion-checkmark-circled,.ion-checkmark-round,.ion-chevron-down,.ion-chevron-left,.ion-chevron-right,.ion-chevron-up,.ion-clipboard,.ion-clock,.ion-close,.ion-close-circled,.ion-close-round,.ion-closed-captioning,.ion-cloud,.ion-code,.ion-code-download,.ion-code-working,.ion-coffee,.ion-compass,.ion-compose,.ion-connection-bars,.ion-contrast,.ion-cube,.ion-disc,.ion-document,.ion-document-text,.ion-drag,.ion-earth,.ion-edit,.ion-egg,.ion-eject,.ion-email,.ion-eye,.ion-eye-disabled,.ion-female,.ion-filing,.ion-film-marker,.ion-fireball,.ion-flag,.ion-flame,.ion-flash,.ion-flash-off,.ion-flask,.ion-folder,.ion-fork,.ion-fork-repo,.ion-forward,.ion-funnel,.ion-game-controller-a,.ion-game-controller-b,.ion-gear-a,.ion-gear-b,.ion-grid,.ion-hammer,.ion-happy,.ion-headphone,.ion-heart,.ion-heart-broken,.ion-help,.ion-help-buoy,.ion-help-circled,.ion-home,.ion-icecream,.ion-icon-social-google-plus,.ion-icon-social-google-plus-outline,.ion-image,.ion-images,.ion-information,.ion-information-circled,.ion-ionic,.ion-ios7-alarm,.ion-ios7-alarm-outline,.ion-ios7-albums,.ion-ios7-albums-outline,.ion-ios7-americanfootball,.ion-ios7-americanfootball-outline,.ion-ios7-analytics,.ion-ios7-analytics-outline,.ion-ios7-arrow-back,.ion-ios7-arrow-down,.ion-ios7-arrow-forward,.ion-ios7-arrow-left,.ion-ios7-arrow-right,.ion-ios7-arrow-thin-down,.ion-ios7-arrow-thin-left,.ion-ios7-arrow-thin-right,.ion-ios7-arrow-thin-up,.ion-ios7-arrow-up,.ion-ios7-at,.ion-ios7-at-outline,.ion-ios7-barcode,.ion-ios7-barcode-outline,.ion-ios7-baseball,.ion-ios7-baseball-outline,.ion-ios7-basketball,.ion-ios7-basketball-outline,.ion-ios7-bell,.ion-ios7-bell-outline,.ion-ios7-bolt,.ion-ios7-bolt-outline,.ion-ios7-bookmarks,.ion-ios7-bookmarks-outline,.ion-ios7-box,.ion-ios7-box-outline,.ion-ios7-briefcase,.ion-ios7-briefcase-outline,.ion-ios7-browsers,.ion-ios7-browsers-outline,.ion-ios7-calculator,.ion-ios7-calculator-outline,.ion-ios7-calendar,.ion-ios7-calendar-outline,.ion-ios7-camera,.ion-ios7-camera-outline,.ion-ios7-cart,.ion-ios7-cart-outline,.ion-ios7-chatboxes,.ion-ios7-chatboxes-outline,.ion-ios7-chatbubble,.ion-ios7-chatbubble-outline,.ion-ios7-checkmark,.ion-ios7-checkmark-empty,.ion-ios7-checkmark-outline,.ion-ios7-circle-filled,.ion-ios7-circle-outline,.ion-ios7-clock,.ion-ios7-clock-outline,.ion-ios7-close,.ion-ios7-close-empty,.ion-ios7-close-outline,.ion-ios7-cloud,.ion-ios7-cloud-download,.ion-ios7-cloud-download-outline,.ion-ios7-cloud-outline,.ion-ios7-cloud-upload,.ion-ios7-cloud-upload-outline,.ion-ios7-cloudy,.ion-ios7-cloudy-night,.ion-ios7-cloudy-night-outline,.ion-ios7-cloudy-outline,.ion-ios7-cog,.ion-ios7-cog-outline,.ion-ios7-compose,.ion-ios7-compose-outline,.ion-ios7-contact,.ion-ios7-contact-outline,.ion-ios7-copy,.ion-ios7-copy-outline,.ion-ios7-download,.ion-ios7-download-outline,.ion-ios7-drag,.ion-ios7-email,.ion-ios7-email-outline,.ion-ios7-expand,.ion-ios7-eye,.ion-ios7-eye-outline,.ion-ios7-fastforward,.ion-ios7-fastforward-outline,.ion-ios7-filing,.ion-ios7-filing-outline,.ion-ios7-film,.ion-ios7-film-outline,.ion-ios7-flag,.ion-ios7-flag-outline,.ion-ios7-folder,.ion-ios7-folder-outline,.ion-ios7-football,.ion-ios7-football-outline,.ion-ios7-gear,.ion-ios7-gear-outline,.ion-ios7-glasses,.ion-ios7-glasses-outline,.ion-ios7-heart,.ion-ios7-heart-outline,.ion-ios7-help,.ion-ios7-help-empty,.ion-ios7-help-outline,.ion-ios7-home,.ion-ios7-home-outline,.ion-ios7-infinite,.ion-ios7-infinite-outline,.ion-ios7-information,.ion-ios7-information-empty,.ion-ios7-information-outline,.ion-ios7-ionic-outline,.ion-ios7-keypad,.ion-ios7-keypad-outline,.ion-ios7-lightbulb,.ion-ios7-lightbulb-outline,.ion-ios7-location,.ion-ios7-location-outline,.ion-ios7-locked,.ion-ios7-locked-outline,.ion-ios7-loop,.ion-ios7-loop-strong,.ion-ios7-medkit,.ion-ios7-medkit-outline,.ion-ios7-mic,.ion-ios7-mic-off,.ion-ios7-mic-outline,.ion-ios7-minus,.ion-ios7-minus-empty,.ion-ios7-minus-outline,.ion-ios7-monitor,.ion-ios7-monitor-outline,.ion-ios7-moon,.ion-ios7-moon-outline,.ion-ios7-more,.ion-ios7-more-outline,.ion-ios7-musical-note,.ion-ios7-musical-notes,.ion-ios7-navigate,.ion-ios7-navigate-outline,.ion-ios7-paper,.ion-ios7-paper-outline,.ion-ios7-paperplane,.ion-ios7-paperplane-outline,.ion-ios7-partlysunny,.ion-ios7-partlysunny-outline,.ion-ios7-pause,.ion-ios7-pause-outline,.ion-ios7-paw,.ion-ios7-paw-outline,.ion-ios7-people,.ion-ios7-people-outline,.ion-ios7-person,.ion-ios7-person-outline,.ion-ios7-personadd,.ion-ios7-personadd-outline,.ion-ios7-photos,.ion-ios7-photos-outline,.ion-ios7-pie,.ion-ios7-pie-outline,.ion-ios7-play,.ion-ios7-play-outline,.ion-ios7-plus,.ion-ios7-plus-empty,.ion-ios7-plus-outline,.ion-ios7-pricetag,.ion-ios7-pricetag-outline,.ion-ios7-pricetags,.ion-ios7-pricetags-outline,.ion-ios7-printer,.ion-ios7-printer-outline,.ion-ios7-pulse,.ion-ios7-pulse-strong,.ion-ios7-rainy,.ion-ios7-rainy-outline,.ion-ios7-recording,.ion-ios7-recording-outline,.ion-ios7-redo,.ion-ios7-redo-outline,.ion-ios7-refresh,.ion-ios7-refresh-empty,.ion-ios7-refresh-outline,.ion-ios7-reload,.ion-ios7-reverse-camera,.ion-ios7-reverse-camera-outline,.ion-ios7-rewind,.ion-ios7-rewind-outline,.ion-ios7-search,.ion-ios7-search-strong,.ion-ios7-settings,.ion-ios7-settings-strong,.ion-ios7-shrink,.ion-ios7-skipbackward,.ion-ios7-skipbackward-outline,.ion-ios7-skipforward,.ion-ios7-skipforward-outline,.ion-ios7-snowy,.ion-ios7-speedometer,.ion-ios7-speedometer-outline,.ion-ios7-star,.ion-ios7-star-half,.ion-ios7-star-outline,.ion-ios7-stopwatch,.ion-ios7-stopwatch-outline,.ion-ios7-sunny,.ion-ios7-sunny-outline,.ion-ios7-telephone,.ion-ios7-telephone-outline,.ion-ios7-tennisball,.ion-ios7-tennisball-outline,.ion-ios7-thunderstorm,.ion-ios7-thunderstorm-outline,.ion-ios7-time,.ion-ios7-time-outline,.ion-ios7-timer,.ion-ios7-timer-outline,.ion-ios7-toggle,.ion-ios7-toggle-outline,.ion-ios7-trash,.ion-ios7-trash-outline,.ion-ios7-undo,.ion-ios7-undo-outline,.ion-ios7-unlocked,.ion-ios7-unlocked-outline,.ion-ios7-upload,.ion-ios7-upload-outline,.ion-ios7-videocam,.ion-ios7-videocam-outline,.ion-ios7-volume-high,.ion-ios7-volume-low,.ion-ios7-wineglass,.ion-ios7-wineglass-outline,.ion-ios7-world,.ion-ios7-world-outline,.ion-ipad,.ion-iphone,.ion-ipod,.ion-jet,.ion-key,.ion-knife,.ion-laptop,.ion-leaf,.ion-levels,.ion-lightbulb,.ion-link,.ion-load-a,.ion-load-b,.ion-load-c,.ion-load-d,.ion-location,.ion-locked,.ion-log-in,.ion-log-out,.ion-loop,.ion-magnet,.ion-male,.ion-man,.ion-map,.ion-medkit,.ion-merge,.ion-mic-a,.ion-mic-b,.ion-mic-c,.ion-minus,.ion-minus-circled,.ion-minus-round,.ion-model-s,.ion-monitor,.ion-more,.ion-mouse,.ion-music-note,.ion-navicon,.ion-navicon-round,.ion-navigate,.ion-network,.ion-no-smoking,.ion-nuclear,.ion-outlet,.ion-paper-airplane,.ion-paperclip,.ion-pause,.ion-person,.ion-person-add,.ion-person-stalker,.ion-pie-graph,.ion-pin,.ion-pinpoint,.ion-pizza,.ion-plane,.ion-planet,.ion-play,.ion-playstation,.ion-plus,.ion-plus-circled,.ion-plus-round,.ion-podium,.ion-pound,.ion-power,.ion-pricetag,.ion-pricetags,.ion-printer,.ion-pull-request,.ion-qr-scanner,.ion-quote,.ion-radio-waves,.ion-record,.ion-refresh,.ion-reply,.ion-reply-all,.ion-ribbon-a,.ion-ribbon-b,.ion-sad,.ion-scissors,.ion-search,.ion-settings,.ion-share,.ion-shuffle,.ion-skip-backward,.ion-skip-forward,.ion-social-android,.ion-social-android-outline,.ion-social-apple,.ion-social-apple-outline,.ion-social-bitcoin,.ion-social-bitcoin-outline,.ion-social-buffer,.ion-social-buffer-outline,.ion-social-designernews,.ion-social-designernews-outline,.ion-social-dribbble,.ion-social-dribbble-outline,.ion-social-dropbox,.ion-social-dropbox-outline,.ion-social-facebook,.ion-social-facebook-outline,.ion-social-foursquare,.ion-social-foursquare-outline,.ion-social-freebsd-devil,.ion-social-github,.ion-social-github-outline,.ion-social-google,.ion-social-google-outline,.ion-social-googleplus,.ion-social-googleplus-outline,.ion-social-hackernews,.ion-social-hackernews-outline,.ion-social-instagram,.ion-social-instagram-outline,.ion-social-linkedin,.ion-social-linkedin-outline,.ion-social-pinterest,.ion-social-pinterest-outline,.ion-social-reddit,.ion-social-reddit-outline,.ion-social-rss,.ion-social-rss-outline,.ion-social-skype,.ion-social-skype-outline,.ion-social-tumblr,.ion-social-tumblr-outline,.ion-social-tux,.ion-social-twitter,.ion-social-twitter-outline,.ion-social-usd,.ion-social-usd-outline,.ion-social-vimeo,.ion-social-vimeo-outline,.ion-social-windows,.ion-social-windows-outline,.ion-social-wordpress,.ion-social-wordpress-outline,.ion-social-yahoo,.ion-social-yahoo-outline,.ion-social-youtube,.ion-social-youtube-outline,.ion-speakerphone,.ion-speedometer,.ion-spoon,.ion-star,.ion-stats-bars,.ion-steam,.ion-stop,.ion-thermometer,.ion-thumbsdown,.ion-thumbsup,.ion-toggle,.ion-toggle-filled,.ion-trash-a,.ion-trash-b,.ion-trophie,.ion-umbrella,.ion-university,.ion-unlocked,.ion-upload,.ion-usb,.ion-videocamera,.ion-volume-high,.ion-volume-low,.ion-volume-medium,.ion-volume-mute,.ion-wand,.ion-waterdrop,.ion-wifi,.ion-wineglass,.ion-woman,.ion-wrench,.ion-xbox{display:inline-block;font-family:"Ionicons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ion-spin,.ion-loading-a,.ion-loading-b,.ion-loading-c,.ion-loading-d,.ion-looping,.ion-refreshing,.ion-ios7-reloading{-webkit-animation:spin 1s infinite linear;-moz-animation:spin 1s infinite linear;-o-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.ion-loading-a{-webkit-animation-timing-function:steps(8, start);-moz-animation-timing-function:steps(8, start);animation-timing-function:steps(8, start)}.ion-alert:before{content:"\f101"}.ion-alert-circled:before{content:"\f100"}.ion-android-add:before{content:"\f2c7"}.ion-android-add-contact:before{content:"\f2c6"}.ion-android-alarm:before{content:"\f2c8"}.ion-android-archive:before{content:"\f2c9"}.ion-android-arrow-back:before{content:"\f2ca"}.ion-android-arrow-down-left:before{content:"\f2cb"}.ion-android-arrow-down-right:before{content:"\f2cc"}.ion-android-arrow-forward:before{content:"\f30f"}.ion-android-arrow-up-left:before{content:"\f2cd"}.ion-android-arrow-up-right:before{content:"\f2ce"}.ion-android-battery:before{content:"\f2cf"}.ion-android-book:before{content:"\f2d0"}.ion-android-calendar:before{content:"\f2d1"}.ion-android-call:before{content:"\f2d2"}.ion-android-camera:before{content:"\f2d3"}.ion-android-chat:before{content:"\f2d4"}.ion-android-checkmark:before{content:"\f2d5"}.ion-android-clock:before{content:"\f2d6"}.ion-android-close:before{content:"\f2d7"}.ion-android-contact:before{content:"\f2d8"}.ion-android-contacts:before{content:"\f2d9"}.ion-android-data:before{content:"\f2da"}.ion-android-developer:before{content:"\f2db"}.ion-android-display:before{content:"\f2dc"}.ion-android-download:before{content:"\f2dd"}.ion-android-drawer:before{content:"\f310"}.ion-android-dropdown:before{content:"\f2de"}.ion-android-earth:before{content:"\f2df"}.ion-android-folder:before{content:"\f2e0"}.ion-android-forums:before{content:"\f2e1"}.ion-android-friends:before{content:"\f2e2"}.ion-android-hand:before{content:"\f2e3"}.ion-android-image:before{content:"\f2e4"}.ion-android-inbox:before{content:"\f2e5"}.ion-android-information:before{content:"\f2e6"}.ion-android-keypad:before{content:"\f2e7"}.ion-android-lightbulb:before{content:"\f2e8"}.ion-android-locate:before{content:"\f2e9"}.ion-android-location:before{content:"\f2ea"}.ion-android-mail:before{content:"\f2eb"}.ion-android-microphone:before{content:"\f2ec"}.ion-android-mixer:before{content:"\f2ed"}.ion-android-more:before{content:"\f2ee"}.ion-android-note:before{content:"\f2ef"}.ion-android-playstore:before{content:"\f2f0"}.ion-android-printer:before{content:"\f2f1"}.ion-android-promotion:before{content:"\f2f2"}.ion-android-reminder:before{content:"\f2f3"}.ion-android-remove:before{content:"\f2f4"}.ion-android-search:before{content:"\f2f5"}.ion-android-send:before{content:"\f2f6"}.ion-android-settings:before{content:"\f2f7"}.ion-android-share:before{content:"\f2f8"}.ion-android-social:before{content:"\f2fa"}.ion-android-social-user:before{content:"\f2f9"}.ion-android-sort:before{content:"\f2fb"}.ion-android-stair-drawer:before{content:"\f311"}.ion-android-star:before{content:"\f2fc"}.ion-android-stopwatch:before{content:"\f2fd"}.ion-android-storage:before{content:"\f2fe"}.ion-android-system-back:before{content:"\f2ff"}.ion-android-system-home:before{content:"\f300"}.ion-android-system-windows:before{content:"\f301"}.ion-android-timer:before{content:"\f302"}.ion-android-trash:before{content:"\f303"}.ion-android-user-menu:before{content:"\f312"}.ion-android-volume:before{content:"\f304"}.ion-android-wifi:before{content:"\f305"}.ion-aperture:before{content:"\f313"}.ion-archive:before{content:"\f102"}.ion-arrow-down-a:before{content:"\f103"}.ion-arrow-down-b:before{content:"\f104"}.ion-arrow-down-c:before{content:"\f105"}.ion-arrow-expand:before{content:"\f25e"}.ion-arrow-graph-down-left:before{content:"\f25f"}.ion-arrow-graph-down-right:before{content:"\f260"}.ion-arrow-graph-up-left:before{content:"\f261"}.ion-arrow-graph-up-right:before{content:"\f262"}.ion-arrow-left-a:before{content:"\f106"}.ion-arrow-left-b:before{content:"\f107"}.ion-arrow-left-c:before{content:"\f108"}.ion-arrow-move:before{content:"\f263"}.ion-arrow-resize:before{content:"\f264"}.ion-arrow-return-left:before{content:"\f265"}.ion-arrow-return-right:before{content:"\f266"}.ion-arrow-right-a:before{content:"\f109"}.ion-arrow-right-b:before{content:"\f10a"}.ion-arrow-right-c:before{content:"\f10b"}.ion-arrow-shrink:before{content:"\f267"}.ion-arrow-swap:before{content:"\f268"}.ion-arrow-up-a:before{content:"\f10c"}.ion-arrow-up-b:before{content:"\f10d"}.ion-arrow-up-c:before{content:"\f10e"}.ion-asterisk:before{content:"\f314"}.ion-at:before{content:"\f10f"}.ion-bag:before{content:"\f110"}.ion-battery-charging:before{content:"\f111"}.ion-battery-empty:before{content:"\f112"}.ion-battery-full:before{content:"\f113"}.ion-battery-half:before{content:"\f114"}.ion-battery-low:before{content:"\f115"}.ion-beaker:before{content:"\f269"}.ion-beer:before{content:"\f26a"}.ion-bluetooth:before{content:"\f116"}.ion-bonfire:before{content:"\f315"}.ion-bookmark:before{content:"\f26b"}.ion-briefcase:before{content:"\f26c"}.ion-bug:before{content:"\f2be"}.ion-calculator:before{content:"\f26d"}.ion-calendar:before{content:"\f117"}.ion-camera:before{content:"\f118"}.ion-card:before{content:"\f119"}.ion-cash:before{content:"\f316"}.ion-chatbox:before{content:"\f11b"}.ion-chatbox-working:before{content:"\f11a"}.ion-chatboxes:before{content:"\f11c"}.ion-chatbubble:before{content:"\f11e"}.ion-chatbubble-working:before{content:"\f11d"}.ion-chatbubbles:before{content:"\f11f"}.ion-checkmark:before{content:"\f122"}.ion-checkmark-circled:before{content:"\f120"}.ion-checkmark-round:before{content:"\f121"}.ion-chevron-down:before{content:"\f123"}.ion-chevron-left:before{content:"\f124"}.ion-chevron-right:before{content:"\f125"}.ion-chevron-up:before{content:"\f126"}.ion-clipboard:before{content:"\f127"}.ion-clock:before{content:"\f26e"}.ion-close:before{content:"\f12a"}.ion-close-circled:before{content:"\f128"}.ion-close-round:before{content:"\f129"}.ion-closed-captioning:before{content:"\f317"}.ion-cloud:before{content:"\f12b"}.ion-code:before{content:"\f271"}.ion-code-download:before{content:"\f26f"}.ion-code-working:before{content:"\f270"}.ion-coffee:before{content:"\f272"}.ion-compass:before{content:"\f273"}.ion-compose:before{content:"\f12c"}.ion-connection-bars:before{content:"\f274"}.ion-contrast:before{content:"\f275"}.ion-cube:before{content:"\f318"}.ion-disc:before{content:"\f12d"}.ion-document:before{content:"\f12f"}.ion-document-text:before{content:"\f12e"}.ion-drag:before{content:"\f130"}.ion-earth:before{content:"\f276"}.ion-edit:before{content:"\f2bf"}.ion-egg:before{content:"\f277"}.ion-eject:before{content:"\f131"}.ion-email:before{content:"\f132"}.ion-eye:before{content:"\f133"}.ion-eye-disabled:before{content:"\f306"}.ion-female:before{content:"\f278"}.ion-filing:before{content:"\f134"}.ion-film-marker:before{content:"\f135"}.ion-fireball:before{content:"\f319"}.ion-flag:before{content:"\f279"}.ion-flame:before{content:"\f31a"}.ion-flash:before{content:"\f137"}.ion-flash-off:before{content:"\f136"}.ion-flask:before{content:"\f138"}.ion-folder:before{content:"\f139"}.ion-fork:before{content:"\f27a"}.ion-fork-repo:before{content:"\f2c0"}.ion-forward:before{content:"\f13a"}.ion-funnel:before{content:"\f31b"}.ion-game-controller-a:before{content:"\f13b"}.ion-game-controller-b:before{content:"\f13c"}.ion-gear-a:before{content:"\f13d"}.ion-gear-b:before{content:"\f13e"}.ion-grid:before{content:"\f13f"}.ion-hammer:before{content:"\f27b"}.ion-happy:before{content:"\f31c"}.ion-headphone:before{content:"\f140"}.ion-heart:before{content:"\f141"}.ion-heart-broken:before{content:"\f31d"}.ion-help:before{content:"\f143"}.ion-help-buoy:before{content:"\f27c"}.ion-help-circled:before{content:"\f142"}.ion-home:before{content:"\f144"}.ion-icecream:before{content:"\f27d"}.ion-icon-social-google-plus:before{content:"\f146"}.ion-icon-social-google-plus-outline:before{content:"\f145"}.ion-image:before{content:"\f147"}.ion-images:before{content:"\f148"}.ion-information:before{content:"\f14a"}.ion-information-circled:before{content:"\f149"}.ion-ionic:before{content:"\f14b"}.ion-ios7-alarm:before{content:"\f14d"}.ion-ios7-alarm-outline:before{content:"\f14c"}.ion-ios7-albums:before{content:"\f14f"}.ion-ios7-albums-outline:before{content:"\f14e"}.ion-ios7-americanfootball:before{content:"\f31f"}.ion-ios7-americanfootball-outline:before{content:"\f31e"}.ion-ios7-analytics:before{content:"\f321"}.ion-ios7-analytics-outline:before{content:"\f320"}.ion-ios7-arrow-back:before{content:"\f150"}.ion-ios7-arrow-down:before{content:"\f151"}.ion-ios7-arrow-forward:before{content:"\f152"}.ion-ios7-arrow-left:before{content:"\f153"}.ion-ios7-arrow-right:before{content:"\f154"}.ion-ios7-arrow-thin-down:before{content:"\f27e"}.ion-ios7-arrow-thin-left:before{content:"\f27f"}.ion-ios7-arrow-thin-right:before{content:"\f280"}.ion-ios7-arrow-thin-up:before{content:"\f281"}.ion-ios7-arrow-up:before{content:"\f155"}.ion-ios7-at:before{content:"\f157"}.ion-ios7-at-outline:before{content:"\f156"}.ion-ios7-barcode:before{content:"\f323"}.ion-ios7-barcode-outline:before{content:"\f322"}.ion-ios7-baseball:before{content:"\f325"}.ion-ios7-baseball-outline:before{content:"\f324"}.ion-ios7-basketball:before{content:"\f327"}.ion-ios7-basketball-outline:before{content:"\f326"}.ion-ios7-bell:before{content:"\f159"}.ion-ios7-bell-outline:before{content:"\f158"}.ion-ios7-bolt:before{content:"\f15b"}.ion-ios7-bolt-outline:before{content:"\f15a"}.ion-ios7-bookmarks:before{content:"\f15d"}.ion-ios7-bookmarks-outline:before{content:"\f15c"}.ion-ios7-box:before{content:"\f15f"}.ion-ios7-box-outline:before{content:"\f15e"}.ion-ios7-briefcase:before{content:"\f283"}.ion-ios7-briefcase-outline:before{content:"\f282"}.ion-ios7-browsers:before{content:"\f161"}.ion-ios7-browsers-outline:before{content:"\f160"}.ion-ios7-calculator:before{content:"\f285"}.ion-ios7-calculator-outline:before{content:"\f284"}.ion-ios7-calendar:before{content:"\f163"}.ion-ios7-calendar-outline:before{content:"\f162"}.ion-ios7-camera:before{content:"\f165"}.ion-ios7-camera-outline:before{content:"\f164"}.ion-ios7-cart:before{content:"\f167"}.ion-ios7-cart-outline:before{content:"\f166"}.ion-ios7-chatboxes:before{content:"\f169"}.ion-ios7-chatboxes-outline:before{content:"\f168"}.ion-ios7-chatbubble:before{content:"\f16b"}.ion-ios7-chatbubble-outline:before{content:"\f16a"}.ion-ios7-checkmark:before{content:"\f16e"}.ion-ios7-checkmark-empty:before{content:"\f16c"}.ion-ios7-checkmark-outline:before{content:"\f16d"}.ion-ios7-circle-filled:before{content:"\f16f"}.ion-ios7-circle-outline:before{content:"\f170"}.ion-ios7-clock:before{content:"\f172"}.ion-ios7-clock-outline:before{content:"\f171"}.ion-ios7-close:before{content:"\f2bc"}.ion-ios7-close-empty:before{content:"\f2bd"}.ion-ios7-close-outline:before{content:"\f2bb"}.ion-ios7-cloud:before{content:"\f178"}.ion-ios7-cloud-download:before{content:"\f174"}.ion-ios7-cloud-download-outline:before{content:"\f173"}.ion-ios7-cloud-outline:before{content:"\f175"}.ion-ios7-cloud-upload:before{content:"\f177"}.ion-ios7-cloud-upload-outline:before{content:"\f176"}.ion-ios7-cloudy:before{content:"\f17a"}.ion-ios7-cloudy-night:before{content:"\f308"}.ion-ios7-cloudy-night-outline:before{content:"\f307"}.ion-ios7-cloudy-outline:before{content:"\f179"}.ion-ios7-cog:before{content:"\f17c"}.ion-ios7-cog-outline:before{content:"\f17b"}.ion-ios7-compose:before{content:"\f17e"}.ion-ios7-compose-outline:before{content:"\f17d"}.ion-ios7-contact:before{content:"\f180"}.ion-ios7-contact-outline:before{content:"\f17f"}.ion-ios7-copy:before{content:"\f182"}.ion-ios7-copy-outline:before{content:"\f181"}.ion-ios7-download:before{content:"\f184"}.ion-ios7-download-outline:before{content:"\f183"}.ion-ios7-drag:before{content:"\f185"}.ion-ios7-email:before{content:"\f187"}.ion-ios7-email-outline:before{content:"\f186"}.ion-ios7-expand:before{content:"\f30d"}.ion-ios7-eye:before{content:"\f189"}.ion-ios7-eye-outline:before{content:"\f188"}.ion-ios7-fastforward:before{content:"\f18b"}.ion-ios7-fastforward-outline:before{content:"\f18a"}.ion-ios7-filing:before{content:"\f18d"}.ion-ios7-filing-outline:before{content:"\f18c"}.ion-ios7-film:before{content:"\f18f"}.ion-ios7-film-outline:before{content:"\f18e"}.ion-ios7-flag:before{content:"\f191"}.ion-ios7-flag-outline:before{content:"\f190"}.ion-ios7-folder:before{content:"\f193"}.ion-ios7-folder-outline:before{content:"\f192"}.ion-ios7-football:before{content:"\f329"}.ion-ios7-football-outline:before{content:"\f328"}.ion-ios7-gear:before{content:"\f195"}.ion-ios7-gear-outline:before{content:"\f194"}.ion-ios7-glasses:before{content:"\f197"}.ion-ios7-glasses-outline:before{content:"\f196"}.ion-ios7-heart:before{content:"\f199"}.ion-ios7-heart-outline:before{content:"\f198"}.ion-ios7-help:before{content:"\f19c"}.ion-ios7-help-empty:before{content:"\f19a"}.ion-ios7-help-outline:before{content:"\f19b"}.ion-ios7-home:before{content:"\f32b"}.ion-ios7-home-outline:before{content:"\f32a"}.ion-ios7-infinite:before{content:"\f19e"}.ion-ios7-infinite-outline:before{content:"\f19d"}.ion-ios7-information:before{content:"\f1a1"}.ion-ios7-information-empty:before{content:"\f19f"}.ion-ios7-information-outline:before{content:"\f1a0"}.ion-ios7-ionic-outline:before{content:"\f1a2"}.ion-ios7-keypad:before{content:"\f1a4"}.ion-ios7-keypad-outline:before{content:"\f1a3"}.ion-ios7-lightbulb:before{content:"\f287"}.ion-ios7-lightbulb-outline:before{content:"\f286"}.ion-ios7-location:before{content:"\f1a6"}.ion-ios7-location-outline:before{content:"\f1a5"}.ion-ios7-locked:before{content:"\f1a8"}.ion-ios7-locked-outline:before{content:"\f1a7"}.ion-ios7-loop:before{content:"\f32d"}.ion-ios7-loop-strong:before{content:"\f32c"}.ion-ios7-medkit:before{content:"\f289"}.ion-ios7-medkit-outline:before{content:"\f288"}.ion-ios7-mic:before{content:"\f1ab"}.ion-ios7-mic-off:before{content:"\f1a9"}.ion-ios7-mic-outline:before{content:"\f1aa"}.ion-ios7-minus:before{content:"\f1ae"}.ion-ios7-minus-empty:before{content:"\f1ac"}.ion-ios7-minus-outline:before{content:"\f1ad"}.ion-ios7-monitor:before{content:"\f1b0"}.ion-ios7-monitor-outline:before{content:"\f1af"}.ion-ios7-moon:before{content:"\f1b2"}.ion-ios7-moon-outline:before{content:"\f1b1"}.ion-ios7-more:before{content:"\f1b4"}.ion-ios7-more-outline:before{content:"\f1b3"}.ion-ios7-musical-note:before{content:"\f1b5"}.ion-ios7-musical-notes:before{content:"\f1b6"}.ion-ios7-navigate:before{content:"\f1b8"}.ion-ios7-navigate-outline:before{content:"\f1b7"}.ion-ios7-paper:before{content:"\f32f"}.ion-ios7-paper-outline:before{content:"\f32e"}.ion-ios7-paperplane:before{content:"\f1ba"}.ion-ios7-paperplane-outline:before{content:"\f1b9"}.ion-ios7-partlysunny:before{content:"\f1bc"}.ion-ios7-partlysunny-outline:before{content:"\f1bb"}.ion-ios7-pause:before{content:"\f1be"}.ion-ios7-pause-outline:before{content:"\f1bd"}.ion-ios7-paw:before{content:"\f331"}.ion-ios7-paw-outline:before{content:"\f330"}.ion-ios7-people:before{content:"\f1c0"}.ion-ios7-people-outline:before{content:"\f1bf"}.ion-ios7-person:before{content:"\f1c2"}.ion-ios7-person-outline:before{content:"\f1c1"}.ion-ios7-personadd:before{content:"\f1c4"}.ion-ios7-personadd-outline:before{content:"\f1c3"}.ion-ios7-photos:before{content:"\f1c6"}.ion-ios7-photos-outline:before{content:"\f1c5"}.ion-ios7-pie:before{content:"\f28b"}.ion-ios7-pie-outline:before{content:"\f28a"}.ion-ios7-play:before{content:"\f1c8"}.ion-ios7-play-outline:before{content:"\f1c7"}.ion-ios7-plus:before{content:"\f1cb"}.ion-ios7-plus-empty:before{content:"\f1c9"}.ion-ios7-plus-outline:before{content:"\f1ca"}.ion-ios7-pricetag:before{content:"\f28d"}.ion-ios7-pricetag-outline:before{content:"\f28c"}.ion-ios7-pricetags:before{content:"\f333"}.ion-ios7-pricetags-outline:before{content:"\f332"}.ion-ios7-printer:before{content:"\f1cd"}.ion-ios7-printer-outline:before{content:"\f1cc"}.ion-ios7-pulse:before{content:"\f335"}.ion-ios7-pulse-strong:before{content:"\f334"}.ion-ios7-rainy:before{content:"\f1cf"}.ion-ios7-rainy-outline:before{content:"\f1ce"}.ion-ios7-recording:before{content:"\f1d1"}.ion-ios7-recording-outline:before{content:"\f1d0"}.ion-ios7-redo:before{content:"\f1d3"}.ion-ios7-redo-outline:before{content:"\f1d2"}.ion-ios7-refresh:before{content:"\f1d6"}.ion-ios7-refresh-empty:before{content:"\f1d4"}.ion-ios7-refresh-outline:before{content:"\f1d5"}.ion-ios7-reload:before,.ion-ios7-reloading:before{content:"\f28e"}.ion-ios7-reverse-camera:before{content:"\f337"}.ion-ios7-reverse-camera-outline:before{content:"\f336"}.ion-ios7-rewind:before{content:"\f1d8"}.ion-ios7-rewind-outline:before{content:"\f1d7"}.ion-ios7-search:before{content:"\f1da"}.ion-ios7-search-strong:before{content:"\f1d9"}.ion-ios7-settings:before{content:"\f339"}.ion-ios7-settings-strong:before{content:"\f338"}.ion-ios7-shrink:before{content:"\f30e"}.ion-ios7-skipbackward:before{content:"\f1dc"}.ion-ios7-skipbackward-outline:before{content:"\f1db"}.ion-ios7-skipforward:before{content:"\f1de"}.ion-ios7-skipforward-outline:before{content:"\f1dd"}.ion-ios7-snowy:before{content:"\f309"}.ion-ios7-speedometer:before{content:"\f290"}.ion-ios7-speedometer-outline:before{content:"\f28f"}.ion-ios7-star:before{content:"\f1e0"}.ion-ios7-star-half:before{content:"\f33a"}.ion-ios7-star-outline:before{content:"\f1df"}.ion-ios7-stopwatch:before{content:"\f1e2"}.ion-ios7-stopwatch-outline:before{content:"\f1e1"}.ion-ios7-sunny:before{content:"\f1e4"}.ion-ios7-sunny-outline:before{content:"\f1e3"}.ion-ios7-telephone:before{content:"\f1e6"}.ion-ios7-telephone-outline:before{content:"\f1e5"}.ion-ios7-tennisball:before{content:"\f33c"}.ion-ios7-tennisball-outline:before{content:"\f33b"}.ion-ios7-thunderstorm:before{content:"\f1e8"}.ion-ios7-thunderstorm-outline:before{content:"\f1e7"}.ion-ios7-time:before{content:"\f292"}.ion-ios7-time-outline:before{content:"\f291"}.ion-ios7-timer:before{content:"\f1ea"}.ion-ios7-timer-outline:before{content:"\f1e9"}.ion-ios7-toggle:before{content:"\f33e"}.ion-ios7-toggle-outline:before{content:"\f33d"}.ion-ios7-trash:before{content:"\f1ec"}.ion-ios7-trash-outline:before{content:"\f1eb"}.ion-ios7-undo:before{content:"\f1ee"}.ion-ios7-undo-outline:before{content:"\f1ed"}.ion-ios7-unlocked:before{content:"\f1f0"}.ion-ios7-unlocked-outline:before{content:"\f1ef"}.ion-ios7-upload:before{content:"\f1f2"}.ion-ios7-upload-outline:before{content:"\f1f1"}.ion-ios7-videocam:before{content:"\f1f4"}.ion-ios7-videocam-outline:before{content:"\f1f3"}.ion-ios7-volume-high:before{content:"\f1f5"}.ion-ios7-volume-low:before{content:"\f1f6"}.ion-ios7-wineglass:before{content:"\f294"}.ion-ios7-wineglass-outline:before{content:"\f293"}.ion-ios7-world:before{content:"\f1f8"}.ion-ios7-world-outline:before{content:"\f1f7"}.ion-ipad:before{content:"\f1f9"}.ion-iphone:before{content:"\f1fa"}.ion-ipod:before{content:"\f1fb"}.ion-jet:before{content:"\f295"}.ion-key:before{content:"\f296"}.ion-knife:before{content:"\f297"}.ion-laptop:before{content:"\f1fc"}.ion-leaf:before{content:"\f1fd"}.ion-levels:before{content:"\f298"}.ion-lightbulb:before{content:"\f299"}.ion-link:before{content:"\f1fe"}.ion-load-a:before,.ion-loading-a:before{content:"\f29a"}.ion-load-b:before,.ion-loading-b:before{content:"\f29b"}.ion-load-c:before,.ion-loading-c:before{content:"\f29c"}.ion-load-d:before,.ion-loading-d:before{content:"\f29d"}.ion-location:before{content:"\f1ff"}.ion-locked:before{content:"\f200"}.ion-log-in:before{content:"\f29e"}.ion-log-out:before{content:"\f29f"}.ion-loop:before,.ion-looping:before{content:"\f201"}.ion-magnet:before{content:"\f2a0"}.ion-male:before{content:"\f2a1"}.ion-man:before{content:"\f202"}.ion-map:before{content:"\f203"}.ion-medkit:before{content:"\f2a2"}.ion-merge:before{content:"\f33f"}.ion-mic-a:before{content:"\f204"}.ion-mic-b:before{content:"\f205"}.ion-mic-c:before{content:"\f206"}.ion-minus:before{content:"\f209"}.ion-minus-circled:before{content:"\f207"}.ion-minus-round:before{content:"\f208"}.ion-model-s:before{content:"\f2c1"}.ion-monitor:before{content:"\f20a"}.ion-more:before{content:"\f20b"}.ion-mouse:before{content:"\f340"}.ion-music-note:before{content:"\f20c"}.ion-navicon:before{content:"\f20e"}.ion-navicon-round:before{content:"\f20d"}.ion-navigate:before{content:"\f2a3"}.ion-network:before{content:"\f341"}.ion-no-smoking:before{content:"\f2c2"}.ion-nuclear:before{content:"\f2a4"}.ion-outlet:before{content:"\f342"}.ion-paper-airplane:before{content:"\f2c3"}.ion-paperclip:before{content:"\f20f"}.ion-pause:before{content:"\f210"}.ion-person:before{content:"\f213"}.ion-person-add:before{content:"\f211"}.ion-person-stalker:before{content:"\f212"}.ion-pie-graph:before{content:"\f2a5"}.ion-pin:before{content:"\f2a6"}.ion-pinpoint:before{content:"\f2a7"}.ion-pizza:before{content:"\f2a8"}.ion-plane:before{content:"\f214"}.ion-planet:before{content:"\f343"}.ion-play:before{content:"\f215"}.ion-playstation:before{content:"\f30a"}.ion-plus:before{content:"\f218"}.ion-plus-circled:before{content:"\f216"}.ion-plus-round:before{content:"\f217"}.ion-podium:before{content:"\f344"}.ion-pound:before{content:"\f219"}.ion-power:before{content:"\f2a9"}.ion-pricetag:before{content:"\f2aa"}.ion-pricetags:before{content:"\f2ab"}.ion-printer:before{content:"\f21a"}.ion-pull-request:before{content:"\f345"}.ion-qr-scanner:before{content:"\f346"}.ion-quote:before{content:"\f347"}.ion-radio-waves:before{content:"\f2ac"}.ion-record:before{content:"\f21b"}.ion-refresh:before,.ion-refreshing:before{content:"\f21c"}.ion-reply:before{content:"\f21e"}.ion-reply-all:before{content:"\f21d"}.ion-ribbon-a:before{content:"\f348"}.ion-ribbon-b:before{content:"\f349"}.ion-sad:before{content:"\f34a"}.ion-scissors:before{content:"\f34b"}.ion-search:before{content:"\f21f"}.ion-settings:before{content:"\f2ad"}.ion-share:before{content:"\f220"}.ion-shuffle:before{content:"\f221"}.ion-skip-backward:before{content:"\f222"}.ion-skip-forward:before{content:"\f223"}.ion-social-android:before{content:"\f225"}.ion-social-android-outline:before{content:"\f224"}.ion-social-apple:before{content:"\f227"}.ion-social-apple-outline:before{content:"\f226"}.ion-social-bitcoin:before{content:"\f2af"}.ion-social-bitcoin-outline:before{content:"\f2ae"}.ion-social-buffer:before{content:"\f229"}.ion-social-buffer-outline:before{content:"\f228"}.ion-social-designernews:before{content:"\f22b"}.ion-social-designernews-outline:before{content:"\f22a"}.ion-social-dribbble:before{content:"\f22d"}.ion-social-dribbble-outline:before{content:"\f22c"}.ion-social-dropbox:before{content:"\f22f"}.ion-social-dropbox-outline:before{content:"\f22e"}.ion-social-facebook:before{content:"\f231"}.ion-social-facebook-outline:before{content:"\f230"}.ion-social-foursquare:before{content:"\f34d"}.ion-social-foursquare-outline:before{content:"\f34c"}.ion-social-freebsd-devil:before{content:"\f2c4"}.ion-social-github:before{content:"\f233"}.ion-social-github-outline:before{content:"\f232"}.ion-social-google:before{content:"\f34f"}.ion-social-google-outline:before{content:"\f34e"}.ion-social-googleplus:before{content:"\f235"}.ion-social-googleplus-outline:before{content:"\f234"}.ion-social-hackernews:before{content:"\f237"}.ion-social-hackernews-outline:before{content:"\f236"}.ion-social-instagram:before{content:"\f351"}.ion-social-instagram-outline:before{content:"\f350"}.ion-social-linkedin:before{content:"\f239"}.ion-social-linkedin-outline:before{content:"\f238"}.ion-social-pinterest:before{content:"\f2b1"}.ion-social-pinterest-outline:before{content:"\f2b0"}.ion-social-reddit:before{content:"\f23b"}.ion-social-reddit-outline:before{content:"\f23a"}.ion-social-rss:before{content:"\f23d"}.ion-social-rss-outline:before{content:"\f23c"}.ion-social-skype:before{content:"\f23f"}.ion-social-skype-outline:before{content:"\f23e"}.ion-social-tumblr:before{content:"\f241"}.ion-social-tumblr-outline:before{content:"\f240"}.ion-social-tux:before{content:"\f2c5"}.ion-social-twitter:before{content:"\f243"}.ion-social-twitter-outline:before{content:"\f242"}.ion-social-usd:before{content:"\f353"}.ion-social-usd-outline:before{content:"\f352"}.ion-social-vimeo:before{content:"\f245"}.ion-social-vimeo-outline:before{content:"\f244"}.ion-social-windows:before{content:"\f247"}.ion-social-windows-outline:before{content:"\f246"}.ion-social-wordpress:before{content:"\f249"}.ion-social-wordpress-outline:before{content:"\f248"}.ion-social-yahoo:before{content:"\f24b"}.ion-social-yahoo-outline:before{content:"\f24a"}.ion-social-youtube:before{content:"\f24d"}.ion-social-youtube-outline:before{content:"\f24c"}.ion-speakerphone:before{content:"\f2b2"}.ion-speedometer:before{content:"\f2b3"}.ion-spoon:before{content:"\f2b4"}.ion-star:before{content:"\f24e"}.ion-stats-bars:before{content:"\f2b5"}.ion-steam:before{content:"\f30b"}.ion-stop:before{content:"\f24f"}.ion-thermometer:before{content:"\f2b6"}.ion-thumbsdown:before{content:"\f250"}.ion-thumbsup:before{content:"\f251"}.ion-toggle:before{content:"\f355"}.ion-toggle-filled:before{content:"\f354"}.ion-trash-a:before{content:"\f252"}.ion-trash-b:before{content:"\f253"}.ion-trophie:before{content:"\f356"}.ion-umbrella:before{content:"\f2b7"}.ion-university:before{content:"\f357"}.ion-unlocked:before{content:"\f254"}.ion-upload:before{content:"\f255"}.ion-usb:before{content:"\f2b8"}.ion-videocamera:before{content:"\f256"}.ion-volume-high:before{content:"\f257"}.ion-volume-low:before{content:"\f258"}.ion-volume-medium:before{content:"\f259"}.ion-volume-mute:before{content:"\f25a"}.ion-wand:before{content:"\f358"}.ion-waterdrop:before{content:"\f25b"}.ion-wifi:before{content:"\f25c"}.ion-wineglass:before{content:"\f2b9"}.ion-woman:before{content:"\f25d"}.ion-wrench:before{content:"\f2ba"}.ion-xbox:before{content:"\f30c"}
potomak/cdnjs
ajax/libs/ionicons/1.5.0/css/ionicons.min.css
CSS
mit
38,635
/** * Converts a callback function to an observable sequence. * * @param {Function} function Function with a callback as the last parameter to convert to an Observable sequence. * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined. * @param {Function} [selector] A selector which takes the arguments from the callback to produce a single item to yield on next. * @returns {Function} A function, when executed with the required parameters minus the callback, produces an Observable sequence with a single value of the arguments to the callback as an array. */ Observable.fromCallback = function (func, context, selector) { return function () { var len = arguments.length, args = new Array(len) for(var i = 0; i < len; i++) { args[i] = arguments[i]; } return new AnonymousObservable(function (observer) { function handler() { var len = arguments.length, results = new Array(len); for(var i = 0; i < len; i++) { results[i] = arguments[i]; } if (selector) { try { results = selector.apply(context, results); } catch (e) { return observer.onError(e); } observer.onNext(results); } else { if (results.length <= 1) { observer.onNext.apply(observer, results); } else { observer.onNext(results); } } observer.onCompleted(); } args.push(handler); func.apply(context, args); }).publishLast().refCount(); }; };
gandhark/AngularFirebase
node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/fromcallback.js
JavaScript
mit
1,661
/*! X-editable - v1.4.5 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ (function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.editableform.defaults,n),this.$div=e(t),this.options.scope||(this.options.scope=this)};t.prototype={constructor:t,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value)},initTemplate:function(){this.$form=e(e.fn.editableform.template)},initButtons:function(){var t=this.$form.find(".editable-buttons");t.append(e.fn.editableform.buttons),this.options.showbuttons==="bottom"&&t.addClass("editable-buttons-bottom")},render:function(){this.$loading=e(e.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.input.prerender(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),e.when(this.input.render()).then(e.proxy(function(){this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(e.proxy(this.cancel,this)),this.input.error?(this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(e){e.preventDefault()})):(this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled"),this.input.value2input(this.value),this.$form.submit(e.proxy(this.submit,this))),this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var e,t;this.$form?(e=this.$form.outerWidth(),t=this.$form.outerHeight(),e&&this.$loading.width(e),t&&this.$loading.height(t),this.$form.hide()):(e=this.$loading.parent().width(),e&&this.$loading.width(e)),this.$loading.show()},showForm:function(e){this.$loading.hide(),this.$form.show(),e!==!1&&this.input.activate(),this.$div.triggerHandler("show")},error:function(t){var n=this.$form.find(".control-group"),r=this.$form.find(".editable-error-block"),i;if(t===!1)n.removeClass(e.fn.editableform.errorGroupClass),r.removeClass(e.fn.editableform.errorBlockClass).empty().hide();else{if(t){i=t.split("\n");for(var s=0;s<i.length;s++)i[s]=e("<div>").text(i[s]).html();t=i.join("<br>")}n.addClass(e.fn.editableform.errorGroupClass),r.addClass(e.fn.editableform.errorBlockClass).html(t).show()}},submit:function(t){t.stopPropagation(),t.preventDefault();var n,r=this.input.input2value();if(n=this.validate(r)){this.error(n),this.showForm();return}if(!this.options.savenochange&&this.input.value2str(r)==this.input.value2str(this.value)){this.$div.triggerHandler("nochange");return}var i=this.input.value2submit(r);this.isSaving=!0,e.when(this.save(i)).done(e.proxy(function(e){this.isSaving=!1;var t=typeof this.options.success=="function"?this.options.success.call(this.options.scope,e,r):null;if(t===!1){this.error(!1),this.showForm(!1);return}if(typeof t=="string"){this.error(t),this.showForm();return}t&&typeof t=="object"&&t.hasOwnProperty("newValue")&&(r=t.newValue),this.error(!1),this.value=r,this.$div.triggerHandler("save",{newValue:r,submitValue:i,response:e})},this)).fail(e.proxy(function(e){this.isSaving=!1;var t;typeof this.options.error=="function"?t=this.options.error.call(this.options.scope,e,r):t=typeof e=="string"?e:e.responseText||e.statusText||"Unknown error!",this.error(t),this.showForm()},this))},save:function(t){this.options.pk=e.fn.editableutils.tryParseJson(this.options.pk,!0);var n=typeof this.options.pk=="function"?this.options.pk.call(this.options.scope):this.options.pk,r=!!(typeof this.options.url=="function"||this.options.url&&(this.options.send==="always"||this.options.send==="auto"&&n!==null&&n!==undefined)),i;if(r)return this.showLoading(),i={name:this.options.name||"",value:t,pk:n},typeof this.options.params=="function"?i=this.options.params.call(this.options.scope,i):(this.options.params=e.fn.editableutils.tryParseJson(this.options.params,!0),e.extend(i,this.options.params)),typeof this.options.url=="function"?this.options.url.call(this.options.scope,i):e.ajax(e.extend({url:this.options.url,data:i,type:"POST"},this.options.ajaxOptions))},validate:function(e){e===undefined&&(e=this.value);if(typeof this.options.validate=="function")return this.options.validate.call(this.options.scope,e)},option:function(e,t){e in this.options&&(this.options[e]=t),e==="value"&&this.setValue(t)},setValue:function(e,t){t?this.value=this.input.str2value(e):this.value=e,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},e.fn.editableform=function(n){var r=arguments;return this.each(function(){var i=e(this),s=i.data("editableform"),o=typeof n=="object"&&n;s||i.data("editableform",s=new t(this,o)),typeof n=="string"&&s[n].apply(s,Array.prototype.slice.call(r,1))})},e.fn.editableform.Constructor=t,e.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},e.fn.editableform.template='<form class="form-inline editableform"><div class="control-group"><div><div class="editable-input"></div><div class="editable-buttons"></div></div><div class="editable-error-block"></div></div></form>',e.fn.editableform.loading='<div class="editableform-loading"></div>',e.fn.editableform.buttons='<button type="submit" class="editable-submit">ok</button><button type="button" class="editable-cancel">cancel</button>',e.fn.editableform.errorGroupClass=null,e.fn.editableform.errorBlockClass="editable-error"})(window.jQuery),function(e){"use strict";e.fn.editableutils={inherit:function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype},setCursorPosition:function(e,t){if(e.setSelectionRange)e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},tryParseJson:function(e,t){if(typeof e=="string"&&e.length&&e.match(/^[\{\[].*[\}\]]$/))if(t)try{e=(new Function("return "+e))()}catch(n){}finally{return e}else e=(new Function("return "+e))();return e},sliceObj:function(t,n,r){var i,s,o={};if(!e.isArray(n)||!n.length)return o;for(var u=0;u<n.length;u++){i=n[u],t.hasOwnProperty(i)&&(o[i]=t[i]);if(r===!0)continue;s=i.toLowerCase(),t.hasOwnProperty(s)&&(o[i]=t[s])}return o},getConfigData:function(t){var n={};return e.each(t.data(),function(e,t){if(typeof t!="object"||t&&typeof t=="object"&&(t.constructor===Object||t.constructor===Array))n[e]=t}),n},objectKeys:function(e){if(Object.keys)return Object.keys(e);if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},escape:function(t){return e("<div>").text(t).html()},itemsByValue:function(t,n,r){if(!n||t===null)return[];r=r||"value";var i=e.isArray(t),s=[],o=this;return e.each(n,function(n,u){u.children?s=s.concat(o.itemsByValue(t,u.children,r)):i?e.grep(t,function(e){return e==(u&&typeof u==="object"?u[r]:u)}).length&&s.push(u):t==(u&&typeof u==="object"?u[r]:u)&&s.push(u)}),s},createInput:function(t){var n,r,i,s=t.type;return s==="date"&&(t.mode==="inline"?e.fn.editabletypes.datefield?s="datefield":e.fn.editabletypes.dateuifield&&(s="dateuifield"):e.fn.editabletypes.date?s="date":e.fn.editabletypes.dateui&&(s="dateui"),s==="date"&&!e.fn.editabletypes.date&&(s="combodate")),s==="datetime"&&t.mode==="inline"&&(s="datetimefield"),s==="wysihtml5"&&!e.fn.editabletypes[s]&&(s="textarea"),typeof e.fn.editabletypes[s]=="function"?(n=e.fn.editabletypes[s],r=this.sliceObj(t,this.objectKeys(n.defaults)),i=new n(r),i):(e.error("Unknown type: "+s),!1)},supportsTransitions:function(){var e=document.body||document.documentElement,t=e.style,n="transition",r=["Moz","Webkit","Khtml","O","ms"];if(typeof t[n]=="string")return!0;n=n.charAt(0).toUpperCase()+n.substr(1);for(var i=0;i<r.length;i++)if(typeof t[r[i]+n]=="string")return!0;return!1}}}(window.jQuery),function(e){"use strict";var t=function(e,t){this.init(e,t)},n=function(e,t){this.init(e,t)};t.prototype={containerName:null,innerCss:null,containerClass:"editable-container editable-popup",init:function(n,r){this.$element=e(n),this.options=e.extend({},e.fn.editableContainer.defaults,r),this.splitOptions(),this.formOptions.scope=this.$element[0],this.initContainer(),this.delayedHide=!1,this.$element.on("destroyed",e.proxy(function(){this.destroy()},this)),e(document).data("editable-handlers-attached")||(e(document).on("keyup.editable",function(t){t.which===27&&e(".editable-open").editableContainer("hide")}),e(document).on("click.editable",function(n){var r=e(n.target),i,s=[".editable-container",".ui-datepicker-header",".datepicker",".modal-backdrop",".bootstrap-wysihtml5-insert-image-modal",".bootstrap-wysihtml5-insert-link-modal"];if(!e.contains(document.documentElement,n.target))return;if(r.is(document))return;for(i=0;i<s.length;i++)if(r.is(s[i])||r.parents(s[i]).length)return;t.prototype.closeOthers(n.target)}),e(document).data("editable-handlers-attached",!0))},splitOptions:function(){this.containerOptions={},this.formOptions={};if(!e.fn[this.containerName])throw new Error(this.containerName+" not found. Have you included corresponding js file?");var t=e.fn[this.containerName].defaults;for(var n in this.options)n in t?this.containerOptions[n]=this.options[n]:this.formOptions[n]=this.options[n]},tip:function(){return this.container()?this.container().$tip:null},container:function(){return this.$element.data(this.containerDataName||this.containerName)},call:function(){this.$element[this.containerName].apply(this.$element,arguments)},initContainer:function(){this.call(this.containerOptions)},renderForm:function(){this.$form.editableform(this.formOptions).on({save:e.proxy(this.save,this),nochange:e.proxy(function(){this.hide("nochange")},this),cancel:e.proxy(function(){this.hide("cancel")},this),show:e.proxy(function(){this.delayedHide?(this.hide(this.delayedHide.reason),this.delayedHide=!1):this.setPosition()},this),rendering:e.proxy(this.setPosition,this),resize:e.proxy(this.setPosition,this),rendered:e.proxy(function(){this.$element.triggerHandler("shown",this)},this)}).editableform("render")},show:function(t){this.$element.addClass("editable-open"),t!==!1&&this.closeOthers(this.$element[0]),this.innerShow(),this.tip().addClass(this.containerClass),this.$form,this.$form=e("<div>"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(e){if(!this.tip()||!this.tip().is(":visible")||!this.$element.hasClass("editable-open"))return;if(this.$form.data("editableform").isSaving){this.delayedHide={reason:e};return}this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",e||"manual")},innerShow:function(){},innerHide:function(){},toggle:function(e){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(e)},setPosition:function(){},save:function(e,t){this.$element.triggerHandler("save",t),this.hide("save")},option:function(e,t){this.options[e]=t,e in this.containerOptions?(this.containerOptions[e]=t,this.setContainerOption(e,t)):(this.formOptions[e]=t,this.$form&&this.$form.editableform("option",e,t))},setContainerOption:function(e,t){this.call("option",e,t)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(t){e(".editable-open").each(function(n,r){if(r===t||e(r).find(t).length)return;var i=e(r),s=i.data("editableContainer");if(!s)return;s.options.onblur==="cancel"?i.data("editableContainer").hide("onblur"):s.options.onblur==="submit"&&i.data("editableContainer").tip().find("form").submit()})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},e.fn.editableContainer=function(r){var i=arguments;return this.each(function(){var s=e(this),o="editableContainer",u=s.data(o),a=typeof r=="object"&&r,f=a.mode==="inline"?n:t;u||s.data(o,u=new f(this,a)),typeof r=="string"&&u[r].apply(u,Array.prototype.slice.call(i,1))})},e.fn.editableContainer.Popup=t,e.fn.editableContainer.Inline=n,e.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(e){e.handler&&e.handler()}}}(window.jQuery),function(e){"use strict";e.extend(e.fn.editableContainer.Inline.prototype,e.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=e("<span></span>"),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,e.proxy(function(){this.$element.show(),this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.editable.defaults,n,e.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!e.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};t.prototype={constructor:t,init:function(){var t=!1,n,r;this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=e.fn.editableutils.createInput(this.options);if(!this.input)return;this.options.value===undefined||this.options.value===null?(this.value=this.input.html2value(e.trim(this.$element.html())),t=!0):(this.options.value=e.fn.editableutils.tryParseJson(this.options.value,!0),typeof this.options.value=="string"?this.value=this.input.str2value(this.options.value):this.value=this.options.value),this.$element.addClass("editable"),this.options.toggle!=="manual"?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",e.proxy(function(e){this.options.disabled||e.preventDefault();if(this.options.toggle==="mouseenter")this.show();else{var t=this.options.toggle!=="click";this.toggle(t)}},this))):this.$element.attr("tabindex",-1),typeof this.options.display=="function"&&(this.options.autotext="always");switch(this.options.autotext){case"always":n=!0;break;case"auto":n=!e.trim(this.$element.text()).length&&this.value!==null&&this.value!==undefined&&!t;break;default:n=!1}e.when(n?this.render():!0).then(e.proxy(function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)},this))},initLive:function(){var t=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",t,e.proxy(function(t){var n=e(t.target);n.data("editable")||(n.hasClass(this.options.emptyclass)&&n.empty(),n.editable(this.options).trigger(t))},this))},render:function(e){if(this.options.display===!1)return;return this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,e):typeof this.options.display=="function"?this.options.display.call(this.$element[0],this.value,e):this.input.value2html(this.value,this.$element[0])},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.options.toggle!=="manual"&&this.$element.attr("tabindex")==="-1"&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(t,n){if(t&&typeof t=="object"){e.each(t,e.proxy(function(t,n){this.option(e.trim(t),n)},this));return}this.options[t]=n;if(t==="disabled")return n?this.disable():this.enable();t==="value"&&this.setValue(n),this.container&&this.container.option(t,n),this.input.option&&this.input.option(t,n)},handleEmpty:function(t){if(this.options.display===!1)return;t!==undefined?this.isEmpty=t:e.trim(this.$element.html())===""?this.isEmpty=!0:e.trim(this.$element.text())!==""?this.isEmpty=!1:this.isEmpty=!this.$element.height()||!this.$element.width(),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)},show:function(t){if(this.options.disabled)return;if(!this.container){var n=e.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(n),this.$element.on("save.internal",e.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}else if(this.container.tip().is(":visible"))return;this.container.show(t)},hide:function(){this.container&&this.container.hide()},toggle:function(e){this.container&&this.container.tip().is(":visible")?this.hide():this.show(e)},save:function(e,t){if(this.options.unsavedclass){var n=!1;n=n||typeof this.options.url=="function",n=n||this.options.display===!1,n=n||t.response!==undefined,n=n||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(t.newValue),n?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var r=this.$element,i=r.css("background-color");r.css("background-color",this.options.highlight),setTimeout(function(){r.css("background-color",i),r.addClass("editable-bg-transition"),setTimeout(function(){r.removeClass("editable-bg-transition")},1700)},0)}this.setValue(t.newValue,!1,t.response)},validate:function(){if(typeof this.options.validate=="function")return this.options.validate.call(this,this.value)},setValue:function(t,n,r){n?this.value=this.input.str2value(t):this.value=t,this.container&&this.container.option("value",this.value),e.when(this.render(r)).then(e.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),this.options.toggle!=="manual"&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},e.fn.editable=function(n){var r={},i=arguments,s="editable";switch(n){case"validate":return this.each(function(){var t=e(this),n=t.data(s),i;n&&(i=n.validate())&&(r[n.options.name]=i)}),r;case"getValue":return arguments.length===2&&arguments[1]===!0?r=this.eq(0).data(s).value:this.each(function(){var t=e(this),n=t.data(s);n&&n.value!==undefined&&n.value!==null&&(r[n.options.name]=n.input.value2submit(n.value))}),r;case"submit":var o=arguments[1]||{},u=this,a=this.editable("validate"),f;return e.isEmptyObject(a)?(f=this.editable("getValue"),o.data&&e.extend(f,o.data),e.ajax(e.extend({url:o.url,data:f,type:"POST"},o.ajaxOptions)).success(function(e){typeof o.success=="function"&&o.success.call(u,e,o)}).error(function(){typeof o.error=="function"&&o.error.apply(u,arguments)})):typeof o.error=="function"&&o.error.call(u,a),this}return this.each(function(){var r=e(this),o=r.data(s),u=typeof n=="object"&&n;o||r.data(s,o=new t(this,u)),typeof n=="string"&&o[n].apply(o,Array.prototype.slice.call(i,1))})},e.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(e){"use strict";e.fn.editabletypes={};var t=function(){};t.prototype={init:function(t,n,r){this.type=t,this.options=e.extend({},r,n)},prerender:function(){this.$tpl=e(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(t,n){e(n).text(e.trim(t))},html2value:function(t){return e("<div>").html(t).text()},value2str:function(e){return e},str2value:function(e){return e},value2submit:function(e){return e},value2input:function(e){this.$input.val(e)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(t){return e("<div>").text(t).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(e){this.options[e]!==undefined&&this.options[e]!==null&&this.$input.attr(e,this.options[e])},option:function(e,t){this.options[e]=t}},t.defaults={tpl:"",inputclass:"input-medium",scope:null,showbuttons:!0},e.extend(e.fn.editabletypes,{abstractinput:t})}(window.jQuery),function(e){"use strict";var t=function(e){};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){var t=e.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList(),t.resolve()},function(){this.error=this.options.sourceError,t.resolve()}),t.promise()},html2value:function(e){return null},value2html:function(t,n,r,i){var s=e.Deferred(),o=function(){typeof r=="function"?r.call(n,t,this.sourceData,i):this.value2htmlFinal(t,n),s.resolve()};return t===null?o.call(this):this.onSourceReady(o,function(){s.resolve()}),s.promise()},onSourceReady:function(t,n){var r;e.isFunction(this.options.source)?(r=this.options.source.call(this.options.scope),this.sourceData=null):r=this.options.source;if(this.options.sourceCache&&e.isArray(this.sourceData)){t.call(this);return}try{r=e.fn.editableutils.tryParseJson(r,!1)}catch(i){n.call(this);return}if(typeof r=="string"){if(this.options.sourceCache){var s=r,o;e(document).data(s)||e(document).data(s,{}),o=e(document).data(s);if(o.loading===!1&&o.sourceData){this.sourceData=o.sourceData,this.doPrepend(),t.call(this);return}if(o.loading===!0){o.callbacks.push(e.proxy(function(){this.sourceData=o.sourceData,this.doPrepend(),t.call(this)},this)),o.err_callbacks.push(e.proxy(n,this));return}o.loading=!0,o.callbacks=[],o.err_callbacks=[]}e.ajax({url:r,type:"get",cache:!1,dataType:"json",success:e.proxy(function(r){o&&(o.loading=!1),this.sourceData=this.makeArray(r),e.isArray(this.sourceData)?(o&&(o.sourceData=this.sourceData,e.each(o.callbacks,function(){this.call()})),this.doPrepend(),t.call(this)):(n.call(this),o&&e.each(o.err_callbacks,function(){this.call()}))},this),error:e.proxy(function(){n.call(this),o&&(o.loading=!1,e.each(o.err_callbacks,function(){this.call()}))},this)})}else this.sourceData=this.makeArray(r),e.isArray(this.sourceData)?(this.doPrepend(),t.call(this)):n.call(this)},doPrepend:function(){if(this.options.prepend===null||this.options.prepend===undefined)return;e.isArray(this.prependData)||(e.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=e.fn.editableutils.tryParseJson(this.options.prepend,!0),typeof this.options.prepend=="string"&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),e.isArray(this.prependData)&&e.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData))},renderList:function(){},value2htmlFinal:function(e,t){},makeArray:function(t){var n,r,i=[],s,o;if(!t||typeof t=="string")return null;if(e.isArray(t)){o=function(e,t){r={value:e,text:t};if(n++>=2)return!1};for(var u=0;u<t.length;u++)s=t[u],typeof s=="object"?(n=0,e.each(s,o),n===1?i.push(r):n>1&&(s.children&&(s.children=this.makeArray(s.children)),i.push(s))):i.push({value:s,text:s})}else e.each(t,function(e,t){i.push({value:e,text:t})});return i},option:function(e,t){this.options[e]=t,e==="source"&&(this.sourceData=null),e==="prepend"&&(this.prependData=null)}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0}),e.fn.editabletypes.list=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("text",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),e.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=e('<span class="editable-clear-x"></span>'),this.$input.after(this.$clear).css("padding-right",24).keyup(e.proxy(function(t){if(~e.inArray(t.keyCode,[40,38,9,13,27]))return;clearTimeout(this.t);var n=this;this.t=setTimeout(function(){n.toggleClear(t)},100)},this)).parent().css("position","relative"),this.$clear.click(e.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(e){if(!this.$clear)return;var t=this.$input.val().length,n=this.$clear.is(":visible");t&&!n&&this.$clear.show(),!t&&n&&this.$clear.hide()},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',placeholder:null,clear:!0}),e.fn.editabletypes.text=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("textarea",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown(function(t){t.ctrlKey&&t.which===13&&e(this).closest("form").submit()})},value2html:function(t,n){var r="",i;if(t){i=t.split("\n");for(var s=0;s<i.length;s++)i[s]=e("<div>").text(i[s]).html();r=i.join("<br>")}e(n).html(r)},html2value:function(t){if(!t)return"";var n=new RegExp(String.fromCharCode(10),"g"),r=t.split(/<br\s*\/?>/i);for(var i=0;i<r.length;i++){var s=e("<div>").html(r[i]).text();s=s.replace(n,""),r[i]=s}return r.join("\n")},activate:function(){e.fn.editabletypes.text.prototype.activate.call(this)}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:"<textarea></textarea>",inputclass:"input-large",placeholder:null,rows:7}),e.fn.editabletypes.textarea=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("select",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.list),e.extend(t.prototype,{renderList:function(){this.$input.empty();var t=function(n,r){if(e.isArray(r))for(var i=0;i<r.length;i++)r[i].children?n.append(t(e("<optgroup>",{label:r[i].text}),r[i].children)):n.append(e("<option>",{value:r[i].value}).text(r[i].text));return n};t(this.$input,this.sourceData),this.setClass(),this.$input.on("keydown.editable",function(t){t.which===13&&e(this).closest("form").submit()})},value2htmlFinal:function(t,n){var r="",i=e.fn.editableutils.itemsByValue(t,this.sourceData);i.length&&(r=i[0].text),e(n).text(r)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",function(){e(this).closest("form").submit()})}}),t.defaults=e.extend({},e.fn.editabletypes.list.defaults,{tpl:"<select></select>"}),e.fn.editabletypes.select=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("checklist",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.list),e.extend(t.prototype,{renderList:function(){var t,n;this.$tpl.empty();if(!e.isArray(this.sourceData))return;for(var r=0;r<this.sourceData.length;r++)t=e("<label>").append(e("<input>",{type:"checkbox",value:this.sourceData[r].value})).append(e("<span>").text(" "+this.sourceData[r].text)),e("<div>").append(t).appendTo(this.$tpl);this.$input=this.$tpl.find('input[type="checkbox"]'),this.setClass()},value2str:function(t){return e.isArray(t)?t.sort().join(e.trim(this.options.separator)):""},str2value:function(t){var n,r=null;return typeof t=="string"&&t.length?(n=new RegExp("\\s*"+e.trim(this.options.separator)+"\\s*"),r=t.split(n)):e.isArray(t)?r=t:r=[t],r},value2input:function(t){this.$input.prop("checked",!1),e.isArray(t)&&t.length&&this.$input.each(function(n,r){var i=e(r);e.each(t,function(e,t){i.val()==t&&i.prop("checked",!0)})})},input2value:function(){var t=[];return this.$input.filter(":checked").each(function(n,r){t.push(e(r).val())}),t},value2htmlFinal:function(t,n){var r=[],i=e.fn.editableutils.itemsByValue(t,this.sourceData);i.length?(e.each(i,function(t,n){r.push(e.fn.editableutils.escape(n.text))}),e(n).html(r.join("<br>"))):e(n).empty()},activate:function(){this.$input.first().focus()},autosubmit:function(){this.$input.on("keydown",function(t){t.which===13&&e(this).closest("form").submit()})}}),t.defaults=e.extend({},e.fn.editabletypes.list.defaults,{tpl:'<div class="editable-checklist"></div>',inputclass:null,separator:","}),e.fn.editabletypes.checklist=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("password",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.text),e.extend(t.prototype,{value2html:function(t,n){t?e(n).text("[hidden]"):e(n).empty()},html2value:function(e){return null}}),t.defaults=e.extend({},e.fn.editabletypes.text.defaults,{tpl:'<input type="password">'}),e.fn.editabletypes.password=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("email",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.text),t.defaults=e.extend({},e.fn.editabletypes.text.defaults,{tpl:'<input type="email">'}),e.fn.editabletypes.email=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("url",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.text),t.defaults=e.extend({},e.fn.editabletypes.text.defaults,{tpl:'<input type="url">'}),e.fn.editabletypes.url=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("tel",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.text),t.defaults=e.extend({},e.fn.editabletypes.text.defaults,{tpl:'<input type="tel">'}),e.fn.editabletypes.tel=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("number",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.text),e.extend(t.prototype,{render:function(){t.superclass.render.call(this),this.setAttr("min"),this.setAttr("max"),this.setAttr("step")},postrender:function(){this.$clear&&this.$clear.css({right:24})}}),t.defaults=e.extend({},e.fn.editabletypes.text.defaults,{tpl:'<input type="number">',inputclass:"input-mini",min:null,max:null,step:null}),e.fn.editabletypes.number=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("range",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.number),e.extend(t.prototype,{render:function(){this.$input=this.$tpl.filter("input"),this.setClass(),this.setAttr("min"),this.setAttr("max"),this.setAttr("step"),this.$input.on("input",function(){e(this).siblings("output").text(e(this).val())})},activate:function(){this.$input.focus()}}),t.defaults=e.extend({},e.fn.editabletypes.number.defaults,{tpl:'<input type="range"><output style="width: 30px; display: inline-block"></output>',inputclass:"input-medium"}),e.fn.editabletypes.range=t}(window.jQuery),function(e){"use strict";var t=function(n){this.init("select2",n,t.defaults),n.select2=n.select2||{},this.sourceData=null,n.placeholder&&(n.select2.placeholder=n.placeholder);if(!n.select2.tags&&n.source){var r=n.source;e.isFunction(n.source)&&(r=n.source.call(n.scope)),typeof r=="string"?(n.select2.ajax=n.select2.ajax||{},n.select2.ajax.data||(n.select2.ajax.data=function(e){return{query:e}}),n.select2.ajax.results||(n.select2.ajax.results=function(e){return{results:e}}),n.select2.ajax.url=r):(this.sourceData=this.convertSource(r),n.select2.data=this.sourceData)}this.options.select2=e.extend({},t.defaults.select2,n.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.setClass(),this.$input.select2(this.options.select2),this.isRemote&&this.$input.on("select2-loaded",e.proxy(function(e){this.sourceData=e.items.results},this)),this.isMultiple&&this.$input.on("change",function(){e(this).closest("form").parent().triggerHandler("resize")})},value2html:function(t,n){var r="",i;this.options.select2.tags?i=t:this.sourceData&&(i=e.fn.editableutils.itemsByValue(t,this.sourceData,"id")),e.isArray(i)?(r=[],e.each(i,function(e,t){r.push(t&&typeof t=="object"?t.text:t)})):i&&(r=i.text),r=e.isArray(r)?r.join(this.options.viewseparator):r,e(n).text(r)},html2value:function(e){return this.options.select2.tags?this.str2value(e,this.options.viewseparator):null},value2input:function(t){if(this.isRemote){var n,r;this.sourceData&&(r=e.fn.editableutils.itemsByValue(t,this.sourceData,"id"),r.length&&(n=r[0])),n||(n={id:t,text:e(this.options.scope).text()}),this.$input.select2("data",n).trigger("change",!0)}else this.$input.val(t).trigger("change",!0)},input2value:function(){return this.$input.select2("val")},str2value:function(t,n){if(typeof t!="string"||!this.isMultiple)return t;n=n||this.options.select2.separator||e.fn.select2.defaults.separator;var r,i,s;if(t===null||t.length<1)return null;r=t.split(n);for(i=0,s=r.length;i<s;i+=1)r[i]=e.trim(r[i]);return r},autosubmit:function(){this.$input.on("change",function(t,n){n||e(this).closest("form").submit()})},convertSource:function(t){if(e.isArray(t)&&t.length&&t[0].value!==undefined)for(var n=0;n<t.length;n++)t[n].value!==undefined&&(t[n].id=t[n].value,delete t[n].value);return t}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="hidden">',select2:null,placeholder:null,source:null,viewseparator:", "}),e.fn.editabletypes.select2=t}(window.jQuery),function(e){var t=function(t,n){this.$element=e(t);if(!this.$element.is("input")){e.error("Combodate should be applied to INPUT element");return}this.options=e.extend({},e.fn.combodate.defaults,n,this.$element.data()),this.init()};t.prototype={constructor:t,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]},this.$widget=e('<span class="combodate"></span>').html(this.getTemplate()),this.initCombos(),this.$widget.on("change","select",e.proxy(function(){this.$element.val(this.getValue())},this)),this.$widget.find("select").css("width","auto"),this.$element.hide().after(this.$widget),this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var t=this.options.template;return e.each(this.map,function(e,n){n=n[0];var r=new RegExp(n+"+"),i=n.length>1?n.substring(1,2):n;t=t.replace(r,"{"+i+"}")}),t=t.replace(/ /g,"&nbsp;"),e.each(this.map,function(e,n){n=n[0];var r=n.length>1?n.substring(1,2):n;t=t.replace("{"+r+"}",'<select class="'+e+'"></select>')}),t},initCombos:function(){var t=this;e.each(this.map,function(e,n){var r=t.$widget.find("."+e),i,s;r.length&&(t["$"+e]=r,i="fill"+e.charAt(0).toUpperCase()+e.slice(1),s=t[i](),t["$"+e].html(t.renderItems(s)))})},initItems:function(e){var t=[],n;if(this.options.firstItem==="name"){n=moment.relativeTime||moment.langData()._relativeTime;var r=typeof n[e]=="function"?n[e](1,!0,e,!1):n[e];r=r.split(" ").reverse()[0],t.push(["",r])}else this.options.firstItem==="empty"&&t.push(["",""]);return t},renderItems:function(e){var t=[];for(var n=0;n<e.length;n++)t.push('<option value="'+e[n][0]+'">'+e[n][1]+"</option>");return t.join("\n")},fillDay:function(){var e=this.initItems("d"),t,n,r=this.options.template.indexOf("DD")!==-1;for(n=1;n<=31;n++)t=r?this.leadZero(n):n,e.push([n,t]);return e},fillMonth:function(){var e=this.initItems("M"),t,n,r=this.options.template.indexOf("MMMM")!==-1,i=this.options.template.indexOf("MMM")!==-1,s=this.options.template.indexOf("MM")!==-1;for(n=0;n<=11;n++)r?t=moment().date(1).month(n).format("MMMM"):i?t=moment().date(1).month(n).format("MMM"):s?t=this.leadZero(n+1):t=n+1,e.push([n,t]);return e},fillYear:function(){var e=[],t,n,r=this.options.template.indexOf("YYYY")!==-1;for(n=this.options.maxYear;n>=this.options.minYear;n--)t=r?n:(n+"").substring(2),e[this.options.yearDescending?"push":"unshift"]([n,t]);return e=this.initItems("y").concat(e),e},fillHour:function(){var e=this.initItems("h"),t,n,r=this.options.template.indexOf("h")!==-1,i=this.options.template.indexOf("H")!==-1,s=this.options.template.toLowerCase().indexOf("hh")!==-1,o=r?1:0,u=r?12:23;for(n=o;n<=u;n++)t=s?this.leadZero(n):n,e.push([n,t]);return e},fillMinute:function(){var e=this.initItems("m"),t,n,r=this.options.template.indexOf("mm")!==-1;for(n=0;n<=59;n+=this.options.minuteStep)t=r?this.leadZero(n):n,e.push([n,t]);return e},fillSecond:function(){var e=this.initItems("s"),t,n,r=this.options.template.indexOf("ss")!==-1;for(n=0;n<=59;n+=this.options.secondStep)t=r?this.leadZero(n):n,e.push([n,t]);return e},fillAmpm:function(){var e=this.options.template.indexOf("a")!==-1,t=this.options.template.indexOf("A")!==-1,n=[["am",e?"am":"AM"],["pm",e?"pm":"PM"]];return n},getValue:function(t){var n,r={},i=this,s=!1;return e.each(this.map,function(e,t){if(e==="ampm")return;var n=e==="day"?1:0;r[e]=i["$"+e]?parseInt(i["$"+e].val(),10):n;if(isNaN(r[e]))return s=!0,!1}),s?"":(this.$ampm&&(r.hour===12?r.hour=this.$ampm.val()==="am"?0:12:r.hour=this.$ampm.val()==="am"?r.hour:r.hour+12),n=moment([r.year,r.month,r.day,r.hour,r.minute,r.second]),this.highlight(n),t=t===undefined?this.options.format:t,t===null?n.isValid()?n:null:n.isValid()?n.format(t):"")},setValue:function(t){function s(t,n){var r={};return t.children("option").each(function(t,i){var s=e(i).attr("value"),o;if(s==="")return;o=Math.abs(s-n);if(typeof r.distance=="undefined"||o<r.distance)r={value:s,distance:o}}),r.value}if(!t)return;var n=typeof t=="string"?moment(t,this.options.format):moment(t),r=this,i={};n.isValid()&&(e.each(this.map,function(e,t){if(e==="ampm")return;i[e]=n[t[1]]()}),this.$ampm&&(i.hour>=12?(i.ampm="pm",i.hour>12&&(i.hour-=12)):(i.ampm="am",i.hour===0&&(i.hour=12))),e.each(i,function(e,t){r["$"+e]&&(e==="minute"&&r.options.minuteStep>1&&r.options.roundTime&&(t=s(r["$"+e],t)),e==="second"&&r.options.secondStep>1&&r.options.roundTime&&(t=s(r["$"+e],t)),r["$"+e].val(t))}),this.$element.val(n.format(this.options.format)))},highlight:function(e){e.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(e){return e<=9?"0"+e:e},destroy:function(){this.$widget.remove(),this.$element.removeData("combodate").show()}},e.fn.combodate=function(n){var r,i=Array.apply(null,arguments);return i.shift(),n==="getValue"&&this.length&&(r=this.eq(0).data("combodate"))?r.getValue.apply(r,i):this.each(function(){var r=e(this),s=r.data("combodate"),o=typeof n=="object"&&n;s||r.data("combodate",s=new t(this,o)),typeof n=="string"&&typeof s[n]=="function"&&s[n].apply(s,i)})},e.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,roundTime:!0}}(window.jQuery),function(e){"use strict";var t=function(n){this.init("combodate",n,t.defaults),this.options.viewformat||(this.options.viewformat=this.options.format),n.combodate=e.fn.editableutils.tryParseJson(n.combodate,!0),this.options.combodate=e.extend({},t.defaults.combodate,n.combodate,{format:this.options.format,template:this.options.template})};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.$input.combodate(this.options.combodate)},value2html:function(t,n){var r=t?t.format(this.options.viewformat):"";e(n).text(r)},html2value:function(e){return e?moment(e,this.options.viewformat):null},value2str:function(e){return e?e.format(this.options.format):""},str2value:function(e){return e?moment(e,this.options.format):null},value2submit:function(e){return this.value2str(e)},value2input:function(e){this.$input.combodate("setValue",e)},input2value:function(){return this.$input.combodate("getValue",null)},activate:function(){this.$input.siblings(".combodate").find("select").eq(0).focus()},autosubmit:function(){}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',inputclass:null,format:"YYYY-MM-DD",viewformat:null,template:"D / MMM / YYYY",combodate:null}),e.fn.editabletypes.combodate=t}(window.jQuery),function(e){"use strict";e.extend(e.fn.editableform.Constructor.prototype,{initButtons:function(){var t=this.$form.find(".editable-buttons");t.append(e.fn.editableform.buttons),this.options.showbuttons==="bottom"&&t.addClass("editable-buttons-bottom"),this.$form.find(".editable-submit").button({icons:{primary:"ui-icon-check"},text:!1}).removeAttr("title"),this.$form.find(".editable-cancel").button({icons:{primary:"ui-icon-closethick"},text:!1}).removeAttr("title")}}),e.fn.editableform.errorGroupClass=null,e.fn.editableform.errorBlockClass="ui-state-error"}(window.jQuery),function(e){"use strict";e.extend(e.fn.editableContainer.Popup.prototype,{containerName:"tooltip",containerDataName:"uiTooltip",innerCss:".ui-tooltip-content",splitOptions:function(){this.containerOptions={},this.formOptions={};var t=e.ui[this.containerName].prototype.options;for(var n in this.options)n in t?this.containerOptions[n]=this.options[n]:this.formOptions[n]=this.options[n]},initContainer:function(){this.handlePlacement(),e.extend(this.containerOptions,{items:"*",content:" ",track:!1,open:e.proxy(function(){this.container()._on(this.container().element,{mouseleave:function(e){e.stopImmediatePropagation()},focusout:function(e){e.stopImmediatePropagation()}})},this)}),this.call(this.containerOptions),this.container()._off(this.container().element,"mouseover focusin")},tip:function(){return this.container()?this.container()._find(this.container().element):null},innerShow:function(){this.call("open");var t=this.options.title||this.$element.data("ui-tooltip-title")||this.$element.data("originalTitle");this.tip().find(this.innerCss).empty().append(e("<label>").text(t))},innerHide:function(){this.call("close")},innerDestroy:function(){},setPosition:function(){this.tip().position(e.extend({of:this.$element},this.containerOptions.position))},handlePlacement:function(){var e;switch(this.options.placement){case"top":e={my:"center bottom-5",at:"center top"};break;case"right":e={my:"left+5 center",at:"right center"};break;case"bottom":e={my:"center top+5",at:"center bottom"};break;case"left":e={my:"right-5 center",at:"left center"}}this.containerOptions.position=e}})}(window.jQuery),function(e){"use strict";var t=function(e){this.init("dateui",e,t.defaults),this.initPicker(e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{initPicker:function(t,n){this.options.viewformat||(this.options.viewformat=this.options.format),this.options.viewformat=this.options.viewformat.replace("yyyy","yy"),this.options.format=this.options.format.replace("yyyy","yy"),this.options.datepicker=e.extend({},n.datepicker,t.datepicker,{dateFormat:this.options.viewformat})},render:function(){this.$input.datepicker(this.options.datepicker),this.options.clear&&(this.$clear=e('<a href="#"></a>').html(this.options.clear).click(e.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(e('<div class="editable-clear">').append(this.$clear)))},value2html:function(n,r){var i=e.datepicker.formatDate(this.options.viewformat,n);t.superclass.value2html(i,r)},html2value:function(t){if(typeof t!="string")return t;var n;try{n=e.datepicker.parseDate(this.options.viewformat,t)}catch(r){}return n},value2str:function(t){return e.datepicker.formatDate(this.options.format,t)},str2value:function(t){if(typeof t!="string")return t;var n;try{n=e.datepicker.parseDate(this.options.format,t)}catch(r){}return n},value2submit:function(e){return this.value2str(e)},value2input:function(e){this.$input.datepicker("setDate",e)},input2value:function(){return this.$input.datepicker("getDate")},activate:function(){},clear:function(){this.$input.datepicker("setDate",null)},autosubmit:function(){this.$input.on("mouseup","table.ui-datepicker-calendar a.ui-state-default",function(t){var n=e(this).closest("form");setTimeout(function(){n.submit()},200)})}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date"></div>',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{firstDay:0,changeYear:!0,changeMonth:!0,showOtherMonths:!0},clear:"&times; clear"}),e.fn.editabletypes.dateui=t}(window.jQuery),function(e){"use strict";var t=function(e){this.init("dateuifield",e,t.defaults),this.initPicker(e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.dateui),e.extend(t.prototype,{render:function(){this.$input.datepicker(this.options.datepicker),e.fn.editabletypes.text.prototype.renderClear.call(this)},value2input:function(t){this.$input.val(e.datepicker.formatDate(this.options.viewformat,t))},input2value:function(){return this.html2value(this.$input.val())},activate:function(){e.fn.editabletypes.text.prototype.activate.call(this)},toggleClear:function(){e.fn.editabletypes.text.prototype.toggleClear.call(this)},autosubmit:function(){}}),t.defaults=e.extend({},e.fn.editabletypes.dateui.defaults,{tpl:'<input type="text"/>',inputclass:null,datepicker:{showOn:"button",buttonImage:"http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",buttonImageOnly:!0,firstDay:0,changeYear:!0,changeMonth:!0,showOtherMonths:!0},clear:!1}),e.fn.editabletypes.dateuifield=t}(window.jQuery);
smecsia/cdnjs
ajax/libs/x-editable/1.4.5/jqueryui-editable/js/jqueryui-editable.min.js
JavaScript
mit
46,699
/*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. *//*! normalize.css v2.1.0 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:100%}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{padding:0;box-sizing:border-box}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:inline-block;height:auto;max-width:100%}.img-rounded{border-radius:6px}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16.099999999999998px;font-weight:200;line-height:1.4}@media(min-width:768px){.lead{font-size:21px}}small{font-size:85%}cite{font-style:normal}.text-muted{color:#999}.text-primary{color:#428bca}.text-warning{color:#c09853}.text-danger{color:#b94a48}.text-success{color:#468847}.text-info{color:#3a87ad}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small{font-weight:normal;line-height:1;color:#999}h1,h2,h3{margin-top:20px;margin-bottom:10px}h4,h5,h6{margin-top:10px;margin-bottom:10px}h1,.h1{font-size:38px}h2,.h2{font-size:32px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}h1 small,.h1 small{font-size:24px}h2 small,.h2 small{font-size:18px}h3 small,.h3 small,h4 small,.h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-bottom:20px}dt,dd{line-height:1.428571429}dt{font-weight:bold}dd{margin-left:0}@media(min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{font-size:17.5px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small{display:block;line-height:1.428571429;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:1.428571429}code,pre{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}@media(min-width:768px){.container .row{margin-right:-15px;margin-left:-15px}}.row .row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11{float:left}.col-xs-1{width:8.333333333333332%}.col-xs-2{width:16.666666666666664%}.col-xs-3{width:25%}.col-xs-4{width:33.33333333333333%}.col-xs-5{width:41.66666666666667%}.col-xs-6{width:50%}.col-xs-7{width:58.333333333333336%}.col-xs-8{width:66.66666666666666%}.col-xs-9{width:75%}.col-xs-10{width:83.33333333333334%}.col-xs-11{width:91.66666666666666%}.col-xs-12{width:100%}@media(min-width:768px){.container{max-width:720px}.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11{float:left}.col-sm-1{width:8.333333333333332%}.col-sm-2{width:16.666666666666664%}.col-sm-3{width:25%}.col-sm-4{width:33.33333333333333%}.col-sm-5{width:41.66666666666667%}.col-sm-6{width:50%}.col-sm-7{width:58.333333333333336%}.col-sm-8{width:66.66666666666666%}.col-sm-9{width:75%}.col-sm-10{width:83.33333333333334%}.col-sm-11{width:91.66666666666666%}.col-sm-12{width:100%}.col-sm-push-1{left:8.333333333333332%}.col-sm-push-2{left:16.666666666666664%}.col-sm-push-3{left:25%}.col-sm-push-4{left:33.33333333333333%}.col-sm-push-5{left:41.66666666666667%}.col-sm-push-6{left:50%}.col-sm-push-7{left:58.333333333333336%}.col-sm-push-8{left:66.66666666666666%}.col-sm-push-9{left:75%}.col-sm-push-10{left:83.33333333333334%}.col-sm-push-11{left:91.66666666666666%}.col-sm-pull-1{right:8.333333333333332%}.col-sm-pull-2{right:16.666666666666664%}.col-sm-pull-3{right:25%}.col-sm-pull-4{right:33.33333333333333%}.col-sm-pull-5{right:41.66666666666667%}.col-sm-pull-6{right:50%}.col-sm-pull-7{right:58.333333333333336%}.col-sm-pull-8{right:66.66666666666666%}.col-sm-pull-9{right:75%}.col-sm-pull-10{right:83.33333333333334%}.col-sm-pull-11{right:91.66666666666666%}.col-sm-offset-1{margin-left:8.333333333333332%}.col-sm-offset-2{margin-left:16.666666666666664%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.33333333333333%}.col-sm-offset-5{margin-left:41.66666666666667%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-7{margin-left:58.333333333333336%}.col-sm-offset-8{margin-left:66.66666666666666%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-10{margin-left:83.33333333333334%}.col-sm-offset-11{margin-left:91.66666666666666%}}@media(min-width:992px){.container{max-width:940px}.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11{float:left}.col-md-1{width:8.333333333333332%}.col-md-2{width:16.666666666666664%}.col-md-3{width:25%}.col-md-4{width:33.33333333333333%}.col-md-5{width:41.66666666666667%}.col-md-6{width:50%}.col-md-7{width:58.333333333333336%}.col-md-8{width:66.66666666666666%}.col-md-9{width:75%}.col-md-10{width:83.33333333333334%}.col-md-11{width:91.66666666666666%}.col-md-12{width:100%}.col-md-push-1{left:8.333333333333332%}.col-md-push-2{left:16.666666666666664%}.col-md-push-3{left:25%}.col-md-push-4{left:33.33333333333333%}.col-md-push-5{left:41.66666666666667%}.col-md-push-6{left:50%}.col-md-push-7{left:58.333333333333336%}.col-md-push-8{left:66.66666666666666%}.col-md-push-9{left:75%}.col-md-push-10{left:83.33333333333334%}.col-md-push-11{left:91.66666666666666%}.col-md-pull-1{right:8.333333333333332%}.col-md-pull-2{right:16.666666666666664%}.col-md-pull-3{right:25%}.col-md-pull-4{right:33.33333333333333%}.col-md-pull-5{right:41.66666666666667%}.col-md-pull-6{right:50%}.col-md-pull-7{right:58.333333333333336%}.col-md-pull-8{right:66.66666666666666%}.col-md-pull-9{right:75%}.col-md-pull-10{right:83.33333333333334%}.col-md-pull-11{right:91.66666666666666%}.col-md-offset-1{margin-left:8.333333333333332%}.col-md-offset-2{margin-left:16.666666666666664%}.col-md-offset-3{margin-left:25%}.col-md-offset-4{margin-left:33.33333333333333%}.col-md-offset-5{margin-left:41.66666666666667%}.col-md-offset-6{margin-left:50%}.col-md-offset-7{margin-left:58.333333333333336%}.col-md-offset-8{margin-left:66.66666666666666%}.col-md-offset-9{margin-left:75%}.col-md-offset-10{margin-left:83.33333333333334%}.col-md-offset-11{margin-left:91.66666666666666%}}@media(min-width:1200px){.container{max-width:1140px}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11{float:left}.col-lg-1{width:8.333333333333332%}.col-lg-2{width:16.666666666666664%}.col-lg-3{width:25%}.col-lg-4{width:33.33333333333333%}.col-lg-5{width:41.66666666666667%}.col-lg-6{width:50%}.col-lg-7{width:58.333333333333336%}.col-lg-8{width:66.66666666666666%}.col-lg-9{width:75%}.col-lg-10{width:83.33333333333334%}.col-lg-11{width:91.66666666666666%}.col-lg-12{width:100%}.col-lg-push-1{left:8.333333333333332%}.col-lg-push-2{left:16.666666666666664%}.col-lg-push-3{left:25%}.col-lg-push-4{left:33.33333333333333%}.col-lg-push-5{left:41.66666666666667%}.col-lg-push-6{left:50%}.col-lg-push-7{left:58.333333333333336%}.col-lg-push-8{left:66.66666666666666%}.col-lg-push-9{left:75%}.col-lg-push-10{left:83.33333333333334%}.col-lg-push-11{left:91.66666666666666%}.col-lg-pull-1{right:8.333333333333332%}.col-lg-pull-2{right:16.666666666666664%}.col-lg-pull-3{right:25%}.col-lg-pull-4{right:33.33333333333333%}.col-lg-pull-5{right:41.66666666666667%}.col-lg-pull-6{right:50%}.col-lg-pull-7{right:58.333333333333336%}.col-lg-pull-8{right:66.66666666666666%}.col-lg-pull-9{right:75%}.col-lg-pull-10{right:83.33333333333334%}.col-lg-pull-11{right:91.66666666666666%}.col-lg-offset-1{margin-left:8.333333333333332%}.col-lg-offset-2{margin-left:16.666666666666664%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-4{margin-left:33.33333333333333%}.col-lg-offset-5{margin-left:41.66666666666667%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-7{margin-left:58.333333333333336%}.col-lg-offset-8{margin-left:66.66666666666666%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-10{margin-left:83.33333333333334%}.col-lg-offset-11{margin-left:91.66666666666666%}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table thead>tr>th,.table tbody>tr>th,.table tfoot>tr>th,.table thead>tr>td,.table tbody>tr>td,.table tfoot>tr>td{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table thead>tr>th{vertical-align:bottom}.table caption+thead tr:first-child th,.table colgroup+thead tr:first-child th,.table thead:first-child tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed thead>tr>th,.table-condensed tbody>tr>th,.table-condensed tfoot>tr>th,.table-condensed thead>tr>td,.table-condensed tbody>tr>td,.table-condensed tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class^="col-"]{display:table-column;float:none}table td[class^="col-"],table th[class^="col-"]{display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8;border-color:#d6e9c6}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede;border-color:#eed3d7}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3;border-color:#fbeed5}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td{background-color:#d0e9c6;border-color:#c9e2b3}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td{background-color:#ebcccc;border-color:#e6c1c7}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td{background-color:#faf2cc;border-color:#f8e5be}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-family:inherit;font-size:inherit;font-style:inherit}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{height:auto}.form-control:-moz-placeholder{color:#999}.form-control::-moz-placeholder{color:#999}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px;vertical-align:middle}.radio label,.checkbox label{display:inline;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm{height:auto}.input-lg{height:45px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:45px;line-height:45px}textarea.input-lg{height:auto}.has-warning .help-block,.has-warning .control-label{color:#c09853}.has-warning .form-control{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.has-warning .input-group-addon{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.has-error .help-block,.has-error .control-label{color:#b94a48}.has-error .form-control{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.has-error .input-group-addon{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.has-success .help-block,.has-success .control-label{color:#468847}.has-success .form-control{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.has-success .input-group-addon{color:#468847;background-color:#dff0d8;border-color:#468847}.form-control-static{padding-top:6px;margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block}.form-inline .radio,.form-inline .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:none;margin-left:0}}.form-horizontal .control-label,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:6px}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}@media(min-width:768px){.container .form-horizontal .form-group{margin-right:-15px;margin-left:-15px}}.form-horizontal .form-group .row{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:bold;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active{color:#fff;background-color:#47a447;border-color:#398439}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-link{font-weight:normal;color:#428bca;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-xs{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:3px 5px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}.input-group{position:relative;display:table;border-collapse:separate}.input-group.col{float:none;padding-right:0;padding-left:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:45px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:45px;line-height:45px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:hover,.input-group-btn>.btn:active{z-index:2}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#fff;text-decoration:none;background-color:#357ebd;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0%,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff357ebd',GradientType=0)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#357ebd;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0%,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;outline:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff357ebd',GradientType=0)}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.428571429;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel .list-group{margin-bottom:0}.panel .list-group .list-group-item{border-width:1px 0}.panel .list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel .list-group .list-group-item:last-child{border-bottom:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel-heading{padding:10px 15px;background-color:#f5f5f5;border-bottom:1px solid #ddd;border-top-right-radius:3px;border-top-left-radius:3px}.panel-title{margin-top:0;margin-bottom:0;font-size:17.5px}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-primary{border-color:#428bca}.panel-primary .panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary .panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary .panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success .panel-heading{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.panel-success .panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success .panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-warning{border-color:#fbeed5}.panel-warning .panel-heading{color:#c09853;background-color:#fcf8e3;border-color:#fbeed5}.panel-warning .panel-heading+.panel-collapse .panel-body{border-top-color:#fbeed5}.panel-warning .panel-footer+.panel-collapse .panel-body{border-bottom-color:#fbeed5}.panel-danger{border-color:#eed3d7}.panel-danger .panel-heading{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.panel-danger .panel-heading+.panel-collapse .panel-body{border-top-color:#eed3d7}.panel-danger .panel-footer+.panel-collapse .panel-body{border-bottom-color:#eed3d7}.panel-info{border-color:#bce8f1}.panel-info .panel-heading{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.panel-info .panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info .panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav.open>a,.nav.open>a:hover,.nav.open>a:focus{color:#fff;background-color:#428bca;border-color:#428bca}.nav.open>a .caret,.nav.open>a:hover .caret,.nav.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{display:table-cell;float:none;width:1%}.nav-tabs.nav-justified>li>a{text-align:center}.nav-tabs.nav-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs.nav-justified>.active>a{border-bottom-color:#fff}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:5px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{display:table-cell;float:none;width:1%}.nav-justified>li>a{text-align:center}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs-justified>.active>a{border-bottom-color:#fff}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.nav .caret{border-top-color:#428bca;border-bottom-color:#428bca}.nav a:hover .caret{border-top-color:#2a6496;border-bottom-color:#2a6496}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;background-color:#f8f8f8;border:1px solid #e7e7e7}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}@media(min-width:768px){.navbar{border-radius:4px}}.navbar-header{padding-right:15px;padding-left:15px}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}@media(min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;padding:5px 15px;overflow-x:visible;overflow-y:auto;border-top:1px solid #e6e6e6;box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}@media(min-width:768px){.navbar-collapse{width:auto;padding-top:0;padding-bottom:0;border-top:0;box-shadow:none}}@media(min-width:768px){.navbar-static-top{border-width:0 0 1px;border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;border-width:0 0 1px}@media(min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0}.navbar-fixed-bottom{bottom:0;margin-bottom:0}.navbar-brand{float:left;padding-top:15px;padding-bottom:15px;margin-right:7.5px;font-size:18px;line-height:20px;color:#777}.navbar-brand:hover,.navbar-brand:focus{color:#5e5e5e;text-decoration:none;background-color:transparent}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;border:1px solid #ddd;border-radius:4px}.navbar-toggle:hover,.navbar-toggle:focus{background-color:#ddd}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;background-color:#ccc;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}.navbar-nav{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.navbar-nav{margin-right:0;margin-left:0}}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px;color:#777}.navbar-nav>li>a:hover,.navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-nav>.active>a,.navbar-nav>.active>a:hover,.navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-nav>.disabled>a,.navbar-nav>.disabled>a:hover,.navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}@media(max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px;color:#777}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent;background-image:none}.navbar-nav .open .dropdown-menu>.active>a,.navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-nav .open .dropdown-menu>.disabled>a,.navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}@media(min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}@media(min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{float:none;margin-left:0}}@media(max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media(min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav>.dropdown>a:hover .caret,.navbar-nav>.dropdown>a:focus .caret{border-top-color:#333;border-bottom-color:#333}.navbar-nav>.open>a,.navbar-nav>.open>a:hover,.navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}.navbar-nav>.open>a .caret,.navbar-nav>.open>a:hover .caret,.navbar-nav>.open>a:focus .caret{border-top-color:#555;border-bottom-color:#555}.navbar-nav>.dropdown>a .caret{border-top-color:#777;border-bottom-color:#777}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a{color:#999}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse{border-top-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.dropdown>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-nav>.dropdown>a .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .navbar-nav>.open>a .caret,.navbar-inverse .navbar-nav>.open>a:hover .caret,.navbar-inverse .navbar-nav>.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}@media(max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}@media screen and (min-width:768px){.navbar-nav{float:left;margin-top:0;margin-bottom:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-toggle{position:relative;top:auto;left:auto;display:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}}.navbar-btn{margin-top:8px}.navbar-text{float:left;margin-top:15px;margin-bottom:15px}.navbar-link{color:#777}.navbar-link:hover{color:#333}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.btn-default .caret{border-top-color:#333}.btn-primary .caret,.btn-success .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret{border-top-color:#fff}.btn-default .dropup .caret{border-bottom-color:#333}.btn-primary .dropup .caret,.btn-success .dropup .caret,.btn-warning .dropup .caret,.btn-danger .dropup .caret,.btn-info .dropup .caret{border-bottom-color:#fff}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group-xs>.btn{padding:5px 10px;padding:3px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px}.dropup .btn-lg .caret{border-bottom-width:5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-right-radius:0;border-bottom-left-radius:4px;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child>.btn:last-child,.btn-group-vertical>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed}.btn-group-justified .btn{display:table-cell;float:none;width:1%}[data-toggle="buttons"]>.btn>input[type="radio"],[data-toggle="buttons"]>.btn>input[type="checkbox"]{display:none}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{float:left;padding:6px 12px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-left-width:0}.pagination>li:first-child>a,.pagination>li:first-child>span{border-left-width:1px;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>a:focus,.pagination>.active>a,.pagination>.active>span{background-color:#f5f5f5}.pagination>.active>a,.pagination>.active>span{color:#999;cursor:default}.pagination>.disabled>span,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;cursor:not-allowed;background-color:#fff}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#f5f5f5}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{z-index:1050;width:auto;padding:10px;margin-right:auto;margin-left:auto}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{right:auto;left:50%;width:600px;padding-top:30px;padding-bottom:30px}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}}.tooltip{position:absolute;z-index:1030;display:block;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-bottom-color:#000;border-width:0 5px 5px}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0;content:" "}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0;content:" "}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0;content:" "}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0;content:" "}.alert{padding:15px;margin-bottom:20px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert hr{border-top-color:#f8e5be}.alert .alert-link{font-weight:bold;color:#a47e3c}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#356635}.alert-danger{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-danger hr{border-top-color:#e6c1c7}.alert-danger .alert-link{color:#953b39}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#2d6987}.thumbnail,.img-thumbnail{padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail{display:block}.thumbnail>img,.img-thumbnail{display:inline-block;height:auto;max-width:100%}a.thumbnail:hover,a.thumbnail:focus{border-color:#428bca}.thumbnail>img{margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#333}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.label{display:inline;padding:.25em .6em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#999}.label-default[href]:hover,.label-default[href]:focus{background-color:#808080}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#999;border-radius:10px}.badge:empty{display:none}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.btn .badge{position:relative;top:-1px}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:inline-block;height:auto;max-width:100%;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6);opacity:.5;filter:alpha(opacity=50)}.carousel-control.left{background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,0.5)),to(rgba(0,0,0,0.0001)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.5) 0),color-stop(rgba(0,0,0,0.0001) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1)}.carousel-control.right{right:0;left:auto;background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,0.0001)),to(rgba(0,0,0,0.5)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.0001) 0),color-stop(rgba(0,0,0,0.5) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1)}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next{position:absolute;top:50%;left:50%;z-index:5;display:inline-block;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.jumbotron{padding:30px;margin-bottom:30px;font-size:21px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#eee}.jumbotron h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}@media screen and (min-width:768px){.jumbotron{padding:50px 60px;border-radius:6px}.jumbotron h1{font-size:63px}}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.affix{position:fixed}@-ms-viewport{width:device-width}@media screen and (max-width:400px){@-ms-viewport{width:320px}}.hidden{display:none!important;visibility:hidden!important}.visible-xs{display:block!important}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}@media(min-width:768px) and (max-width:991px){.visible-xs{display:none!important}tr.visible-xs{display:none!important}th.visible-xs,td.visible-xs{display:none!important}}@media(min-width:992px) and (max-width:1199px){.visible-xs{display:none!important}tr.visible-xs{display:none!important}th.visible-xs,td.visible-xs{display:none!important}}@media(min-width:1200px){.visible-xs{display:none!important}tr.visible-xs{display:none!important}th.visible-xs,td.visible-xs{display:none!important}}.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}@media(min-width:768px) and (max-width:991px){.visible-sm{display:block!important}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}}@media(min-width:1200px){.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}}.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}@media(min-width:768px) and (max-width:991px){.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}}@media(min-width:992px) and (max-width:1199px){.visible-md{display:block!important}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}}.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}@media(min-width:768px) and (max-width:991px){.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}}@media(min-width:992px) and (max-width:1199px){.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}}@media(min-width:1200px){.visible-lg{display:block!important}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}.hidden-xs{display:none!important}tr.hidden-xs{display:none!important}th.hidden-xs,td.hidden-xs{display:none!important}@media(min-width:768px) and (max-width:991px){.hidden-xs{display:block!important}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.hidden-xs{display:block!important}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}}@media(min-width:1200px){.hidden-xs{display:block!important}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}}.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}@media(min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}tr.hidden-sm{display:none!important}th.hidden-sm,td.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}}@media(min-width:1200px){.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}}.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}@media(min-width:768px) and (max-width:991px){.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}tr.hidden-md{display:none!important}th.hidden-md,td.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}}.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}@media(min-width:768px) and (max-width:991px){.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}}@media(min-width:1200px){.hidden-lg{display:none!important}tr.hidden-lg{display:none!important}th.hidden-lg,td.hidden-lg{display:none!important}}.visible-print{display:none!important}tr.visible-print{display:none!important}th.visible-print,td.visible-print{display:none!important}@media print{.visible-print{display:block!important}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}.hidden-print{display:none!important}tr.hidden-print{display:none!important}th.hidden-print,td.hidden-print{display:none!important}}
KOLANICH/cdnjs
ajax/libs/twitter-bootstrap/3.0.0-rc2/css/bootstrap.min.css
CSS
mit
80,378