wonder-image 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/DOCS.md +12 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1 -0
  4. package/babel.config.json +3 -0
  5. package/demo/backend/body-end.php +10 -0
  6. package/demo/backend/head.php +93 -0
  7. package/demo/frontend/body-end.php +19 -0
  8. package/demo/frontend/head.php +244 -0
  9. package/demo/wonder-image.php +41 -0
  10. package/dist/0d01fa889dc2b0202b98.png +0 -0
  11. package/dist/203d1199e7aef04c0a34.gif +0 -0
  12. package/dist/26d6ed3fa1c815e4c78f.png +0 -0
  13. package/dist/39795c0b4513de014cf8.woff +0 -0
  14. package/dist/40b30ca122107c2852be.png +0 -0
  15. package/dist/4a7b4107b62ef059ba65.png +0 -0
  16. package/dist/4dce7f71b08755f19759.png +0 -0
  17. package/dist/60af14fddca897f348bb.png +0 -0
  18. package/dist/67172a36bcdeaca8592a.png +0 -0
  19. package/dist/a85c6dc53638f894de38.png +0 -0
  20. package/dist/b7bcc075b395c14ce8c2.woff2 +0 -0
  21. package/dist/backend/body-end.js +3 -0
  22. package/dist/backend/body-end.js.LICENSE.txt +44 -0
  23. package/dist/backend/body-end.js.map +1 -0
  24. package/dist/backend/head.css +2 -0
  25. package/dist/backend/head.css.map +1 -0
  26. package/dist/backend/head.js +3 -0
  27. package/dist/backend/head.js.LICENSE.txt +46 -0
  28. package/dist/backend/head.js.map +1 -0
  29. package/dist/backend/lib.js +2 -0
  30. package/dist/backend/lib.js.LICENSE.txt +1 -0
  31. package/dist/frontend/body-end.js +3 -0
  32. package/dist/frontend/body-end.js.LICENSE.txt +46 -0
  33. package/dist/frontend/body-end.js.map +1 -0
  34. package/dist/frontend/head.css +2 -0
  35. package/dist/frontend/head.css.map +1 -0
  36. package/dist/frontend/head.js +3 -0
  37. package/dist/frontend/head.js.LICENSE.txt +46 -0
  38. package/dist/frontend/head.js.map +1 -0
  39. package/dist/frontend/lib.css +2 -0
  40. package/dist/frontend/lib.css.map +1 -0
  41. package/dist/frontend/lib.js +3 -0
  42. package/dist/frontend/lib.js.LICENSE.txt +151 -0
  43. package/dist/frontend/lib.js.map +1 -0
  44. package/dist/lib/autonumeric/autonumeric.js +3 -0
  45. package/dist/lib/autonumeric/autonumeric.js.LICENSE.txt +47 -0
  46. package/dist/lib/autonumeric/autonumeric.js.map +1 -0
  47. package/dist/lib/bootstrap/bootstrap-datepicker.css +2 -0
  48. package/dist/lib/bootstrap/bootstrap-datepicker.css.map +1 -0
  49. package/dist/lib/bootstrap/bootstrap-datepicker.js +3 -0
  50. package/dist/lib/bootstrap/bootstrap-datepicker.js.LICENSE.txt +42 -0
  51. package/dist/lib/bootstrap/bootstrap-datepicker.js.map +1 -0
  52. package/dist/lib/bootstrap/bootstrap-icons.css +2 -0
  53. package/dist/lib/bootstrap/bootstrap-icons.css.map +1 -0
  54. package/dist/lib/bootstrap/bootstrap-icons.js +3 -0
  55. package/dist/lib/bootstrap/bootstrap-icons.js.LICENSE.txt +13 -0
  56. package/dist/lib/bootstrap/bootstrap-icons.js.map +1 -0
  57. package/dist/lib/bootstrap/bootstrap.css +2 -0
  58. package/dist/lib/bootstrap/bootstrap.css.map +1 -0
  59. package/dist/lib/bootstrap/bootstrap.js +3 -0
  60. package/dist/lib/bootstrap/bootstrap.js.LICENSE.txt +44 -0
  61. package/dist/lib/bootstrap/bootstrap.js.map +1 -0
  62. package/dist/lib/chartjs/chart.js +3 -0
  63. package/dist/lib/chartjs/chart.js.LICENSE.txt +1467 -0
  64. package/dist/lib/chartjs/chart.js.map +1 -0
  65. package/dist/lib/datatables/datatables.css +2 -0
  66. package/dist/lib/datatables/datatables.css.map +1 -0
  67. package/dist/lib/datatables/datatables.js +3 -0
  68. package/dist/lib/datatables/datatables.js.LICENSE.txt +8988 -0
  69. package/dist/lib/datatables/datatables.js.map +1 -0
  70. package/dist/lib/editorjs/editor.js +3 -0
  71. package/dist/lib/editorjs/editor.js.LICENSE.txt +5812 -0
  72. package/dist/lib/editorjs/editor.js.map +1 -0
  73. package/dist/lib/fancyapps/fancyapps.css +2 -0
  74. package/dist/lib/fancyapps/fancyapps.css.map +1 -0
  75. package/dist/lib/fancyapps/fancyapps.js +3 -0
  76. package/dist/lib/fancyapps/fancyapps.js.LICENSE.txt +19 -0
  77. package/dist/lib/fancyapps/fancyapps.js.map +1 -0
  78. package/dist/lib/filepond/filepond.css +2 -0
  79. package/dist/lib/filepond/filepond.css.map +1 -0
  80. package/dist/lib/filepond/filepond.js +3 -0
  81. package/dist/lib/filepond/filepond.js.LICENSE.txt +2797 -0
  82. package/dist/lib/filepond/filepond.js.map +1 -0
  83. package/dist/lib/fullcalendar/fullcalendar.js +3 -0
  84. package/dist/lib/fullcalendar/fullcalendar.js.LICENSE.txt +3787 -0
  85. package/dist/lib/fullcalendar/fullcalendar.js.map +1 -0
  86. package/dist/lib/jquery/jquery-plugin.css +2 -0
  87. package/dist/lib/jquery/jquery-plugin.css.map +1 -0
  88. package/dist/lib/jquery/jquery-plugin.js +3 -0
  89. package/dist/lib/jquery/jquery-plugin.js.LICENSE.txt +60 -0
  90. package/dist/lib/jquery/jquery-plugin.js.map +1 -0
  91. package/dist/lib/jquery/jquery.js +3 -0
  92. package/dist/lib/jquery/jquery.js.LICENSE.txt +3240 -0
  93. package/dist/lib/jquery/jquery.js.map +1 -0
  94. package/dist/lib/jstree/jstree.css +2 -0
  95. package/dist/lib/jstree/jstree.css.map +1 -0
  96. package/dist/lib/jstree/jstree.js +3 -0
  97. package/dist/lib/jstree/jstree.js.LICENSE.txt +42 -0
  98. package/dist/lib/jstree/jstree.js.map +1 -0
  99. package/dist/lib/moment/moment.js +3 -0
  100. package/dist/lib/moment/moment.js.LICENSE.txt +772 -0
  101. package/dist/lib/moment/moment.js.map +1 -0
  102. package/dist/lib/quilljs/quill.css +2 -0
  103. package/dist/lib/quilljs/quill.css.map +1 -0
  104. package/dist/lib/quilljs/quill.js +3 -0
  105. package/dist/lib/quilljs/quill.js.LICENSE.txt +3038 -0
  106. package/dist/lib/quilljs/quill.js.map +1 -0
  107. package/dist/lib/swiperjs/swiper-plugin.css +2 -0
  108. package/dist/lib/swiperjs/swiper-plugin.css.map +1 -0
  109. package/dist/lib/swiperjs/swiper-plugin.js +3 -0
  110. package/dist/lib/swiperjs/swiper-plugin.js.LICENSE.txt +1113 -0
  111. package/dist/lib/swiperjs/swiper-plugin.js.map +1 -0
  112. package/dist/lib/swiperjs/swiper.css +2 -0
  113. package/dist/lib/swiperjs/swiper.css.map +1 -0
  114. package/dist/lib/swiperjs/swiper.js +3 -0
  115. package/dist/lib/swiperjs/swiper.js.LICENSE.txt +651 -0
  116. package/dist/lib/swiperjs/swiper.js.map +1 -0
  117. package/dist/lib/videojs/video.css +2 -0
  118. package/dist/lib/videojs/video.css.map +1 -0
  119. package/dist/lib/videojs/video.js +3 -0
  120. package/dist/lib/videojs/video.js.LICENSE.txt +23391 -0
  121. package/dist/lib/videojs/video.js.map +1 -0
  122. package/package.json +95 -0
  123. package/src/build/backend/css/header.css +252 -0
  124. package/src/build/backend/css/input.css +295 -0
  125. package/src/build/backend/css/list.css +57 -0
  126. package/src/build/backend/css/order.css +99 -0
  127. package/src/build/backend/js/ajax.js +96 -0
  128. package/src/build/backend/js/alert.js +78 -0
  129. package/src/build/backend/js/bootstrap.js +52 -0
  130. package/src/build/backend/js/form/editor.js +293 -0
  131. package/src/build/backend/js/form/file.js +142 -0
  132. package/src/build/backend/js/form/filepond.js +11 -0
  133. package/src/build/backend/js/form/input.js +313 -0
  134. package/src/build/backend/js/form/inputRow.js +164 -0
  135. package/src/build/backend/js/form/send.js +14 -0
  136. package/src/build/backend/js/form/set.js +314 -0
  137. package/src/build/backend/js/jquery.js +15 -0
  138. package/src/build/backend/js/list.js +19 -0
  139. package/src/build/backend/js/modal.js +31 -0
  140. package/src/build/backend/js/pageSetUp.js +125 -0
  141. package/src/build/backend/js/utility.js +38 -0
  142. package/src/build/frontend/css/class/dimension.css +3376 -0
  143. package/src/build/frontend/css/class/function.css +316 -0
  144. package/src/build/frontend/css/class/grid.css +240 -0
  145. package/src/build/frontend/css/class/margin.css +823 -0
  146. package/src/build/frontend/css/class/padding.css +760 -0
  147. package/src/build/frontend/css/class/position.css +351 -0
  148. package/src/build/frontend/css/class/resize.css +24 -0
  149. package/src/build/frontend/css/class/section.css +41 -0
  150. package/src/build/frontend/css/class/text.css +244 -0
  151. package/src/build/frontend/css/components/alert.css +42 -0
  152. package/src/build/frontend/css/components/button.css +107 -0
  153. package/src/build/frontend/css/components/dropdown.css +118 -0
  154. package/src/build/frontend/css/components/form/address.css +26 -0
  155. package/src/build/frontend/css/components/form/checkbox.css +65 -0
  156. package/src/build/frontend/css/components/form/date.css +133 -0
  157. package/src/build/frontend/css/components/form/input.css +176 -0
  158. package/src/build/frontend/css/components/form/select.css +69 -0
  159. package/src/build/frontend/css/components/header/hamburger/hamburger-1.css +56 -0
  160. package/src/build/frontend/css/components/header/hamburger/hamburger.css +58 -0
  161. package/src/build/frontend/css/components/header/header.css +57 -0
  162. package/src/build/frontend/css/components/header/mobile-nav.css +79 -0
  163. package/src/build/frontend/css/components/modal.css +76 -0
  164. package/src/build/frontend/css/components/spinner.css +37 -0
  165. package/src/build/frontend/css/generator/dimension.php +93 -0
  166. package/src/build/frontend/css/generator/margin.php +48 -0
  167. package/src/build/frontend/css/generator/padding.php +48 -0
  168. package/src/build/frontend/css/lib.css +3 -0
  169. package/src/build/frontend/css/main.css +37 -0
  170. package/src/build/frontend/js/alert.js +64 -0
  171. package/src/build/frontend/js/aos.js +9 -0
  172. package/src/build/frontend/js/dropdown.js +73 -0
  173. package/src/build/frontend/js/form/input.js +211 -0
  174. package/src/build/frontend/js/form/list.js +155 -0
  175. package/src/build/frontend/js/form/select.js +108 -0
  176. package/src/build/frontend/js/form/send.js +137 -0
  177. package/src/build/frontend/js/header.js +12 -0
  178. package/src/build/frontend/js/modal.js +26 -0
  179. package/src/build/frontend/js/pageSetUp.js +35 -0
  180. package/src/build/frontend/js/scroll.js +70 -0
  181. package/src/build/frontend/js/utility.js +21 -0
  182. package/src/build/global/js/canvas.js +82 -0
  183. package/src/build/global/js/fetch.js +47 -0
  184. package/src/build/global/js/form/autonumeric.js +136 -0
  185. package/src/build/global/js/form/phone.js +19 -0
  186. package/src/build/global/js/utility.js +88 -0
  187. package/src/build/global/js/video.js +7 -0
  188. package/src/build/lib/editorjs/gallery.js +39 -0
  189. package/src/build/lib/editorjs/hyperlink.js +170 -0
  190. package/src/build/lib/editorjs/video.js +61 -0
  191. package/src/build/lib/swiperjs/effect-carousel.css +24 -0
  192. package/src/build/lib/swiperjs/effect-carousel.esm.js +102 -0
  193. package/src/build/lib/swiperjs/effect-shutters.css +33 -0
  194. package/src/build/lib/swiperjs/effect-shutters.esm.js +114 -0
  195. package/src/build/lib/swiperjs/effect-slicer.css +39 -0
  196. package/src/build/lib/swiperjs/effect-slicer.esm.js +198 -0
  197. package/src/build/lib/swiperjs/swiper-gl.css +44 -0
  198. package/src/build/lib/swiperjs/swiper-gl.esm.js +6063 -0
  199. package/src/export/backend/body-end.js +4 -0
  200. package/src/export/backend/head.js +25 -0
  201. package/src/export/backend/lib.js +0 -0
  202. package/src/export/frontend/body-end.js +9 -0
  203. package/src/export/frontend/head.js +42 -0
  204. package/src/export/frontend/lib.js +17 -0
  205. package/src/export/lib/autonumeric/autonumeric.js +3 -0
  206. package/src/export/lib/bootstrap/bootstrap-datepicker.js +4 -0
  207. package/src/export/lib/bootstrap/bootstrap-icons.js +2 -0
  208. package/src/export/lib/bootstrap/bootstrap.js +3 -0
  209. package/src/export/lib/chartjs/chart.js +4 -0
  210. package/src/export/lib/datatables/datatables.js +6 -0
  211. package/src/export/lib/editorjs/editor.js +48 -0
  212. package/src/export/lib/fancyapps/fancyapps.js +7 -0
  213. package/src/export/lib/filepond/filepond.js +51 -0
  214. package/src/export/lib/fullcalendar/fullcalendar.js +29 -0
  215. package/src/export/lib/jquery/jquery-plugin.js +14 -0
  216. package/src/export/lib/jquery/jquery.js +4 -0
  217. package/src/export/lib/jstree/jstree.js +2 -0
  218. package/src/export/lib/moment/moment.js +12 -0
  219. package/src/export/lib/quilljs/quill.js +4 -0
  220. package/src/export/lib/swiperjs/swiper-plugin.js +20 -0
  221. package/src/export/lib/swiperjs/swiper.js +4 -0
  222. package/src/export/lib/videojs/video.js +3 -0
  223. package/webpack.config.js +79 -0
@@ -0,0 +1,772 @@
1
+ /* harmony import */
2
+
3
+ /* module decorator */
4
+
5
+ /* webpack/runtime/compat get default export */
6
+
7
+ /*#__PURE__*/
8
+
9
+ /**
10
+ * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
11
+ */
12
+
13
+ /**
14
+ * Return a human readable representation of a moment that can
15
+ * also be evaluated to get a new moment which is the same
16
+ *
17
+ * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
18
+ */
19
+
20
+ /**
21
+ * Returns true if the word before the given number loses the '-n' ending.
22
+ * e.g. 'an 10 Deeg' but 'a 5 Deeg'
23
+ *
24
+ * @param number {integer}
25
+ * @returns {boolean}
26
+ */
27
+
28
+ /************************************************************************/
29
+
30
+ /******/
31
+
32
+ /***/
33
+
34
+ /*jshint -W100*/
35
+
36
+ //
37
+
38
+ // : (num > 10 && num % 10 == 0 ? 'î' : 'an');
39
+
40
+ // 0-99
41
+
42
+ // 1-99
43
+
44
+ // num = parseInt(num);
45
+
46
+ // num = parseInt(num.split(':')[0]);
47
+
48
+ // 0 - 9
49
+
50
+ // 0 - 99
51
+
52
+ // 0 - 999
53
+
54
+ // 0 - 9999
55
+
56
+ // 0 - inf
57
+
58
+ // 00 - 99
59
+
60
+ // 000 - 999
61
+
62
+ // 999 - 9999
63
+
64
+ // else
65
+
66
+ // if(num.includes(':'))
67
+
68
+ // return num == 0 || num % 10 == 1 ? 'ê'
69
+
70
+ // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
71
+
72
+ // -inf - inf
73
+
74
+ // 0000 - 9999
75
+
76
+ // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
77
+
78
+ // 99999 - 999999
79
+
80
+ // * days do not bubble at all
81
+
82
+ // * milliseconds bubble up until they become hours
83
+
84
+ // * months bubble up until they become years
85
+
86
+ // '+10:00' > ['10', '00']
87
+
88
+ // '-1530' > ['-15', '30']
89
+
90
+ // ()
91
+
92
+ // (5)
93
+
94
+ // (fmt)
95
+
96
+ // (fmt, 5)
97
+
98
+ // (think of clock changes)
99
+
100
+ // (true)
101
+
102
+ // (true, 5)
103
+
104
+ // (true, fmt)
105
+
106
+ // (true, fmt, 5)
107
+
108
+ // * if day of month is given, default month and year
109
+
110
+ // * if month is given, default only year
111
+
112
+ // * if no year, month, day of month are given, default to today
113
+
114
+ // * if year is given, don't default anything
115
+
116
+ // +00 -00 +00:00 -00:00 +0000 -0000 or Z
117
+
118
+ // +00:00 -00:00 +0000 -0000 or Z
119
+
120
+ // +0200, so we adjust the time as needed, to be valid.
121
+
122
+ // -999999 - 999999
123
+
124
+ // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
125
+
126
+ // 1000
127
+
128
+ // 1000 * 60
129
+
130
+ // 1000 * 60 * 60
131
+
132
+ // 1000 * 60 * 60 * 24 * 7, negate dst
133
+
134
+ // 1000 * 60 * 60 * 24, negate dst
135
+
136
+ // 12 months -> 1 year
137
+
138
+ // 123456789 123456789.123
139
+
140
+ // 1af to 10fed
141
+
142
+ // 2 digits
143
+
144
+ // 3 or 4 digits --> recursively check first digit
145
+
146
+ // 3600 seconds -> 60 minutes -> 1 hour
147
+
148
+ // 400 years have 12 months === 4800
149
+
150
+ // 400 years have 146097 days (taking into account leap year rules)
151
+
152
+ // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
153
+
154
+ // 9 days / in 9 days / 9 days ago
155
+
156
+ // 9 hours / in 9 hours / 9 hours ago
157
+
158
+ // 9 minutes / in 9 minutes / 9 minutes ago
159
+
160
+ // 9 months / in 9 months / 9 months ago
161
+
162
+ // 9 seconds / in 9 seconds / 9 seconds ago
163
+
164
+ // 9 years / in 9 years / 9 years ago
165
+
166
+ // <input type="date" />
167
+
168
+ // <input type="datetime-local" />
169
+
170
+ // <input type="datetime-local" step="0.001" />
171
+
172
+ // <input type="datetime-local" step="1" />
173
+
174
+ // <input type="time" />
175
+
176
+ // <input type="time" step="0.001" />
177
+
178
+ // <input type="time" step="1" />
179
+
180
+ // <input type="week" />
181
+
182
+ // ALIASES
183
+
184
+ // ASP.NET json date format regex
185
+
186
+ // According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
187
+
188
+ // Adding is smart enough around DST
189
+
190
+ // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
191
+
192
+ // Anything larger than 4 digits: recursively check first n-3 digits
193
+
194
+ // Apply timezone offset from input. The actual utcOffset can be changed
195
+
196
+ // Because of dateAddRemove treats 24 hours as different from a
197
+
198
+ // But the names below are more well known and handy
199
+
200
+ // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
201
+
202
+ // Check for 24:00:00.000
203
+
204
+ // Check if module is in cache
205
+
206
+ // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
207
+
208
+ // Create a new module (and put it into the cache)
209
+
210
+ // Date.UTC remaps years 0-99 to 1900-1999
211
+
212
+ // Default to current date.
213
+
214
+ // Default to current week.
215
+
216
+ // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
217
+
218
+ // Ensure name is available and function returns boolean
219
+
220
+ // Execute the module function
221
+
222
+ // FORMATTING
223
+
224
+ // Fallback
225
+
226
+ // Final attempt, use Input Fallback
227
+
228
+ // Flag the module as loaded
229
+
230
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
231
+
232
+ // Getting start-of-today depends on whether we're local/utc/offset or not.
233
+
234
+ // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
235
+
236
+ // HELPERS
237
+
238
+ // HOOKS
239
+
240
+ // Hindi notation for meridiems are quite fuzzy in practice. While there exists
241
+
242
+ // I know
243
+
244
+ // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
245
+
246
+ // IE8 will treat undefined and null as object if it wasn't for
247
+
248
+ // If passed a locale key, it will set the locale for this
249
+
250
+ // It is impossible to translate months into days without knowing
251
+
252
+ // It is intended to keep the offset in sync with the timezone.
253
+
254
+ // Just in case
255
+
256
+ // Keeping the time actually adds/subtracts (one hour)
257
+
258
+ // LOCALES
259
+
260
+ // Lenient ordinal parsing accepts just a number in addition to
261
+
262
+ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
263
+
264
+ // MERGE
265
+
266
+ // MOMENTS
267
+
268
+ // Maandag is die eerste dag van die week.
269
+
270
+ // Math.floor prevents floating point math errors here
271
+
272
+ // Moment prototype object
273
+
274
+ // Moment.js
275
+
276
+ // Monday - Friday
277
+
278
+ // Monday is the first day of the week.
279
+
280
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
281
+
282
+ // Negative Number --> always true
283
+
284
+ // No op
285
+
286
+ // Nominativ
287
+
288
+ // On Firefox.24 Date#getTimezoneOffset returns a floating point.
289
+
290
+ // Only 1 digit
291
+
292
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
293
+
294
+ // PARSING
295
+
296
+ // Pick a moment m from moments so that m[fn](other) is true for all
297
+
298
+ // Pick the first defined of two or three arguments.
299
+
300
+ // Plugins that add properties should also add the key here (null value),
301
+
302
+ // Prevent infinite loop in case updateOffset creates new moment
303
+
304
+ // Prevent names that look like filesystem paths, i.e contain '/' or '\'
305
+
306
+ // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
307
+
308
+ // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
309
+
310
+ // Remove comments and folding whitespace and replace multiple-spaces with a single space
311
+
312
+ // Return a moment from input, that is local/utc/zone equivalent to model.
313
+
314
+ // Return the exports of the module
315
+
316
+ // Saturday is the first day of the week.
317
+
318
+ // See below ...
319
+
320
+ // See https://github.com/moment/moment/issues/3375
321
+
322
+ // Set abbr so it will have a name (getters return
323
+
324
+ // Setting the hour should keep the time, because the user explicitly
325
+
326
+ // Side effect imports
327
+
328
+ // Sorting makes sure if one month (or abbr) is a prefix of another
329
+
330
+ // Sorting makes sure if one month (or abbr) is a prefix of another it
331
+
332
+ // Sorting makes sure if one weekday (or abbr) is a prefix of another it
333
+
334
+ // Sunday is the first day of the week
335
+
336
+ // Sunday is the first day of the week.
337
+
338
+ // Support for single parameter, formats only overload to the calendar function
339
+
340
+ // TODO: Another silent failure?
341
+
342
+ // TODO: Find a better way to register and load all the locales in Node
343
+
344
+ // TODO: Move this to another part of the creation flow to prevent circular deps
345
+
346
+ // TODO: Remove "ordinalParse" fallback in next major release.
347
+
348
+ // TODO: Return 'e' when day of month > 1. Move this case inside
349
+
350
+ // TODO: Use [].sort instead?
351
+
352
+ // TODO: We need to take the current isoWeekYear, but that depends on
353
+
354
+ // TODO: add sorting
355
+
356
+ // TODO: remove 'name' arg after deprecation is removed
357
+
358
+ // Thanks to Joris Röling : https://github.com/jjupiter
359
+
360
+ // The following code bubbles up values, see the tests for
361
+
362
+ // The module cache
363
+
364
+ // The require function
365
+
366
+ // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
367
+
368
+ // This array is used to make a Date, either with `new Date` or `Date.UTC`
369
+
370
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
371
+
372
+ // This function allows you to set a threshold for relative time strings
373
+
374
+ // This function allows you to set the rounding function for relative time strings
375
+
376
+ // This function will be called whenever a moment is mutated.
377
+
378
+ // This function will load locale and then set the global locale. If
379
+
380
+ // This is because there is no context-free conversion between hours and days
381
+
382
+ // This is currently too difficult (maybe even impossible) to add.
383
+
384
+ // This is done to register the method called with moment()
385
+
386
+ // Update existing child locale in-place to avoid memory-leaks
387
+
388
+ // Use low-level api, because this fn is low-level api.
389
+
390
+ // Using charAt should be more compatible.
391
+
392
+ // We need to deep clone this object.
393
+
394
+ // We want to compare the start of today, vs this.
395
+
396
+ // We'd normally use ~~inp for this, but unfortunately it also
397
+
398
+ // Words with feminine grammatical gender: semaine
399
+
400
+ // Words with masculine grammatical gender: mois, trimestre, jour
401
+
402
+ // Zero out whatever was not defaulted, including time
403
+
404
+ // [year, month, day , hour, minute, second, millisecond]
405
+
406
+ // _changeInProgress == true case, then we have to adjust, because
407
+
408
+ // a day / in a day / a day ago
409
+
410
+ // a few seconds / in a few seconds / a few seconds ago
411
+
412
+ // a few seconds to seconds
413
+
414
+ // a minute / in a minute / a minute ago
415
+
416
+ // a month / in a month / a month ago
417
+
418
+ // a new timezone) makes sense. Adding/subtracting hours does not follow
419
+
420
+ // a now version of current config (take local/utc/offset flags, and
421
+
422
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
423
+
424
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
425
+
426
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
427
+
428
+ // a second time. In case it wants us to change the offset again
429
+
430
+ // a year / in a year / a year ago
431
+
432
+ // actual modulo - handles negative numbers (for dates before 1970):
433
+
434
+ // add remaining unparsed input length to the string
435
+
436
+ // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
437
+
438
+ // an hour / in an hour / an hour ago
439
+
440
+ // and also not between days and months (28-31 days per month)
441
+
442
+ // and further modified to allow for strings containing both week and day
443
+
444
+ // any word (or two) characters or numbers including two/three word month in arabic.
445
+
446
+ // apply sign while we're at it
447
+
448
+ // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
449
+
450
+ // as a setter, sunday should belong to the previous week.
451
+
452
+ // b is in (anchor - 1 month, anchor + 1 month)
453
+
454
+ // backwards compat for now: also set the locale
455
+
456
+ // behaves the same as moment#day except
457
+
458
+ // block for masculine words below.
459
+
460
+ // callback: function () { this.month() + 1 }
461
+
462
+ // can't just apply() to create a date:
463
+
464
+ // case 'Day': // Not real
465
+
466
+ // case 'Month': // Not used because we need to pass two variables
467
+
468
+ // check for mismatching day of week
469
+
470
+ // check: https://github.com/moment/moment/issues/2166
471
+
472
+ // checks for null or undefined
473
+
474
+ // clear _12h flag if hour is <= 12
475
+
476
+ // compare two arrays, return the number of differences
477
+
478
+ // constant that refers to the ISO standard
479
+
480
+ // constant that refers to the RFC 2822 form
481
+
482
+ // convert an array to a date.
483
+
484
+ // convert days to months
485
+
486
+ // converts floats to ints.
487
+
488
+ // create now).
489
+
490
+ // created, so we won't end up with the child locale set.
491
+
492
+ // currently HTML5 input type only supports 24-hour formats
493
+
494
+ // date and time from ref 2822 format
495
+
496
+ // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
497
+
498
+ // date from iso format
499
+
500
+ // date from string and array of format strings
501
+
502
+ // date from string and format string
503
+
504
+ // day when working around DST, we need to store them separately
505
+
506
+ // days than the end month.
507
+
508
+ // days to month/week
509
+
510
+ // default to beginning of week
511
+
512
+ // define __esModule on exports
513
+
514
+ // define getter functions for harmony exports
515
+
516
+ // difference in months
517
+
518
+ // don't parse if it's not a known token
519
+
520
+ // end-of-month calculations work correct when the start month has more
521
+
522
+ // examples of what that means.
523
+
524
+ // first element is an array of moment objects.
525
+
526
+ // first-week day -- which january is always in the first week (4 for iso, 1 for other)
527
+
528
+ // for ISO strings we do not use the normal bubbling rules:
529
+
530
+ // format date using native date object
531
+
532
+ // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
533
+
534
+ // from milliseconds
535
+
536
+ // from the actual represented time. That is why we call updateOffset
537
+
538
+ // function obliqueNumSuffix(num) {
539
+
540
+ // getDefaultExport function for compatibility with non-harmony modules
541
+
542
+ // goude merenn | a-raok merenn
543
+
544
+ // handle era
545
+
546
+ // handle meridiem
547
+
548
+ // handle milliseconds separately because of floating point math errors (issue #1867)
549
+
550
+ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
551
+
552
+ // hooks is actually the exported moment object
553
+
554
+ // hours to day
555
+
556
+ // how we interpret now (local, utc, fixed offset). So create
557
+
558
+ // http://new.gramota.ru/spravka/rules/139-prop : § 103
559
+
560
+ // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
561
+
562
+ // https://github.com/moment/moment/issues/1423
563
+
564
+ // https://github.com/moment/moment/pull/1871
565
+
566
+ // https://stackoverflow.com/q/181348
567
+
568
+ // if there is any input that was not parsed add a penalty for that format
569
+
570
+ // if we didn't find a month name, mark the date as invalid.
571
+
572
+ // if we didn't get a weekday name, mark the date as invalid
573
+
574
+ // if we have a mix of positive and negative values, bubble down first
575
+
576
+ // includes scottish gaelic two word and hyphenated months
577
+
578
+ // inp may be undefined, so careful calling replace on it.
579
+
580
+ // input != null
581
+
582
+ // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
583
+
584
+ // instance. Otherwise, it will return the locale configuration
585
+
586
+ // internal storage for locale config files
587
+
588
+ // iso 8601 regex
589
+
590
+ // iso time formats and regexes
591
+
592
+ // it separately.
593
+
594
+ // keepLocalTime = true means only change the timezone, without
595
+
596
+ // local weekday -- counting starts from beginning of week
597
+
598
+ // locale key.
599
+
600
+ // make sure changes to properties don't modify parent config
601
+
602
+ // make sure we set the locale AFTER all child locales have been
603
+
604
+ // make the regex if we don't have it already
605
+
606
+ // mark as not found to avoid repeating expensive file require call causing high CPU
607
+
608
+ // match[2] should be 'T' or space
609
+
610
+ // matching against regexp is expensive, do it on demand
611
+
612
+ // minutes to hour
613
+
614
+ // moment.duration._locale = moment._locale = data;
615
+
616
+ // moments should either be an array of moment objects or an array, whose
617
+
618
+ // native implementation is ~50x faster, use it when we can
619
+
620
+ // new Date(NaN).toJSON() === null
621
+
622
+ // no arguments are passed in, it will simply return the current global
623
+
624
+ // note: all values past the year are optional and will default to the lowest possible value.
625
+
626
+ // null means not found
627
+
628
+ // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
629
+
630
+ // object construction must be done this way.
631
+
632
+ // objects.
633
+
634
+ // only allow non-integers for smallest unit
635
+
636
+ // ordinal: 'Mo'
637
+
638
+ // other. This relies on the function fn to be transitive.
639
+
640
+ // padded: ['MM', 2]
641
+
642
+ // pass null for config to unupdate, useful for tests
643
+
644
+ // pick the locale from the array
645
+
646
+ // preserve leap years using a full 400 year cycle, then reset
647
+
648
+ // refer http://ta.wikipedia.org/s/1er1
649
+
650
+ // representation for dateAddRemove
651
+
652
+ // returns locale data
653
+
654
+ // seconds to minute
655
+
656
+ // see sorting in computeMonthsParse
657
+
658
+ // so we can properly clone ourselves.
659
+
660
+ // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
661
+
662
+ // special case for zero
663
+
664
+ // specified which hour they want. So trying to maintain the same hour (in
665
+
666
+ // start-of-first-week - start-of-year
667
+
668
+ // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
669
+
670
+ // supports only 2.0-style add(1, 's') or add(duration)
671
+
672
+ // supports only 2.0-style subtract(1, 's') or subtract(duration)
673
+
674
+ // test the regex
675
+
676
+ // the Date.UTC function remaps years 0-99 to 1900-1999
677
+
678
+ // the array should mirror the parameters below
679
+
680
+ // the date constructor remaps years 0-99 to 1900-1999
681
+
682
+ // the only allowed military tz is Z
683
+
684
+ // the reverse of daysToMonths
685
+
686
+ // there is no such time in the given timezone.
687
+
688
+ // this is not used
689
+
690
+ // this rule.
691
+
692
+ // this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn'
693
+
694
+ // time formats are the same as en-gb
695
+
696
+ // timezone chunker
697
+
698
+ // token: 'M'
699
+
700
+ // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
701
+
702
+ // truncate time
703
+
704
+ // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
705
+
706
+ // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
707
+
708
+ // undefined otherwise).
709
+
710
+ // updateLocale is called for creating a new locale
711
+
712
+ // useful for testing
713
+
714
+ // variables for this instance.
715
+
716
+ // webpackBootstrap
717
+
718
+ // weekday -- low day numbers are considered next week
719
+
720
+ // weeks to month
721
+
722
+ // when trying to find en-US, en_US, en-us for every format call
723
+
724
+ // which months you are are talking about, so we have to store
725
+
726
+ // will match the longer piece.
727
+
728
+ // with parseZone.
729
+
730
+ // without creating circular dependencies.
731
+
732
+ // yes, three characters difference
733
+
734
+ // }
735
+
736
+ // Выражение, которое соответствует только сокращённым формам
737
+
738
+ // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
739
+
740
+ // копия предыдущего
741
+
742
+ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
743
+
744
+ // полные названия с падежами
745
+
746
+ // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
747
+
748
+ //! moment.js
749
+
750
+ //! moment.js locale configuration
751
+
752
+ //Different grammatical cases
753
+
754
+ //check for negative zero, return zero if negative zero
755
+
756
+ //compute day of the year from weeks and weekdays
757
+
758
+ //if the day of the year is set, figure out what it is
759
+
760
+ //invert the arguments, but complain about it
761
+
762
+ //ne 'diurno', ĉar estas uzita por proksimumo
763
+
764
+ //or tokens
765
+
766
+ //short-circuit everything else
767
+
768
+ //the next array item is better than a shallower substring of this one
769
+
770
+ //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
771
+
772
+ //warn user if arguments are passed but the locale could not be set