├── .gitignore ├── LICENSE ├── README.md ├── images ├── folder.png ├── log.png ├── ttlogger-0.1.png └── ttlogger.png └── src ├── css ├── bootstrap-theme.css ├── bootstrap-theme.css.map ├── bootstrap-theme.min.css ├── bootstrap.css ├── bootstrap.css.map └── bootstrap.min.css ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── index.html ├── js ├── app.js ├── bootstrap.js ├── bootstrap.min.js ├── jquery-2.1.1.min.js ├── knockout-3.2.0.js ├── markdown.js ├── moment-2.8.3.js └── npm.js ├── node_modules ├── cron │ ├── .npmignore │ ├── .travis.yml │ ├── Makefile │ ├── README.md │ ├── bower.json │ ├── lib │ │ └── cron.js │ ├── node_modules │ │ └── moment-timezone │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── changelog.md │ │ │ ├── data │ │ │ ├── meta │ │ │ │ └── latest.json │ │ │ ├── packed │ │ │ │ └── latest.json │ │ │ └── unpacked │ │ │ │ └── latest.json │ │ │ ├── index.js │ │ │ ├── moment-timezone-utils.js │ │ │ ├── moment-timezone.js │ │ │ └── package.json │ ├── package.json │ ├── test.js │ ├── tests │ │ ├── test-cron.js │ │ └── test-crontime.js │ └── wercker.yml ├── moment │ ├── .jscs.json │ ├── .npmignore │ ├── .sauce-labs.creds │ ├── .spmignore │ ├── .travis.yml │ ├── .vimrc-local │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── Gruntfile.js │ ├── LICENSE │ ├── README.md │ ├── benchmarks │ │ └── clone.js │ ├── bower.json │ ├── component.json │ ├── composer.json │ ├── ender.js │ ├── f.coffee │ ├── foo.coffee │ ├── locale │ │ ├── af.js │ │ ├── ar-ma.js │ │ ├── ar-sa.js │ │ ├── ar.js │ │ ├── az.js │ │ ├── be.js │ │ ├── bg.js │ │ ├── bn.js │ │ ├── bo.js │ │ ├── br.js │ │ ├── bs.js │ │ ├── ca.js │ │ ├── cs.js │ │ ├── cv.js │ │ ├── cy.js │ │ ├── da.js │ │ ├── de-at.js │ │ ├── de.js │ │ ├── el.js │ │ ├── en-au.js │ │ ├── en-ca.js │ │ ├── en-gb.js │ │ ├── eo.js │ │ ├── es.js │ │ ├── et.js │ │ ├── eu.js │ │ ├── fa.js │ │ ├── fi.js │ │ ├── fo.js │ │ ├── fr-ca.js │ │ ├── fr.js │ │ ├── gl.js │ │ ├── he.js │ │ ├── hi.js │ │ ├── hr.js │ │ ├── hu.js │ │ ├── hy-am.js │ │ ├── id.js │ │ ├── is.js │ │ ├── it.js │ │ ├── ja.js │ │ ├── ka.js │ │ ├── km.js │ │ ├── ko.js │ │ ├── lb.js │ │ ├── lt.js │ │ ├── lv.js │ │ ├── mk.js │ │ ├── ml.js │ │ ├── mr.js │ │ ├── ms-my.js │ │ ├── my.js │ │ ├── nb.js │ │ ├── ne.js │ │ ├── nl.js │ │ ├── nn.js │ │ ├── pl.js │ │ ├── pt-br.js │ │ ├── pt.js │ │ ├── ro.js │ │ ├── ru.js │ │ ├── sk.js │ │ ├── sl.js │ │ ├── sq.js │ │ ├── sr-cyrl.js │ │ ├── sr.js │ │ ├── sv.js │ │ ├── ta.js │ │ ├── th.js │ │ ├── tl-ph.js │ │ ├── tr.js │ │ ├── tzm-latn.js │ │ ├── tzm.js │ │ ├── uk.js │ │ ├── uz.js │ │ ├── vi.js │ │ ├── zh-cn.js │ │ └── zh-tw.js │ ├── min │ │ ├── locales.js │ │ ├── locales.min.js │ │ ├── moment-with-locales.js │ │ ├── moment-with-locales.min.js │ │ ├── moment.min.js │ │ └── tests.js │ ├── moment.js │ ├── package.js │ ├── package.json │ ├── sauce_connect.log │ ├── tasks │ │ ├── bump_version.js │ │ ├── check_sauce_creds.js │ │ ├── component.js │ │ ├── embed_locales.js │ │ ├── history.js │ │ ├── size.js │ │ └── zones.js │ ├── x.coffee │ └── z.coffee ├── utf8 │ ├── .gitattributes │ ├── .npmignore │ ├── .travis.yml │ ├── Gruntfile.js │ ├── LICENSE-GPL.txt │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── bower.json │ ├── component.json │ ├── coverage │ │ ├── index.html │ │ ├── prettify.css │ │ ├── prettify.js │ │ └── utf8.js │ │ │ ├── index.html │ │ │ └── utf8.js.html │ ├── package.json │ ├── tests │ │ ├── generate-test-data.py │ │ ├── index.html │ │ └── tests.js │ ├── utf8.js │ └── x.js └── util │ ├── .npmignore │ ├── .travis.yml │ ├── .zuul.yml │ ├── LICENSE │ ├── README.md │ ├── node_modules │ └── inherits │ │ ├── LICENSE │ │ ├── README.md │ │ ├── inherits.js │ │ ├── inherits_browser.js │ │ ├── package.json │ │ └── test.js │ ├── package.json │ ├── support │ ├── isBuffer.js │ └── isBufferBrowser.js │ ├── test │ ├── browser │ │ ├── inspect.js │ │ └── is.js │ └── node │ │ ├── debug.js │ │ ├── format.js │ │ ├── inspect.js │ │ ├── log.js │ │ └── util.js │ └── util.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | /src/log 2 | /src/.sync 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 rodrigoreyes79 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | TTlogger 2 | ======== 3 | 4 | Time Tracking logging app. 5 | 6 | ![TTLogger image] 7 | (https://raw.githubusercontent.com/rodrigoreyes79/ttlogger/master/images/ttlogger.png) 8 | 9 | ### Update: Mar 12, 2015 10 | Version 0.2 is out and gone are the days of multiple windows!!! 11 | 12 | TTLogger now opens only one window and allows you to enter your log for a specific time by selecting it from a select on top of the window. Give it a try!!! 13 | 14 | # How it works 15 | The text entered is saved inside the same folder where TTLogger resides. The logged information will be saved as a simple text file. 16 | 17 | ![Folder image] 18 | (https://raw.githubusercontent.com/rodrigoreyes79/ttlogger/master/images/folder.png) 19 | 20 | Inside each file, each entry will start with the time of day the window was initially opened. 21 | 22 | ![Log file image] 23 | (https://raw.githubusercontent.com/rodrigoreyes79/ttlogger/master/images/log.png) 24 | 25 | # Installation 26 | 1. Download and install node-webkit on your computer following the instructions at https://github.com/rogerwang/node-webkit#downloads. 27 | 2. Make sure to add the node-webkit executable to your path. 28 | 3. Download or clone the repository. 29 | 4. Go to the src folder and execute "nw ." 30 | 5. Optional: Update CronJob configuration at the end of the src/js/app.js file. 31 | 32 | ## Setup to run in OSX every hour 33 | 1. Move nwjs.app to Applications folder. 34 | 2. Open the terminal an run "crontab -e" 35 | 2. Add this line in the editor 36 | *1 * * * * open -a /Applications/nwjs.app/Contents/MacOS/nwjs --args /Users/username/ 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | TTLogger 11 | 12 | 13 | 31 | 32 | 33 |
34 |
35 |
36 | 37 |
38 |
39 | 44 | 45 |
46 |
47 | 48 |
49 |
50 |
51 | 52 |
53 |
54 |
55 |
56 | 57 | 58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | 69 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /src/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/node_modules/cron/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw[a-z] 2 | node_modules 3 | -------------------------------------------------------------------------------- /src/node_modules/cron/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.10 6 | notifications: 7 | email: 8 | on_success: never 9 | -------------------------------------------------------------------------------- /src/node_modules/cron/Makefile: -------------------------------------------------------------------------------- 1 | TESTS = tests/*.js 2 | 3 | all: test 4 | 5 | test: 6 | npm install . 7 | @./node_modules/nodeunit/bin/nodeunit \ 8 | $(TESTS) 9 | 10 | .PHONY: test 11 | -------------------------------------------------------------------------------- /src/node_modules/cron/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cronjs", 3 | "version": "1.0.1", 4 | "homepage": "https://github.com/ncb000gt/node-cron", 5 | "authors": [ 6 | "Romain Beauxis", 7 | "James Padoulsey<@padolsey>", 8 | "Craig Condon", 9 | "Finn Herpich", 10 | "cliftonc", 11 | "neyric", 12 | "humanchimp", 13 | "danhbear" 14 | ], 15 | "description": "js cron handler", 16 | "main": ["lib/cron.js"], 17 | "keywords": [ 18 | "cron", 19 | "js" 20 | ], 21 | "license": "MIT", 22 | "ignore": [ 23 | "**/.*", 24 | "node_modules", 25 | "bower_components", 26 | "test", 27 | "tests" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /src/node_modules/cron/node_modules/moment-timezone/.npmignore: -------------------------------------------------------------------------------- 1 | temp 2 | tests 3 | 4 | Gruntfile.js 5 | tasks 6 | 7 | contributing.md 8 | 9 | .travis.yml 10 | .jshintrc 11 | 12 | builds 13 | bower.json 14 | 15 | data/unpacked/*.json 16 | !data/unpacked/latest.json 17 | data/packed/*.json 18 | !data/packed/latest.json 19 | data/meta/*.json 20 | !data/meta/latest.json -------------------------------------------------------------------------------- /src/node_modules/cron/node_modules/moment-timezone/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Tim Wood 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /src/node_modules/cron/node_modules/moment-timezone/README.md: -------------------------------------------------------------------------------- 1 | # [Moment Timezone](http://momentjs.com/timezone) 2 | 3 | [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] 4 | 5 | IANA Time Zone Database + [Moment.js](http://momentjs.com). 6 | 7 | ```js 8 | var june = moment("2014-06-01T12:00:00Z"); 9 | june.tz('America/Los_Angeles').format('ha z'); // 5am PDT 10 | june.tz('America/New_York').format('ha z'); // 8am EDT 11 | june.tz('Asia/Tokyo').format('ha z'); // 9pm JST 12 | june.tz('Australia/Sydney').format('ha z'); // 10pm EST 13 | 14 | var dec = moment("2014-12-01T12:00:00Z"); 15 | dec.tz('America/Los_Angeles').format('ha z'); // 4am PST 16 | dec.tz('America/New_York').format('ha z'); // 7am EST 17 | dec.tz('Asia/Tokyo').format('ha z'); // 9pm JST 18 | dec.tz('Australia/Sydney').format('ha z'); // 11pm EST 19 | ``` 20 | 21 | #### [Contribute code or compile time zone data](contributing.md) 22 | 23 | #### [Read the changelog](changelog.md) 24 | 25 | 26 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat 27 | [license-url]: LICENSE 28 | 29 | [npm-url]: https://npmjs.org/package/moment-timezone 30 | [npm-version-image]: http://img.shields.io/npm/v/moment-timezone.svg?style=flat 31 | [npm-downloads-image]: http://img.shields.io/npm/dm/moment-timezone.svg?style=flat 32 | 33 | [travis-url]: http://travis-ci.org/moment/moment-timezone 34 | [travis-image]: http://img.shields.io/travis/moment/moment-timezone/develop.svg?style=flat 35 | -------------------------------------------------------------------------------- /src/node_modules/cron/node_modules/moment-timezone/index.js: -------------------------------------------------------------------------------- 1 | var moment = module.exports = require("./moment-timezone"); 2 | moment.tz.load(require('./data/packed/latest.json')); 3 | -------------------------------------------------------------------------------- /src/node_modules/cron/node_modules/moment-timezone/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment-timezone", 3 | "version": "0.3.0", 4 | "description": "Parse and display moments in any timezone.", 5 | "homepage": "http://momentjs.com/timezone/", 6 | "author": { 7 | "name": "Tim Wood", 8 | "email": "washwithcare@gmail.com", 9 | "url": "http://timwoodcreates.com/" 10 | }, 11 | "keywords": [ 12 | "moment", 13 | "date", 14 | "time", 15 | "timezone", 16 | "olson", 17 | "iana", 18 | "zone", 19 | "tz" 20 | ], 21 | "main": "./index.js", 22 | "engines": { 23 | "node": "*" 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "https://github.com/moment/moment-timezone.git" 28 | }, 29 | "bugs": { 30 | "url": "https://github.com/moment/moment-timezone/issues" 31 | }, 32 | "license": "MIT", 33 | "dependencies": { 34 | "moment": ">= 2.6.0" 35 | }, 36 | "devDependencies": { 37 | "grunt": "0.4.4", 38 | "grunt-contrib-clean": "0.5.0", 39 | "grunt-contrib-nodeunit": "0.3.3", 40 | "grunt-contrib-jshint": "0.10.0", 41 | "grunt-contrib-uglify": "0.4.0" 42 | }, 43 | "scripts": { 44 | "test": "grunt" 45 | }, 46 | "readme": "# [Moment Timezone](http://momentjs.com/timezone)\n\n[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]\n\nIANA Time Zone Database + [Moment.js](http://momentjs.com).\n\n```js\nvar june = moment(\"2014-06-01T12:00:00Z\");\njune.tz('America/Los_Angeles').format('ha z'); // 5am PDT\njune.tz('America/New_York').format('ha z'); // 8am EDT\njune.tz('Asia/Tokyo').format('ha z'); // 9pm JST\njune.tz('Australia/Sydney').format('ha z'); // 10pm EST\n\nvar dec = moment(\"2014-12-01T12:00:00Z\");\ndec.tz('America/Los_Angeles').format('ha z'); // 4am PST\ndec.tz('America/New_York').format('ha z'); // 7am EST\ndec.tz('Asia/Tokyo').format('ha z'); // 9pm JST\ndec.tz('Australia/Sydney').format('ha z'); // 11pm EST\n```\n\n#### [Contribute code or compile time zone data](contributing.md)\n\n#### [Read the changelog](changelog.md)\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/moment-timezone\n[npm-version-image]: http://img.shields.io/npm/v/moment-timezone.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/moment-timezone.svg?style=flat\n\n[travis-url]: http://travis-ci.org/moment/moment-timezone\n[travis-image]: http://img.shields.io/travis/moment/moment-timezone/develop.svg?style=flat\n", 47 | "readmeFilename": "README.md", 48 | "_id": "moment-timezone@0.3.0", 49 | "dist": { 50 | "shasum": "52e3162f6f8b5d45e95d18908eb3344351cdedb1" 51 | }, 52 | "_from": "moment-timezone@~0.3.0", 53 | "_resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.3.0.tgz" 54 | } 55 | -------------------------------------------------------------------------------- /src/node_modules/cron/test.js: -------------------------------------------------------------------------------- 1 | var CronJob = require('./lib/cron').CronJob; 2 | var sinon = require('sinon'); 3 | 4 | //var clock = sinon.useFakeTimers(new Date().getTime()); 5 | 6 | //var previous = 0; 7 | //var counter = 0; 8 | //var cronSyncSchedule = '*/1 * * * * *'; 9 | 10 | //var scheduleJob = new CronJob(cronSyncSchedule, function() { 11 | //counter++; 12 | //checkCounter(); 13 | //}, function() { 14 | //console.log('scheduled job is completed successfully'); 15 | //}, true, null); 16 | 17 | //function checkCounter() { 18 | //console.log(counter + ' - ' + previous); 19 | //if (counter != (previous + 1)) 20 | //console.log('SKIPPED: ' + (counter - 1) + ", COUNTER: " + counter); 21 | //previous = counter; 22 | //} 23 | 24 | //clock.tick(31*24*60*60*1000); 25 | 26 | //new CronJob('0 0 0 1 * *',function(){ 27 | //console.log("triggered"); 28 | //},null,true); 29 | 30 | //clock.tick(24 * 60 * 60 * 1000); 31 | 32 | 33 | //clock.restore(); 34 | 35 | //console.log(CronJob.prototype); 36 | // 37 | new CronJob('* * * * * *', function() { 38 | console.log('tick: ' + Date.now()); 39 | }, null, true); 40 | -------------------------------------------------------------------------------- /src/node_modules/cron/wercker.yml: -------------------------------------------------------------------------------- 1 | box: wercker/nodejs 2 | build: 3 | steps: 4 | - npm-install 5 | - npm-test 6 | - script: 7 | name: echo nodejs information 8 | code: | 9 | echo "node version $(node -v) running" 10 | echo "npm version $(npm -v) running" 11 | -------------------------------------------------------------------------------- /src/node_modules/moment/.jscs.json: -------------------------------------------------------------------------------- 1 | { 2 | "requireCurlyBraces": [ 3 | "if", 4 | "else", 5 | "for", 6 | "while", 7 | "do", 8 | "try", 9 | "catch" 10 | ], 11 | "requireSpaceAfterKeywords": [ 12 | "if", 13 | "else", 14 | "for", 15 | "while", 16 | "do", 17 | "switch", 18 | "return", 19 | "try", 20 | "catch" 21 | ], 22 | "requireSpaceBeforeBlockStatements": true, 23 | "requireParenthesesAroundIIFE": true, 24 | "requireSpacesInConditionalExpression": true, 25 | "requireSpacesInAnonymousFunctionExpression": { 26 | "beforeOpeningRoundBrace": true, 27 | "beforeOpeningCurlyBrace": true 28 | }, 29 | "requireSpacesInNamedFunctionExpression": { 30 | "beforeOpeningCurlyBrace": true 31 | }, 32 | "disallowSpacesInNamedFunctionExpression": { 33 | "beforeOpeningRoundBrace": true 34 | }, 35 | "requireMultipleVarDecl": "onevar", 36 | "requireBlocksOnNewline": true, 37 | "disallowPaddingNewlinesInBlocks": true, 38 | "disallowEmptyBlocks": true, 39 | "disallowSpacesInsideObjectBrackets": true, 40 | "disallowSpacesInsideArrayBrackets": true, 41 | "disallowSpacesInsideParentheses": true, 42 | "requireCommaBeforeLineBreak": true, 43 | "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], 44 | "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], 45 | "requireSpaceBeforeBinaryOperators": [ 46 | "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", 47 | "&=", "|=", "^=", 48 | 49 | "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&", 50 | "|", "^", "&&", "||", "===", "==", ">=", 51 | "<=", "<", ">", "!=", "!==" 52 | ], 53 | "requireSpaceAfterBinaryOperators": true, 54 | "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", 55 | "disallowKeywords": ["with"], 56 | "disallowMultipleLineStrings": true, 57 | "validateLineBreaks": "LF", 58 | "validateIndentation": 4, 59 | "disallowTrailingWhitespace": true, 60 | "disallowTrailingComma": true, 61 | "requireLineFeedAtFileEnd": true, 62 | "requireCapitalizedConstructors": true, 63 | "validateQuoteMarks": { 64 | "mark": "'", 65 | "escape": true 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/node_modules/moment/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /src/node_modules/moment/.sauce-labs.creds: -------------------------------------------------------------------------------- 1 | { 2 | "SAUCE_USERNAME": "moment", 3 | "SAUCE_ACCESS_KEY": "f28fe67a-27c4-4b87-acf7-699d24ea0cc8" 4 | } 5 | -------------------------------------------------------------------------------- /src/node_modules/moment/.spmignore: -------------------------------------------------------------------------------- 1 | tasks 2 | test 3 | min 4 | benchmarks 5 | -------------------------------------------------------------------------------- /src/node_modules/moment/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | env: 6 | global: 7 | - secure: "M4STT2TOZxjzv3cZOgSVi0J4j6enrGjgE+p5YTNUw+S6Dg6FS5pTIPeafu1kGhfm7F0uk7xPVwGKYb+3uWNO9IhkKXz8jySMMQ2iKISHwECGNNuFNjSMD1vIjbIkLwV8TyPO/PurQg2s+WtYz+DoAZsDFKpdaRUtif64OjdQ3vQ=" 8 | - secure: "V+i7kHoGe7VXWGplPNqJz+aDtgDF9Dh9/guoaf2BPyXLvkFW6VgMjJyoNUW7JVsakrWzAz2ubb734vAPDt7BCcFQ2BqfatOmabdFogviCaXC6IqVaEkYS2eSP7MIUPIeWJgnTrDGzkFMDk4K7y5SiVJ8UmYwZxe+tJV7kbb0Yig=" 9 | 10 | before_script: 11 | - npm install -g grunt-cli 12 | 13 | script: grunt build:travis 14 | 15 | git: 16 | depth: 10 17 | -------------------------------------------------------------------------------- /src/node_modules/moment/.vimrc-local: -------------------------------------------------------------------------------- 1 | set sts=4 2 | set sw=4 3 | -------------------------------------------------------------------------------- /src/node_modules/moment/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Submitting Issues 2 | ================= 3 | 4 | If you are submitting a bug, please create a [jsfiddle](http://jsfiddle.net/) demonstrating the issue. 5 | 6 | Contributing code 7 | ================= 8 | 9 | To contribute, fork the library and install grunt and dependencies. You need [node](http://nodejs.org/); use [nvm](https://github.com/creationix/nvm) or [nenv](https://github.com/ryuone/nenv) to install it. 10 | 11 | ```bash 12 | git clone https://github.com/moment/moment.git 13 | cd moment 14 | npm install -g grunt-cli 15 | npm install 16 | git checkout develop # all patches against develop branch, please! 17 | grunt # this runs tests and jshint 18 | ``` 19 | 20 | Very important notes 21 | ==================== 22 | 23 | * **Pull pull requests to the `master` branch will be closed.** Please submit all pull requests to the `develop` branch. 24 | * **Locale translations will not be merged without unit tests.** See [the British English unit tests](https://github.com/moment/moment/blob/develop/test/locale/en-gb.js) for an example. 25 | * **Do not include the minified files in your pull request.** Don't worry, we'll build them when we cut a release. 26 | 27 | Grunt tasks 28 | =========== 29 | 30 | We use Grunt for managing the build. Here are some useful Grunt tasks: 31 | 32 | * `grunt` The default task lints the code and runs the tests. You should make sure you do this before submitting a PR. 33 | * `grunt nodeunit:all` Just run the tests. 34 | * `grunt release` Build everything, including minified files 35 | * `grunt release --embedLocales=fr,ru` Build everything, and also create `moment-with-customLocales.js` and `moment-with-customLocales.min.js` containing just French and Russian. 36 | * `grunt size` Print size statistics. 37 | -------------------------------------------------------------------------------- /src/node_modules/moment/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2014 Tim Wood, Iskren Chernev, Moment.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /src/node_modules/moment/README.md: -------------------------------------------------------------------------------- 1 | [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] 2 | 3 | A lightweight javascript date library for parsing, validating, manipulating, and formatting dates. 4 | 5 | ## [Documentation](http://momentjs.com/docs/) 6 | 7 | ## Upgrading to 2.0.0 8 | 9 | There are a number of small backwards incompatible changes with version 2.0.0. [See the full descriptions here](https://gist.github.com/timrwood/e72f2eef320ed9e37c51#backwards-incompatible-changes) 10 | 11 | * Changed language ordinal method to return the number + ordinal instead of just the ordinal. 12 | 13 | * Changed two digit year parsing cutoff to match strptime. 14 | 15 | * Removed `moment#sod` and `moment#eod` in favor of `moment#startOf` and `moment#endOf`. 16 | 17 | * Removed `moment.humanizeDuration()` in favor of `moment.duration().humanize()`. 18 | 19 | * Removed the lang data objects from the top level namespace. 20 | 21 | * Duplicate `Date` passed to `moment()` instead of referencing it. 22 | 23 | ## [Changelog](CHANGELOG.md) 24 | 25 | ## [Contributing](CONTRIBUTING.md) 26 | 27 | ## License 28 | 29 | Moment.js is freely distributable under the terms of the [MIT license](LICENSE). 30 | 31 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat 32 | [license-url]: LICENSE 33 | 34 | [npm-url]: https://npmjs.org/package/moment 35 | [npm-version-image]: http://img.shields.io/npm/v/moment.svg?style=flat 36 | [npm-downloads-image]: http://img.shields.io/npm/dm/moment.svg?style=flat 37 | 38 | [travis-url]: http://travis-ci.org/moment/moment 39 | [travis-image]: http://img.shields.io/travis/moment/moment/develop.svg?style=flat 40 | -------------------------------------------------------------------------------- /src/node_modules/moment/benchmarks/clone.js: -------------------------------------------------------------------------------- 1 | var Benchmark = require('benchmark'), 2 | moment = require("./../moment.js"), 3 | base = moment('2013-05-25'); 4 | 5 | module.exports = { 6 | name: 'clone', 7 | onComplete: function(){console.log('done');}, 8 | fn: function(){base.clone();}, 9 | async: true 10 | }; 11 | -------------------------------------------------------------------------------- /src/node_modules/moment/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment", 3 | "version": "2.8.3", 4 | "main": "moment.js", 5 | "ignore": [ 6 | "**/.*", 7 | "node_modules", 8 | "bower_components", 9 | "test", 10 | "tests", 11 | "tasks", 12 | "component.json", 13 | "composer.json", 14 | "CONTRIBUTING.md", 15 | "ender.js", 16 | "Gruntfile.js", 17 | "package.js", 18 | "package.json" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /src/node_modules/moment/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment", 3 | "version": "2.8.3", 4 | "main": "moment.js", 5 | "description": "Parse, validate, manipulate, and display dates in javascript.", 6 | "files": [ 7 | "moment.js", 8 | "locale/af.js", 9 | "locale/ar-ma.js", 10 | "locale/ar-sa.js", 11 | "locale/ar.js", 12 | "locale/az.js", 13 | "locale/be.js", 14 | "locale/bg.js", 15 | "locale/bn.js", 16 | "locale/bo.js", 17 | "locale/br.js", 18 | "locale/bs.js", 19 | "locale/ca.js", 20 | "locale/cs.js", 21 | "locale/cv.js", 22 | "locale/cy.js", 23 | "locale/da.js", 24 | "locale/de-at.js", 25 | "locale/de.js", 26 | "locale/el.js", 27 | "locale/en-au.js", 28 | "locale/en-ca.js", 29 | "locale/en-gb.js", 30 | "locale/eo.js", 31 | "locale/es.js", 32 | "locale/et.js", 33 | "locale/eu.js", 34 | "locale/fa.js", 35 | "locale/fi.js", 36 | "locale/fo.js", 37 | "locale/fr-ca.js", 38 | "locale/fr.js", 39 | "locale/gl.js", 40 | "locale/he.js", 41 | "locale/hi.js", 42 | "locale/hr.js", 43 | "locale/hu.js", 44 | "locale/hy-am.js", 45 | "locale/id.js", 46 | "locale/is.js", 47 | "locale/it.js", 48 | "locale/ja.js", 49 | "locale/ka.js", 50 | "locale/km.js", 51 | "locale/ko.js", 52 | "locale/lb.js", 53 | "locale/lt.js", 54 | "locale/lv.js", 55 | "locale/mk.js", 56 | "locale/ml.js", 57 | "locale/mr.js", 58 | "locale/ms-my.js", 59 | "locale/my.js", 60 | "locale/nb.js", 61 | "locale/ne.js", 62 | "locale/nl.js", 63 | "locale/nn.js", 64 | "locale/pl.js", 65 | "locale/pt-br.js", 66 | "locale/pt.js", 67 | "locale/ro.js", 68 | "locale/ru.js", 69 | "locale/sk.js", 70 | "locale/sl.js", 71 | "locale/sq.js", 72 | "locale/sr-cyrl.js", 73 | "locale/sr.js", 74 | "locale/sv.js", 75 | "locale/ta.js", 76 | "locale/th.js", 77 | "locale/tl-ph.js", 78 | "locale/tr.js", 79 | "locale/tzm-latn.js", 80 | "locale/tzm.js", 81 | "locale/uk.js", 82 | "locale/uz.js", 83 | "locale/vi.js", 84 | "locale/zh-cn.js", 85 | "locale/zh-tw.js" 86 | ], 87 | "scripts": [ 88 | "moment.js" 89 | ] 90 | } 91 | -------------------------------------------------------------------------------- /src/node_modules/moment/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment/moment", 3 | "description": "Parse, validate, manipulate, and display dates in javascript.", 4 | "keywords": [ 5 | "moment", 6 | "date", 7 | "time", 8 | "parse", 9 | "format", 10 | "validate", 11 | "i18n", 12 | "l10n", 13 | "ender" 14 | ], 15 | "homepage": "http://github.com/moment/moment/", 16 | "authors": [{"name": "Tim Wood", "email": "washwithcare@gmail.com"}], 17 | "license": "MIT", 18 | "type": "component", 19 | "require": { 20 | "robloach/component-installer": "*" 21 | }, 22 | "extra": { 23 | "component": { 24 | "scripts": [ 25 | "moment.js" 26 | ], 27 | "files": [ 28 | "min/*.js", 29 | "locale/*.js" 30 | ] 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/node_modules/moment/ender.js: -------------------------------------------------------------------------------- 1 | $.ender({ moment: require('moment') }) 2 | -------------------------------------------------------------------------------- /src/node_modules/moment/f.coffee: -------------------------------------------------------------------------------- 1 | moment = require './moment' 2 | 3 | year = parseInt(process.argv[2], 10) 4 | 5 | m = moment([year, 0, 1]) 6 | w = m.weekday() 7 | if w < 4 8 | m.add(4 - w, 'days') 9 | else 10 | m.add(11 - w, 'days') 11 | 12 | m.add(371, 'days') 13 | while m.year() > year 14 | m.subtract(1, 'week') 15 | 16 | console.log m.isoWeek() 17 | -------------------------------------------------------------------------------- /src/node_modules/moment/foo.coffee: -------------------------------------------------------------------------------- 1 | moment = require './moment' 2 | console.log moment("7 Jan 1234") 3 | # console.log moment.utc("+020123-10-09T20:30:40.678").year() 4 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/af.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : afrikaans (af) 3 | // author : Werner Mollentze : https://github.com/wernerm 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('af', { 15 | months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), 16 | monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), 17 | weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), 18 | weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), 19 | weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), 20 | meridiem : function (hours, minutes, isLower) { 21 | if (hours < 12) { 22 | return isLower ? 'vm' : 'VM'; 23 | } else { 24 | return isLower ? 'nm' : 'NM'; 25 | } 26 | }, 27 | longDateFormat : { 28 | LT : 'HH:mm', 29 | L : 'DD/MM/YYYY', 30 | LL : 'D MMMM YYYY', 31 | LLL : 'D MMMM YYYY LT', 32 | LLLL : 'dddd, D MMMM YYYY LT' 33 | }, 34 | calendar : { 35 | sameDay : '[Vandag om] LT', 36 | nextDay : '[Môre om] LT', 37 | nextWeek : 'dddd [om] LT', 38 | lastDay : '[Gister om] LT', 39 | lastWeek : '[Laas] dddd [om] LT', 40 | sameElse : 'L' 41 | }, 42 | relativeTime : { 43 | future : 'oor %s', 44 | past : '%s gelede', 45 | s : '\'n paar sekondes', 46 | m : '\'n minuut', 47 | mm : '%d minute', 48 | h : '\'n uur', 49 | hh : '%d ure', 50 | d : '\'n dag', 51 | dd : '%d dae', 52 | M : '\'n maand', 53 | MM : '%d maande', 54 | y : '\'n jaar', 55 | yy : '%d jaar' 56 | }, 57 | ordinal : function (number) { 58 | return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter 59 | }, 60 | week : { 61 | dow : 1, // Maandag is die eerste dag van die week. 62 | doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. 63 | } 64 | }); 65 | })); 66 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ar-ma.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Moroccan Arabic (ar-ma) 3 | // author : ElFadili Yassine : https://github.com/ElFadiliY 4 | // author : Abdel Said : https://github.com/abdelsaid 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | return moment.defineLocale('ar-ma', { 16 | months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), 17 | monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), 18 | weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), 19 | weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), 20 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), 21 | longDateFormat : { 22 | LT : 'HH:mm', 23 | L : 'DD/MM/YYYY', 24 | LL : 'D MMMM YYYY', 25 | LLL : 'D MMMM YYYY LT', 26 | LLLL : 'dddd D MMMM YYYY LT' 27 | }, 28 | calendar : { 29 | sameDay: '[اليوم على الساعة] LT', 30 | nextDay: '[غدا على الساعة] LT', 31 | nextWeek: 'dddd [على الساعة] LT', 32 | lastDay: '[أمس على الساعة] LT', 33 | lastWeek: 'dddd [على الساعة] LT', 34 | sameElse: 'L' 35 | }, 36 | relativeTime : { 37 | future : 'في %s', 38 | past : 'منذ %s', 39 | s : 'ثوان', 40 | m : 'دقيقة', 41 | mm : '%d دقائق', 42 | h : 'ساعة', 43 | hh : '%d ساعات', 44 | d : 'يوم', 45 | dd : '%d أيام', 46 | M : 'شهر', 47 | MM : '%d أشهر', 48 | y : 'سنة', 49 | yy : '%d سنوات' 50 | }, 51 | week : { 52 | dow : 6, // Saturday is the first day of the week. 53 | doy : 12 // The week that contains Jan 1st is the first week of the year. 54 | } 55 | }); 56 | })); 57 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ar-sa.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Arabic Saudi Arabia (ar-sa) 3 | // author : Suhail Alkowaileet : https://github.com/xsoh 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var symbolMap = { 15 | '1': '١', 16 | '2': '٢', 17 | '3': '٣', 18 | '4': '٤', 19 | '5': '٥', 20 | '6': '٦', 21 | '7': '٧', 22 | '8': '٨', 23 | '9': '٩', 24 | '0': '٠' 25 | }, numberMap = { 26 | '١': '1', 27 | '٢': '2', 28 | '٣': '3', 29 | '٤': '4', 30 | '٥': '5', 31 | '٦': '6', 32 | '٧': '7', 33 | '٨': '8', 34 | '٩': '9', 35 | '٠': '0' 36 | }; 37 | 38 | return moment.defineLocale('ar-sa', { 39 | months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), 40 | monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), 41 | weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), 42 | weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), 43 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), 44 | longDateFormat : { 45 | LT : 'HH:mm', 46 | L : 'DD/MM/YYYY', 47 | LL : 'D MMMM YYYY', 48 | LLL : 'D MMMM YYYY LT', 49 | LLLL : 'dddd D MMMM YYYY LT' 50 | }, 51 | meridiem : function (hour, minute, isLower) { 52 | if (hour < 12) { 53 | return 'ص'; 54 | } else { 55 | return 'م'; 56 | } 57 | }, 58 | calendar : { 59 | sameDay: '[اليوم على الساعة] LT', 60 | nextDay: '[غدا على الساعة] LT', 61 | nextWeek: 'dddd [على الساعة] LT', 62 | lastDay: '[أمس على الساعة] LT', 63 | lastWeek: 'dddd [على الساعة] LT', 64 | sameElse: 'L' 65 | }, 66 | relativeTime : { 67 | future : 'في %s', 68 | past : 'منذ %s', 69 | s : 'ثوان', 70 | m : 'دقيقة', 71 | mm : '%d دقائق', 72 | h : 'ساعة', 73 | hh : '%d ساعات', 74 | d : 'يوم', 75 | dd : '%d أيام', 76 | M : 'شهر', 77 | MM : '%d أشهر', 78 | y : 'سنة', 79 | yy : '%d سنوات' 80 | }, 81 | preparse: function (string) { 82 | return string.replace(/[۰-۹]/g, function (match) { 83 | return numberMap[match]; 84 | }).replace(/،/g, ','); 85 | }, 86 | postformat: function (string) { 87 | return string.replace(/\d/g, function (match) { 88 | return symbolMap[match]; 89 | }).replace(/,/g, '،'); 90 | }, 91 | week : { 92 | dow : 6, // Saturday is the first day of the week. 93 | doy : 12 // The week that contains Jan 1st is the first week of the year. 94 | } 95 | }); 96 | })); 97 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/az.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : azerbaijani (az) 3 | // author : topchiyev : https://github.com/topchiyev 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var suffixes = { 15 | 1: '-inci', 16 | 5: '-inci', 17 | 8: '-inci', 18 | 70: '-inci', 19 | 80: '-inci', 20 | 21 | 2: '-nci', 22 | 7: '-nci', 23 | 20: '-nci', 24 | 50: '-nci', 25 | 26 | 3: '-üncü', 27 | 4: '-üncü', 28 | 100: '-üncü', 29 | 30 | 6: '-ncı', 31 | 32 | 9: '-uncu', 33 | 10: '-uncu', 34 | 30: '-uncu', 35 | 36 | 60: '-ıncı', 37 | 90: '-ıncı' 38 | }; 39 | return moment.defineLocale('az', { 40 | months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'), 41 | monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), 42 | weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'), 43 | weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), 44 | weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), 45 | longDateFormat : { 46 | LT : 'HH:mm', 47 | L : 'DD.MM.YYYY', 48 | LL : 'D MMMM YYYY', 49 | LLL : 'D MMMM YYYY LT', 50 | LLLL : 'dddd, D MMMM YYYY LT' 51 | }, 52 | calendar : { 53 | sameDay : '[bugün saat] LT', 54 | nextDay : '[sabah saat] LT', 55 | nextWeek : '[gələn həftə] dddd [saat] LT', 56 | lastDay : '[dünən] LT', 57 | lastWeek : '[keçən həftə] dddd [saat] LT', 58 | sameElse : 'L' 59 | }, 60 | relativeTime : { 61 | future : '%s sonra', 62 | past : '%s əvvəl', 63 | s : 'birneçə saniyyə', 64 | m : 'bir dəqiqə', 65 | mm : '%d dəqiqə', 66 | h : 'bir saat', 67 | hh : '%d saat', 68 | d : 'bir gün', 69 | dd : '%d gün', 70 | M : 'bir ay', 71 | MM : '%d ay', 72 | y : 'bir il', 73 | yy : '%d il' 74 | }, 75 | meridiem : function (hour, minute, isLower) { 76 | if (hour < 4) { 77 | return 'gecə'; 78 | } else if (hour < 12) { 79 | return 'səhər'; 80 | } else if (hour < 17) { 81 | return 'gündüz'; 82 | } else { 83 | return 'axşam'; 84 | } 85 | }, 86 | ordinal : function (number) { 87 | if (number === 0) { // special case for zero 88 | return number + '-ıncı'; 89 | } 90 | var a = number % 10, 91 | b = number % 100 - a, 92 | c = number >= 100 ? 100 : null; 93 | 94 | return number + (suffixes[a] || suffixes[b] || suffixes[c]); 95 | }, 96 | week : { 97 | dow : 1, // Monday is the first day of the week. 98 | doy : 7 // The week that contains Jan 1st is the first week of the year. 99 | } 100 | }); 101 | })); 102 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/bg.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : bulgarian (bg) 3 | // author : Krasen Borisov : https://github.com/kraz 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('bg', { 15 | months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), 16 | monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), 17 | weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), 18 | weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'), 19 | weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), 20 | longDateFormat : { 21 | LT : 'H:mm', 22 | L : 'D.MM.YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd, D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : '[Днес в] LT', 29 | nextDay : '[Утре в] LT', 30 | nextWeek : 'dddd [в] LT', 31 | lastDay : '[Вчера в] LT', 32 | lastWeek : function () { 33 | switch (this.day()) { 34 | case 0: 35 | case 3: 36 | case 6: 37 | return '[В изминалата] dddd [в] LT'; 38 | case 1: 39 | case 2: 40 | case 4: 41 | case 5: 42 | return '[В изминалия] dddd [в] LT'; 43 | } 44 | }, 45 | sameElse : 'L' 46 | }, 47 | relativeTime : { 48 | future : 'след %s', 49 | past : 'преди %s', 50 | s : 'няколко секунди', 51 | m : 'минута', 52 | mm : '%d минути', 53 | h : 'час', 54 | hh : '%d часа', 55 | d : 'ден', 56 | dd : '%d дни', 57 | M : 'месец', 58 | MM : '%d месеца', 59 | y : 'година', 60 | yy : '%d години' 61 | }, 62 | ordinal : function (number) { 63 | var lastDigit = number % 10, 64 | last2Digits = number % 100; 65 | if (number === 0) { 66 | return number + '-ев'; 67 | } else if (last2Digits === 0) { 68 | return number + '-ен'; 69 | } else if (last2Digits > 10 && last2Digits < 20) { 70 | return number + '-ти'; 71 | } else if (lastDigit === 1) { 72 | return number + '-ви'; 73 | } else if (lastDigit === 2) { 74 | return number + '-ри'; 75 | } else if (lastDigit === 7 || lastDigit === 8) { 76 | return number + '-ми'; 77 | } else { 78 | return number + '-ти'; 79 | } 80 | }, 81 | week : { 82 | dow : 1, // Monday is the first day of the week. 83 | doy : 7 // The week that contains Jan 1st is the first week of the year. 84 | } 85 | }); 86 | })); 87 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ca.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : catalan (ca) 3 | // author : Juan G. Hurtado : https://github.com/juanghurtado 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('ca', { 15 | months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'), 16 | monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'), 17 | weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), 18 | weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), 19 | weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'), 20 | longDateFormat : { 21 | LT : 'H:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : function () { 29 | return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 30 | }, 31 | nextDay : function () { 32 | return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 33 | }, 34 | nextWeek : function () { 35 | return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 36 | }, 37 | lastDay : function () { 38 | return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 39 | }, 40 | lastWeek : function () { 41 | return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 42 | }, 43 | sameElse : 'L' 44 | }, 45 | relativeTime : { 46 | future : 'en %s', 47 | past : 'fa %s', 48 | s : 'uns segons', 49 | m : 'un minut', 50 | mm : '%d minuts', 51 | h : 'una hora', 52 | hh : '%d hores', 53 | d : 'un dia', 54 | dd : '%d dies', 55 | M : 'un mes', 56 | MM : '%d mesos', 57 | y : 'un any', 58 | yy : '%d anys' 59 | }, 60 | ordinal : '%dº', 61 | week : { 62 | dow : 1, // Monday is the first day of the week. 63 | doy : 4 // The week that contains Jan 4th is the first week of the year. 64 | } 65 | }); 66 | })); 67 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/cv.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : chuvash (cv) 3 | // author : Anatoly Mironov : https://github.com/mirontoli 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('cv', { 15 | months : 'кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав'.split('_'), 16 | monthsShort : 'кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш'.split('_'), 17 | weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун'.split('_'), 18 | weekdaysShort : 'выр_тун_ытл_юн_кĕç_эрн_шăм'.split('_'), 19 | weekdaysMin : 'вр_тн_ыт_юн_кç_эр_шм'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD-MM-YYYY', 23 | LL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]', 24 | LLL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT', 25 | LLLL : 'dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Паян] LT [сехетре]', 29 | nextDay: '[Ыран] LT [сехетре]', 30 | lastDay: '[Ĕнер] LT [сехетре]', 31 | nextWeek: '[Çитес] dddd LT [сехетре]', 32 | lastWeek: '[Иртнĕ] dddd LT [сехетре]', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : function (output) { 37 | var affix = /сехет$/i.exec(output) ? 'рен' : /çул$/i.exec(output) ? 'тан' : 'ран'; 38 | return output + affix; 39 | }, 40 | past : '%s каялла', 41 | s : 'пĕр-ик çеккунт', 42 | m : 'пĕр минут', 43 | mm : '%d минут', 44 | h : 'пĕр сехет', 45 | hh : '%d сехет', 46 | d : 'пĕр кун', 47 | dd : '%d кун', 48 | M : 'пĕр уйăх', 49 | MM : '%d уйăх', 50 | y : 'пĕр çул', 51 | yy : '%d çул' 52 | }, 53 | ordinal : '%d-мĕш', 54 | week : { 55 | dow : 1, // Monday is the first day of the week. 56 | doy : 7 // The week that contains Jan 1st is the first week of the year. 57 | } 58 | }); 59 | })); 60 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/cy.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Welsh (cy) 3 | // author : Robert Allen 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('cy', { 15 | months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), 16 | monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), 17 | weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), 18 | weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), 19 | weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), 20 | // time formats are the same as en-gb 21 | longDateFormat: { 22 | LT: 'HH:mm', 23 | L: 'DD/MM/YYYY', 24 | LL: 'D MMMM YYYY', 25 | LLL: 'D MMMM YYYY LT', 26 | LLLL: 'dddd, D MMMM YYYY LT' 27 | }, 28 | calendar: { 29 | sameDay: '[Heddiw am] LT', 30 | nextDay: '[Yfory am] LT', 31 | nextWeek: 'dddd [am] LT', 32 | lastDay: '[Ddoe am] LT', 33 | lastWeek: 'dddd [diwethaf am] LT', 34 | sameElse: 'L' 35 | }, 36 | relativeTime: { 37 | future: 'mewn %s', 38 | past: '%s yn ôl', 39 | s: 'ychydig eiliadau', 40 | m: 'munud', 41 | mm: '%d munud', 42 | h: 'awr', 43 | hh: '%d awr', 44 | d: 'diwrnod', 45 | dd: '%d diwrnod', 46 | M: 'mis', 47 | MM: '%d mis', 48 | y: 'blwyddyn', 49 | yy: '%d flynedd' 50 | }, 51 | // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh 52 | ordinal: function (number) { 53 | var b = number, 54 | output = '', 55 | lookup = [ 56 | '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed 57 | 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed 58 | ]; 59 | 60 | if (b > 20) { 61 | if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { 62 | output = 'fed'; // not 30ain, 70ain or 90ain 63 | } else { 64 | output = 'ain'; 65 | } 66 | } else if (b > 0) { 67 | output = lookup[b]; 68 | } 69 | 70 | return number + output; 71 | }, 72 | week : { 73 | dow : 1, // Monday is the first day of the week. 74 | doy : 4 // The week that contains Jan 4th is the first week of the year. 75 | } 76 | }); 77 | })); 78 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/da.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : danish (da) 3 | // author : Ulrik Nielsen : https://github.com/mrbase 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('da', { 15 | months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), 16 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), 17 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), 18 | weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'), 19 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D. MMMM YYYY', 24 | LLL : 'D. MMMM YYYY LT', 25 | LLLL : 'dddd [d.] D. MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : '[I dag kl.] LT', 29 | nextDay : '[I morgen kl.] LT', 30 | nextWeek : 'dddd [kl.] LT', 31 | lastDay : '[I går kl.] LT', 32 | lastWeek : '[sidste] dddd [kl] LT', 33 | sameElse : 'L' 34 | }, 35 | relativeTime : { 36 | future : 'om %s', 37 | past : '%s siden', 38 | s : 'få sekunder', 39 | m : 'et minut', 40 | mm : '%d minutter', 41 | h : 'en time', 42 | hh : '%d timer', 43 | d : 'en dag', 44 | dd : '%d dage', 45 | M : 'en måned', 46 | MM : '%d måneder', 47 | y : 'et år', 48 | yy : '%d år' 49 | }, 50 | ordinal : '%d.', 51 | week : { 52 | dow : 1, // Monday is the first day of the week. 53 | doy : 4 // The week that contains Jan 4th is the first week of the year. 54 | } 55 | }); 56 | })); 57 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/de-at.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : austrian german (de-at) 3 | // author : lluchs : https://github.com/lluchs 4 | // author: Menelion Elensúle: https://github.com/Oire 5 | // author : Martin Groller : https://github.com/MadMG 6 | 7 | (function (factory) { 8 | if (typeof define === 'function' && define.amd) { 9 | define(['moment'], factory); // AMD 10 | } else if (typeof exports === 'object') { 11 | module.exports = factory(require('../moment')); // Node 12 | } else { 13 | factory(window.moment); // Browser global 14 | } 15 | }(function (moment) { 16 | function processRelativeTime(number, withoutSuffix, key, isFuture) { 17 | var format = { 18 | 'm': ['eine Minute', 'einer Minute'], 19 | 'h': ['eine Stunde', 'einer Stunde'], 20 | 'd': ['ein Tag', 'einem Tag'], 21 | 'dd': [number + ' Tage', number + ' Tagen'], 22 | 'M': ['ein Monat', 'einem Monat'], 23 | 'MM': [number + ' Monate', number + ' Monaten'], 24 | 'y': ['ein Jahr', 'einem Jahr'], 25 | 'yy': [number + ' Jahre', number + ' Jahren'] 26 | }; 27 | return withoutSuffix ? format[key][0] : format[key][1]; 28 | } 29 | 30 | return moment.defineLocale('de-at', { 31 | months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), 32 | monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), 33 | weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), 34 | weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), 35 | weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), 36 | longDateFormat : { 37 | LT: 'HH:mm [Uhr]', 38 | L : 'DD.MM.YYYY', 39 | LL : 'D. MMMM YYYY', 40 | LLL : 'D. MMMM YYYY LT', 41 | LLLL : 'dddd, D. MMMM YYYY LT' 42 | }, 43 | calendar : { 44 | sameDay: '[Heute um] LT', 45 | sameElse: 'L', 46 | nextDay: '[Morgen um] LT', 47 | nextWeek: 'dddd [um] LT', 48 | lastDay: '[Gestern um] LT', 49 | lastWeek: '[letzten] dddd [um] LT' 50 | }, 51 | relativeTime : { 52 | future : 'in %s', 53 | past : 'vor %s', 54 | s : 'ein paar Sekunden', 55 | m : processRelativeTime, 56 | mm : '%d Minuten', 57 | h : processRelativeTime, 58 | hh : '%d Stunden', 59 | d : processRelativeTime, 60 | dd : processRelativeTime, 61 | M : processRelativeTime, 62 | MM : processRelativeTime, 63 | y : processRelativeTime, 64 | yy : processRelativeTime 65 | }, 66 | ordinal : '%d.', 67 | week : { 68 | dow : 1, // Monday is the first day of the week. 69 | doy : 4 // The week that contains Jan 4th is the first week of the year. 70 | } 71 | }); 72 | })); 73 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/de.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : german (de) 3 | // author : lluchs : https://github.com/lluchs 4 | // author: Menelion Elensúle: https://github.com/Oire 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | function processRelativeTime(number, withoutSuffix, key, isFuture) { 16 | var format = { 17 | 'm': ['eine Minute', 'einer Minute'], 18 | 'h': ['eine Stunde', 'einer Stunde'], 19 | 'd': ['ein Tag', 'einem Tag'], 20 | 'dd': [number + ' Tage', number + ' Tagen'], 21 | 'M': ['ein Monat', 'einem Monat'], 22 | 'MM': [number + ' Monate', number + ' Monaten'], 23 | 'y': ['ein Jahr', 'einem Jahr'], 24 | 'yy': [number + ' Jahre', number + ' Jahren'] 25 | }; 26 | return withoutSuffix ? format[key][0] : format[key][1]; 27 | } 28 | 29 | return moment.defineLocale('de', { 30 | months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), 31 | monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), 32 | weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), 33 | weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), 34 | weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), 35 | longDateFormat : { 36 | LT: 'HH:mm [Uhr]', 37 | L : 'DD.MM.YYYY', 38 | LL : 'D. MMMM YYYY', 39 | LLL : 'D. MMMM YYYY LT', 40 | LLLL : 'dddd, D. MMMM YYYY LT' 41 | }, 42 | calendar : { 43 | sameDay: '[Heute um] LT', 44 | sameElse: 'L', 45 | nextDay: '[Morgen um] LT', 46 | nextWeek: 'dddd [um] LT', 47 | lastDay: '[Gestern um] LT', 48 | lastWeek: '[letzten] dddd [um] LT' 49 | }, 50 | relativeTime : { 51 | future : 'in %s', 52 | past : 'vor %s', 53 | s : 'ein paar Sekunden', 54 | m : processRelativeTime, 55 | mm : '%d Minuten', 56 | h : processRelativeTime, 57 | hh : '%d Stunden', 58 | d : processRelativeTime, 59 | dd : processRelativeTime, 60 | M : processRelativeTime, 61 | MM : processRelativeTime, 62 | y : processRelativeTime, 63 | yy : processRelativeTime 64 | }, 65 | ordinal : '%d.', 66 | week : { 67 | dow : 1, // Monday is the first day of the week. 68 | doy : 4 // The week that contains Jan 4th is the first week of the year. 69 | } 70 | }); 71 | })); 72 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/en-au.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : australian english (en-au) 3 | 4 | (function (factory) { 5 | if (typeof define === 'function' && define.amd) { 6 | define(['moment'], factory); // AMD 7 | } else if (typeof exports === 'object') { 8 | module.exports = factory(require('../moment')); // Node 9 | } else { 10 | factory(window.moment); // Browser global 11 | } 12 | }(function (moment) { 13 | return moment.defineLocale('en-au', { 14 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 15 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 16 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 17 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 18 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 19 | longDateFormat : { 20 | LT : 'h:mm A', 21 | L : 'DD/MM/YYYY', 22 | LL : 'D MMMM YYYY', 23 | LLL : 'D MMMM YYYY LT', 24 | LLLL : 'dddd, D MMMM YYYY LT' 25 | }, 26 | calendar : { 27 | sameDay : '[Today at] LT', 28 | nextDay : '[Tomorrow at] LT', 29 | nextWeek : 'dddd [at] LT', 30 | lastDay : '[Yesterday at] LT', 31 | lastWeek : '[Last] dddd [at] LT', 32 | sameElse : 'L' 33 | }, 34 | relativeTime : { 35 | future : 'in %s', 36 | past : '%s ago', 37 | s : 'a few seconds', 38 | m : 'a minute', 39 | mm : '%d minutes', 40 | h : 'an hour', 41 | hh : '%d hours', 42 | d : 'a day', 43 | dd : '%d days', 44 | M : 'a month', 45 | MM : '%d months', 46 | y : 'a year', 47 | yy : '%d years' 48 | }, 49 | ordinal : function (number) { 50 | var b = number % 10, 51 | output = (~~(number % 100 / 10) === 1) ? 'th' : 52 | (b === 1) ? 'st' : 53 | (b === 2) ? 'nd' : 54 | (b === 3) ? 'rd' : 'th'; 55 | return number + output; 56 | }, 57 | week : { 58 | dow : 1, // Monday is the first day of the week. 59 | doy : 4 // The week that contains Jan 4th is the first week of the year. 60 | } 61 | }); 62 | })); 63 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/en-ca.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : canadian english (en-ca) 3 | // author : Jonathan Abourbih : https://github.com/jonbca 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('en-ca', { 15 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 16 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 17 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 18 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 19 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 20 | longDateFormat : { 21 | LT : 'h:mm A', 22 | L : 'YYYY-MM-DD', 23 | LL : 'D MMMM, YYYY', 24 | LLL : 'D MMMM, YYYY LT', 25 | LLLL : 'dddd, D MMMM, YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : '[Today at] LT', 29 | nextDay : '[Tomorrow at] LT', 30 | nextWeek : 'dddd [at] LT', 31 | lastDay : '[Yesterday at] LT', 32 | lastWeek : '[Last] dddd [at] LT', 33 | sameElse : 'L' 34 | }, 35 | relativeTime : { 36 | future : 'in %s', 37 | past : '%s ago', 38 | s : 'a few seconds', 39 | m : 'a minute', 40 | mm : '%d minutes', 41 | h : 'an hour', 42 | hh : '%d hours', 43 | d : 'a day', 44 | dd : '%d days', 45 | M : 'a month', 46 | MM : '%d months', 47 | y : 'a year', 48 | yy : '%d years' 49 | }, 50 | ordinal : function (number) { 51 | var b = number % 10, 52 | output = (~~(number % 100 / 10) === 1) ? 'th' : 53 | (b === 1) ? 'st' : 54 | (b === 2) ? 'nd' : 55 | (b === 3) ? 'rd' : 'th'; 56 | return number + output; 57 | } 58 | }); 59 | })); 60 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/en-gb.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : great britain english (en-gb) 3 | // author : Chris Gedrim : https://github.com/chrisgedrim 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('en-gb', { 15 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 16 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 17 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 18 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 19 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd, D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : '[Today at] LT', 29 | nextDay : '[Tomorrow at] LT', 30 | nextWeek : 'dddd [at] LT', 31 | lastDay : '[Yesterday at] LT', 32 | lastWeek : '[Last] dddd [at] LT', 33 | sameElse : 'L' 34 | }, 35 | relativeTime : { 36 | future : 'in %s', 37 | past : '%s ago', 38 | s : 'a few seconds', 39 | m : 'a minute', 40 | mm : '%d minutes', 41 | h : 'an hour', 42 | hh : '%d hours', 43 | d : 'a day', 44 | dd : '%d days', 45 | M : 'a month', 46 | MM : '%d months', 47 | y : 'a year', 48 | yy : '%d years' 49 | }, 50 | ordinal : function (number) { 51 | var b = number % 10, 52 | output = (~~(number % 100 / 10) === 1) ? 'th' : 53 | (b === 1) ? 'st' : 54 | (b === 2) ? 'nd' : 55 | (b === 3) ? 'rd' : 'th'; 56 | return number + output; 57 | }, 58 | week : { 59 | dow : 1, // Monday is the first day of the week. 60 | doy : 4 // The week that contains Jan 4th is the first week of the year. 61 | } 62 | }); 63 | })); 64 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/eo.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : esperanto (eo) 3 | // author : Colin Dean : https://github.com/colindean 4 | // komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko. 5 | // Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni! 6 | 7 | (function (factory) { 8 | if (typeof define === 'function' && define.amd) { 9 | define(['moment'], factory); // AMD 10 | } else if (typeof exports === 'object') { 11 | module.exports = factory(require('../moment')); // Node 12 | } else { 13 | factory(window.moment); // Browser global 14 | } 15 | }(function (moment) { 16 | return moment.defineLocale('eo', { 17 | months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), 18 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), 19 | weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'), 20 | weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'), 21 | weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'), 22 | longDateFormat : { 23 | LT : 'HH:mm', 24 | L : 'YYYY-MM-DD', 25 | LL : 'D[-an de] MMMM, YYYY', 26 | LLL : 'D[-an de] MMMM, YYYY LT', 27 | LLLL : 'dddd, [la] D[-an de] MMMM, YYYY LT' 28 | }, 29 | meridiem : function (hours, minutes, isLower) { 30 | if (hours > 11) { 31 | return isLower ? 'p.t.m.' : 'P.T.M.'; 32 | } else { 33 | return isLower ? 'a.t.m.' : 'A.T.M.'; 34 | } 35 | }, 36 | calendar : { 37 | sameDay : '[Hodiaŭ je] LT', 38 | nextDay : '[Morgaŭ je] LT', 39 | nextWeek : 'dddd [je] LT', 40 | lastDay : '[Hieraŭ je] LT', 41 | lastWeek : '[pasinta] dddd [je] LT', 42 | sameElse : 'L' 43 | }, 44 | relativeTime : { 45 | future : 'je %s', 46 | past : 'antaŭ %s', 47 | s : 'sekundoj', 48 | m : 'minuto', 49 | mm : '%d minutoj', 50 | h : 'horo', 51 | hh : '%d horoj', 52 | d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo 53 | dd : '%d tagoj', 54 | M : 'monato', 55 | MM : '%d monatoj', 56 | y : 'jaro', 57 | yy : '%d jaroj' 58 | }, 59 | ordinal : '%da', 60 | week : { 61 | dow : 1, // Monday is the first day of the week. 62 | doy : 7 // The week that contains Jan 1st is the first week of the year. 63 | } 64 | }); 65 | })); 66 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/es.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : spanish (es) 3 | // author : Julio Napurí : https://github.com/julionc 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), 15 | monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); 16 | 17 | return moment.defineLocale('es', { 18 | months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), 19 | monthsShort : function (m, format) { 20 | if (/-MMM-/.test(format)) { 21 | return monthsShort[m.month()]; 22 | } else { 23 | return monthsShortDot[m.month()]; 24 | } 25 | }, 26 | weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), 27 | weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), 28 | weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'), 29 | longDateFormat : { 30 | LT : 'H:mm', 31 | L : 'DD/MM/YYYY', 32 | LL : 'D [de] MMMM [de] YYYY', 33 | LLL : 'D [de] MMMM [de] YYYY LT', 34 | LLLL : 'dddd, D [de] MMMM [de] YYYY LT' 35 | }, 36 | calendar : { 37 | sameDay : function () { 38 | return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 39 | }, 40 | nextDay : function () { 41 | return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 42 | }, 43 | nextWeek : function () { 44 | return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 45 | }, 46 | lastDay : function () { 47 | return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 48 | }, 49 | lastWeek : function () { 50 | return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 51 | }, 52 | sameElse : 'L' 53 | }, 54 | relativeTime : { 55 | future : 'en %s', 56 | past : 'hace %s', 57 | s : 'unos segundos', 58 | m : 'un minuto', 59 | mm : '%d minutos', 60 | h : 'una hora', 61 | hh : '%d horas', 62 | d : 'un día', 63 | dd : '%d días', 64 | M : 'un mes', 65 | MM : '%d meses', 66 | y : 'un año', 67 | yy : '%d años' 68 | }, 69 | ordinal : '%dº', 70 | week : { 71 | dow : 1, // Monday is the first day of the week. 72 | doy : 4 // The week that contains Jan 4th is the first week of the year. 73 | } 74 | }); 75 | })); 76 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/et.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : estonian (et) 3 | // author : Henry Kehlmann : https://github.com/madhenry 4 | // improvements : Illimar Tambek : https://github.com/ragulka 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | function processRelativeTime(number, withoutSuffix, key, isFuture) { 16 | var format = { 17 | 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], 18 | 'm' : ['ühe minuti', 'üks minut'], 19 | 'mm': [number + ' minuti', number + ' minutit'], 20 | 'h' : ['ühe tunni', 'tund aega', 'üks tund'], 21 | 'hh': [number + ' tunni', number + ' tundi'], 22 | 'd' : ['ühe päeva', 'üks päev'], 23 | 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], 24 | 'MM': [number + ' kuu', number + ' kuud'], 25 | 'y' : ['ühe aasta', 'aasta', 'üks aasta'], 26 | 'yy': [number + ' aasta', number + ' aastat'] 27 | }; 28 | if (withoutSuffix) { 29 | return format[key][2] ? format[key][2] : format[key][1]; 30 | } 31 | return isFuture ? format[key][0] : format[key][1]; 32 | } 33 | 34 | return moment.defineLocale('et', { 35 | months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'), 36 | monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), 37 | weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), 38 | weekdaysShort : 'P_E_T_K_N_R_L'.split('_'), 39 | weekdaysMin : 'P_E_T_K_N_R_L'.split('_'), 40 | longDateFormat : { 41 | LT : 'H:mm', 42 | L : 'DD.MM.YYYY', 43 | LL : 'D. MMMM YYYY', 44 | LLL : 'D. MMMM YYYY LT', 45 | LLLL : 'dddd, D. MMMM YYYY LT' 46 | }, 47 | calendar : { 48 | sameDay : '[Täna,] LT', 49 | nextDay : '[Homme,] LT', 50 | nextWeek : '[Järgmine] dddd LT', 51 | lastDay : '[Eile,] LT', 52 | lastWeek : '[Eelmine] dddd LT', 53 | sameElse : 'L' 54 | }, 55 | relativeTime : { 56 | future : '%s pärast', 57 | past : '%s tagasi', 58 | s : processRelativeTime, 59 | m : processRelativeTime, 60 | mm : processRelativeTime, 61 | h : processRelativeTime, 62 | hh : processRelativeTime, 63 | d : processRelativeTime, 64 | dd : '%d päeva', 65 | M : processRelativeTime, 66 | MM : processRelativeTime, 67 | y : processRelativeTime, 68 | yy : processRelativeTime 69 | }, 70 | ordinal : '%d.', 71 | week : { 72 | dow : 1, // Monday is the first day of the week. 73 | doy : 4 // The week that contains Jan 4th is the first week of the year. 74 | } 75 | }); 76 | })); 77 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/eu.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : euskara (eu) 3 | // author : Eneko Illarramendi : https://github.com/eillarra 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('eu', { 15 | months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), 16 | monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), 17 | weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), 18 | weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'), 19 | weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'YYYY-MM-DD', 23 | LL : 'YYYY[ko] MMMM[ren] D[a]', 24 | LLL : 'YYYY[ko] MMMM[ren] D[a] LT', 25 | LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] LT', 26 | l : 'YYYY-M-D', 27 | ll : 'YYYY[ko] MMM D[a]', 28 | lll : 'YYYY[ko] MMM D[a] LT', 29 | llll : 'ddd, YYYY[ko] MMM D[a] LT' 30 | }, 31 | calendar : { 32 | sameDay : '[gaur] LT[etan]', 33 | nextDay : '[bihar] LT[etan]', 34 | nextWeek : 'dddd LT[etan]', 35 | lastDay : '[atzo] LT[etan]', 36 | lastWeek : '[aurreko] dddd LT[etan]', 37 | sameElse : 'L' 38 | }, 39 | relativeTime : { 40 | future : '%s barru', 41 | past : 'duela %s', 42 | s : 'segundo batzuk', 43 | m : 'minutu bat', 44 | mm : '%d minutu', 45 | h : 'ordu bat', 46 | hh : '%d ordu', 47 | d : 'egun bat', 48 | dd : '%d egun', 49 | M : 'hilabete bat', 50 | MM : '%d hilabete', 51 | y : 'urte bat', 52 | yy : '%d urte' 53 | }, 54 | ordinal : '%d.', 55 | week : { 56 | dow : 1, // Monday is the first day of the week. 57 | doy : 7 // The week that contains Jan 1st is the first week of the year. 58 | } 59 | }); 60 | })); 61 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/fa.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Persian (fa) 3 | // author : Ebrahim Byagowi : https://github.com/ebraminio 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var symbolMap = { 15 | '1': '۱', 16 | '2': '۲', 17 | '3': '۳', 18 | '4': '۴', 19 | '5': '۵', 20 | '6': '۶', 21 | '7': '۷', 22 | '8': '۸', 23 | '9': '۹', 24 | '0': '۰' 25 | }, numberMap = { 26 | '۱': '1', 27 | '۲': '2', 28 | '۳': '3', 29 | '۴': '4', 30 | '۵': '5', 31 | '۶': '6', 32 | '۷': '7', 33 | '۸': '8', 34 | '۹': '9', 35 | '۰': '0' 36 | }; 37 | 38 | return moment.defineLocale('fa', { 39 | months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), 40 | monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), 41 | weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), 42 | weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), 43 | weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'), 44 | longDateFormat : { 45 | LT : 'HH:mm', 46 | L : 'DD/MM/YYYY', 47 | LL : 'D MMMM YYYY', 48 | LLL : 'D MMMM YYYY LT', 49 | LLLL : 'dddd, D MMMM YYYY LT' 50 | }, 51 | meridiem : function (hour, minute, isLower) { 52 | if (hour < 12) { 53 | return 'قبل از ظهر'; 54 | } else { 55 | return 'بعد از ظهر'; 56 | } 57 | }, 58 | calendar : { 59 | sameDay : '[امروز ساعت] LT', 60 | nextDay : '[فردا ساعت] LT', 61 | nextWeek : 'dddd [ساعت] LT', 62 | lastDay : '[دیروز ساعت] LT', 63 | lastWeek : 'dddd [پیش] [ساعت] LT', 64 | sameElse : 'L' 65 | }, 66 | relativeTime : { 67 | future : 'در %s', 68 | past : '%s پیش', 69 | s : 'چندین ثانیه', 70 | m : 'یک دقیقه', 71 | mm : '%d دقیقه', 72 | h : 'یک ساعت', 73 | hh : '%d ساعت', 74 | d : 'یک روز', 75 | dd : '%d روز', 76 | M : 'یک ماه', 77 | MM : '%d ماه', 78 | y : 'یک سال', 79 | yy : '%d سال' 80 | }, 81 | preparse: function (string) { 82 | return string.replace(/[۰-۹]/g, function (match) { 83 | return numberMap[match]; 84 | }).replace(/،/g, ','); 85 | }, 86 | postformat: function (string) { 87 | return string.replace(/\d/g, function (match) { 88 | return symbolMap[match]; 89 | }).replace(/,/g, '،'); 90 | }, 91 | ordinal : '%dم', 92 | week : { 93 | dow : 6, // Saturday is the first day of the week. 94 | doy : 12 // The week that contains Jan 1st is the first week of the year. 95 | } 96 | }); 97 | })); 98 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/fo.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : faroese (fo) 3 | // author : Ragnar Johannesen : https://github.com/ragnar123 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('fo', { 15 | months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), 16 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), 17 | weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'), 18 | weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'), 19 | weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D. MMMM, YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : '[Í dag kl.] LT', 29 | nextDay : '[Í morgin kl.] LT', 30 | nextWeek : 'dddd [kl.] LT', 31 | lastDay : '[Í gjár kl.] LT', 32 | lastWeek : '[síðstu] dddd [kl] LT', 33 | sameElse : 'L' 34 | }, 35 | relativeTime : { 36 | future : 'um %s', 37 | past : '%s síðani', 38 | s : 'fá sekund', 39 | m : 'ein minutt', 40 | mm : '%d minuttir', 41 | h : 'ein tími', 42 | hh : '%d tímar', 43 | d : 'ein dagur', 44 | dd : '%d dagar', 45 | M : 'ein mánaði', 46 | MM : '%d mánaðir', 47 | y : 'eitt ár', 48 | yy : '%d ár' 49 | }, 50 | ordinal : '%d.', 51 | week : { 52 | dow : 1, // Monday is the first day of the week. 53 | doy : 4 // The week that contains Jan 4th is the first week of the year. 54 | } 55 | }); 56 | })); 57 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/fr-ca.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : canadian french (fr-ca) 3 | // author : Jonathan Abourbih : https://github.com/jonbca 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('fr-ca', { 15 | months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), 16 | monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), 17 | weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), 18 | weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), 19 | weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'YYYY-MM-DD', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Aujourd\'hui à] LT', 29 | nextDay: '[Demain à] LT', 30 | nextWeek: 'dddd [à] LT', 31 | lastDay: '[Hier à] LT', 32 | lastWeek: 'dddd [dernier à] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'dans %s', 37 | past : 'il y a %s', 38 | s : 'quelques secondes', 39 | m : 'une minute', 40 | mm : '%d minutes', 41 | h : 'une heure', 42 | hh : '%d heures', 43 | d : 'un jour', 44 | dd : '%d jours', 45 | M : 'un mois', 46 | MM : '%d mois', 47 | y : 'un an', 48 | yy : '%d ans' 49 | }, 50 | ordinal : function (number) { 51 | return number + (number === 1 ? 'er' : ''); 52 | } 53 | }); 54 | })); 55 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/fr.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : french (fr) 3 | // author : John Fischer : https://github.com/jfroffice 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('fr', { 15 | months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), 16 | monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), 17 | weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), 18 | weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), 19 | weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Aujourd\'hui à] LT', 29 | nextDay: '[Demain à] LT', 30 | nextWeek: 'dddd [à] LT', 31 | lastDay: '[Hier à] LT', 32 | lastWeek: 'dddd [dernier à] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'dans %s', 37 | past : 'il y a %s', 38 | s : 'quelques secondes', 39 | m : 'une minute', 40 | mm : '%d minutes', 41 | h : 'une heure', 42 | hh : '%d heures', 43 | d : 'un jour', 44 | dd : '%d jours', 45 | M : 'un mois', 46 | MM : '%d mois', 47 | y : 'un an', 48 | yy : '%d ans' 49 | }, 50 | ordinal : function (number) { 51 | return number + (number === 1 ? 'er' : ''); 52 | }, 53 | week : { 54 | dow : 1, // Monday is the first day of the week. 55 | doy : 4 // The week that contains Jan 4th is the first week of the year. 56 | } 57 | }); 58 | })); 59 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/gl.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : galician (gl) 3 | // author : Juan G. Hurtado : https://github.com/juanghurtado 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('gl', { 15 | months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'), 16 | monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'), 17 | weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'), 18 | weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'), 19 | weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'), 20 | longDateFormat : { 21 | LT : 'H:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : function () { 29 | return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; 30 | }, 31 | nextDay : function () { 32 | return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; 33 | }, 34 | nextWeek : function () { 35 | return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; 36 | }, 37 | lastDay : function () { 38 | return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; 39 | }, 40 | lastWeek : function () { 41 | return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; 42 | }, 43 | sameElse : 'L' 44 | }, 45 | relativeTime : { 46 | future : function (str) { 47 | if (str === 'uns segundos') { 48 | return 'nuns segundos'; 49 | } 50 | return 'en ' + str; 51 | }, 52 | past : 'hai %s', 53 | s : 'uns segundos', 54 | m : 'un minuto', 55 | mm : '%d minutos', 56 | h : 'unha hora', 57 | hh : '%d horas', 58 | d : 'un día', 59 | dd : '%d días', 60 | M : 'un mes', 61 | MM : '%d meses', 62 | y : 'un ano', 63 | yy : '%d anos' 64 | }, 65 | ordinal : '%dº', 66 | week : { 67 | dow : 1, // Monday is the first day of the week. 68 | doy : 7 // The week that contains Jan 1st is the first week of the year. 69 | } 70 | }); 71 | })); 72 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/he.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Hebrew (he) 3 | // author : Tomer Cohen : https://github.com/tomer 4 | // author : Moshe Simantov : https://github.com/DevelopmentIL 5 | // author : Tal Ater : https://github.com/TalAter 6 | 7 | (function (factory) { 8 | if (typeof define === 'function' && define.amd) { 9 | define(['moment'], factory); // AMD 10 | } else if (typeof exports === 'object') { 11 | module.exports = factory(require('../moment')); // Node 12 | } else { 13 | factory(window.moment); // Browser global 14 | } 15 | }(function (moment) { 16 | return moment.defineLocale('he', { 17 | months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), 18 | monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), 19 | weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), 20 | weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), 21 | weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'), 22 | longDateFormat : { 23 | LT : 'HH:mm', 24 | L : 'DD/MM/YYYY', 25 | LL : 'D [ב]MMMM YYYY', 26 | LLL : 'D [ב]MMMM YYYY LT', 27 | LLLL : 'dddd, D [ב]MMMM YYYY LT', 28 | l : 'D/M/YYYY', 29 | ll : 'D MMM YYYY', 30 | lll : 'D MMM YYYY LT', 31 | llll : 'ddd, D MMM YYYY LT' 32 | }, 33 | calendar : { 34 | sameDay : '[היום ב־]LT', 35 | nextDay : '[מחר ב־]LT', 36 | nextWeek : 'dddd [בשעה] LT', 37 | lastDay : '[אתמול ב־]LT', 38 | lastWeek : '[ביום] dddd [האחרון בשעה] LT', 39 | sameElse : 'L' 40 | }, 41 | relativeTime : { 42 | future : 'בעוד %s', 43 | past : 'לפני %s', 44 | s : 'מספר שניות', 45 | m : 'דקה', 46 | mm : '%d דקות', 47 | h : 'שעה', 48 | hh : function (number) { 49 | if (number === 2) { 50 | return 'שעתיים'; 51 | } 52 | return number + ' שעות'; 53 | }, 54 | d : 'יום', 55 | dd : function (number) { 56 | if (number === 2) { 57 | return 'יומיים'; 58 | } 59 | return number + ' ימים'; 60 | }, 61 | M : 'חודש', 62 | MM : function (number) { 63 | if (number === 2) { 64 | return 'חודשיים'; 65 | } 66 | return number + ' חודשים'; 67 | }, 68 | y : 'שנה', 69 | yy : function (number) { 70 | if (number === 2) { 71 | return 'שנתיים'; 72 | } 73 | return number + ' שנים'; 74 | } 75 | } 76 | }); 77 | })); 78 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/id.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Bahasa Indonesia (id) 3 | // author : Mohammad Satrio Utomo : https://github.com/tyok 4 | // reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | return moment.defineLocale('id', { 16 | months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), 17 | monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), 18 | weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), 19 | weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), 20 | weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), 21 | longDateFormat : { 22 | LT : 'HH.mm', 23 | L : 'DD/MM/YYYY', 24 | LL : 'D MMMM YYYY', 25 | LLL : 'D MMMM YYYY [pukul] LT', 26 | LLLL : 'dddd, D MMMM YYYY [pukul] LT' 27 | }, 28 | meridiem : function (hours, minutes, isLower) { 29 | if (hours < 11) { 30 | return 'pagi'; 31 | } else if (hours < 15) { 32 | return 'siang'; 33 | } else if (hours < 19) { 34 | return 'sore'; 35 | } else { 36 | return 'malam'; 37 | } 38 | }, 39 | calendar : { 40 | sameDay : '[Hari ini pukul] LT', 41 | nextDay : '[Besok pukul] LT', 42 | nextWeek : 'dddd [pukul] LT', 43 | lastDay : '[Kemarin pukul] LT', 44 | lastWeek : 'dddd [lalu pukul] LT', 45 | sameElse : 'L' 46 | }, 47 | relativeTime : { 48 | future : 'dalam %s', 49 | past : '%s yang lalu', 50 | s : 'beberapa detik', 51 | m : 'semenit', 52 | mm : '%d menit', 53 | h : 'sejam', 54 | hh : '%d jam', 55 | d : 'sehari', 56 | dd : '%d hari', 57 | M : 'sebulan', 58 | MM : '%d bulan', 59 | y : 'setahun', 60 | yy : '%d tahun' 61 | }, 62 | week : { 63 | dow : 1, // Monday is the first day of the week. 64 | doy : 7 // The week that contains Jan 1st is the first week of the year. 65 | } 66 | }); 67 | })); 68 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/it.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : italian (it) 3 | // author : Lorenzo : https://github.com/aliem 4 | // author: Mattia Larentis: https://github.com/nostalgiaz 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | return moment.defineLocale('it', { 16 | months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), 17 | monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), 18 | weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'), 19 | weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'), 20 | weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'), 21 | longDateFormat : { 22 | LT : 'HH:mm', 23 | L : 'DD/MM/YYYY', 24 | LL : 'D MMMM YYYY', 25 | LLL : 'D MMMM YYYY LT', 26 | LLLL : 'dddd, D MMMM YYYY LT' 27 | }, 28 | calendar : { 29 | sameDay: '[Oggi alle] LT', 30 | nextDay: '[Domani alle] LT', 31 | nextWeek: 'dddd [alle] LT', 32 | lastDay: '[Ieri alle] LT', 33 | lastWeek: '[lo scorso] dddd [alle] LT', 34 | sameElse: 'L' 35 | }, 36 | relativeTime : { 37 | future : function (s) { 38 | return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s; 39 | }, 40 | past : '%s fa', 41 | s : 'alcuni secondi', 42 | m : 'un minuto', 43 | mm : '%d minuti', 44 | h : 'un\'ora', 45 | hh : '%d ore', 46 | d : 'un giorno', 47 | dd : '%d giorni', 48 | M : 'un mese', 49 | MM : '%d mesi', 50 | y : 'un anno', 51 | yy : '%d anni' 52 | }, 53 | ordinal: '%dº', 54 | week : { 55 | dow : 1, // Monday is the first day of the week. 56 | doy : 4 // The week that contains Jan 4th is the first week of the year. 57 | } 58 | }); 59 | })); 60 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ja.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : japanese (ja) 3 | // author : LI Long : https://github.com/baryon 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('ja', { 15 | months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), 16 | monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), 17 | weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), 18 | weekdaysShort : '日_月_火_水_木_金_土'.split('_'), 19 | weekdaysMin : '日_月_火_水_木_金_土'.split('_'), 20 | longDateFormat : { 21 | LT : 'Ah時m分', 22 | L : 'YYYY/MM/DD', 23 | LL : 'YYYY年M月D日', 24 | LLL : 'YYYY年M月D日LT', 25 | LLLL : 'YYYY年M月D日LT dddd' 26 | }, 27 | meridiem : function (hour, minute, isLower) { 28 | if (hour < 12) { 29 | return '午前'; 30 | } else { 31 | return '午後'; 32 | } 33 | }, 34 | calendar : { 35 | sameDay : '[今日] LT', 36 | nextDay : '[明日] LT', 37 | nextWeek : '[来週]dddd LT', 38 | lastDay : '[昨日] LT', 39 | lastWeek : '[前週]dddd LT', 40 | sameElse : 'L' 41 | }, 42 | relativeTime : { 43 | future : '%s後', 44 | past : '%s前', 45 | s : '数秒', 46 | m : '1分', 47 | mm : '%d分', 48 | h : '1時間', 49 | hh : '%d時間', 50 | d : '1日', 51 | dd : '%d日', 52 | M : '1ヶ月', 53 | MM : '%dヶ月', 54 | y : '1年', 55 | yy : '%d年' 56 | } 57 | }); 58 | })); 59 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/km.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : khmer (km) 3 | // author : Kruy Vanna : https://github.com/kruyvanna 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('km', { 15 | months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), 16 | monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), 17 | weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), 18 | weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), 19 | weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), 20 | longDateFormat: { 21 | LT: 'HH:mm', 22 | L: 'DD/MM/YYYY', 23 | LL: 'D MMMM YYYY', 24 | LLL: 'D MMMM YYYY LT', 25 | LLLL: 'dddd, D MMMM YYYY LT' 26 | }, 27 | calendar: { 28 | sameDay: '[ថ្ងៃនៈ ម៉ោង] LT', 29 | nextDay: '[ស្អែក ម៉ោង] LT', 30 | nextWeek: 'dddd [ម៉ោង] LT', 31 | lastDay: '[ម្សិលមិញ ម៉ោង] LT', 32 | lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime: { 36 | future: '%sទៀត', 37 | past: '%sមុន', 38 | s: 'ប៉ុន្មានវិនាទី', 39 | m: 'មួយនាទី', 40 | mm: '%d នាទី', 41 | h: 'មួយម៉ោង', 42 | hh: '%d ម៉ោង', 43 | d: 'មួយថ្ងៃ', 44 | dd: '%d ថ្ងៃ', 45 | M: 'មួយខែ', 46 | MM: '%d ខែ', 47 | y: 'មួយឆ្នាំ', 48 | yy: '%d ឆ្នាំ' 49 | }, 50 | week: { 51 | dow: 1, // Monday is the first day of the week. 52 | doy: 4 // The week that contains Jan 4th is the first week of the year. 53 | } 54 | }); 55 | })); 56 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ko.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : korean (ko) 3 | // 4 | // authors 5 | // 6 | // - Kyungwook, Park : https://github.com/kyungw00k 7 | // - Jeeeyul Lee 8 | (function (factory) { 9 | if (typeof define === 'function' && define.amd) { 10 | define(['moment'], factory); // AMD 11 | } else if (typeof exports === 'object') { 12 | module.exports = factory(require('../moment')); // Node 13 | } else { 14 | factory(window.moment); // Browser global 15 | } 16 | }(function (moment) { 17 | return moment.defineLocale('ko', { 18 | months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), 19 | monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), 20 | weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), 21 | weekdaysShort : '일_월_화_수_목_금_토'.split('_'), 22 | weekdaysMin : '일_월_화_수_목_금_토'.split('_'), 23 | longDateFormat : { 24 | LT : 'A h시 m분', 25 | L : 'YYYY.MM.DD', 26 | LL : 'YYYY년 MMMM D일', 27 | LLL : 'YYYY년 MMMM D일 LT', 28 | LLLL : 'YYYY년 MMMM D일 dddd LT' 29 | }, 30 | meridiem : function (hour, minute, isUpper) { 31 | return hour < 12 ? '오전' : '오후'; 32 | }, 33 | calendar : { 34 | sameDay : '오늘 LT', 35 | nextDay : '내일 LT', 36 | nextWeek : 'dddd LT', 37 | lastDay : '어제 LT', 38 | lastWeek : '지난주 dddd LT', 39 | sameElse : 'L' 40 | }, 41 | relativeTime : { 42 | future : '%s 후', 43 | past : '%s 전', 44 | s : '몇초', 45 | ss : '%d초', 46 | m : '일분', 47 | mm : '%d분', 48 | h : '한시간', 49 | hh : '%d시간', 50 | d : '하루', 51 | dd : '%d일', 52 | M : '한달', 53 | MM : '%d달', 54 | y : '일년', 55 | yy : '%d년' 56 | }, 57 | ordinal : '%d일', 58 | meridiemParse : /(오전|오후)/, 59 | isPM : function (token) { 60 | return token === '오후'; 61 | } 62 | }); 63 | })); 64 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/lv.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : latvian (lv) 3 | // author : Kristaps Karlsons : https://github.com/skakri 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var units = { 15 | 'mm': 'minūti_minūtes_minūte_minūtes', 16 | 'hh': 'stundu_stundas_stunda_stundas', 17 | 'dd': 'dienu_dienas_diena_dienas', 18 | 'MM': 'mēnesi_mēnešus_mēnesis_mēneši', 19 | 'yy': 'gadu_gadus_gads_gadi' 20 | }; 21 | 22 | function format(word, number, withoutSuffix) { 23 | var forms = word.split('_'); 24 | if (withoutSuffix) { 25 | return number % 10 === 1 && number !== 11 ? forms[2] : forms[3]; 26 | } else { 27 | return number % 10 === 1 && number !== 11 ? forms[0] : forms[1]; 28 | } 29 | } 30 | 31 | function relativeTimeWithPlural(number, withoutSuffix, key) { 32 | return number + ' ' + format(units[key], number, withoutSuffix); 33 | } 34 | 35 | return moment.defineLocale('lv', { 36 | months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), 37 | monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), 38 | weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'), 39 | weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'), 40 | weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'), 41 | longDateFormat : { 42 | LT : 'HH:mm', 43 | L : 'DD.MM.YYYY', 44 | LL : 'YYYY. [gada] D. MMMM', 45 | LLL : 'YYYY. [gada] D. MMMM, LT', 46 | LLLL : 'YYYY. [gada] D. MMMM, dddd, LT' 47 | }, 48 | calendar : { 49 | sameDay : '[Šodien pulksten] LT', 50 | nextDay : '[Rīt pulksten] LT', 51 | nextWeek : 'dddd [pulksten] LT', 52 | lastDay : '[Vakar pulksten] LT', 53 | lastWeek : '[Pagājušā] dddd [pulksten] LT', 54 | sameElse : 'L' 55 | }, 56 | relativeTime : { 57 | future : '%s vēlāk', 58 | past : '%s agrāk', 59 | s : 'dažas sekundes', 60 | m : 'minūti', 61 | mm : relativeTimeWithPlural, 62 | h : 'stundu', 63 | hh : relativeTimeWithPlural, 64 | d : 'dienu', 65 | dd : relativeTimeWithPlural, 66 | M : 'mēnesi', 67 | MM : relativeTimeWithPlural, 68 | y : 'gadu', 69 | yy : relativeTimeWithPlural 70 | }, 71 | ordinal : '%d.', 72 | week : { 73 | dow : 1, // Monday is the first day of the week. 74 | doy : 4 // The week that contains Jan 4th is the first week of the year. 75 | } 76 | }); 77 | })); 78 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/mk.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : macedonian (mk) 3 | // author : Borislav Mickov : https://github.com/B0k0 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('mk', { 15 | months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'), 16 | monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), 17 | weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'), 18 | weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'), 19 | weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'), 20 | longDateFormat : { 21 | LT : 'H:mm', 22 | L : 'D.MM.YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd, D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay : '[Денес во] LT', 29 | nextDay : '[Утре во] LT', 30 | nextWeek : 'dddd [во] LT', 31 | lastDay : '[Вчера во] LT', 32 | lastWeek : function () { 33 | switch (this.day()) { 34 | case 0: 35 | case 3: 36 | case 6: 37 | return '[Во изминатата] dddd [во] LT'; 38 | case 1: 39 | case 2: 40 | case 4: 41 | case 5: 42 | return '[Во изминатиот] dddd [во] LT'; 43 | } 44 | }, 45 | sameElse : 'L' 46 | }, 47 | relativeTime : { 48 | future : 'после %s', 49 | past : 'пред %s', 50 | s : 'неколку секунди', 51 | m : 'минута', 52 | mm : '%d минути', 53 | h : 'час', 54 | hh : '%d часа', 55 | d : 'ден', 56 | dd : '%d дена', 57 | M : 'месец', 58 | MM : '%d месеци', 59 | y : 'година', 60 | yy : '%d години' 61 | }, 62 | ordinal : function (number) { 63 | var lastDigit = number % 10, 64 | last2Digits = number % 100; 65 | if (number === 0) { 66 | return number + '-ев'; 67 | } else if (last2Digits === 0) { 68 | return number + '-ен'; 69 | } else if (last2Digits > 10 && last2Digits < 20) { 70 | return number + '-ти'; 71 | } else if (lastDigit === 1) { 72 | return number + '-ви'; 73 | } else if (lastDigit === 2) { 74 | return number + '-ри'; 75 | } else if (lastDigit === 7 || lastDigit === 8) { 76 | return number + '-ми'; 77 | } else { 78 | return number + '-ти'; 79 | } 80 | }, 81 | week : { 82 | dow : 1, // Monday is the first day of the week. 83 | doy : 7 // The week that contains Jan 1st is the first week of the year. 84 | } 85 | }); 86 | })); 87 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ml.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : malayalam (ml) 3 | // author : Floyd Pink : https://github.com/floydpink 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('ml', { 15 | months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'), 16 | monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'), 17 | weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'), 18 | weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), 19 | weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), 20 | longDateFormat : { 21 | LT : 'A h:mm -നു', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY, LT', 25 | LLLL : 'dddd, D MMMM YYYY, LT' 26 | }, 27 | calendar : { 28 | sameDay : '[ഇന്ന്] LT', 29 | nextDay : '[നാളെ] LT', 30 | nextWeek : 'dddd, LT', 31 | lastDay : '[ഇന്നലെ] LT', 32 | lastWeek : '[കഴിഞ്ഞ] dddd, LT', 33 | sameElse : 'L' 34 | }, 35 | relativeTime : { 36 | future : '%s കഴിഞ്ഞ്', 37 | past : '%s മുൻപ്', 38 | s : 'അൽപ നിമിഷങ്ങൾ', 39 | m : 'ഒരു മിനിറ്റ്', 40 | mm : '%d മിനിറ്റ്', 41 | h : 'ഒരു മണിക്കൂർ', 42 | hh : '%d മണിക്കൂർ', 43 | d : 'ഒരു ദിവസം', 44 | dd : '%d ദിവസം', 45 | M : 'ഒരു മാസം', 46 | MM : '%d മാസം', 47 | y : 'ഒരു വർഷം', 48 | yy : '%d വർഷം' 49 | }, 50 | meridiem : function (hour, minute, isLower) { 51 | if (hour < 4) { 52 | return 'രാത്രി'; 53 | } else if (hour < 12) { 54 | return 'രാവിലെ'; 55 | } else if (hour < 17) { 56 | return 'ഉച്ച കഴിഞ്ഞ്'; 57 | } else if (hour < 20) { 58 | return 'വൈകുന്നേരം'; 59 | } else { 60 | return 'രാത്രി'; 61 | } 62 | } 63 | }); 64 | })); 65 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/mr.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Marathi (mr) 3 | // author : Harshad Kale : https://github.com/kalehv 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var symbolMap = { 15 | '1': '१', 16 | '2': '२', 17 | '3': '३', 18 | '4': '४', 19 | '5': '५', 20 | '6': '६', 21 | '7': '७', 22 | '8': '८', 23 | '9': '९', 24 | '0': '०' 25 | }, 26 | numberMap = { 27 | '१': '1', 28 | '२': '2', 29 | '३': '3', 30 | '४': '4', 31 | '५': '5', 32 | '६': '6', 33 | '७': '7', 34 | '८': '8', 35 | '९': '9', 36 | '०': '0' 37 | }; 38 | 39 | return moment.defineLocale('mr', { 40 | months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'), 41 | monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'), 42 | weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), 43 | weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), 44 | weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), 45 | longDateFormat : { 46 | LT : 'A h:mm वाजता', 47 | L : 'DD/MM/YYYY', 48 | LL : 'D MMMM YYYY', 49 | LLL : 'D MMMM YYYY, LT', 50 | LLLL : 'dddd, D MMMM YYYY, LT' 51 | }, 52 | calendar : { 53 | sameDay : '[आज] LT', 54 | nextDay : '[उद्या] LT', 55 | nextWeek : 'dddd, LT', 56 | lastDay : '[काल] LT', 57 | lastWeek: '[मागील] dddd, LT', 58 | sameElse : 'L' 59 | }, 60 | relativeTime : { 61 | future : '%s नंतर', 62 | past : '%s पूर्वी', 63 | s : 'सेकंद', 64 | m: 'एक मिनिट', 65 | mm: '%d मिनिटे', 66 | h : 'एक तास', 67 | hh : '%d तास', 68 | d : 'एक दिवस', 69 | dd : '%d दिवस', 70 | M : 'एक महिना', 71 | MM : '%d महिने', 72 | y : 'एक वर्ष', 73 | yy : '%d वर्षे' 74 | }, 75 | preparse: function (string) { 76 | return string.replace(/[१२३४५६७८९०]/g, function (match) { 77 | return numberMap[match]; 78 | }); 79 | }, 80 | postformat: function (string) { 81 | return string.replace(/\d/g, function (match) { 82 | return symbolMap[match]; 83 | }); 84 | }, 85 | meridiem: function (hour, minute, isLower) 86 | { 87 | if (hour < 4) { 88 | return 'रात्री'; 89 | } else if (hour < 10) { 90 | return 'सकाळी'; 91 | } else if (hour < 17) { 92 | return 'दुपारी'; 93 | } else if (hour < 20) { 94 | return 'सायंकाळी'; 95 | } else { 96 | return 'रात्री'; 97 | } 98 | }, 99 | week : { 100 | dow : 0, // Sunday is the first day of the week. 101 | doy : 6 // The week that contains Jan 1st is the first week of the year. 102 | } 103 | }); 104 | })); 105 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ms-my.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Bahasa Malaysia (ms-MY) 3 | // author : Weldan Jamili : https://github.com/weldan 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('ms-my', { 15 | months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), 16 | monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), 17 | weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), 18 | weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), 19 | weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH.mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY [pukul] LT', 25 | LLLL : 'dddd, D MMMM YYYY [pukul] LT' 26 | }, 27 | meridiem : function (hours, minutes, isLower) { 28 | if (hours < 11) { 29 | return 'pagi'; 30 | } else if (hours < 15) { 31 | return 'tengahari'; 32 | } else if (hours < 19) { 33 | return 'petang'; 34 | } else { 35 | return 'malam'; 36 | } 37 | }, 38 | calendar : { 39 | sameDay : '[Hari ini pukul] LT', 40 | nextDay : '[Esok pukul] LT', 41 | nextWeek : 'dddd [pukul] LT', 42 | lastDay : '[Kelmarin pukul] LT', 43 | lastWeek : 'dddd [lepas pukul] LT', 44 | sameElse : 'L' 45 | }, 46 | relativeTime : { 47 | future : 'dalam %s', 48 | past : '%s yang lepas', 49 | s : 'beberapa saat', 50 | m : 'seminit', 51 | mm : '%d minit', 52 | h : 'sejam', 53 | hh : '%d jam', 54 | d : 'sehari', 55 | dd : '%d hari', 56 | M : 'sebulan', 57 | MM : '%d bulan', 58 | y : 'setahun', 59 | yy : '%d tahun' 60 | }, 61 | week : { 62 | dow : 1, // Monday is the first day of the week. 63 | doy : 7 // The week that contains Jan 1st is the first week of the year. 64 | } 65 | }); 66 | })); 67 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/my.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Burmese (my) 3 | // author : Squar team, mysquar.com 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var symbolMap = { 15 | '1': '၁', 16 | '2': '၂', 17 | '3': '၃', 18 | '4': '၄', 19 | '5': '၅', 20 | '6': '၆', 21 | '7': '၇', 22 | '8': '၈', 23 | '9': '၉', 24 | '0': '၀' 25 | }, numberMap = { 26 | '၁': '1', 27 | '၂': '2', 28 | '၃': '3', 29 | '၄': '4', 30 | '၅': '5', 31 | '၆': '6', 32 | '၇': '7', 33 | '၈': '8', 34 | '၉': '9', 35 | '၀': '0' 36 | }; 37 | return moment.defineLocale('my', { 38 | months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), 39 | monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), 40 | weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), 41 | weekdaysShort: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), 42 | weekdaysMin: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), 43 | longDateFormat: { 44 | LT: 'HH:mm', 45 | L: 'DD/MM/YYYY', 46 | LL: 'D MMMM YYYY', 47 | LLL: 'D MMMM YYYY LT', 48 | LLLL: 'dddd D MMMM YYYY LT' 49 | }, 50 | calendar: { 51 | sameDay: '[ယနေ.] LT [မှာ]', 52 | nextDay: '[မနက်ဖြန်] LT [မှာ]', 53 | nextWeek: 'dddd LT [မှာ]', 54 | lastDay: '[မနေ.က] LT [မှာ]', 55 | lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', 56 | sameElse: 'L' 57 | }, 58 | relativeTime: { 59 | future: 'လာမည့် %s မှာ', 60 | past: 'လွန်ခဲ့သော %s က', 61 | s: 'စက္ကန်.အနည်းငယ်', 62 | m: 'တစ်မိနစ်', 63 | mm: '%d မိနစ်', 64 | h: 'တစ်နာရီ', 65 | hh: '%d နာရီ', 66 | d: 'တစ်ရက်', 67 | dd: '%d ရက်', 68 | M: 'တစ်လ', 69 | MM: '%d လ', 70 | y: 'တစ်နှစ်', 71 | yy: '%d နှစ်' 72 | }, 73 | preparse: function (string) { 74 | return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { 75 | return numberMap[match]; 76 | }); 77 | }, 78 | postformat: function (string) { 79 | return string.replace(/\d/g, function (match) { 80 | return symbolMap[match]; 81 | }); 82 | }, 83 | week: { 84 | dow: 1, // Monday is the first day of the week. 85 | doy: 4 // The week that contains Jan 1st is the first week of the year. 86 | } 87 | }); 88 | })); 89 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/nb.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : norwegian bokmål (nb) 3 | // authors : Espen Hovlandsdal : https://github.com/rexxars 4 | // Sigurd Gartmann : https://github.com/sigurdga 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | return moment.defineLocale('nb', { 16 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), 17 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), 18 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), 19 | weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'), 20 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), 21 | longDateFormat : { 22 | LT : 'H.mm', 23 | L : 'DD.MM.YYYY', 24 | LL : 'D. MMMM YYYY', 25 | LLL : 'D. MMMM YYYY [kl.] LT', 26 | LLLL : 'dddd D. MMMM YYYY [kl.] LT' 27 | }, 28 | calendar : { 29 | sameDay: '[i dag kl.] LT', 30 | nextDay: '[i morgen kl.] LT', 31 | nextWeek: 'dddd [kl.] LT', 32 | lastDay: '[i går kl.] LT', 33 | lastWeek: '[forrige] dddd [kl.] LT', 34 | sameElse: 'L' 35 | }, 36 | relativeTime : { 37 | future : 'om %s', 38 | past : 'for %s siden', 39 | s : 'noen sekunder', 40 | m : 'ett minutt', 41 | mm : '%d minutter', 42 | h : 'en time', 43 | hh : '%d timer', 44 | d : 'en dag', 45 | dd : '%d dager', 46 | M : 'en måned', 47 | MM : '%d måneder', 48 | y : 'ett år', 49 | yy : '%d år' 50 | }, 51 | ordinal : '%d.', 52 | week : { 53 | dow : 1, // Monday is the first day of the week. 54 | doy : 4 // The week that contains Jan 4th is the first week of the year. 55 | } 56 | }); 57 | })); 58 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ne.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : nepali/nepalese 3 | // author : suvash : https://github.com/suvash 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var symbolMap = { 15 | '1': '१', 16 | '2': '२', 17 | '3': '३', 18 | '4': '४', 19 | '5': '५', 20 | '6': '६', 21 | '7': '७', 22 | '8': '८', 23 | '9': '९', 24 | '0': '०' 25 | }, 26 | numberMap = { 27 | '१': '1', 28 | '२': '2', 29 | '३': '3', 30 | '४': '4', 31 | '५': '5', 32 | '६': '6', 33 | '७': '7', 34 | '८': '8', 35 | '९': '9', 36 | '०': '0' 37 | }; 38 | 39 | return moment.defineLocale('ne', { 40 | months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'), 41 | monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'), 42 | weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), 43 | weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), 44 | weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split('_'), 45 | longDateFormat : { 46 | LT : 'Aको h:mm बजे', 47 | L : 'DD/MM/YYYY', 48 | LL : 'D MMMM YYYY', 49 | LLL : 'D MMMM YYYY, LT', 50 | LLLL : 'dddd, D MMMM YYYY, LT' 51 | }, 52 | preparse: function (string) { 53 | return string.replace(/[१२३४५६७८९०]/g, function (match) { 54 | return numberMap[match]; 55 | }); 56 | }, 57 | postformat: function (string) { 58 | return string.replace(/\d/g, function (match) { 59 | return symbolMap[match]; 60 | }); 61 | }, 62 | meridiem : function (hour, minute, isLower) { 63 | if (hour < 3) { 64 | return 'राती'; 65 | } else if (hour < 10) { 66 | return 'बिहान'; 67 | } else if (hour < 15) { 68 | return 'दिउँसो'; 69 | } else if (hour < 18) { 70 | return 'बेलुका'; 71 | } else if (hour < 20) { 72 | return 'साँझ'; 73 | } else { 74 | return 'राती'; 75 | } 76 | }, 77 | calendar : { 78 | sameDay : '[आज] LT', 79 | nextDay : '[भोली] LT', 80 | nextWeek : '[आउँदो] dddd[,] LT', 81 | lastDay : '[हिजो] LT', 82 | lastWeek : '[गएको] dddd[,] LT', 83 | sameElse : 'L' 84 | }, 85 | relativeTime : { 86 | future : '%sमा', 87 | past : '%s अगाडी', 88 | s : 'केही समय', 89 | m : 'एक मिनेट', 90 | mm : '%d मिनेट', 91 | h : 'एक घण्टा', 92 | hh : '%d घण्टा', 93 | d : 'एक दिन', 94 | dd : '%d दिन', 95 | M : 'एक महिना', 96 | MM : '%d महिना', 97 | y : 'एक बर्ष', 98 | yy : '%d बर्ष' 99 | }, 100 | week : { 101 | dow : 1, // Monday is the first day of the week. 102 | doy : 7 // The week that contains Jan 1st is the first week of the year. 103 | } 104 | }); 105 | })); 106 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/nl.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : dutch (nl) 3 | // author : Joris Röling : https://github.com/jjupiter 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), 15 | monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); 16 | 17 | return moment.defineLocale('nl', { 18 | months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), 19 | monthsShort : function (m, format) { 20 | if (/-MMM-/.test(format)) { 21 | return monthsShortWithoutDots[m.month()]; 22 | } else { 23 | return monthsShortWithDots[m.month()]; 24 | } 25 | }, 26 | weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), 27 | weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), 28 | weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), 29 | longDateFormat : { 30 | LT : 'HH:mm', 31 | L : 'DD-MM-YYYY', 32 | LL : 'D MMMM YYYY', 33 | LLL : 'D MMMM YYYY LT', 34 | LLLL : 'dddd D MMMM YYYY LT' 35 | }, 36 | calendar : { 37 | sameDay: '[vandaag om] LT', 38 | nextDay: '[morgen om] LT', 39 | nextWeek: 'dddd [om] LT', 40 | lastDay: '[gisteren om] LT', 41 | lastWeek: '[afgelopen] dddd [om] LT', 42 | sameElse: 'L' 43 | }, 44 | relativeTime : { 45 | future : 'over %s', 46 | past : '%s geleden', 47 | s : 'een paar seconden', 48 | m : 'één minuut', 49 | mm : '%d minuten', 50 | h : 'één uur', 51 | hh : '%d uur', 52 | d : 'één dag', 53 | dd : '%d dagen', 54 | M : 'één maand', 55 | MM : '%d maanden', 56 | y : 'één jaar', 57 | yy : '%d jaar' 58 | }, 59 | ordinal : function (number) { 60 | return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); 61 | }, 62 | week : { 63 | dow : 1, // Monday is the first day of the week. 64 | doy : 4 // The week that contains Jan 4th is the first week of the year. 65 | } 66 | }); 67 | })); 68 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/nn.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : norwegian nynorsk (nn) 3 | // author : https://github.com/mechuwind 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('nn', { 15 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), 16 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), 17 | weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), 18 | weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'), 19 | weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD.MM.YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[I dag klokka] LT', 29 | nextDay: '[I morgon klokka] LT', 30 | nextWeek: 'dddd [klokka] LT', 31 | lastDay: '[I går klokka] LT', 32 | lastWeek: '[Føregåande] dddd [klokka] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'om %s', 37 | past : 'for %s sidan', 38 | s : 'nokre sekund', 39 | m : 'eit minutt', 40 | mm : '%d minutt', 41 | h : 'ein time', 42 | hh : '%d timar', 43 | d : 'ein dag', 44 | dd : '%d dagar', 45 | M : 'ein månad', 46 | MM : '%d månader', 47 | y : 'eit år', 48 | yy : '%d år' 49 | }, 50 | ordinal : '%d.', 51 | week : { 52 | dow : 1, // Monday is the first day of the week. 53 | doy : 4 // The week that contains Jan 4th is the first week of the year. 54 | } 55 | }); 56 | })); 57 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/pt-br.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : brazilian portuguese (pt-br) 3 | // author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('pt-br', { 15 | months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), 16 | monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), 17 | weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'), 18 | weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), 19 | weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D [de] MMMM [de] YYYY', 24 | LLL : 'D [de] MMMM [de] YYYY [às] LT', 25 | LLLL : 'dddd, D [de] MMMM [de] YYYY [às] LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Hoje às] LT', 29 | nextDay: '[Amanhã às] LT', 30 | nextWeek: 'dddd [às] LT', 31 | lastDay: '[Ontem às] LT', 32 | lastWeek: function () { 33 | return (this.day() === 0 || this.day() === 6) ? 34 | '[Último] dddd [às] LT' : // Saturday + Sunday 35 | '[Última] dddd [às] LT'; // Monday - Friday 36 | }, 37 | sameElse: 'L' 38 | }, 39 | relativeTime : { 40 | future : 'em %s', 41 | past : '%s atrás', 42 | s : 'segundos', 43 | m : 'um minuto', 44 | mm : '%d minutos', 45 | h : 'uma hora', 46 | hh : '%d horas', 47 | d : 'um dia', 48 | dd : '%d dias', 49 | M : 'um mês', 50 | MM : '%d meses', 51 | y : 'um ano', 52 | yy : '%d anos' 53 | }, 54 | ordinal : '%dº' 55 | }); 56 | })); 57 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/pt.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : portuguese (pt) 3 | // author : Jefferson : https://github.com/jalex79 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('pt', { 15 | months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), 16 | monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), 17 | weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'), 18 | weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), 19 | weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D [de] MMMM [de] YYYY', 24 | LLL : 'D [de] MMMM [de] YYYY LT', 25 | LLLL : 'dddd, D [de] MMMM [de] YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Hoje às] LT', 29 | nextDay: '[Amanhã às] LT', 30 | nextWeek: 'dddd [às] LT', 31 | lastDay: '[Ontem às] LT', 32 | lastWeek: function () { 33 | return (this.day() === 0 || this.day() === 6) ? 34 | '[Último] dddd [às] LT' : // Saturday + Sunday 35 | '[Última] dddd [às] LT'; // Monday - Friday 36 | }, 37 | sameElse: 'L' 38 | }, 39 | relativeTime : { 40 | future : 'em %s', 41 | past : 'há %s', 42 | s : 'segundos', 43 | m : 'um minuto', 44 | mm : '%d minutos', 45 | h : 'uma hora', 46 | hh : '%d horas', 47 | d : 'um dia', 48 | dd : '%d dias', 49 | M : 'um mês', 50 | MM : '%d meses', 51 | y : 'um ano', 52 | yy : '%d anos' 53 | }, 54 | ordinal : '%dº', 55 | week : { 56 | dow : 1, // Monday is the first day of the week. 57 | doy : 4 // The week that contains Jan 4th is the first week of the year. 58 | } 59 | }); 60 | })); 61 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/ro.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : romanian (ro) 3 | // author : Vlad Gurdiga : https://github.com/gurdiga 4 | // author : Valentin Agachi : https://github.com/avaly 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | function relativeTimeWithPlural(number, withoutSuffix, key) { 16 | var format = { 17 | 'mm': 'minute', 18 | 'hh': 'ore', 19 | 'dd': 'zile', 20 | 'MM': 'luni', 21 | 'yy': 'ani' 22 | }, 23 | separator = ' '; 24 | if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { 25 | separator = ' de '; 26 | } 27 | 28 | return number + separator + format[key]; 29 | } 30 | 31 | return moment.defineLocale('ro', { 32 | months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), 33 | monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), 34 | weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), 35 | weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), 36 | weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), 37 | longDateFormat : { 38 | LT : 'H:mm', 39 | L : 'DD.MM.YYYY', 40 | LL : 'D MMMM YYYY', 41 | LLL : 'D MMMM YYYY H:mm', 42 | LLLL : 'dddd, D MMMM YYYY H:mm' 43 | }, 44 | calendar : { 45 | sameDay: '[azi la] LT', 46 | nextDay: '[mâine la] LT', 47 | nextWeek: 'dddd [la] LT', 48 | lastDay: '[ieri la] LT', 49 | lastWeek: '[fosta] dddd [la] LT', 50 | sameElse: 'L' 51 | }, 52 | relativeTime : { 53 | future : 'peste %s', 54 | past : '%s în urmă', 55 | s : 'câteva secunde', 56 | m : 'un minut', 57 | mm : relativeTimeWithPlural, 58 | h : 'o oră', 59 | hh : relativeTimeWithPlural, 60 | d : 'o zi', 61 | dd : relativeTimeWithPlural, 62 | M : 'o lună', 63 | MM : relativeTimeWithPlural, 64 | y : 'un an', 65 | yy : relativeTimeWithPlural 66 | }, 67 | week : { 68 | dow : 1, // Monday is the first day of the week. 69 | doy : 7 // The week that contains Jan 1st is the first week of the year. 70 | } 71 | }); 72 | })); 73 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/sq.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Albanian (sq) 3 | // author : Flakërim Ismani : https://github.com/flakerimi 4 | // author: Menelion Elensúle: https://github.com/Oire (tests) 5 | // author : Oerd Cukalla : https://github.com/oerd (fixes) 6 | 7 | (function (factory) { 8 | if (typeof define === 'function' && define.amd) { 9 | define(['moment'], factory); // AMD 10 | } else if (typeof exports === 'object') { 11 | module.exports = factory(require('../moment')); // Node 12 | } else { 13 | factory(window.moment); // Browser global 14 | } 15 | }(function (moment) { 16 | return moment.defineLocale('sq', { 17 | months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), 18 | monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), 19 | weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), 20 | weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), 21 | weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'), 22 | meridiem : function (hours, minutes, isLower) { 23 | return hours < 12 ? 'PD' : 'MD'; 24 | }, 25 | longDateFormat : { 26 | LT : 'HH:mm', 27 | L : 'DD/MM/YYYY', 28 | LL : 'D MMMM YYYY', 29 | LLL : 'D MMMM YYYY LT', 30 | LLLL : 'dddd, D MMMM YYYY LT' 31 | }, 32 | calendar : { 33 | sameDay : '[Sot në] LT', 34 | nextDay : '[Nesër në] LT', 35 | nextWeek : 'dddd [në] LT', 36 | lastDay : '[Dje në] LT', 37 | lastWeek : 'dddd [e kaluar në] LT', 38 | sameElse : 'L' 39 | }, 40 | relativeTime : { 41 | future : 'në %s', 42 | past : '%s më parë', 43 | s : 'disa sekonda', 44 | m : 'një minutë', 45 | mm : '%d minuta', 46 | h : 'një orë', 47 | hh : '%d orë', 48 | d : 'një ditë', 49 | dd : '%d ditë', 50 | M : 'një muaj', 51 | MM : '%d muaj', 52 | y : 'një vit', 53 | yy : '%d vite' 54 | }, 55 | ordinal : '%d.', 56 | week : { 57 | dow : 1, // Monday is the first day of the week. 58 | doy : 4 // The week that contains Jan 4th is the first week of the year. 59 | } 60 | }); 61 | })); 62 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/sv.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : swedish (sv) 3 | // author : Jens Alm : https://github.com/ulmus 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('sv', { 15 | months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), 16 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), 17 | weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), 18 | weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'), 19 | weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'YYYY-MM-DD', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Idag] LT', 29 | nextDay: '[Imorgon] LT', 30 | lastDay: '[Igår] LT', 31 | nextWeek: 'dddd LT', 32 | lastWeek: '[Förra] dddd[en] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'om %s', 37 | past : 'för %s sedan', 38 | s : 'några sekunder', 39 | m : 'en minut', 40 | mm : '%d minuter', 41 | h : 'en timme', 42 | hh : '%d timmar', 43 | d : 'en dag', 44 | dd : '%d dagar', 45 | M : 'en månad', 46 | MM : '%d månader', 47 | y : 'ett år', 48 | yy : '%d år' 49 | }, 50 | ordinal : function (number) { 51 | var b = number % 10, 52 | output = (~~(number % 100 / 10) === 1) ? 'e' : 53 | (b === 1) ? 'a' : 54 | (b === 2) ? 'a' : 55 | (b === 3) ? 'e' : 'e'; 56 | return number + output; 57 | }, 58 | week : { 59 | dow : 1, // Monday is the first day of the week. 60 | doy : 4 // The week that contains Jan 4th is the first week of the year. 61 | } 62 | }); 63 | })); 64 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/th.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : thai (th) 3 | // author : Kridsada Thanabulpong : https://github.com/sirn 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('th', { 15 | months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), 16 | monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'), 17 | weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), 18 | weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference 19 | weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), 20 | longDateFormat : { 21 | LT : 'H นาฬิกา m นาที', 22 | L : 'YYYY/MM/DD', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY เวลา LT', 25 | LLLL : 'วันddddที่ D MMMM YYYY เวลา LT' 26 | }, 27 | meridiem : function (hour, minute, isLower) { 28 | if (hour < 12) { 29 | return 'ก่อนเที่ยง'; 30 | } else { 31 | return 'หลังเที่ยง'; 32 | } 33 | }, 34 | calendar : { 35 | sameDay : '[วันนี้ เวลา] LT', 36 | nextDay : '[พรุ่งนี้ เวลา] LT', 37 | nextWeek : 'dddd[หน้า เวลา] LT', 38 | lastDay : '[เมื่อวานนี้ เวลา] LT', 39 | lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', 40 | sameElse : 'L' 41 | }, 42 | relativeTime : { 43 | future : 'อีก %s', 44 | past : '%sที่แล้ว', 45 | s : 'ไม่กี่วินาที', 46 | m : '1 นาที', 47 | mm : '%d นาที', 48 | h : '1 ชั่วโมง', 49 | hh : '%d ชั่วโมง', 50 | d : '1 วัน', 51 | dd : '%d วัน', 52 | M : '1 เดือน', 53 | MM : '%d เดือน', 54 | y : '1 ปี', 55 | yy : '%d ปี' 56 | } 57 | }); 58 | })); 59 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/tl-ph.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Tagalog/Filipino (tl-ph) 3 | // author : Dan Hagman 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('tl-ph', { 15 | months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), 16 | monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), 17 | weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), 18 | weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), 19 | weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'MM/D/YYYY', 23 | LL : 'MMMM D, YYYY', 24 | LLL : 'MMMM D, YYYY LT', 25 | LLLL : 'dddd, MMMM DD, YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[Ngayon sa] LT', 29 | nextDay: '[Bukas sa] LT', 30 | nextWeek: 'dddd [sa] LT', 31 | lastDay: '[Kahapon sa] LT', 32 | lastWeek: 'dddd [huling linggo] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'sa loob ng %s', 37 | past : '%s ang nakalipas', 38 | s : 'ilang segundo', 39 | m : 'isang minuto', 40 | mm : '%d minuto', 41 | h : 'isang oras', 42 | hh : '%d oras', 43 | d : 'isang araw', 44 | dd : '%d araw', 45 | M : 'isang buwan', 46 | MM : '%d buwan', 47 | y : 'isang taon', 48 | yy : '%d taon' 49 | }, 50 | ordinal : function (number) { 51 | return number; 52 | }, 53 | week : { 54 | dow : 1, // Monday is the first day of the week. 55 | doy : 4 // The week that contains Jan 4th is the first week of the year. 56 | } 57 | }); 58 | })); 59 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/tr.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : turkish (tr) 3 | // authors : Erhan Gundogan : https://github.com/erhangundogan, 4 | // Burak Yiğit Kaya: https://github.com/BYK 5 | 6 | (function (factory) { 7 | if (typeof define === 'function' && define.amd) { 8 | define(['moment'], factory); // AMD 9 | } else if (typeof exports === 'object') { 10 | module.exports = factory(require('../moment')); // Node 11 | } else { 12 | factory(window.moment); // Browser global 13 | } 14 | }(function (moment) { 15 | var suffixes = { 16 | 1: '\'inci', 17 | 5: '\'inci', 18 | 8: '\'inci', 19 | 70: '\'inci', 20 | 80: '\'inci', 21 | 22 | 2: '\'nci', 23 | 7: '\'nci', 24 | 20: '\'nci', 25 | 50: '\'nci', 26 | 27 | 3: '\'üncü', 28 | 4: '\'üncü', 29 | 100: '\'üncü', 30 | 31 | 6: '\'ncı', 32 | 33 | 9: '\'uncu', 34 | 10: '\'uncu', 35 | 30: '\'uncu', 36 | 37 | 60: '\'ıncı', 38 | 90: '\'ıncı' 39 | }; 40 | 41 | return moment.defineLocale('tr', { 42 | months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), 43 | monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), 44 | weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), 45 | weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), 46 | weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), 47 | longDateFormat : { 48 | LT : 'HH:mm', 49 | L : 'DD.MM.YYYY', 50 | LL : 'D MMMM YYYY', 51 | LLL : 'D MMMM YYYY LT', 52 | LLLL : 'dddd, D MMMM YYYY LT' 53 | }, 54 | calendar : { 55 | sameDay : '[bugün saat] LT', 56 | nextDay : '[yarın saat] LT', 57 | nextWeek : '[haftaya] dddd [saat] LT', 58 | lastDay : '[dün] LT', 59 | lastWeek : '[geçen hafta] dddd [saat] LT', 60 | sameElse : 'L' 61 | }, 62 | relativeTime : { 63 | future : '%s sonra', 64 | past : '%s önce', 65 | s : 'birkaç saniye', 66 | m : 'bir dakika', 67 | mm : '%d dakika', 68 | h : 'bir saat', 69 | hh : '%d saat', 70 | d : 'bir gün', 71 | dd : '%d gün', 72 | M : 'bir ay', 73 | MM : '%d ay', 74 | y : 'bir yıl', 75 | yy : '%d yıl' 76 | }, 77 | ordinal : function (number) { 78 | if (number === 0) { // special case for zero 79 | return number + '\'ıncı'; 80 | } 81 | var a = number % 10, 82 | b = number % 100 - a, 83 | c = number >= 100 ? 100 : null; 84 | 85 | return number + (suffixes[a] || suffixes[b] || suffixes[c]); 86 | }, 87 | week : { 88 | dow : 1, // Monday is the first day of the week. 89 | doy : 7 // The week that contains Jan 1st is the first week of the year. 90 | } 91 | }); 92 | })); 93 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/tzm-latn.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn) 3 | // author : Abdel Said : https://github.com/abdelsaid 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('tzm-latn', { 15 | months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), 16 | monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), 17 | weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), 18 | weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), 19 | weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[asdkh g] LT', 29 | nextDay: '[aska g] LT', 30 | nextWeek: 'dddd [g] LT', 31 | lastDay: '[assant g] LT', 32 | lastWeek: 'dddd [g] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'dadkh s yan %s', 37 | past : 'yan %s', 38 | s : 'imik', 39 | m : 'minuḍ', 40 | mm : '%d minuḍ', 41 | h : 'saɛa', 42 | hh : '%d tassaɛin', 43 | d : 'ass', 44 | dd : '%d ossan', 45 | M : 'ayowr', 46 | MM : '%d iyyirn', 47 | y : 'asgas', 48 | yy : '%d isgasn' 49 | }, 50 | week : { 51 | dow : 6, // Saturday is the first day of the week. 52 | doy : 12 // The week that contains Jan 1st is the first week of the year. 53 | } 54 | }); 55 | })); 56 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/tzm.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : Morocco Central Atlas Tamaziɣt (tzm) 3 | // author : Abdel Said : https://github.com/abdelsaid 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('tzm', { 15 | months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), 16 | monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), 17 | weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), 18 | weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), 19 | weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'dddd D MMMM YYYY LT' 26 | }, 27 | calendar : { 28 | sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', 29 | nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', 30 | nextWeek: 'dddd [ⴴ] LT', 31 | lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', 32 | lastWeek: 'dddd [ⴴ] LT', 33 | sameElse: 'L' 34 | }, 35 | relativeTime : { 36 | future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', 37 | past : 'ⵢⴰⵏ %s', 38 | s : 'ⵉⵎⵉⴽ', 39 | m : 'ⵎⵉⵏⵓⴺ', 40 | mm : '%d ⵎⵉⵏⵓⴺ', 41 | h : 'ⵙⴰⵄⴰ', 42 | hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', 43 | d : 'ⴰⵙⵙ', 44 | dd : '%d oⵙⵙⴰⵏ', 45 | M : 'ⴰⵢoⵓⵔ', 46 | MM : '%d ⵉⵢⵢⵉⵔⵏ', 47 | y : 'ⴰⵙⴳⴰⵙ', 48 | yy : '%d ⵉⵙⴳⴰⵙⵏ' 49 | }, 50 | week : { 51 | dow : 6, // Saturday is the first day of the week. 52 | doy : 12 // The week that contains Jan 1st is the first week of the year. 53 | } 54 | }); 55 | })); 56 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/uz.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : uzbek (uz) 3 | // author : Sardor Muminov : https://github.com/muminoff 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('uz', { 15 | months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), 16 | monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), 17 | weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), 18 | weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), 19 | weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM YYYY', 24 | LLL : 'D MMMM YYYY LT', 25 | LLLL : 'D MMMM YYYY, dddd LT' 26 | }, 27 | calendar : { 28 | sameDay : '[Бугун соат] LT [да]', 29 | nextDay : '[Эртага] LT [да]', 30 | nextWeek : 'dddd [куни соат] LT [да]', 31 | lastDay : '[Кеча соат] LT [да]', 32 | lastWeek : '[Утган] dddd [куни соат] LT [да]', 33 | sameElse : 'L' 34 | }, 35 | relativeTime : { 36 | future : 'Якин %s ичида', 37 | past : 'Бир неча %s олдин', 38 | s : 'фурсат', 39 | m : 'бир дакика', 40 | mm : '%d дакика', 41 | h : 'бир соат', 42 | hh : '%d соат', 43 | d : 'бир кун', 44 | dd : '%d кун', 45 | M : 'бир ой', 46 | MM : '%d ой', 47 | y : 'бир йил', 48 | yy : '%d йил' 49 | }, 50 | week : { 51 | dow : 1, // Monday is the first day of the week. 52 | doy : 7 // The week that contains Jan 4th is the first week of the year. 53 | } 54 | }); 55 | })); 56 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/vi.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : vietnamese (vi) 3 | // author : Bang Nguyen : https://github.com/bangnk 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('vi', { 15 | months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'), 16 | monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), 17 | weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), 18 | weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), 19 | weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), 20 | longDateFormat : { 21 | LT : 'HH:mm', 22 | L : 'DD/MM/YYYY', 23 | LL : 'D MMMM [năm] YYYY', 24 | LLL : 'D MMMM [năm] YYYY LT', 25 | LLLL : 'dddd, D MMMM [năm] YYYY LT', 26 | l : 'DD/M/YYYY', 27 | ll : 'D MMM YYYY', 28 | lll : 'D MMM YYYY LT', 29 | llll : 'ddd, D MMM YYYY LT' 30 | }, 31 | calendar : { 32 | sameDay: '[Hôm nay lúc] LT', 33 | nextDay: '[Ngày mai lúc] LT', 34 | nextWeek: 'dddd [tuần tới lúc] LT', 35 | lastDay: '[Hôm qua lúc] LT', 36 | lastWeek: 'dddd [tuần rồi lúc] LT', 37 | sameElse: 'L' 38 | }, 39 | relativeTime : { 40 | future : '%s tới', 41 | past : '%s trước', 42 | s : 'vài giây', 43 | m : 'một phút', 44 | mm : '%d phút', 45 | h : 'một giờ', 46 | hh : '%d giờ', 47 | d : 'một ngày', 48 | dd : '%d ngày', 49 | M : 'một tháng', 50 | MM : '%d tháng', 51 | y : 'một năm', 52 | yy : '%d năm' 53 | }, 54 | ordinal : function (number) { 55 | return number; 56 | }, 57 | week : { 58 | dow : 1, // Monday is the first day of the week. 59 | doy : 4 // The week that contains Jan 4th is the first week of the year. 60 | } 61 | }); 62 | })); 63 | -------------------------------------------------------------------------------- /src/node_modules/moment/locale/zh-tw.js: -------------------------------------------------------------------------------- 1 | // moment.js locale configuration 2 | // locale : traditional chinese (zh-tw) 3 | // author : Ben : https://github.com/ben-lin 4 | 5 | (function (factory) { 6 | if (typeof define === 'function' && define.amd) { 7 | define(['moment'], factory); // AMD 8 | } else if (typeof exports === 'object') { 9 | module.exports = factory(require('../moment')); // Node 10 | } else { 11 | factory(window.moment); // Browser global 12 | } 13 | }(function (moment) { 14 | return moment.defineLocale('zh-tw', { 15 | months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), 16 | monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), 17 | weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), 18 | weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), 19 | weekdaysMin : '日_一_二_三_四_五_六'.split('_'), 20 | longDateFormat : { 21 | LT : 'Ah點mm', 22 | L : 'YYYY年MMMD日', 23 | LL : 'YYYY年MMMD日', 24 | LLL : 'YYYY年MMMD日LT', 25 | LLLL : 'YYYY年MMMD日ddddLT', 26 | l : 'YYYY年MMMD日', 27 | ll : 'YYYY年MMMD日', 28 | lll : 'YYYY年MMMD日LT', 29 | llll : 'YYYY年MMMD日ddddLT' 30 | }, 31 | meridiem : function (hour, minute, isLower) { 32 | var hm = hour * 100 + minute; 33 | if (hm < 900) { 34 | return '早上'; 35 | } else if (hm < 1130) { 36 | return '上午'; 37 | } else if (hm < 1230) { 38 | return '中午'; 39 | } else if (hm < 1800) { 40 | return '下午'; 41 | } else { 42 | return '晚上'; 43 | } 44 | }, 45 | calendar : { 46 | sameDay : '[今天]LT', 47 | nextDay : '[明天]LT', 48 | nextWeek : '[下]ddddLT', 49 | lastDay : '[昨天]LT', 50 | lastWeek : '[上]ddddLT', 51 | sameElse : 'L' 52 | }, 53 | ordinal : function (number, period) { 54 | switch (period) { 55 | case 'd' : 56 | case 'D' : 57 | case 'DDD' : 58 | return number + '日'; 59 | case 'M' : 60 | return number + '月'; 61 | case 'w' : 62 | case 'W' : 63 | return number + '週'; 64 | default : 65 | return number; 66 | } 67 | }, 68 | relativeTime : { 69 | future : '%s內', 70 | past : '%s前', 71 | s : '幾秒', 72 | m : '一分鐘', 73 | mm : '%d分鐘', 74 | h : '一小時', 75 | hh : '%d小時', 76 | d : '一天', 77 | dd : '%d天', 78 | M : '一個月', 79 | MM : '%d個月', 80 | y : '一年', 81 | yy : '%d年' 82 | } 83 | }); 84 | })); 85 | -------------------------------------------------------------------------------- /src/node_modules/moment/package.js: -------------------------------------------------------------------------------- 1 | var profile = { 2 | resourceTags: { 3 | ignore: function(filename, mid){ 4 | // only include moment/moment 5 | return mid != "moment/moment"; 6 | }, 7 | amd: function(filename, mid){ 8 | return /\.js$/.test(filename); 9 | } 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/bump_version.js: -------------------------------------------------------------------------------- 1 | module.exports = function (grunt) { 2 | grunt.registerTask('bump_version', function (version) { 3 | if (!version || version.split('.').length !== 3) { 4 | grunt.fail.fatal('malformed version. Use\n\n grunt bump_version:1.2.3') 5 | } 6 | 7 | grunt.config('string-replace.moment-js', { 8 | files: {'moment.js': 'moment.js'}, 9 | options: { 10 | replacements: [ 11 | { 12 | pattern: /\/\/! version : .*/, 13 | replacement: '//! version : ' + version 14 | }, { 15 | pattern: /VERSION = '.*'/, 16 | replacement: "VERSION = '" + version + "'" 17 | } 18 | ] 19 | } 20 | }); 21 | 22 | grunt.config('string-replace.package-json', { 23 | files: {'package.json': 'package.json'}, 24 | options: { 25 | replacements: [ 26 | { 27 | pattern: /"version": .*/, 28 | replacement: '"version": "' + version + '",' 29 | } 30 | ] 31 | } 32 | }); 33 | 34 | grunt.config('string-replace.bower-json', { 35 | files: {'bower.json': 'bower.json'}, 36 | options: { 37 | replacements: [ 38 | { 39 | pattern: /"version": .*/, 40 | replacement: '"version": "' + version + '",' 41 | } 42 | ] 43 | } 44 | }); 45 | 46 | grunt.config('string-replace.component-json', { 47 | files: {'component.json': 'component.json'}, 48 | options: { 49 | replacements: [ 50 | { 51 | pattern: /"version": .*/, 52 | replacement: '"version": "' + version + '",' 53 | } 54 | ] 55 | } 56 | }); 57 | 58 | grunt.task.run([ 59 | 'string-replace:moment-js', 60 | 'string-replace:package-json', 61 | 'string-replace:bower-json', 62 | 'string-replace:component-json' 63 | ]); 64 | }); 65 | }; 66 | -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/check_sauce_creds.js: -------------------------------------------------------------------------------- 1 | module.exports = function (grunt) { 2 | 3 | // Pull Requests do not have secure variables enabled for security reasons. 4 | // Use this task before launching travis-sauce-browser task, so it would 5 | // exit early and won't try connecting to saucelabs without credentials. 6 | grunt.registerTask('check-sauce-creds', function () { 7 | if (process.env.SAUCE_USERNAME === undefined) { 8 | grunt.log.writeln('No sauce credentials found'); 9 | grunt.task.clearQueue(); 10 | } else { 11 | grunt.log.writeln('Sauce credentials found'); 12 | } 13 | }); 14 | }; 15 | -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/component.js: -------------------------------------------------------------------------------- 1 | module.exports = function (grunt) { 2 | grunt.registerTask('component', function () { 3 | var config = JSON.parse(grunt.file.read('component.json')); 4 | 5 | config.files = grunt.file.expand('locale/*.js'); 6 | config.files.unshift('moment.js'); 7 | 8 | grunt.file.write('component.json', JSON.stringify(config, true, 2) + '\n'); 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/embed_locales.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function (grunt) { 3 | 4 | grunt.registerTask('embedLocales', function () { 5 | var config = grunt.config('embedLocales'); 6 | 7 | var files = grunt.file.expand(config.targetLocales); 8 | var embeddedContents = determineEmbeddedContent(files); 9 | 10 | var momentContents = grunt.file.read(config.moment); 11 | var modifiedContents = momentContents.replace('/* EMBED_LOCALES */', function () { 12 | // If we don't do this, $ symbols in locale files may get interpreted in 13 | // the regex replacement 14 | return embeddedContents; 15 | }); 16 | 17 | grunt.file.write(config.dest, modifiedContents); 18 | }); 19 | 20 | var languageReset = 'moment.locale(\'en\');' 21 | 22 | function determineEmbeddedContent(files) { 23 | var embeddedContent = ''; 24 | files.forEach(function (file) { 25 | embeddedContent += transformFile(file); 26 | }); 27 | embeddedContent += '\n ' + languageReset + '\n'; 28 | return embeddedContent; 29 | } 30 | 31 | var reTransform = /function \(factory\) \{[^]*\}(?=\(function \(moment\) \{)/gm; 32 | var replaceWith = 33 | 'function (factory) {\n' + 34 | ' factory(moment);\n' + 35 | '}'; 36 | 37 | function transformFile(file) { 38 | var fileContents = grunt.file.read(file); 39 | 40 | if (!fileContents.match(reTransform)) { 41 | grunt.warn('Warning: all locale files must use the common UMD wrapper pattern. Failed locale file: ' + file); 42 | return ''; 43 | } 44 | 45 | return fileContents.replace(reTransform, replaceWith); 46 | } 47 | 48 | }; 49 | 50 | -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/history.js: -------------------------------------------------------------------------------- 1 | var https = require('https'), 2 | zlib = require('zlib'), 3 | path = require('path'), 4 | fs = require('fs'); 5 | 6 | var count = 0; 7 | var resolved = 0; 8 | 9 | var outputs = []; 10 | 11 | var done; 12 | 13 | function check() { 14 | if (resolved === count) { 15 | normalize(); 16 | display(); 17 | } 18 | } 19 | 20 | function makeBar(length) { 21 | var i = ''; 22 | while (i.length < length) { 23 | i += '='; 24 | } 25 | return i; 26 | } 27 | 28 | function normalize() { 29 | var i, 30 | max = 0, 31 | max2 = 0; 32 | for (i = 0; i < count; i ++) { 33 | max = Math.max(max, outputs[i].gzip); 34 | max2 = Math.max(max2, outputs[i].original); 35 | } 36 | for (i = 0; i < count; i ++) { 37 | outputs[i].bargraph = makeBar((outputs[i].gzip / max) * 80); 38 | outputs[i].bargraph2 = makeBar((outputs[i].original / max2) * 80); 39 | } 40 | } 41 | 42 | function display() { 43 | var i; 44 | for (i = 0; i < count; i ++) { 45 | console.log(outputs[i].version + ' ' + outputs[i].gzip + ' ' + outputs[i].original); 46 | console.log('gzip ' + outputs[i].bargraph); 47 | console.log('orig ' + outputs[i].bargraph2); 48 | } 49 | done(); 50 | } 51 | 52 | function getSizeAtVersion(version, path) { 53 | var data = '', 54 | op = {}, 55 | 56 | req = https.request({ 57 | host: 'raw.github.com', 58 | port: 443, 59 | path: '/timrwood/moment/' + version + path 60 | }, function (res) { 61 | res.setEncoding('utf8'); 62 | res.on('data', function (chunk) { 63 | data += chunk; 64 | }); 65 | res.on('end', function (e) { 66 | zlib.gzip(data, function (error, result) { 67 | op.version = version; 68 | op.gzip = result.length; 69 | op.original = data.length; 70 | resolved ++; 71 | check(); 72 | }); 73 | }); 74 | }); 75 | 76 | req.on('error', function (e) { 77 | console.log('problem with request: ' + e.message); 78 | }); 79 | req.end(); 80 | count++; 81 | outputs.push(op); 82 | } 83 | 84 | function getRemote() { 85 | var old_versions = '1.0.1 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.4.0'.split(' '), 86 | new_versions = '1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.7.1'.split(' '), 87 | i; 88 | 89 | for (i = 0; i < old_versions.length; i++) { 90 | getSizeAtVersion(old_versions[i], '/moment.min.js'); 91 | } 92 | for (i = 0; i < new_versions.length; i++) { 93 | getSizeAtVersion(new_versions[i], '/min/moment.min.js'); 94 | } 95 | } 96 | 97 | function getLocal() { 98 | count ++; 99 | var op = {}; 100 | outputs.push(op); 101 | fs.readFile(path.normalize(__dirname + '/../min/moment.min.js'), 'utf8', function (err, data) { 102 | if (err) { 103 | throw err; 104 | } 105 | zlib.gzip(data, function (error, result) { 106 | op.version = '.next'; 107 | op.gzip = result.length; 108 | op.original = data.length; 109 | resolved ++; 110 | check(); 111 | }); 112 | }); 113 | } 114 | 115 | 116 | 117 | module.exports = function (grunt) { 118 | grunt.registerTask('history', 'Check the codebase filesize over different releases.', function () { 119 | done = this.async(); 120 | getRemote(); 121 | getLocal(); 122 | }); 123 | }; -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/size.js: -------------------------------------------------------------------------------- 1 | var https = require('https'), 2 | zlib = require('zlib'), 3 | path = require('path'), 4 | fs = require('fs'); 5 | 6 | var stable = '1.7.1', 7 | done; 8 | 9 | function getVersion(path, cb) { 10 | var data = '', 11 | 12 | req = https.request({ 13 | host: 'raw.github.com', 14 | port: 443, 15 | path: '/timrwood/moment/' + path 16 | }, function (res) { 17 | res.setEncoding('utf8'); 18 | res.on('data', function (chunk) { 19 | data += chunk; 20 | }); 21 | res.on('end', function (e) { 22 | zlib.gzip(data, function (error, result) { 23 | cb(data.length, result.length); 24 | }); 25 | }); 26 | }); 27 | req.on('error', function (e) { 28 | console.log('problem with request: ' + e.message); 29 | }); 30 | req.end(); 31 | } 32 | 33 | function printDiffs(stableLen, stableGzip, currentLen, currentGzip) { 34 | var diff = currentLen - stableLen, 35 | gzipDiff = currentGzip - stableGzip; 36 | 37 | console.log('Filesize difference from current branch to ' + stable); 38 | console.log(stable + ' ' + stableLen + ' / ' + stableGzip); 39 | console.log('curr ' + currentLen + ' / ' + currentGzip); 40 | console.log('diff ' + (diff > 0 ? '+' : '') + diff); 41 | console.log('gzip ' + (gzipDiff > 0 ? '+' : '') + gzipDiff); 42 | } 43 | 44 | 45 | module.exports = function (grunt) { 46 | grunt.registerTask('size', 'Check the codebase filesize against the latest stable version.', function () { 47 | done = this.async(); 48 | fs.readFile(path.normalize(__dirname + '/../min/moment.min.js'), 'utf8', function (err, data) { 49 | if (err) { 50 | throw err; 51 | } 52 | zlib.gzip(data, function (error, result) { 53 | getVersion(stable + '/min/moment.min.js', function (stableLength, stableGzipLength) { 54 | printDiffs(stableLength, stableGzipLength, data.length, result.length); 55 | done(); 56 | }); 57 | }); 58 | }); 59 | }); 60 | }; -------------------------------------------------------------------------------- /src/node_modules/moment/tasks/zones.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | 3 | 4 | module.exports = function (grunt) { 5 | var ZONE_TAB = '/usr/share/zoneinfo/zone.tab'; 6 | 7 | grunt.registerTask('zones', 'Run the unit tests in different timezones.', function () { 8 | var done = this.async(); 9 | 10 | getAllTimezones(function (err, zones) { 11 | if (err != null) { 12 | throw err; 13 | } 14 | (function iterator(i) { 15 | if (i >= zones.length) { 16 | return done(); 17 | } 18 | runTestsInZone(zones[i], function (err) { 19 | if (err != null) { 20 | throw err; 21 | } 22 | iterator(i+1); 23 | }); 24 | }(0)); 25 | }); 26 | }); 27 | 28 | function getAllTimezones (callback) { 29 | fs.readFile(ZONE_TAB, 'ascii', function (err, content) { 30 | if (err != null) { 31 | callback(err); 32 | } 33 | callback(null, content.split(/\r\n|\r|\n/) 34 | // remove empty and commented lines 35 | .filter(function (line) { return line && !/^#/.test(line); }) 36 | // country code TAB coordinates TAB timezone 37 | .map(function (line) { return line.split('\t')[2]; })); 38 | }); 39 | }; 40 | 41 | function runTestsInZone (zone, next) { 42 | grunt.log.ok('Running tests in zone ' + zone); 43 | grunt.util.spawn({ 44 | cmd: 'grunt', 45 | opts: { env: { 46 | 'PATH': process.env.PATH, 47 | 'TZ': zone 48 | } }, 49 | args: ['--no-color', 'nodeunit'] 50 | }, function (err, result, code) { 51 | if (code !== 0) { 52 | grunt.log.error(result.stdout.split(/\r\n|\r|\n/) 53 | .filter(function (line) { return /^(>>|Warning:|$)/.test(line) }) 54 | .map(function (line) { return (line.substr(0, 3) === '>> ' ? line.substr(3) : line); }) 55 | .join('\n')); 56 | } 57 | next(); 58 | }); 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /src/node_modules/moment/x.coffee: -------------------------------------------------------------------------------- 1 | a.hasOwnProperty(b) 2 | moment = require './moment' 3 | 4 | inp = "2014-08-03T13:12:57.886Z" 5 | console.log inp 6 | d = new Date(inp) 7 | # Sun Aug 03 2014 21:12:57 GMT+0800 (CST) 8 | console.log "got", moment(d).format() # 'YYYY-MM-DD HH:mm:ss') 9 | console.log "exp", "2014-08-03 09:12:57" 10 | # "2014-08-03 09:12:57" 11 | -------------------------------------------------------------------------------- /src/node_modules/moment/z.coffee: -------------------------------------------------------------------------------- 1 | moment = require './moment' 2 | 3 | moment().add(moment.duration('m', 5)) 4 | moment.duration().add(moment.duration('m', 5)) 5 | 6 | moment().subtract(moment.duration(5, 'm')) 7 | moment.duration().subtract(moment.duration(5, 'm')) 8 | -------------------------------------------------------------------------------- /src/node_modules/utf8/.gitattributes: -------------------------------------------------------------------------------- 1 | # Automatically normalize line endings for all text-based files 2 | * text=auto 3 | -------------------------------------------------------------------------------- /src/node_modules/utf8/.npmignore: -------------------------------------------------------------------------------- 1 | # Generated test data file (> 100 MB) 2 | tests/data.json 3 | 4 | # JSON version of coverage report 5 | coverage/coverage.json 6 | 7 | # Installed npm modules 8 | node_modules 9 | 10 | # Folder view configuration files 11 | .DS_Store 12 | Desktop.ini 13 | 14 | # Thumbnail cache files 15 | ._* 16 | Thumbs.db 17 | 18 | # Files that might appear on external disks 19 | .Spotlight-V100 20 | .Trashes 21 | -------------------------------------------------------------------------------- /src/node_modules/utf8/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.8" 5 | before_script: 6 | - "npm install -g grunt-cli" 7 | # Narwhal uses a hardcoded path to openjdk v6, so use that version 8 | - "sudo apt-get update -qq" 9 | - "sudo apt-get install -qq openjdk-6-jre" 10 | - "PACKAGE=rhino1_7R3; wget http://ftp.mozilla.org/pub/mozilla.org/js/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip" 11 | - "PACKAGE=rhino1_7R3; echo -e '#!/bin/sh\\njava -jar /opt/'$PACKAGE'/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino" 12 | - "PACKAGE=ringojs-0.9; wget http://ringojs.org/downloads/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip" 13 | - "PACKAGE=ringojs-0.9; sudo ln -s /opt/$PACKAGE/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo" 14 | - "PACKAGE=v0.3.2; wget https://github.com/280north/narwhal/archive/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip" 15 | - "PACKAGE=narwhal-0.3.2; sudo ln -s /opt/$PACKAGE/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal" 16 | # If the enviroment stores rt.jar in a different directory, find it and symlink the directory 17 | - "PREFIX=/usr/lib/jvm; if [ ! -d $PREFIX/java-6-openjdk ]; then for d in $PREFIX/java-6-openjdk-*; do if [ -e $d/jre/lib/rt.jar ]; then sudo ln -s $d $PREFIX/java-6-openjdk; break; fi; done; fi" 18 | script: 19 | "grunt ci" 20 | -------------------------------------------------------------------------------- /src/node_modules/utf8/Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | 3 | grunt.initConfig({ 4 | 'shell': { 5 | 'options': { 6 | 'stdout': true, 7 | 'stderr': true, 8 | 'failOnError': true 9 | }, 10 | 'generate-test-data': { // Only when needed 11 | 'command': 'if [ ! -f data.json ]; then echo python generate-test-data.py; fi', 12 | 'options': { 13 | 'execOptions': { 14 | 'cwd': 'tests' 15 | } 16 | } 17 | }, 18 | 'cover': { 19 | 'command': 'istanbul cover --report "html" --verbose --dir "coverage" "tests/tests.js"; istanbul report --root "coverage" --format "html"' 20 | }, 21 | 'test-narwhal': { 22 | 'command': 'echo "Testing in Narwhal..."; export NARWHAL_OPTIMIZATION=-1; narwhal "tests/tests.js"' 23 | }, 24 | 'test-phantomjs': { 25 | 'command': 'echo "Testing in PhantomJS..."; phantomjs "tests/tests.js"' 26 | }, 27 | // Rhino 1.7R4 has a bug that makes it impossible to test in. 28 | // https://bugzilla.mozilla.org/show_bug.cgi?id=775566 29 | // To test, use Rhino 1.7R3, or wait (heh) for the 1.7R5 release. 30 | 'test-rhino': { 31 | 'command': 'echo "Testing in Rhino..."; rhino -opt -1 "tests.js"', 32 | 'options': { 33 | 'execOptions': { 34 | 'cwd': 'tests' 35 | } 36 | } 37 | }, 38 | 'test-ringo': { 39 | 'command': 'echo "Testing in Ringo..."; ringo -o -1 "tests/tests.js"' 40 | }, 41 | 'test-node': { 42 | 'command': 'echo "Testing in Node..."; node "tests/tests.js" --extended' 43 | }, 44 | 'test-browser': { 45 | 'command': 'echo "Testing in a browser..."; open "tests/index.html"' 46 | } 47 | } 48 | }); 49 | 50 | grunt.loadNpmTasks('grunt-shell'); 51 | 52 | grunt.registerTask('cover', 'shell:cover'); 53 | grunt.registerTask('ci', [ 54 | 'shell:generate-test-data', 55 | 'shell:test-narwhal', 56 | 'shell:test-phantomjs', 57 | 'shell:test-rhino', 58 | 'shell:test-ringo', 59 | 'shell:test-node', 60 | ]); 61 | grunt.registerTask('test', [ 62 | 'shell:generate-test-data', 63 | 'ci', 64 | 'shell:test-browser' 65 | ]); 66 | 67 | grunt.registerTask('default', [ 68 | 'shell:test-node', 69 | 'cover' 70 | ]); 71 | 72 | }; 73 | -------------------------------------------------------------------------------- /src/node_modules/utf8/LICENSE-MIT.txt: -------------------------------------------------------------------------------- 1 | Copyright Mathias Bynens 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /src/node_modules/utf8/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utf8", 3 | "version": "2.0.0", 4 | "main": "utf8.js", 5 | "ignore": [ 6 | "coverage", 7 | "tests", 8 | ".*", 9 | "component.json", 10 | "Gruntfile.js", 11 | "node_modules", 12 | "package.json" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /src/node_modules/utf8/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utf8", 3 | "version": "2.0.0", 4 | "description": "A well-tested UTF-8 encoder/decoder written in JavaScript.", 5 | "repo": "mathiasbynens/utf8.js", 6 | "license": "MIT/GPL", 7 | "scripts": [ 8 | "utf8.js" 9 | ], 10 | "keywords": [ 11 | "charset", 12 | "encoding", 13 | "unicode", 14 | "utf8" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /src/node_modules/utf8/coverage/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | -------------------------------------------------------------------------------- /src/node_modules/utf8/tests/generate-test-data.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import re 4 | import json 5 | 6 | # http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae 7 | # http://stackoverflow.com/a/13436167/96656 8 | def unisymbol(codePoint): 9 | if codePoint >= 0x0000 and codePoint <= 0xFFFF: 10 | return unichr(codePoint) 11 | elif codePoint >= 0x010000 and codePoint <= 0x10FFFF: 12 | highSurrogate = int((codePoint - 0x10000) / 0x400) + 0xD800 13 | lowSurrogate = int((codePoint - 0x10000) % 0x400) + 0xDC00 14 | return unichr(highSurrogate) + unichr(lowSurrogate) 15 | else: 16 | return 'Error' 17 | 18 | def hexify(codePoint): 19 | return 'U+' + hex(codePoint)[2:].upper().zfill(6) 20 | 21 | def writeFile(filename, contents): 22 | print filename 23 | with open(filename, 'w') as f: 24 | f.write(contents.strip() + '\n') 25 | 26 | data = [] 27 | for codePoint in range(0x000000, 0x10FFFF + 1): 28 | symbol = unisymbol(codePoint) 29 | # http://stackoverflow.com/a/17199950/96656 30 | bytes = symbol.encode('utf8').decode('latin1') 31 | data.append({ 32 | 'codePoint': codePoint, 33 | 'decoded': symbol, 34 | 'encoded': bytes 35 | }); 36 | 37 | jsonData = json.dumps(data, sort_keys=False, indent=2, separators=(',', ': ')) 38 | # Use tabs instead of double spaces for indentation 39 | jsonData = jsonData.replace(' ', '\t') 40 | # Escape hexadecimal digits in escape sequences 41 | jsonData = re.sub( 42 | r'\\u([a-fA-F0-9]{4})', 43 | lambda match: r'\u{}'.format(match.group(1).upper()), 44 | jsonData 45 | ) 46 | 47 | writeFile('data.json', jsonData) 48 | -------------------------------------------------------------------------------- /src/node_modules/utf8/tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | utf8.js test suite 6 | 7 | 8 | 9 |
10 | 11 | 12 | 22 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/node_modules/utf8/x.js: -------------------------------------------------------------------------------- 1 | var utf8 = require('./utf8.js'); 2 | var stringEscape = require('string-escape'); 3 | 4 | utf8.encode('\xA9'); 5 | // console.log( 6 | // utf8.encode('\uD800\uDC01'), 7 | // '\xF0\x90\x80\x81', 8 | // utf8.encode('\uD800\uDC01') == '\xF0\x90\x80\x81' 9 | // ); 10 | 11 | var obj = { 12 | 'description': 'Low surrogate followed by another low surrogate', 13 | // 'decoded': '\uDC00\uDC00', 14 | // 'encoded': '\xED\xB0\x80\xED\xB0\x80' 15 | 'decoded': '\xA9', 16 | 'encoded': '\xED\xB0\x80' 17 | }; 18 | 19 | // Encoding 20 | actual = utf8.encode(obj.decoded); 21 | expected = obj.encoded; 22 | 23 | if (actual != expected) { 24 | console.log( 25 | 'fail\n', 26 | 'actual ', stringEscape(actual), '\n', 27 | 'expected', stringEscape(expected) 28 | ); 29 | } else { 30 | console.log('encoding successsssss') 31 | } 32 | 33 | 34 | // // Decoding 35 | // actual = utf8.decode(obj.encoded); 36 | // expected = obj.decoded; 37 | 38 | // if (actual != expected) { 39 | // console.log( 40 | // 'fail\n', 41 | // 'actual ', actual, '\n', 42 | // 'expected', expected 43 | // ); 44 | // } else { 45 | // console.log('decoding successsssss') 46 | // } -------------------------------------------------------------------------------- /src/node_modules/util/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /src/node_modules/util/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.8' 4 | - '0.10' 5 | env: 6 | global: 7 | - secure: AdUubswCR68/eGD+WWjwTHgFbelwQGnNo81j1IOaUxKw+zgFPzSnFEEtDw7z98pWgg7p9DpCnyzzSnSllP40wq6AG19OwyUJjSLoZK57fp+r8zwTQwWiSqUgMu2YSMmKJPIO/aoSGpRQXT+L1nRrHoUJXgFodyIZgz40qzJeZjc= 8 | - secure: heQuxPVsQ7jBbssoVKimXDpqGjQFiucm6W5spoujmspjDG7oEcHD9ANo9++LoRPrsAmNx56SpMK5fNfVmYediw6SvhXm4Mxt56/fYCrLDBtgGG+1neCeffAi8z1rO8x48m77hcQ6YhbUL5R9uBimUjMX92fZcygAt8Rg804zjFo= 9 | -------------------------------------------------------------------------------- /src/node_modules/util/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-qunit 2 | browsers: 3 | - name: chrome 4 | version: 27..latest 5 | - name: firefox 6 | version: latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 9..latest 11 | -------------------------------------------------------------------------------- /src/node_modules/util/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. and other Node contributors. All rights reserved. 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to 4 | deal in the Software without restriction, including without limitation the 5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 6 | sell copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in 10 | all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 17 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 18 | IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /src/node_modules/util/README.md: -------------------------------------------------------------------------------- 1 | # util 2 | 3 | [![Build Status](https://travis-ci.org/defunctzombie/node-util.png?branch=master)](https://travis-ci.org/defunctzombie/node-util) 4 | 5 | node.js [util](http://nodejs.org/api/util.html) module as a module 6 | 7 | ## install via [npm](npmjs.org) 8 | 9 | ```shell 10 | npm install util 11 | ``` 12 | 13 | ## browser support 14 | 15 | This module also works in modern browsers. If you need legacy browser support you will need to polyfill ES5 features. 16 | -------------------------------------------------------------------------------- /src/node_modules/util/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /src/node_modules/util/node_modules/inherits/README.md: -------------------------------------------------------------------------------- 1 | Browser-friendly inheritance fully compatible with standard node.js 2 | [inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor). 3 | 4 | This package exports standard `inherits` from node.js `util` module in 5 | node environment, but also provides alternative browser-friendly 6 | implementation through [browser 7 | field](https://gist.github.com/shtylman/4339901). Alternative 8 | implementation is a literal copy of standard one located in standalone 9 | module to avoid requiring of `util`. It also has a shim for old 10 | browsers with no `Object.create` support. 11 | 12 | While keeping you sure you are using standard `inherits` 13 | implementation in node.js environment, it allows bundlers such as 14 | [browserify](https://github.com/substack/node-browserify) to not 15 | include full `util` package to your client code if all you need is 16 | just `inherits` function. It worth, because browser shim for `util` 17 | package is large and `inherits` is often the single function you need 18 | from it. 19 | 20 | It's recommended to use this package instead of 21 | `require('util').inherits` for any code that has chances to be used 22 | not only in node.js but in browser too. 23 | 24 | ## usage 25 | 26 | ```js 27 | var inherits = require('inherits'); 28 | // then use exactly as the standard one 29 | ``` 30 | 31 | ## note on version ~1.0 32 | 33 | Version ~1.0 had completely different motivation and is not compatible 34 | neither with 2.0 nor with standard node.js `inherits`. 35 | 36 | If you are using version ~1.0 and planning to switch to ~2.0, be 37 | careful: 38 | 39 | * new version uses `super_` instead of `super` for referencing 40 | superclass 41 | * new version overwrites current prototype while old one preserves any 42 | existing fields on it 43 | -------------------------------------------------------------------------------- /src/node_modules/util/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /src/node_modules/util/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/node_modules/util/node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.1", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/isaacs/inherits" 20 | }, 21 | "license": "ISC", 22 | "scripts": { 23 | "test": "node test" 24 | }, 25 | "readme": "Browser-friendly inheritance fully compatible with standard node.js\n[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).\n\nThis package exports standard `inherits` from node.js `util` module in\nnode environment, but also provides alternative browser-friendly\nimplementation through [browser\nfield](https://gist.github.com/shtylman/4339901). Alternative\nimplementation is a literal copy of standard one located in standalone\nmodule to avoid requiring of `util`. It also has a shim for old\nbrowsers with no `Object.create` support.\n\nWhile keeping you sure you are using standard `inherits`\nimplementation in node.js environment, it allows bundlers such as\n[browserify](https://github.com/substack/node-browserify) to not\ninclude full `util` package to your client code if all you need is\njust `inherits` function. It worth, because browser shim for `util`\npackage is large and `inherits` is often the single function you need\nfrom it.\n\nIt's recommended to use this package instead of\n`require('util').inherits` for any code that has chances to be used\nnot only in node.js but in browser too.\n\n## usage\n\n```js\nvar inherits = require('inherits');\n// then use exactly as the standard one\n```\n\n## note on version ~1.0\n\nVersion ~1.0 had completely different motivation and is not compatible\nneither with 2.0 nor with standard node.js `inherits`.\n\nIf you are using version ~1.0 and planning to switch to ~2.0, be\ncareful:\n\n* new version uses `super_` instead of `super` for referencing\n superclass\n* new version overwrites current prototype while old one preserves any\n existing fields on it\n", 26 | "readmeFilename": "README.md", 27 | "bugs": { 28 | "url": "https://github.com/isaacs/inherits/issues" 29 | }, 30 | "_id": "inherits@2.0.1", 31 | "dist": { 32 | "shasum": "62c5324b35a57b4112ae418aeb7ba4b0539cde8b" 33 | }, 34 | "_from": "inherits@2.0.1", 35 | "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" 36 | } 37 | -------------------------------------------------------------------------------- /src/node_modules/util/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /src/node_modules/util/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Joyent", 4 | "url": "http://www.joyent.com" 5 | }, 6 | "name": "util", 7 | "description": "Node.JS util module", 8 | "keywords": [ 9 | "util" 10 | ], 11 | "version": "0.10.3", 12 | "homepage": "https://github.com/defunctzombie/node-util", 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/defunctzombie/node-util" 16 | }, 17 | "main": "./util.js", 18 | "scripts": { 19 | "test": "node test/node/*.js && zuul test/browser/*.js" 20 | }, 21 | "dependencies": { 22 | "inherits": "2.0.1" 23 | }, 24 | "license": "MIT", 25 | "devDependencies": { 26 | "zuul": "~1.0.9" 27 | }, 28 | "browser": { 29 | "./support/isBuffer.js": "./support/isBufferBrowser.js" 30 | }, 31 | "readme": "# util\n\n[![Build Status](https://travis-ci.org/defunctzombie/node-util.png?branch=master)](https://travis-ci.org/defunctzombie/node-util)\n\nnode.js [util](http://nodejs.org/api/util.html) module as a module\n\n## install via [npm](npmjs.org)\n\n```shell\nnpm install util\n```\n\n## browser support\n\nThis module also works in modern browsers. If you need legacy browser support you will need to polyfill ES5 features.\n", 32 | "readmeFilename": "README.md", 33 | "bugs": { 34 | "url": "https://github.com/defunctzombie/node-util/issues" 35 | }, 36 | "_id": "util@0.10.3", 37 | "_from": "util@" 38 | } 39 | -------------------------------------------------------------------------------- /src/node_modules/util/support/isBuffer.js: -------------------------------------------------------------------------------- 1 | module.exports = function isBuffer(arg) { 2 | return arg instanceof Buffer; 3 | } 4 | -------------------------------------------------------------------------------- /src/node_modules/util/support/isBufferBrowser.js: -------------------------------------------------------------------------------- 1 | module.exports = function isBuffer(arg) { 2 | return arg && typeof arg === 'object' 3 | && typeof arg.copy === 'function' 4 | && typeof arg.fill === 'function' 5 | && typeof arg.readUInt8 === 'function'; 6 | } -------------------------------------------------------------------------------- /src/node_modules/util/test/browser/inspect.js: -------------------------------------------------------------------------------- 1 | // Copyright Joyent, Inc. and other Node contributors. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a 4 | // copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to permit 8 | // persons to whom the Software is furnished to do so, subject to the 9 | // following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included 12 | // in all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 17 | // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | var assert = require('assert'); 23 | var util = require('../../'); 24 | 25 | suite('inspect'); 26 | 27 | test('util.inspect - test for sparse array', function () { 28 | var a = ['foo', 'bar', 'baz']; 29 | assert.equal(util.inspect(a), '[ \'foo\', \'bar\', \'baz\' ]'); 30 | delete a[1]; 31 | assert.equal(util.inspect(a), '[ \'foo\', , \'baz\' ]'); 32 | assert.equal(util.inspect(a, true), '[ \'foo\', , \'baz\', [length]: 3 ]'); 33 | assert.equal(util.inspect(new Array(5)), '[ , , , , ]'); 34 | }); 35 | 36 | test('util.inspect - exceptions should print the error message, not \'{}\'', function () { 37 | assert.equal(util.inspect(new Error()), '[Error]'); 38 | assert.equal(util.inspect(new Error('FAIL')), '[Error: FAIL]'); 39 | assert.equal(util.inspect(new TypeError('FAIL')), '[TypeError: FAIL]'); 40 | assert.equal(util.inspect(new SyntaxError('FAIL')), '[SyntaxError: FAIL]'); 41 | }); 42 | -------------------------------------------------------------------------------- /src/node_modules/util/test/node/debug.js: -------------------------------------------------------------------------------- 1 | // Copyright Joyent, Inc. and other Node contributors. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a 4 | // copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to permit 8 | // persons to whom the Software is furnished to do so, subject to the 9 | // following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included 12 | // in all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 17 | // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | var assert = require('assert'); 23 | var util = require('../../'); 24 | 25 | if (process.argv[2] === 'child') 26 | child(); 27 | else 28 | parent(); 29 | 30 | function parent() { 31 | test('foo,tud,bar', true); 32 | test('foo,tud', true); 33 | test('tud,bar', true); 34 | test('tud', true); 35 | test('foo,bar', false); 36 | test('', false); 37 | } 38 | 39 | function test(environ, shouldWrite) { 40 | var expectErr = ''; 41 | if (shouldWrite) { 42 | expectErr = 'TUD %PID%: this { is: \'a\' } /debugging/\n' + 43 | 'TUD %PID%: number=1234 string=asdf obj={"foo":"bar"}\n'; 44 | } 45 | var expectOut = 'ok\n'; 46 | var didTest = false; 47 | 48 | var spawn = require('child_process').spawn; 49 | var child = spawn(process.execPath, [__filename, 'child'], { 50 | env: { NODE_DEBUG: environ } 51 | }); 52 | 53 | expectErr = expectErr.split('%PID%').join(child.pid); 54 | 55 | var err = ''; 56 | child.stderr.setEncoding('utf8'); 57 | child.stderr.on('data', function(c) { 58 | err += c; 59 | }); 60 | 61 | var out = ''; 62 | child.stdout.setEncoding('utf8'); 63 | child.stdout.on('data', function(c) { 64 | out += c; 65 | }); 66 | 67 | child.on('close', function(c) { 68 | assert(!c); 69 | assert.equal(err, expectErr); 70 | assert.equal(out, expectOut); 71 | didTest = true; 72 | console.log('ok %j %j', environ, shouldWrite); 73 | }); 74 | 75 | process.on('exit', function() { 76 | assert(didTest); 77 | }); 78 | } 79 | 80 | 81 | function child() { 82 | var debug = util.debuglog('tud'); 83 | debug('this', { is: 'a' }, /debugging/); 84 | debug('number=%d string=%s obj=%j', 1234, 'asdf', { foo: 'bar' }); 85 | console.log('ok'); 86 | } 87 | -------------------------------------------------------------------------------- /src/node_modules/util/test/node/format.js: -------------------------------------------------------------------------------- 1 | // Copyright Joyent, Inc. and other Node contributors. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a 4 | // copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to permit 8 | // persons to whom the Software is furnished to do so, subject to the 9 | // following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included 12 | // in all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 17 | // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | 24 | 25 | var assert = require('assert'); 26 | var util = require('../../'); 27 | 28 | assert.equal(util.format(), ''); 29 | assert.equal(util.format(''), ''); 30 | assert.equal(util.format([]), '[]'); 31 | assert.equal(util.format({}), '{}'); 32 | assert.equal(util.format(null), 'null'); 33 | assert.equal(util.format(true), 'true'); 34 | assert.equal(util.format(false), 'false'); 35 | assert.equal(util.format('test'), 'test'); 36 | 37 | // CHECKME this is for console.log() compatibility - but is it *right*? 38 | assert.equal(util.format('foo', 'bar', 'baz'), 'foo bar baz'); 39 | 40 | assert.equal(util.format('%d', 42.0), '42'); 41 | assert.equal(util.format('%d', 42), '42'); 42 | assert.equal(util.format('%s', 42), '42'); 43 | assert.equal(util.format('%j', 42), '42'); 44 | 45 | assert.equal(util.format('%d', '42.0'), '42'); 46 | assert.equal(util.format('%d', '42'), '42'); 47 | assert.equal(util.format('%s', '42'), '42'); 48 | assert.equal(util.format('%j', '42'), '"42"'); 49 | 50 | assert.equal(util.format('%%s%s', 'foo'), '%sfoo'); 51 | 52 | assert.equal(util.format('%s'), '%s'); 53 | assert.equal(util.format('%s', undefined), 'undefined'); 54 | assert.equal(util.format('%s', 'foo'), 'foo'); 55 | assert.equal(util.format('%s:%s'), '%s:%s'); 56 | assert.equal(util.format('%s:%s', undefined), 'undefined:%s'); 57 | assert.equal(util.format('%s:%s', 'foo'), 'foo:%s'); 58 | assert.equal(util.format('%s:%s', 'foo', 'bar'), 'foo:bar'); 59 | assert.equal(util.format('%s:%s', 'foo', 'bar', 'baz'), 'foo:bar baz'); 60 | assert.equal(util.format('%%%s%%', 'hi'), '%hi%'); 61 | assert.equal(util.format('%%%s%%%%', 'hi'), '%hi%%'); 62 | 63 | (function() { 64 | var o = {}; 65 | o.o = o; 66 | assert.equal(util.format('%j', o), '[Circular]'); 67 | })(); 68 | 69 | // Errors 70 | assert.equal(util.format(new Error('foo')), '[Error: foo]'); 71 | function CustomError(msg) { 72 | Error.call(this); 73 | Object.defineProperty(this, 'message', { value: msg, enumerable: false }); 74 | Object.defineProperty(this, 'name', { value: 'CustomError', enumerable: false }); 75 | } 76 | util.inherits(CustomError, Error); 77 | assert.equal(util.format(new CustomError('bar')), '[CustomError: bar]'); 78 | -------------------------------------------------------------------------------- /src/node_modules/util/test/node/log.js: -------------------------------------------------------------------------------- 1 | // Copyright Joyent, Inc. and other Node contributors. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a 4 | // copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to permit 8 | // persons to whom the Software is furnished to do so, subject to the 9 | // following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included 12 | // in all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 17 | // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | var assert = require('assert'); 24 | var util = require('../../'); 25 | 26 | assert.ok(process.stdout.writable); 27 | assert.ok(process.stderr.writable); 28 | 29 | var stdout_write = global.process.stdout.write; 30 | var strings = []; 31 | global.process.stdout.write = function(string) { 32 | strings.push(string); 33 | }; 34 | console._stderr = process.stdout; 35 | 36 | var tests = [ 37 | {input: 'foo', output: 'foo'}, 38 | {input: undefined, output: 'undefined'}, 39 | {input: null, output: 'null'}, 40 | {input: false, output: 'false'}, 41 | {input: 42, output: '42'}, 42 | {input: function(){}, output: '[Function]'}, 43 | {input: parseInt('not a number', 10), output: 'NaN'}, 44 | {input: {answer: 42}, output: '{ answer: 42 }'}, 45 | {input: [1,2,3], output: '[ 1, 2, 3 ]'} 46 | ]; 47 | 48 | // test util.log() 49 | tests.forEach(function(test) { 50 | util.log(test.input); 51 | var result = strings.shift().trim(), 52 | re = (/[0-9]{1,2} [A-Z][a-z]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} - (.+)$/), 53 | match = re.exec(result); 54 | assert.ok(match); 55 | assert.equal(match[1], test.output); 56 | }); 57 | 58 | global.process.stdout.write = stdout_write; 59 | -------------------------------------------------------------------------------- /src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nw-demo", 3 | "main": "index.html", 4 | "window": { 5 | "show": true, 6 | "toolbar": false, 7 | "frame": true, 8 | "position": "center", 9 | "width": 600, 10 | "height": 407, 11 | "min_width": 600, 12 | "min_height": 407 13 | }, 14 | "single-instance": true 15 | } 16 | --------------------------------------------------------------------------------