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.
- package/DOCS.md +12 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/babel.config.json +3 -0
- package/demo/backend/body-end.php +10 -0
- package/demo/backend/head.php +93 -0
- package/demo/frontend/body-end.php +19 -0
- package/demo/frontend/head.php +244 -0
- package/demo/wonder-image.php +41 -0
- package/dist/0d01fa889dc2b0202b98.png +0 -0
- package/dist/203d1199e7aef04c0a34.gif +0 -0
- package/dist/26d6ed3fa1c815e4c78f.png +0 -0
- package/dist/39795c0b4513de014cf8.woff +0 -0
- package/dist/40b30ca122107c2852be.png +0 -0
- package/dist/4a7b4107b62ef059ba65.png +0 -0
- package/dist/4dce7f71b08755f19759.png +0 -0
- package/dist/60af14fddca897f348bb.png +0 -0
- package/dist/67172a36bcdeaca8592a.png +0 -0
- package/dist/a85c6dc53638f894de38.png +0 -0
- package/dist/b7bcc075b395c14ce8c2.woff2 +0 -0
- package/dist/backend/body-end.js +3 -0
- package/dist/backend/body-end.js.LICENSE.txt +44 -0
- package/dist/backend/body-end.js.map +1 -0
- package/dist/backend/head.css +2 -0
- package/dist/backend/head.css.map +1 -0
- package/dist/backend/head.js +3 -0
- package/dist/backend/head.js.LICENSE.txt +46 -0
- package/dist/backend/head.js.map +1 -0
- package/dist/backend/lib.js +2 -0
- package/dist/backend/lib.js.LICENSE.txt +1 -0
- package/dist/frontend/body-end.js +3 -0
- package/dist/frontend/body-end.js.LICENSE.txt +46 -0
- package/dist/frontend/body-end.js.map +1 -0
- package/dist/frontend/head.css +2 -0
- package/dist/frontend/head.css.map +1 -0
- package/dist/frontend/head.js +3 -0
- package/dist/frontend/head.js.LICENSE.txt +46 -0
- package/dist/frontend/head.js.map +1 -0
- package/dist/frontend/lib.css +2 -0
- package/dist/frontend/lib.css.map +1 -0
- package/dist/frontend/lib.js +3 -0
- package/dist/frontend/lib.js.LICENSE.txt +151 -0
- package/dist/frontend/lib.js.map +1 -0
- package/dist/lib/autonumeric/autonumeric.js +3 -0
- package/dist/lib/autonumeric/autonumeric.js.LICENSE.txt +47 -0
- package/dist/lib/autonumeric/autonumeric.js.map +1 -0
- package/dist/lib/bootstrap/bootstrap-datepicker.css +2 -0
- package/dist/lib/bootstrap/bootstrap-datepicker.css.map +1 -0
- package/dist/lib/bootstrap/bootstrap-datepicker.js +3 -0
- package/dist/lib/bootstrap/bootstrap-datepicker.js.LICENSE.txt +42 -0
- package/dist/lib/bootstrap/bootstrap-datepicker.js.map +1 -0
- package/dist/lib/bootstrap/bootstrap-icons.css +2 -0
- package/dist/lib/bootstrap/bootstrap-icons.css.map +1 -0
- package/dist/lib/bootstrap/bootstrap-icons.js +3 -0
- package/dist/lib/bootstrap/bootstrap-icons.js.LICENSE.txt +13 -0
- package/dist/lib/bootstrap/bootstrap-icons.js.map +1 -0
- package/dist/lib/bootstrap/bootstrap.css +2 -0
- package/dist/lib/bootstrap/bootstrap.css.map +1 -0
- package/dist/lib/bootstrap/bootstrap.js +3 -0
- package/dist/lib/bootstrap/bootstrap.js.LICENSE.txt +44 -0
- package/dist/lib/bootstrap/bootstrap.js.map +1 -0
- package/dist/lib/chartjs/chart.js +3 -0
- package/dist/lib/chartjs/chart.js.LICENSE.txt +1467 -0
- package/dist/lib/chartjs/chart.js.map +1 -0
- package/dist/lib/datatables/datatables.css +2 -0
- package/dist/lib/datatables/datatables.css.map +1 -0
- package/dist/lib/datatables/datatables.js +3 -0
- package/dist/lib/datatables/datatables.js.LICENSE.txt +8988 -0
- package/dist/lib/datatables/datatables.js.map +1 -0
- package/dist/lib/editorjs/editor.js +3 -0
- package/dist/lib/editorjs/editor.js.LICENSE.txt +5812 -0
- package/dist/lib/editorjs/editor.js.map +1 -0
- package/dist/lib/fancyapps/fancyapps.css +2 -0
- package/dist/lib/fancyapps/fancyapps.css.map +1 -0
- package/dist/lib/fancyapps/fancyapps.js +3 -0
- package/dist/lib/fancyapps/fancyapps.js.LICENSE.txt +19 -0
- package/dist/lib/fancyapps/fancyapps.js.map +1 -0
- package/dist/lib/filepond/filepond.css +2 -0
- package/dist/lib/filepond/filepond.css.map +1 -0
- package/dist/lib/filepond/filepond.js +3 -0
- package/dist/lib/filepond/filepond.js.LICENSE.txt +2797 -0
- package/dist/lib/filepond/filepond.js.map +1 -0
- package/dist/lib/fullcalendar/fullcalendar.js +3 -0
- package/dist/lib/fullcalendar/fullcalendar.js.LICENSE.txt +3787 -0
- package/dist/lib/fullcalendar/fullcalendar.js.map +1 -0
- package/dist/lib/jquery/jquery-plugin.css +2 -0
- package/dist/lib/jquery/jquery-plugin.css.map +1 -0
- package/dist/lib/jquery/jquery-plugin.js +3 -0
- package/dist/lib/jquery/jquery-plugin.js.LICENSE.txt +60 -0
- package/dist/lib/jquery/jquery-plugin.js.map +1 -0
- package/dist/lib/jquery/jquery.js +3 -0
- package/dist/lib/jquery/jquery.js.LICENSE.txt +3240 -0
- package/dist/lib/jquery/jquery.js.map +1 -0
- package/dist/lib/jstree/jstree.css +2 -0
- package/dist/lib/jstree/jstree.css.map +1 -0
- package/dist/lib/jstree/jstree.js +3 -0
- package/dist/lib/jstree/jstree.js.LICENSE.txt +42 -0
- package/dist/lib/jstree/jstree.js.map +1 -0
- package/dist/lib/moment/moment.js +3 -0
- package/dist/lib/moment/moment.js.LICENSE.txt +772 -0
- package/dist/lib/moment/moment.js.map +1 -0
- package/dist/lib/quilljs/quill.css +2 -0
- package/dist/lib/quilljs/quill.css.map +1 -0
- package/dist/lib/quilljs/quill.js +3 -0
- package/dist/lib/quilljs/quill.js.LICENSE.txt +3038 -0
- package/dist/lib/quilljs/quill.js.map +1 -0
- package/dist/lib/swiperjs/swiper-plugin.css +2 -0
- package/dist/lib/swiperjs/swiper-plugin.css.map +1 -0
- package/dist/lib/swiperjs/swiper-plugin.js +3 -0
- package/dist/lib/swiperjs/swiper-plugin.js.LICENSE.txt +1113 -0
- package/dist/lib/swiperjs/swiper-plugin.js.map +1 -0
- package/dist/lib/swiperjs/swiper.css +2 -0
- package/dist/lib/swiperjs/swiper.css.map +1 -0
- package/dist/lib/swiperjs/swiper.js +3 -0
- package/dist/lib/swiperjs/swiper.js.LICENSE.txt +651 -0
- package/dist/lib/swiperjs/swiper.js.map +1 -0
- package/dist/lib/videojs/video.css +2 -0
- package/dist/lib/videojs/video.css.map +1 -0
- package/dist/lib/videojs/video.js +3 -0
- package/dist/lib/videojs/video.js.LICENSE.txt +23391 -0
- package/dist/lib/videojs/video.js.map +1 -0
- package/package.json +95 -0
- package/src/build/backend/css/header.css +252 -0
- package/src/build/backend/css/input.css +295 -0
- package/src/build/backend/css/list.css +57 -0
- package/src/build/backend/css/order.css +99 -0
- package/src/build/backend/js/ajax.js +96 -0
- package/src/build/backend/js/alert.js +78 -0
- package/src/build/backend/js/bootstrap.js +52 -0
- package/src/build/backend/js/form/editor.js +293 -0
- package/src/build/backend/js/form/file.js +142 -0
- package/src/build/backend/js/form/filepond.js +11 -0
- package/src/build/backend/js/form/input.js +313 -0
- package/src/build/backend/js/form/inputRow.js +164 -0
- package/src/build/backend/js/form/send.js +14 -0
- package/src/build/backend/js/form/set.js +314 -0
- package/src/build/backend/js/jquery.js +15 -0
- package/src/build/backend/js/list.js +19 -0
- package/src/build/backend/js/modal.js +31 -0
- package/src/build/backend/js/pageSetUp.js +125 -0
- package/src/build/backend/js/utility.js +38 -0
- package/src/build/frontend/css/class/dimension.css +3376 -0
- package/src/build/frontend/css/class/function.css +316 -0
- package/src/build/frontend/css/class/grid.css +240 -0
- package/src/build/frontend/css/class/margin.css +823 -0
- package/src/build/frontend/css/class/padding.css +760 -0
- package/src/build/frontend/css/class/position.css +351 -0
- package/src/build/frontend/css/class/resize.css +24 -0
- package/src/build/frontend/css/class/section.css +41 -0
- package/src/build/frontend/css/class/text.css +244 -0
- package/src/build/frontend/css/components/alert.css +42 -0
- package/src/build/frontend/css/components/button.css +107 -0
- package/src/build/frontend/css/components/dropdown.css +118 -0
- package/src/build/frontend/css/components/form/address.css +26 -0
- package/src/build/frontend/css/components/form/checkbox.css +65 -0
- package/src/build/frontend/css/components/form/date.css +133 -0
- package/src/build/frontend/css/components/form/input.css +176 -0
- package/src/build/frontend/css/components/form/select.css +69 -0
- package/src/build/frontend/css/components/header/hamburger/hamburger-1.css +56 -0
- package/src/build/frontend/css/components/header/hamburger/hamburger.css +58 -0
- package/src/build/frontend/css/components/header/header.css +57 -0
- package/src/build/frontend/css/components/header/mobile-nav.css +79 -0
- package/src/build/frontend/css/components/modal.css +76 -0
- package/src/build/frontend/css/components/spinner.css +37 -0
- package/src/build/frontend/css/generator/dimension.php +93 -0
- package/src/build/frontend/css/generator/margin.php +48 -0
- package/src/build/frontend/css/generator/padding.php +48 -0
- package/src/build/frontend/css/lib.css +3 -0
- package/src/build/frontend/css/main.css +37 -0
- package/src/build/frontend/js/alert.js +64 -0
- package/src/build/frontend/js/aos.js +9 -0
- package/src/build/frontend/js/dropdown.js +73 -0
- package/src/build/frontend/js/form/input.js +211 -0
- package/src/build/frontend/js/form/list.js +155 -0
- package/src/build/frontend/js/form/select.js +108 -0
- package/src/build/frontend/js/form/send.js +137 -0
- package/src/build/frontend/js/header.js +12 -0
- package/src/build/frontend/js/modal.js +26 -0
- package/src/build/frontend/js/pageSetUp.js +35 -0
- package/src/build/frontend/js/scroll.js +70 -0
- package/src/build/frontend/js/utility.js +21 -0
- package/src/build/global/js/canvas.js +82 -0
- package/src/build/global/js/fetch.js +47 -0
- package/src/build/global/js/form/autonumeric.js +136 -0
- package/src/build/global/js/form/phone.js +19 -0
- package/src/build/global/js/utility.js +88 -0
- package/src/build/global/js/video.js +7 -0
- package/src/build/lib/editorjs/gallery.js +39 -0
- package/src/build/lib/editorjs/hyperlink.js +170 -0
- package/src/build/lib/editorjs/video.js +61 -0
- package/src/build/lib/swiperjs/effect-carousel.css +24 -0
- package/src/build/lib/swiperjs/effect-carousel.esm.js +102 -0
- package/src/build/lib/swiperjs/effect-shutters.css +33 -0
- package/src/build/lib/swiperjs/effect-shutters.esm.js +114 -0
- package/src/build/lib/swiperjs/effect-slicer.css +39 -0
- package/src/build/lib/swiperjs/effect-slicer.esm.js +198 -0
- package/src/build/lib/swiperjs/swiper-gl.css +44 -0
- package/src/build/lib/swiperjs/swiper-gl.esm.js +6063 -0
- package/src/export/backend/body-end.js +4 -0
- package/src/export/backend/head.js +25 -0
- package/src/export/backend/lib.js +0 -0
- package/src/export/frontend/body-end.js +9 -0
- package/src/export/frontend/head.js +42 -0
- package/src/export/frontend/lib.js +17 -0
- package/src/export/lib/autonumeric/autonumeric.js +3 -0
- package/src/export/lib/bootstrap/bootstrap-datepicker.js +4 -0
- package/src/export/lib/bootstrap/bootstrap-icons.js +2 -0
- package/src/export/lib/bootstrap/bootstrap.js +3 -0
- package/src/export/lib/chartjs/chart.js +4 -0
- package/src/export/lib/datatables/datatables.js +6 -0
- package/src/export/lib/editorjs/editor.js +48 -0
- package/src/export/lib/fancyapps/fancyapps.js +7 -0
- package/src/export/lib/filepond/filepond.js +51 -0
- package/src/export/lib/fullcalendar/fullcalendar.js +29 -0
- package/src/export/lib/jquery/jquery-plugin.js +14 -0
- package/src/export/lib/jquery/jquery.js +4 -0
- package/src/export/lib/jstree/jstree.js +2 -0
- package/src/export/lib/moment/moment.js +12 -0
- package/src/export/lib/quilljs/quill.js +4 -0
- package/src/export/lib/swiperjs/swiper-plugin.js +20 -0
- package/src/export/lib/swiperjs/swiper.js +4 -0
- package/src/export/lib/videojs/video.js +3 -0
- package/webpack.config.js +79 -0
|
@@ -0,0 +1,1467 @@
|
|
|
1
|
+
/* #__PURE__ */
|
|
2
|
+
|
|
3
|
+
/* falls through */
|
|
4
|
+
|
|
5
|
+
/* harmony default export */
|
|
6
|
+
|
|
7
|
+
/* module decorator */
|
|
8
|
+
|
|
9
|
+
/* noop */
|
|
10
|
+
|
|
11
|
+
/* webpack/runtime/compat get default export */
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* chartjs-adapter-moment v1.0.1
|
|
15
|
+
* https://www.chartjs.org
|
|
16
|
+
* (c) 2022 chartjs-adapter-moment Contributors
|
|
17
|
+
* Released under the MIT license
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/*!
|
|
21
|
+
* @kurkle/color v0.3.2
|
|
22
|
+
* https://github.com/kurkle/color#readme
|
|
23
|
+
* (c) 2023 Jukka Kurkela
|
|
24
|
+
* Released under the MIT License
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/*!
|
|
28
|
+
* Chart.js v4.4.2
|
|
29
|
+
* https://www.chartjs.org
|
|
30
|
+
* (c) 2024 Chart.js Contributors
|
|
31
|
+
* Released under the MIT License
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/*#__PURE__*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A trap for Object.getOwnPropertyDescriptor.
|
|
42
|
+
* Also used by Object.hasOwnProperty.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A trap for Object.getOwnPropertyNames and Object.getOwnPropertySymbols.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* A trap for Object.getPrototypeOf.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A trap for getting property values.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A trap for setting property values.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A trap for the delete operator.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* A trap for the in operator.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Now that IE11 support has been dropped, we can use more
|
|
71
|
+
* of the TextMetrics object. The actual bounding boxes
|
|
72
|
+
* are unflagged in Chrome, Firefox, Edge, and Safari so they
|
|
73
|
+
* can be safely used.
|
|
74
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics#Browser_compatibility
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Return a human readable representation of a moment that can
|
|
79
|
+
* also be evaluated to get a new moment which is the same
|
|
80
|
+
*
|
|
81
|
+
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Returns true if the word before the given number loses the '-n' ending.
|
|
86
|
+
* e.g. 'an 10 Deeg' but 'a 5 Deeg'
|
|
87
|
+
*
|
|
88
|
+
* @param number {integer}
|
|
89
|
+
* @returns {boolean}
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @type {any}
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Override default date adapter methods.
|
|
98
|
+
* Accepts type parameter to define options type.
|
|
99
|
+
* @example
|
|
100
|
+
* Chart._adapters._date.override<{myAdapterOption: string}>({
|
|
101
|
+
* init() {
|
|
102
|
+
* console.log(this.options.myAdapterOption);
|
|
103
|
+
* }
|
|
104
|
+
* })
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @alias Chart.helpers.math
|
|
109
|
+
* @namespace
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @alias Chart.helpers.options
|
|
114
|
+
* @namespace
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @namespace Chart._adapters
|
|
119
|
+
* @since 2.8.0
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @namespace Chart.helpers
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @param chart
|
|
129
|
+
* @param forceRatio
|
|
130
|
+
* @param forceStyle
|
|
131
|
+
* @returns True if the canvas context size or transformation has changed.
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param e
|
|
136
|
+
* @param canvas
|
|
137
|
+
* @returns Canvas position
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @param e - The event
|
|
142
|
+
* @private
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @param items
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @param minmax
|
|
151
|
+
* @param grace
|
|
152
|
+
* @param beginAtZero
|
|
153
|
+
* @private
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param value
|
|
158
|
+
* @param start
|
|
159
|
+
* @param end
|
|
160
|
+
* @param [epsilon]
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @param {number} value
|
|
166
|
+
* @private
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Add a path of a rectangle with rounded corners to the current sub-path
|
|
175
|
+
* @param ctx - Context
|
|
176
|
+
* @param rect - Bounding rect
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Adjust tangents to ensure monotonic properties
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* An empty function that can be used, for example, for optional callback.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Binary search
|
|
189
|
+
* @param table - the table search. must be sorted!
|
|
190
|
+
* @param key - property name for the value in each entry
|
|
191
|
+
* @param value - value to find
|
|
192
|
+
* @param last - lookup last index
|
|
193
|
+
* @private
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the
|
|
198
|
+
* value returned by `fn`. If `fn` is not a function, this method returns undefined.
|
|
199
|
+
* @param fn - The function to call.
|
|
200
|
+
* @param args - The arguments with which `fn` should be called.
|
|
201
|
+
* @param [thisArg] - The value of `this` provided for the call to `fn`.
|
|
202
|
+
*/
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Checks if the scale ranges have changed.
|
|
206
|
+
* @param {object} meta - dataset meta.
|
|
207
|
+
* @returns {boolean}
|
|
208
|
+
* @private
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Clears the entire canvas.
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Convert (r, 𝜃) to (x, y)
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Converts 'start' to 'left', 'end' to 'right' and others to 'center'
|
|
221
|
+
* @private
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Converts the given font object into a CSS font string.
|
|
226
|
+
* @param font - A font object.
|
|
227
|
+
* @return The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font
|
|
228
|
+
* @private
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Converts the given line height `value` in pixels for a specific font `size`.
|
|
233
|
+
* @param value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').
|
|
234
|
+
* @param size - The font size (in pixels) used to resolve relative `value`.
|
|
235
|
+
* @returns The effective line height in pixels (size * 1.2 if value is invalid).
|
|
236
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
|
|
237
|
+
* @since 2.7.0
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Converts the given value into a TRBL corners object (similar with css border-radius).
|
|
242
|
+
* @param value - If a number, set the value to all TRBL corner components,
|
|
243
|
+
* else, if an object, use defined properties and sets undefined ones to 0.
|
|
244
|
+
* @returns The TRBL corner values (topLeft, topRight, bottomLeft, bottomRight)
|
|
245
|
+
* @since 3.0.0
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Converts the given value into a TRBL object.
|
|
250
|
+
* @param value - If a number, set the value to all TRBL component,
|
|
251
|
+
* else, if an object, use defined properties and sets undefined ones to 0.
|
|
252
|
+
* x / y are shorthands for same value for left/right and top/bottom.
|
|
253
|
+
* @returns The padding values (top, right, bottom, left)
|
|
254
|
+
* @since 3.0.0
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Converts the given value into a padding object with pre-computed width/height.
|
|
259
|
+
* @param value - If a number, set the value to all TRBL component,
|
|
260
|
+
* else, if an object, use defined properties and sets undefined ones to 0.
|
|
261
|
+
* x / y are shorthands for same value for left/right and top/bottom.
|
|
262
|
+
* @returns The padding values (top, right, bottom, left, width, height)
|
|
263
|
+
* @since 2.7.0
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Creates a Proxy for resolving raw values for options.
|
|
268
|
+
* @param scopes - The option scopes to look for values, in resolution order
|
|
269
|
+
* @param prefixes - The prefixes for values, in resolution order.
|
|
270
|
+
* @param rootScopes - The root option scopes
|
|
271
|
+
* @param fallback - Parent scopes fallback
|
|
272
|
+
* @param getTarget - callback for getting the target for changed values
|
|
273
|
+
* @returns Proxy
|
|
274
|
+
* @private
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Date adapter (current used by the time scale)
|
|
279
|
+
* @namespace Chart._adapters._date
|
|
280
|
+
* @memberof Chart._adapters
|
|
281
|
+
* @private
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Debounces calling `fn` for `delay` ms
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Detects support for options object argument in addEventListener.
|
|
290
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
|
|
291
|
+
* @private
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Easing functions adapted from Robert Penner's easing equations.
|
|
296
|
+
* @namespace Chart.helpers.easing.effects
|
|
297
|
+
* @see http://www.robertpenner.com/easing/
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Evaluates the given `inputs` sequentially and returns the first defined value.
|
|
302
|
+
* @param inputs - An array of values, falling back to the last value.
|
|
303
|
+
* @param context - If defined and the current value is a function, the value
|
|
304
|
+
* is called with `context` as first argument and the result becomes the new input.
|
|
305
|
+
* @param index - If defined and the current value is an array, the value
|
|
306
|
+
* at `index` become the new input.
|
|
307
|
+
* @param info - object to return information about resolution in
|
|
308
|
+
* @param info.cacheable - Will be set to `false` if option is not cacheable.
|
|
309
|
+
* @since 2.7.0
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Gets an event's x, y coordinates, relative to the chart area
|
|
314
|
+
* @param event
|
|
315
|
+
* @param chart
|
|
316
|
+
* @returns x and y coordinates of the event
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Implementation of the nice number algorithm used in determining where axis labels will go
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Limit `value` between `min` and `max`
|
|
325
|
+
* @param value
|
|
326
|
+
* @param min
|
|
327
|
+
* @param max
|
|
328
|
+
* @private
|
|
329
|
+
*/
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Merges source[key] in target[key] only if target[key] is undefined.
|
|
333
|
+
* @private
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Normalize angle to be between 0 and 2*PI
|
|
338
|
+
* @private
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Note: typedefs are auto-exported, so use a made-up `dom` namespace where
|
|
343
|
+
* necessary to avoid duplicates with `export * from './helpers`; see
|
|
344
|
+
* https://github.com/microsoft/TypeScript/issues/46011
|
|
345
|
+
* @typedef { import('../core/core.controller.js').default } dom.Chart
|
|
346
|
+
* @typedef { import('../../types').ChartEvent } ChartEvent
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Parse border radius from the provided options
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Parses font options and returns the font object.
|
|
355
|
+
* @param options - A object that contains font options to be parsed.
|
|
356
|
+
* @param fallback - A object that contains fallback font options.
|
|
357
|
+
* @return The font object.
|
|
358
|
+
* @private
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Path the arc, respecting border radius by separating into left and right halves.
|
|
363
|
+
*
|
|
364
|
+
* Start End
|
|
365
|
+
*
|
|
366
|
+
* 1--->a--->2 Outer
|
|
367
|
+
* / \
|
|
368
|
+
* 8 3
|
|
369
|
+
* | |
|
|
370
|
+
* | |
|
|
371
|
+
* 7 4
|
|
372
|
+
* \ /
|
|
373
|
+
* 6<---b<---5 Inner
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Render text onto the canvas
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Return start and count of visible points.
|
|
382
|
+
* @private
|
|
383
|
+
*/
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Return subset of `values` between `min` and `max` inclusive.
|
|
387
|
+
* Values are assumed to be in sorted order.
|
|
388
|
+
* @param values - sorted array of values
|
|
389
|
+
* @param min - min value
|
|
390
|
+
* @param max - max value
|
|
391
|
+
*/
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Returns `left`, `right` or `(left + right) / 2` depending on `align`. Defaults to `left`
|
|
395
|
+
* @private
|
|
396
|
+
*/
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Returns `start`, `end` or `(start + end) / 2` depending on `align`. Defaults to `center`
|
|
400
|
+
* @private
|
|
401
|
+
*/
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Returns `value` if defined, else returns `defaultValue`.
|
|
405
|
+
* @param value - The value to return if defined.
|
|
406
|
+
* @param defaultValue - The value to return if `value` is undefined.
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Returns `value` if finite, else returns `defaultValue`.
|
|
411
|
+
* @param value - The value to return if defined.
|
|
412
|
+
* @param defaultValue - The value to return if `value` is not finite.
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Returns a deep copy of `source` without keeping references on objects and arrays.
|
|
417
|
+
* @param source - The value to clone.
|
|
418
|
+
*/
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Returns a unique id, sequentially generated from a global variable.
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Returns an Proxy for resolving option values with context.
|
|
426
|
+
* @param proxy - The Proxy returned by `_createResolver`
|
|
427
|
+
* @param context - Context object for scriptable/indexable options
|
|
428
|
+
* @param subProxy - The proxy provided for scriptable options
|
|
429
|
+
* @param descriptorDefaults - Defaults for descriptors
|
|
430
|
+
* @private
|
|
431
|
+
*/
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Returns an array of factors sorted from 1 to sqrt(value)
|
|
435
|
+
* @private
|
|
436
|
+
*/
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Returns the aligned pixel value to avoid anti-aliasing blur
|
|
440
|
+
* @param chart - The chart instance.
|
|
441
|
+
* @param pixel - A pixel value.
|
|
442
|
+
* @param width - The width of the element.
|
|
443
|
+
* @returns The aligned pixel value.
|
|
444
|
+
* @private
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Returns the number of decimal places
|
|
449
|
+
* i.e. the number of digits after the decimal point, of the value of this Number.
|
|
450
|
+
* @param x - A number.
|
|
451
|
+
* @returns The number of decimal places.
|
|
452
|
+
* @private
|
|
453
|
+
*/
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Returns true if `value` is a finite number, else returns false
|
|
457
|
+
* @param value - The value to test.
|
|
458
|
+
*/
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Returns true if `value` is an array (including typed arrays), else returns false.
|
|
462
|
+
* @param value - The value to test.
|
|
463
|
+
* @function
|
|
464
|
+
*/
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Returns true if `value` is an object (excluding null), else returns false.
|
|
468
|
+
* @param value - The value to test.
|
|
469
|
+
* @since 2.7.0
|
|
470
|
+
*/
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Returns true if `value` is neither null nor undefined, else returns false.
|
|
474
|
+
* @param value - The value to test.
|
|
475
|
+
* @since 2.7.0
|
|
476
|
+
*/
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Returns true if the `a0` and `a1` arrays have the same content, else returns false.
|
|
480
|
+
* @param a0 - The array to compare
|
|
481
|
+
* @param a1 - The array to compare
|
|
482
|
+
* @private
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Returns true if the point is inside the rectangle
|
|
487
|
+
* @param point - The point to test
|
|
488
|
+
* @param area - The rectangle
|
|
489
|
+
* @param margin - allowed margin
|
|
490
|
+
* @private
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Reverse binary search
|
|
495
|
+
* @param table - the table search. must be sorted!
|
|
496
|
+
* @param key - property name for the value in each entry
|
|
497
|
+
* @param value - value to find
|
|
498
|
+
* @private
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Shortest distance between angles, in either direction.
|
|
503
|
+
* @private
|
|
504
|
+
*/
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* The "used" size is the final value of a dimension property after all calculations have
|
|
508
|
+
* been performed. This method uses the computed style of `element` but returns undefined
|
|
509
|
+
* if the computed style is not expressed in pixels. That can happen in some cases where
|
|
510
|
+
* `element` has a size relative to its parent and this last one is not yet displayed,
|
|
511
|
+
* for example because of `display: none` on a parent node.
|
|
512
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value
|
|
513
|
+
* @returns Size in pixels or undefined if unknown.
|
|
514
|
+
*/
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* The default merger when Chart.helpers.merge is called without merger option.
|
|
518
|
+
* Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.
|
|
519
|
+
* @private
|
|
520
|
+
*/
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* This function calculates Bézier control points in a similar way than |splineCurve|,
|
|
524
|
+
* but preserves monotonicity of the provided data and ensures no local extremums are added
|
|
525
|
+
* between the dataset discrete points due to the interpolation.
|
|
526
|
+
* See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation
|
|
527
|
+
*/
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Throttles calling `fn` once per animation frame
|
|
531
|
+
* Latest arguments are used on the actual call
|
|
532
|
+
*/
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* convert max-width/max-height values that may be percentages into a number
|
|
536
|
+
* @private
|
|
537
|
+
*/
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Request animation polyfill
|
|
541
|
+
*/
|
|
542
|
+
|
|
543
|
+
/************************************************************************/
|
|
544
|
+
|
|
545
|
+
/******/
|
|
546
|
+
|
|
547
|
+
/***/
|
|
548
|
+
|
|
549
|
+
/*jshint -W100*/
|
|
550
|
+
|
|
551
|
+
//
|
|
552
|
+
|
|
553
|
+
// : (num > 10 && num % 10 == 0 ? 'î' : 'an');
|
|
554
|
+
|
|
555
|
+
// 0-99
|
|
556
|
+
|
|
557
|
+
// 1-99
|
|
558
|
+
|
|
559
|
+
// num = parseInt(num);
|
|
560
|
+
|
|
561
|
+
// num = parseInt(num.split(':')[0]);
|
|
562
|
+
|
|
563
|
+
// 0 - 9
|
|
564
|
+
|
|
565
|
+
// 0 - 99
|
|
566
|
+
|
|
567
|
+
// 0 - 999
|
|
568
|
+
|
|
569
|
+
// 0 - 9999
|
|
570
|
+
|
|
571
|
+
// 0 - inf
|
|
572
|
+
|
|
573
|
+
// 00 - 99
|
|
574
|
+
|
|
575
|
+
// 000 - 999
|
|
576
|
+
|
|
577
|
+
// 999 - 9999
|
|
578
|
+
|
|
579
|
+
// else
|
|
580
|
+
|
|
581
|
+
// if(num.includes(':'))
|
|
582
|
+
|
|
583
|
+
// return num == 0 || num % 10 == 1 ? 'ê'
|
|
584
|
+
|
|
585
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
586
|
+
|
|
587
|
+
// -inf - inf
|
|
588
|
+
|
|
589
|
+
// 0000 - 9999
|
|
590
|
+
|
|
591
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
592
|
+
|
|
593
|
+
// 99999 - 999999
|
|
594
|
+
|
|
595
|
+
// * days do not bubble at all
|
|
596
|
+
|
|
597
|
+
// * milliseconds bubble up until they become hours
|
|
598
|
+
|
|
599
|
+
// * months bubble up until they become years
|
|
600
|
+
|
|
601
|
+
// '+10:00' > ['10', '00']
|
|
602
|
+
|
|
603
|
+
// '-1530' > ['-15', '30']
|
|
604
|
+
|
|
605
|
+
// ()
|
|
606
|
+
|
|
607
|
+
// (5)
|
|
608
|
+
|
|
609
|
+
// (fmt)
|
|
610
|
+
|
|
611
|
+
// (fmt, 5)
|
|
612
|
+
|
|
613
|
+
// (think of clock changes)
|
|
614
|
+
|
|
615
|
+
// (true)
|
|
616
|
+
|
|
617
|
+
// (true, 5)
|
|
618
|
+
|
|
619
|
+
// (true, fmt)
|
|
620
|
+
|
|
621
|
+
// (true, fmt, 5)
|
|
622
|
+
|
|
623
|
+
// * if day of month is given, default month and year
|
|
624
|
+
|
|
625
|
+
// * if month is given, default only year
|
|
626
|
+
|
|
627
|
+
// * if no year, month, day of month are given, default to today
|
|
628
|
+
|
|
629
|
+
// * if year is given, don't default anything
|
|
630
|
+
|
|
631
|
+
// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
632
|
+
|
|
633
|
+
// +00:00 -00:00 +0000 -0000 or Z
|
|
634
|
+
|
|
635
|
+
// +0200, so we adjust the time as needed, to be valid.
|
|
636
|
+
|
|
637
|
+
// -999999 - 999999
|
|
638
|
+
|
|
639
|
+
// 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)
|
|
640
|
+
|
|
641
|
+
// 1000
|
|
642
|
+
|
|
643
|
+
// 1000 * 60
|
|
644
|
+
|
|
645
|
+
// 1000 * 60 * 60
|
|
646
|
+
|
|
647
|
+
// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
648
|
+
|
|
649
|
+
// 1000 * 60 * 60 * 24, negate dst
|
|
650
|
+
|
|
651
|
+
// 12 months -> 1 year
|
|
652
|
+
|
|
653
|
+
// 123456789 123456789.123
|
|
654
|
+
|
|
655
|
+
// 1af to 10fed
|
|
656
|
+
|
|
657
|
+
// 2 digits
|
|
658
|
+
|
|
659
|
+
// 3 or 4 digits --> recursively check first digit
|
|
660
|
+
|
|
661
|
+
// 3600 seconds -> 60 minutes -> 1 hour
|
|
662
|
+
|
|
663
|
+
// 400 years have 12 months === 4800
|
|
664
|
+
|
|
665
|
+
// 400 years have 146097 days (taking into account leap year rules)
|
|
666
|
+
|
|
667
|
+
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
|
|
668
|
+
|
|
669
|
+
// 9 days / in 9 days / 9 days ago
|
|
670
|
+
|
|
671
|
+
// 9 hours / in 9 hours / 9 hours ago
|
|
672
|
+
|
|
673
|
+
// 9 minutes / in 9 minutes / 9 minutes ago
|
|
674
|
+
|
|
675
|
+
// 9 months / in 9 months / 9 months ago
|
|
676
|
+
|
|
677
|
+
// 9 seconds / in 9 seconds / 9 seconds ago
|
|
678
|
+
|
|
679
|
+
// 9 years / in 9 years / 9 years ago
|
|
680
|
+
|
|
681
|
+
// <input type="date" />
|
|
682
|
+
|
|
683
|
+
// <input type="datetime-local" />
|
|
684
|
+
|
|
685
|
+
// <input type="datetime-local" step="0.001" />
|
|
686
|
+
|
|
687
|
+
// <input type="datetime-local" step="1" />
|
|
688
|
+
|
|
689
|
+
// <input type="time" />
|
|
690
|
+
|
|
691
|
+
// <input type="time" step="0.001" />
|
|
692
|
+
|
|
693
|
+
// <input type="time" step="1" />
|
|
694
|
+
|
|
695
|
+
// <input type="week" />
|
|
696
|
+
|
|
697
|
+
// @ts-expect-error Fallbacks should never be hit in practice
|
|
698
|
+
|
|
699
|
+
// @ts-expect-error Need to fix types on _lookupByKey
|
|
700
|
+
|
|
701
|
+
// @ts-expect-error Need to type _parsed
|
|
702
|
+
|
|
703
|
+
// ALIASES
|
|
704
|
+
|
|
705
|
+
// ASP.NET json date format regex
|
|
706
|
+
|
|
707
|
+
// According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
|
|
708
|
+
|
|
709
|
+
// Adapted from https://stackoverflow.com/questions/31128855/comparing-ecma6-sets-for-equality#31129384
|
|
710
|
+
|
|
711
|
+
// Adding is smart enough around DST
|
|
712
|
+
|
|
713
|
+
// After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
|
|
714
|
+
|
|
715
|
+
// Anything larger than 4 digits: recursively check first n-3 digits
|
|
716
|
+
|
|
717
|
+
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
718
|
+
|
|
719
|
+
// Array of objects, return array or resolvers
|
|
720
|
+
|
|
721
|
+
// Because of dateAddRemove treats 24 hours as different from a
|
|
722
|
+
|
|
723
|
+
// Border colors with 50% transparency
|
|
724
|
+
|
|
725
|
+
// But the names below are more well known and handy
|
|
726
|
+
|
|
727
|
+
// CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
|
|
728
|
+
|
|
729
|
+
// CONCATENATED MODULE: ./node_modules/@kurkle/color/dist/color.esm.js
|
|
730
|
+
|
|
731
|
+
// CONCATENATED MODULE: ./node_modules/chart.js/auto/auto.js
|
|
732
|
+
|
|
733
|
+
// CONCATENATED MODULE: ./node_modules/chart.js/dist/chart.js
|
|
734
|
+
|
|
735
|
+
// CONCATENATED MODULE: ./node_modules/chart.js/dist/chunks/helpers.segment.js
|
|
736
|
+
|
|
737
|
+
// CONCATENATED MODULE: ./node_modules/chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js
|
|
738
|
+
|
|
739
|
+
// CONCATENATED MODULE: ./src/export/lib/chartjs/chart.js
|
|
740
|
+
|
|
741
|
+
// Calculate slopes (deltaK) and initialize tangents (mK)
|
|
742
|
+
|
|
743
|
+
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
744
|
+
|
|
745
|
+
// Check for 24:00:00.000
|
|
746
|
+
|
|
747
|
+
// Check if module is in cache
|
|
748
|
+
|
|
749
|
+
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
750
|
+
|
|
751
|
+
// Create a new module (and put it into the cache)
|
|
752
|
+
|
|
753
|
+
// DEBUG ONLY
|
|
754
|
+
|
|
755
|
+
// Date.UTC remaps years 0-99 to 1900-1999
|
|
756
|
+
|
|
757
|
+
// Default includes circle
|
|
758
|
+
|
|
759
|
+
// Default to current date.
|
|
760
|
+
|
|
761
|
+
// Default to current week.
|
|
762
|
+
|
|
763
|
+
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
|
|
764
|
+
|
|
765
|
+
// Draw an inner border by clipping the arc and drawing a double-width border
|
|
766
|
+
|
|
767
|
+
// ESM COMPAT FLAG
|
|
768
|
+
|
|
769
|
+
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
770
|
+
|
|
771
|
+
// Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders
|
|
772
|
+
|
|
773
|
+
// Ensure name is available and function returns boolean
|
|
774
|
+
|
|
775
|
+
// Execute the module function
|
|
776
|
+
|
|
777
|
+
// FORMATTING
|
|
778
|
+
|
|
779
|
+
// Fallback
|
|
780
|
+
|
|
781
|
+
// Fallback to `false` results to `false`, when falling back to different key.
|
|
782
|
+
|
|
783
|
+
// Final attempt, use Input Fallback
|
|
784
|
+
|
|
785
|
+
// Flag the module as loaded
|
|
786
|
+
|
|
787
|
+
// For array of objects, the object is used to store updated values
|
|
788
|
+
|
|
789
|
+
// For example `interaction` from `hover` or `plugins.tooltip` and `animation` from `animations`
|
|
790
|
+
|
|
791
|
+
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
|
792
|
+
|
|
793
|
+
// Gets the angle from vertical upright to the point about a centre.
|
|
794
|
+
|
|
795
|
+
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
796
|
+
|
|
797
|
+
// Gujarati notation for meridiems are quite fuzzy in practice. While there exists
|
|
798
|
+
|
|
799
|
+
// HELPERS
|
|
800
|
+
|
|
801
|
+
// HOOKS
|
|
802
|
+
|
|
803
|
+
// Hindi notation for meridiems are quite fuzzy in practice. While there exists
|
|
804
|
+
|
|
805
|
+
// I know
|
|
806
|
+
|
|
807
|
+
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
808
|
+
|
|
809
|
+
// IE8 will treat undefined and null as object if it wasn't for
|
|
810
|
+
|
|
811
|
+
// If all points are the same, s01 & s02 will be inf
|
|
812
|
+
|
|
813
|
+
// If no style has been set on the canvas, the render size is used as display size,
|
|
814
|
+
|
|
815
|
+
// If passed a locale key, it will set the locale for this
|
|
816
|
+
|
|
817
|
+
// If the canvas has width, but no height, default to aspectRatio of 2 (canvas default)
|
|
818
|
+
|
|
819
|
+
// In the case of two points that appear at the same x pixel, slopeDeltaX is 0
|
|
820
|
+
|
|
821
|
+
// It is impossible to translate months into days without knowing
|
|
822
|
+
|
|
823
|
+
// It is intended to keep the offset in sync with the timezone.
|
|
824
|
+
|
|
825
|
+
// Just in case
|
|
826
|
+
|
|
827
|
+
// Keeping the time actually adds/subtracts (one hour)
|
|
828
|
+
|
|
829
|
+
// LOCALES
|
|
830
|
+
|
|
831
|
+
// Lenient ordinal parsing accepts just a number in addition to
|
|
832
|
+
|
|
833
|
+
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
|
834
|
+
|
|
835
|
+
// MERGE
|
|
836
|
+
|
|
837
|
+
// MOMENTS
|
|
838
|
+
|
|
839
|
+
// Maandag is die eerste dag van die week.
|
|
840
|
+
|
|
841
|
+
// Math.floor prevents floating point math errors here
|
|
842
|
+
|
|
843
|
+
// Moment prototype object
|
|
844
|
+
|
|
845
|
+
// Monday - Friday
|
|
846
|
+
|
|
847
|
+
// Monday is the first day of the week.
|
|
848
|
+
|
|
849
|
+
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
|
850
|
+
|
|
851
|
+
// NOTE: the rounded rect implementation changed to use `arc` instead of
|
|
852
|
+
|
|
853
|
+
// Negative Number --> always true
|
|
854
|
+
|
|
855
|
+
// No op
|
|
856
|
+
|
|
857
|
+
// Nominativ
|
|
858
|
+
|
|
859
|
+
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
|
860
|
+
|
|
861
|
+
// Only 1 digit
|
|
862
|
+
|
|
863
|
+
// Only consider points that are drawn in case the spanGaps option is used
|
|
864
|
+
|
|
865
|
+
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
|
866
|
+
|
|
867
|
+
// PARSING
|
|
868
|
+
|
|
869
|
+
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
870
|
+
|
|
871
|
+
// Pick the first defined of two or three arguments.
|
|
872
|
+
|
|
873
|
+
// Plugins that add properties should also add the key here (null value),
|
|
874
|
+
|
|
875
|
+
// Prevent infinite loop in case updateOffset creates new moment
|
|
876
|
+
|
|
877
|
+
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
878
|
+
|
|
879
|
+
// Props to Rob Spencer at scaled innovation for his post on splining between points
|
|
880
|
+
|
|
881
|
+
// Punjabi notation for meridiems are quite fuzzy in practice. While there exists
|
|
882
|
+
|
|
883
|
+
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
884
|
+
|
|
885
|
+
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
886
|
+
|
|
887
|
+
// Return a moment from input, that is local/utc/zone equivalent to model.
|
|
888
|
+
|
|
889
|
+
// Return the exports of the module
|
|
890
|
+
|
|
891
|
+
// Saturday is the first day of the week.
|
|
892
|
+
|
|
893
|
+
// Save the args for use later
|
|
894
|
+
|
|
895
|
+
// See below ...
|
|
896
|
+
|
|
897
|
+
// See https://github.com/chartjs/Chart.js/issues/3575
|
|
898
|
+
|
|
899
|
+
// See https://github.com/moment/moment/issues/3375
|
|
900
|
+
|
|
901
|
+
// Set abbr so it will have a name (getters return
|
|
902
|
+
|
|
903
|
+
// Setting the hour should keep the time, because the user explicitly
|
|
904
|
+
|
|
905
|
+
// Side effect imports
|
|
906
|
+
|
|
907
|
+
// So we adjust the start and end angle of the arc such that
|
|
908
|
+
|
|
909
|
+
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
910
|
+
|
|
911
|
+
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
912
|
+
|
|
913
|
+
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
914
|
+
|
|
915
|
+
// Sunday is the first day of the week
|
|
916
|
+
|
|
917
|
+
// Sunday is the first day of the week.
|
|
918
|
+
|
|
919
|
+
// Support for single parameter, formats only overload to the calendar function
|
|
920
|
+
|
|
921
|
+
// TODO: Another silent failure?
|
|
922
|
+
|
|
923
|
+
// TODO: Find a better way to register and load all the locales in Node
|
|
924
|
+
|
|
925
|
+
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
926
|
+
|
|
927
|
+
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
928
|
+
|
|
929
|
+
// TODO: Return 'e' when day of month > 1. Move this case inside
|
|
930
|
+
|
|
931
|
+
// TODO: Use [].sort instead?
|
|
932
|
+
|
|
933
|
+
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
934
|
+
|
|
935
|
+
// TODO: add sorting
|
|
936
|
+
|
|
937
|
+
// TODO: remove 'name' arg after deprecation is removed
|
|
938
|
+
|
|
939
|
+
// Thanks to Joris Röling : https://github.com/jjupiter
|
|
940
|
+
|
|
941
|
+
// The corner segment from point 2 to point 3
|
|
942
|
+
|
|
943
|
+
// The corner segment from point 4 to point 5
|
|
944
|
+
|
|
945
|
+
// The corner segment from point 6 to point 7
|
|
946
|
+
|
|
947
|
+
// The corner segment from point 8 to point 1
|
|
948
|
+
|
|
949
|
+
// The fallback will resume to that new scope.
|
|
950
|
+
|
|
951
|
+
// The first arc segments from point 1 to point a to point 2
|
|
952
|
+
|
|
953
|
+
// The following code bubbles up values, see the tests for
|
|
954
|
+
|
|
955
|
+
// The inner arc from point 5 to point b to point 6
|
|
956
|
+
|
|
957
|
+
// The line from point 3 to point 4
|
|
958
|
+
|
|
959
|
+
// The line from point 7 to point 8
|
|
960
|
+
|
|
961
|
+
// The module cache
|
|
962
|
+
|
|
963
|
+
// The require function
|
|
964
|
+
|
|
965
|
+
// There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
|
|
966
|
+
|
|
967
|
+
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
968
|
+
|
|
969
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
970
|
+
|
|
971
|
+
// This function allows you to set a threshold for relative time strings
|
|
972
|
+
|
|
973
|
+
// This function allows you to set the rounding function for relative time strings
|
|
974
|
+
|
|
975
|
+
// This function must also respect "skipped" points
|
|
976
|
+
|
|
977
|
+
// This function will be called whenever a moment is mutated.
|
|
978
|
+
|
|
979
|
+
// This function will load locale and then set the global locale. If
|
|
980
|
+
|
|
981
|
+
// This is because there is no context-free conversion between hours and days
|
|
982
|
+
|
|
983
|
+
// This is currently too difficult (maybe even impossible) to add.
|
|
984
|
+
|
|
985
|
+
// This is done to register the method called with moment()
|
|
986
|
+
|
|
987
|
+
// Undefined strings and arrays should not be measured
|
|
988
|
+
|
|
989
|
+
// Update existing child locale in-place to avoid memory-leaks
|
|
990
|
+
|
|
991
|
+
// Use low-level api, because this fn is low-level api.
|
|
992
|
+
|
|
993
|
+
// Using charAt should be more compatible.
|
|
994
|
+
|
|
995
|
+
// We need to deep clone this object.
|
|
996
|
+
|
|
997
|
+
// We want to compare the start of today, vs this.
|
|
998
|
+
|
|
999
|
+
// We'd normally use ~~inp for this, but unfortunately it also
|
|
1000
|
+
|
|
1001
|
+
// When scriptable option returns an object, create a resolver on that.
|
|
1002
|
+
|
|
1003
|
+
// When spacing is present, it is the same for all items
|
|
1004
|
+
|
|
1005
|
+
// When we reach the descriptor that defines a new _fallback, return that.
|
|
1006
|
+
|
|
1007
|
+
// Words with feminine grammatical gender: semaine
|
|
1008
|
+
|
|
1009
|
+
// Words with masculine grammatical gender: mois, trimestre, jour
|
|
1010
|
+
|
|
1011
|
+
// Zero out whatever was not defaulted, including time
|
|
1012
|
+
|
|
1013
|
+
// [year, month, day , hour, minute, second, millisecond]
|
|
1014
|
+
|
|
1015
|
+
// _changeInProgress == true case, then we have to adjust, because
|
|
1016
|
+
|
|
1017
|
+
// `quadraticCurveTo` since it generates better results when rect is
|
|
1018
|
+
|
|
1019
|
+
// a day / in a day / a day ago
|
|
1020
|
+
|
|
1021
|
+
// a few seconds / in a few seconds / a few seconds ago
|
|
1022
|
+
|
|
1023
|
+
// a few seconds to seconds
|
|
1024
|
+
|
|
1025
|
+
// a minute / in a minute / a minute ago
|
|
1026
|
+
|
|
1027
|
+
// a month / in a month / a month ago
|
|
1028
|
+
|
|
1029
|
+
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
1030
|
+
|
|
1031
|
+
// a now version of current config (take local/utc/offset flags, and
|
|
1032
|
+
|
|
1033
|
+
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
|
|
1034
|
+
|
|
1035
|
+
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
|
|
1036
|
+
|
|
1037
|
+
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
|
|
1038
|
+
|
|
1039
|
+
// a second time. In case it wants us to change the offset again
|
|
1040
|
+
|
|
1041
|
+
// a year / in a year / a year ago
|
|
1042
|
+
|
|
1043
|
+
// actual modulo - handles negative numbers (for dates before 1970):
|
|
1044
|
+
|
|
1045
|
+
// add remaining unparsed input length to the string
|
|
1046
|
+
|
|
1047
|
+
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
|
|
1048
|
+
|
|
1049
|
+
// almost a circle. 0.516 (instead of 0.5) produces results with visually
|
|
1050
|
+
|
|
1051
|
+
// an hour / in an hour / an hour ago
|
|
1052
|
+
|
|
1053
|
+
// and also not between days and months (28-31 days per month)
|
|
1054
|
+
|
|
1055
|
+
// and further modified to allow for strings containing both week and day
|
|
1056
|
+
|
|
1057
|
+
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
1058
|
+
|
|
1059
|
+
// apply sign while we're at it
|
|
1060
|
+
|
|
1061
|
+
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
1062
|
+
|
|
1063
|
+
// as a setter, sunday should belong to the previous week.
|
|
1064
|
+
|
|
1065
|
+
// b is in (anchor - 1 month, anchor + 1 month)
|
|
1066
|
+
|
|
1067
|
+
// backwards compat for now: also set the locale
|
|
1068
|
+
|
|
1069
|
+
// behaves the same as moment#day except
|
|
1070
|
+
|
|
1071
|
+
// block for masculine words below.
|
|
1072
|
+
|
|
1073
|
+
// bottom left arc
|
|
1074
|
+
|
|
1075
|
+
// bottom right arc
|
|
1076
|
+
|
|
1077
|
+
// cache the resolved value
|
|
1078
|
+
|
|
1079
|
+
// callback: function () { this.month() + 1 }
|
|
1080
|
+
|
|
1081
|
+
// can't just apply() to create a date:
|
|
1082
|
+
|
|
1083
|
+
// canvas.width and canvas.height do not consider the canvas transform,
|
|
1084
|
+
|
|
1085
|
+
// case 'Day': // Not real
|
|
1086
|
+
|
|
1087
|
+
// case 'Month': // Not used because we need to pass two variables
|
|
1088
|
+
|
|
1089
|
+
// check for mismatching day of week
|
|
1090
|
+
|
|
1091
|
+
// check: https://github.com/moment/moment/issues/2166
|
|
1092
|
+
|
|
1093
|
+
// checks for null or undefined
|
|
1094
|
+
|
|
1095
|
+
// circle with `radius`. For more details, see the following PRs:
|
|
1096
|
+
|
|
1097
|
+
// clear _12h flag if hour is <= 12
|
|
1098
|
+
|
|
1099
|
+
// closer proportion to the previous impl and it is inscribed in the
|
|
1100
|
+
|
|
1101
|
+
// compare two arrays, return the number of differences
|
|
1102
|
+
|
|
1103
|
+
// constant that refers to the ISO standard
|
|
1104
|
+
|
|
1105
|
+
// constant that refers to the RFC 2822 form
|
|
1106
|
+
|
|
1107
|
+
// continue regardless of error
|
|
1108
|
+
|
|
1109
|
+
// convert an array to a date.
|
|
1110
|
+
|
|
1111
|
+
// convert days to months
|
|
1112
|
+
|
|
1113
|
+
// converts floats to ints.
|
|
1114
|
+
|
|
1115
|
+
// create now).
|
|
1116
|
+
|
|
1117
|
+
// created, so we won't end up with the child locale set.
|
|
1118
|
+
|
|
1119
|
+
// currently HTML5 input type only supports 24-hour formats
|
|
1120
|
+
|
|
1121
|
+
// date and time from ref 2822 format
|
|
1122
|
+
|
|
1123
|
+
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
1124
|
+
|
|
1125
|
+
// date from iso format
|
|
1126
|
+
|
|
1127
|
+
// date from string and array of format strings
|
|
1128
|
+
|
|
1129
|
+
// date from string and format string
|
|
1130
|
+
|
|
1131
|
+
// day when working around DST, we need to store them separately
|
|
1132
|
+
|
|
1133
|
+
// days than the end month.
|
|
1134
|
+
|
|
1135
|
+
// days to month/week
|
|
1136
|
+
|
|
1137
|
+
// default resolvers
|
|
1138
|
+
|
|
1139
|
+
// default to beginning of week
|
|
1140
|
+
|
|
1141
|
+
// define __esModule on exports
|
|
1142
|
+
|
|
1143
|
+
// define getter functions for harmony exports
|
|
1144
|
+
|
|
1145
|
+
// difference in months
|
|
1146
|
+
|
|
1147
|
+
// don't parse if it's not a known token
|
|
1148
|
+
|
|
1149
|
+
// end-of-month calculations work correct when the start month has more
|
|
1150
|
+
|
|
1151
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1152
|
+
|
|
1153
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
1154
|
+
|
|
1155
|
+
// eslint-disable-next-line complexity
|
|
1156
|
+
|
|
1157
|
+
// examples of what that means.
|
|
1158
|
+
|
|
1159
|
+
// first element is an array of moment objects.
|
|
1160
|
+
|
|
1161
|
+
// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
1162
|
+
|
|
1163
|
+
// for ISO strings we do not use the normal bubbling rules:
|
|
1164
|
+
|
|
1165
|
+
// format date using native date object
|
|
1166
|
+
|
|
1167
|
+
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1168
|
+
|
|
1169
|
+
// from milliseconds
|
|
1170
|
+
|
|
1171
|
+
// from the actual represented time. That is why we call updateOffset
|
|
1172
|
+
|
|
1173
|
+
// function obliqueNumSuffix(num) {
|
|
1174
|
+
|
|
1175
|
+
// getDefaultExport function for compatibility with non-harmony modules
|
|
1176
|
+
|
|
1177
|
+
// goude merenn | a-raok merenn
|
|
1178
|
+
|
|
1179
|
+
// handle era
|
|
1180
|
+
|
|
1181
|
+
// handle meridiem
|
|
1182
|
+
|
|
1183
|
+
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
1184
|
+
|
|
1185
|
+
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
1186
|
+
|
|
1187
|
+
// hooks is actually the exported moment object
|
|
1188
|
+
|
|
1189
|
+
// hours to day
|
|
1190
|
+
|
|
1191
|
+
// how we interpret now (local, utc, fixed offset). So create
|
|
1192
|
+
|
|
1193
|
+
// http://new.gramota.ru/spravka/rules/139-prop : § 103
|
|
1194
|
+
|
|
1195
|
+
// http://scaledinnovation.com/analytics/splines/aboutSplines.html
|
|
1196
|
+
|
|
1197
|
+
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
1198
|
+
|
|
1199
|
+
// https://github.com/chartjs/Chart.js/issues/4659
|
|
1200
|
+
|
|
1201
|
+
// https://github.com/chartjs/Chart.js/issues/5597
|
|
1202
|
+
|
|
1203
|
+
// https://github.com/chartjs/Chart.js/issues/5858
|
|
1204
|
+
|
|
1205
|
+
// https://github.com/moment/moment/issues/1423
|
|
1206
|
+
|
|
1207
|
+
// https://github.com/moment/moment/pull/1871
|
|
1208
|
+
|
|
1209
|
+
// https://stackoverflow.com/q/181348
|
|
1210
|
+
|
|
1211
|
+
// if it is an array lets measure each element
|
|
1212
|
+
|
|
1213
|
+
// if the resolved value is an object, create a sub resolver for it
|
|
1214
|
+
|
|
1215
|
+
// if there is any input that was not parsed add a penalty for that format
|
|
1216
|
+
|
|
1217
|
+
// if we didn't find a month name, mark the date as invalid.
|
|
1218
|
+
|
|
1219
|
+
// if we didn't get a weekday name, mark the date as invalid
|
|
1220
|
+
|
|
1221
|
+
// if we have a mix of positive and negative values, bubble down first
|
|
1222
|
+
|
|
1223
|
+
// includes scottish gaelic two word and hyphenated months
|
|
1224
|
+
|
|
1225
|
+
// inp may be undefined, so careful calling replace on it.
|
|
1226
|
+
|
|
1227
|
+
// input != null
|
|
1228
|
+
|
|
1229
|
+
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1230
|
+
|
|
1231
|
+
// instance. Otherwise, it will return the locale configuration
|
|
1232
|
+
|
|
1233
|
+
// internal storage for locale config files
|
|
1234
|
+
|
|
1235
|
+
// iso 8601 regex
|
|
1236
|
+
|
|
1237
|
+
// iso time formats and regexes
|
|
1238
|
+
|
|
1239
|
+
// it separately.
|
|
1240
|
+
|
|
1241
|
+
// keepLocalTime = true means only change the timezone, without
|
|
1242
|
+
|
|
1243
|
+
// let's not create an object, if not needed
|
|
1244
|
+
|
|
1245
|
+
// line from bottom left to bottom right
|
|
1246
|
+
|
|
1247
|
+
// line from bottom right to top right
|
|
1248
|
+
|
|
1249
|
+
// line from top left to bottom left
|
|
1250
|
+
|
|
1251
|
+
// line from top right to top left
|
|
1252
|
+
|
|
1253
|
+
// local weekday -- counting starts from beginning of week
|
|
1254
|
+
|
|
1255
|
+
// locale key.
|
|
1256
|
+
|
|
1257
|
+
// make sure changes to properties don't modify parent config
|
|
1258
|
+
|
|
1259
|
+
// make sure we set the locale AFTER all child locales have been
|
|
1260
|
+
|
|
1261
|
+
// make the regex if we don't have it already
|
|
1262
|
+
|
|
1263
|
+
// making the chart visually bigger, so let's enforce it to the "correct" values.
|
|
1264
|
+
|
|
1265
|
+
// margin - default is to match rounded decimals
|
|
1266
|
+
|
|
1267
|
+
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
1268
|
+
|
|
1269
|
+
// match[2] should be 'T' or space
|
|
1270
|
+
|
|
1271
|
+
// matching against regexp is expensive, do it on demand
|
|
1272
|
+
|
|
1273
|
+
// minutes to hour
|
|
1274
|
+
|
|
1275
|
+
// moment.duration._locale = moment._locale = data;
|
|
1276
|
+
|
|
1277
|
+
// moments should either be an array of moment objects or an array, whose
|
|
1278
|
+
|
|
1279
|
+
// native implementation is ~50x faster, use it when we can
|
|
1280
|
+
|
|
1281
|
+
// new Date(NaN).toJSON() === null
|
|
1282
|
+
|
|
1283
|
+
// no arguments are passed in, it will simply return the current global
|
|
1284
|
+
|
|
1285
|
+
// note: all values past the year are optional and will default to the lowest possible value.
|
|
1286
|
+
|
|
1287
|
+
// null means not found
|
|
1288
|
+
|
|
1289
|
+
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
1290
|
+
|
|
1291
|
+
// object construction must be done this way.
|
|
1292
|
+
|
|
1293
|
+
// objects.
|
|
1294
|
+
|
|
1295
|
+
// only allow non-integers for smallest unit
|
|
1296
|
+
|
|
1297
|
+
// ordinal: 'Mo'
|
|
1298
|
+
|
|
1299
|
+
// other. This relies on the function fn to be transitive.
|
|
1300
|
+
|
|
1301
|
+
// padded: ['MM', 2]
|
|
1302
|
+
|
|
1303
|
+
// pass null for config to unupdate, useful for tests
|
|
1304
|
+
|
|
1305
|
+
// percentage * size in dimension
|
|
1306
|
+
|
|
1307
|
+
// pick the locale from the array
|
|
1308
|
+
|
|
1309
|
+
// preserve leap years using a full 400 year cycle, then reset
|
|
1310
|
+
|
|
1311
|
+
// refer http://ta.wikipedia.org/s/1er1
|
|
1312
|
+
|
|
1313
|
+
// remove cached keys
|
|
1314
|
+
|
|
1315
|
+
// remove from cache
|
|
1316
|
+
|
|
1317
|
+
// representation for dateAddRemove
|
|
1318
|
+
|
|
1319
|
+
// resolve from proxy
|
|
1320
|
+
|
|
1321
|
+
// resolve with context
|
|
1322
|
+
|
|
1323
|
+
// resolveObjectKey resolver cache
|
|
1324
|
+
|
|
1325
|
+
// returns locale data
|
|
1326
|
+
|
|
1327
|
+
// scaling factor for triangle Ta
|
|
1328
|
+
|
|
1329
|
+
// seconds to minute
|
|
1330
|
+
|
|
1331
|
+
// see sorting in computeMonthsParse
|
|
1332
|
+
|
|
1333
|
+
// set to proxy
|
|
1334
|
+
|
|
1335
|
+
// set to top level scope + cache
|
|
1336
|
+
|
|
1337
|
+
// so we can properly clone ourselves.
|
|
1338
|
+
|
|
1339
|
+
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1340
|
+
|
|
1341
|
+
// special case for zero
|
|
1342
|
+
|
|
1343
|
+
// specified which hour they want. So trying to maintain the same hour (in
|
|
1344
|
+
|
|
1345
|
+
// start-of-first-week - start-of-year
|
|
1346
|
+
|
|
1347
|
+
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
|
1348
|
+
|
|
1349
|
+
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1350
|
+
|
|
1351
|
+
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1352
|
+
|
|
1353
|
+
// test the regex
|
|
1354
|
+
|
|
1355
|
+
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
1356
|
+
|
|
1357
|
+
// the array should mirror the parameters below
|
|
1358
|
+
|
|
1359
|
+
// the date constructor remaps years 0-99 to 1900-1999
|
|
1360
|
+
|
|
1361
|
+
// the distance is the same as it would be without the spacing
|
|
1362
|
+
|
|
1363
|
+
// the only allowed military tz is Z
|
|
1364
|
+
|
|
1365
|
+
// the reverse of daysToMonths
|
|
1366
|
+
|
|
1367
|
+
// there is no such time in the given timezone.
|
|
1368
|
+
|
|
1369
|
+
// this is not used
|
|
1370
|
+
|
|
1371
|
+
// this is the border box of the container
|
|
1372
|
+
|
|
1373
|
+
// this rule.
|
|
1374
|
+
|
|
1375
|
+
// 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'
|
|
1376
|
+
|
|
1377
|
+
// time formats are the same as en-gb
|
|
1378
|
+
|
|
1379
|
+
// timezone chunker
|
|
1380
|
+
|
|
1381
|
+
// to do maybe simplify this function a bit so we can do this more recursively?
|
|
1382
|
+
|
|
1383
|
+
// token: 'M'
|
|
1384
|
+
|
|
1385
|
+
// top left arc
|
|
1386
|
+
|
|
1387
|
+
// top right arc
|
|
1388
|
+
|
|
1389
|
+
// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
|
|
1390
|
+
|
|
1391
|
+
// truncate time
|
|
1392
|
+
|
|
1393
|
+
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
|
1394
|
+
|
|
1395
|
+
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1396
|
+
|
|
1397
|
+
// undefined otherwise).
|
|
1398
|
+
|
|
1399
|
+
// updateLocale is called for creating a new locale
|
|
1400
|
+
|
|
1401
|
+
// useful for testing
|
|
1402
|
+
|
|
1403
|
+
// variables for this instance.
|
|
1404
|
+
|
|
1405
|
+
// webpackBootstrap
|
|
1406
|
+
|
|
1407
|
+
// weekday -- low day numbers are considered next week
|
|
1408
|
+
|
|
1409
|
+
// weeks to month
|
|
1410
|
+
|
|
1411
|
+
// when trying to find en-US, en_US, en-us for every format call
|
|
1412
|
+
|
|
1413
|
+
// which months you are are talking about, so we have to store
|
|
1414
|
+
|
|
1415
|
+
// while clearRect does
|
|
1416
|
+
|
|
1417
|
+
// will match the longer piece.
|
|
1418
|
+
|
|
1419
|
+
// with parseZone.
|
|
1420
|
+
|
|
1421
|
+
// without creating circular dependencies.
|
|
1422
|
+
|
|
1423
|
+
// yes, three characters difference
|
|
1424
|
+
|
|
1425
|
+
// }
|
|
1426
|
+
|
|
1427
|
+
// Выражение, которое соответствует только сокращённым формам
|
|
1428
|
+
|
|
1429
|
+
// Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
|
|
1430
|
+
|
|
1431
|
+
// копия предыдущего
|
|
1432
|
+
|
|
1433
|
+
// по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
|
|
1434
|
+
|
|
1435
|
+
// полные названия с падежами
|
|
1436
|
+
|
|
1437
|
+
// полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
|
|
1438
|
+
|
|
1439
|
+
//! moment.js
|
|
1440
|
+
|
|
1441
|
+
//! moment.js locale configuration
|
|
1442
|
+
|
|
1443
|
+
//# sourceMappingURL=chart.js.map
|
|
1444
|
+
|
|
1445
|
+
//# sourceMappingURL=helpers.segment.js.map
|
|
1446
|
+
|
|
1447
|
+
//Different grammatical cases
|
|
1448
|
+
|
|
1449
|
+
//check for negative zero, return zero if negative zero
|
|
1450
|
+
|
|
1451
|
+
//compute day of the year from weeks and weekdays
|
|
1452
|
+
|
|
1453
|
+
//if the day of the year is set, figure out what it is
|
|
1454
|
+
|
|
1455
|
+
//invert the arguments, but complain about it
|
|
1456
|
+
|
|
1457
|
+
//ne 'diurno', ĉar estas uzita por proksimumo
|
|
1458
|
+
|
|
1459
|
+
//or tokens
|
|
1460
|
+
|
|
1461
|
+
//short-circuit everything else
|
|
1462
|
+
|
|
1463
|
+
//the next array item is better than a shallower substring of this one
|
|
1464
|
+
|
|
1465
|
+
//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
|
1466
|
+
|
|
1467
|
+
//warn user if arguments are passed but the locale could not be set
|