@ohif/i18n 0.52.8 → 3.0.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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohif/i18n",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Internationalization library for The OHIF Viewer",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "OHIF/Viewers",
|
|
8
|
-
"main": "dist/
|
|
8
|
+
"main": "dist/ohif-i18n.umd.js",
|
|
9
9
|
"module": "src/index.js",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=14",
|
|
12
12
|
"npm": ">=6",
|
|
13
13
|
"yarn": ">=1.16.0"
|
|
14
14
|
},
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --
|
|
23
|
+
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --output-pathinfo",
|
|
24
24
|
"dev:i18n": "yarn run dev",
|
|
25
25
|
"build": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
|
|
26
26
|
"build:package": "yarn run build",
|
|
27
|
-
"prepublishOnly": "yarn run build",
|
|
28
27
|
"pullTranslations": "./pullTranslations.sh",
|
|
29
28
|
"test:unit": "echo 'platform/i18n: missing unit tests'",
|
|
30
29
|
"test:unit:ci": "echo 'platform/i18n: missing unit tests'"
|
|
@@ -32,23 +31,22 @@
|
|
|
32
31
|
"peerDependencies": {
|
|
33
32
|
"i18next": "^17.0.3",
|
|
34
33
|
"i18next-browser-languagedetector": "^3.0.1",
|
|
35
|
-
"react": "^
|
|
36
|
-
"react-dom": "^
|
|
37
|
-
"react-i18next": "^
|
|
34
|
+
"react": "^17.0.2",
|
|
35
|
+
"react-dom": "^17.0.2",
|
|
36
|
+
"react-i18next": "^12.2.2"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@babel/runtime": "^7.
|
|
41
|
-
"classnames": "^2.2.6",
|
|
39
|
+
"@babel/runtime": "^7.20.13",
|
|
42
40
|
"i18next-locize-backend": "^2.0.0",
|
|
43
41
|
"locize-editor": "^2.0.0",
|
|
44
|
-
"locize-lastused": "^1.1.0"
|
|
45
|
-
"rollup-plugin-json": "^4.0.0"
|
|
42
|
+
"locize-lastused": "^1.1.0"
|
|
46
43
|
},
|
|
47
44
|
"devDependencies": {
|
|
48
|
-
"i18next": "^
|
|
45
|
+
"i18next": "^17.0.3",
|
|
49
46
|
"i18next-browser-languagedetector": "^3.0.1",
|
|
50
|
-
"
|
|
51
|
-
"react-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
"react": "^17.0.2",
|
|
48
|
+
"react-dom": "^17.0.2",
|
|
49
|
+
"react-i18next": "^12.2.2",
|
|
50
|
+
"webpack-merge": "^5.7.3"
|
|
51
|
+
}
|
|
54
52
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.52.8](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.7...@ohif/i18n@0.52.8) (2020-04-07)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.52.7](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.6...@ohif/i18n@0.52.7) (2020-03-09)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.52.6](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.5...@ohif/i18n@0.52.6) (2020-02-12)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* Combined Hotkeys for special characters ([#1233](https://github.com/OHIF/Viewers/issues/1233)) ([2f30e7a](https://github.com/OHIF/Viewers/commit/2f30e7a821a238144c49c56f37d8e5565540b4bd))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [0.52.5](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.4...@ohif/i18n@0.52.5) (2020-01-30)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Bug Fixes
|
|
37
|
-
|
|
38
|
-
* download tool fixes & improvements ([#1235](https://github.com/OHIF/Viewers/issues/1235)) ([b9574b6](https://github.com/OHIF/Viewers/commit/b9574b6efcfeb85cde35b5cae63282f8e1b35be6))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## [0.52.4](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.3...@ohif/i18n@0.52.4) (2019-12-16)
|
|
45
|
-
|
|
46
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## [0.52.3](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.2...@ohif/i18n@0.52.3) (2019-12-12)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### Bug Fixes
|
|
56
|
-
|
|
57
|
-
* translations ([#1234](https://github.com/OHIF/Viewers/issues/1234)) ([30b9e44](https://github.com/OHIF/Viewers/commit/30b9e4422073557287ef26a80b38eeb3f3fcff4c))
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
## [0.52.2](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.1...@ohif/i18n@0.52.2) (2019-11-28)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Bug Fixes
|
|
67
|
-
|
|
68
|
-
* User Preferences Issues ([#1207](https://github.com/OHIF/Viewers/issues/1207)) ([1df21a9](https://github.com/OHIF/Viewers/commit/1df21a9e075b5e6dfc10a429ae825826f46c71b8)), closes [#1161](https://github.com/OHIF/Viewers/issues/1161) [#1164](https://github.com/OHIF/Viewers/issues/1164) [#1177](https://github.com/OHIF/Viewers/issues/1177) [#1179](https://github.com/OHIF/Viewers/issues/1179) [#1180](https://github.com/OHIF/Viewers/issues/1180) [#1181](https://github.com/OHIF/Viewers/issues/1181) [#1182](https://github.com/OHIF/Viewers/issues/1182) [#1183](https://github.com/OHIF/Viewers/issues/1183) [#1184](https://github.com/OHIF/Viewers/issues/1184) [#1185](https://github.com/OHIF/Viewers/issues/1185)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
## [0.52.1](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.52.0...@ohif/i18n@0.52.1) (2019-11-18)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### Bug Fixes
|
|
78
|
-
|
|
79
|
-
* minor date picker UX improvements ([813ee5e](https://github.com/OHIF/Viewers/commit/813ee5ed4d78b7bda234922d5f3389efe346451c))
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
# [0.52.0](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.51.0...@ohif/i18n@0.52.0) (2019-11-06)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### Features
|
|
89
|
-
|
|
90
|
-
* modal provider ([#1151](https://github.com/OHIF/Viewers/issues/1151)) ([75d88bc](https://github.com/OHIF/Viewers/commit/75d88bc454710d2dcdbc7d68c4d9df041159c840)), closes [#1086](https://github.com/OHIF/Viewers/issues/1086) [#1116](https://github.com/OHIF/Viewers/issues/1116) [#1116](https://github.com/OHIF/Viewers/issues/1116) [#1146](https://github.com/OHIF/Viewers/issues/1146) [#1142](https://github.com/OHIF/Viewers/issues/1142) [#1143](https://github.com/OHIF/Viewers/issues/1143) [#1110](https://github.com/OHIF/Viewers/issues/1110) [#1086](https://github.com/OHIF/Viewers/issues/1086) [#1116](https://github.com/OHIF/Viewers/issues/1116) [#1119](https://github.com/OHIF/Viewers/issues/1119)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
# [0.51.0](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.5...@ohif/i18n@0.51.0) (2019-10-15)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
### Features
|
|
100
|
-
|
|
101
|
-
* Add browser info and app version ([#1046](https://github.com/OHIF/Viewers/issues/1046)) ([c217b8b](https://github.com/OHIF/Viewers/commit/c217b8b))
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## [0.50.5](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.4...@ohif/i18n@0.50.5) (2019-10-04)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### Bug Fixes
|
|
111
|
-
|
|
112
|
-
* CineDialog buttons label ([#998](https://github.com/OHIF/Viewers/issues/998)) ([4df624b](https://github.com/OHIF/Viewers/commit/4df624b))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
## [0.50.4](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.3...@ohif/i18n@0.50.4) (2019-09-10)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
## [0.50.3](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.2...@ohif/i18n@0.50.3) (2019-09-04)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
## [0.50.2](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.1...@ohif/i18n@0.50.2) (2019-09-04)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### Bug Fixes
|
|
138
|
-
|
|
139
|
-
* measurementsAPI issue caused by production build ([#842](https://github.com/OHIF/Viewers/issues/842)) ([49d3439](https://github.com/OHIF/Viewers/commit/49d3439))
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.0-alpha.11...@ohif/i18n@0.50.1) (2019-08-14)
|
|
146
|
-
|
|
147
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
# [0.50.0-alpha.11](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.0-alpha.10...@ohif/i18n@0.50.0-alpha.11) (2019-08-14)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### Bug Fixes
|
|
157
|
-
|
|
158
|
-
* Update i18n locales to include Japanese ([da725a8](https://github.com/OHIF/Viewers/commit/da725a8))
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.9...@ohif/i18n@0.50.0-alpha.10) (2019-08-14)
|
|
165
|
-
|
|
166
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
## [0.2.3-alpha.9](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.8...@ohif/i18n@0.2.3-alpha.9) (2019-08-14)
|
|
173
|
-
|
|
174
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
## 0.2.3-alpha.8 (2019-08-14)
|
|
181
|
-
|
|
182
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
# Change Log
|
|
189
|
-
|
|
190
|
-
All notable changes to this project will be documented in this file. See
|
|
191
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
192
|
-
|
|
193
|
-
## [0.2.3-alpha.7](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.6...@ohif/i18n@0.2.3-alpha.7) (2019-08-08)
|
|
194
|
-
|
|
195
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
196
|
-
|
|
197
|
-
# Change Log
|
|
198
|
-
|
|
199
|
-
All notable changes to this project will be documented in this file. See
|
|
200
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
201
|
-
|
|
202
|
-
## [0.2.3-alpha.6](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.5...@ohif/i18n@0.2.3-alpha.6) (2019-08-08)
|
|
203
|
-
|
|
204
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
205
|
-
|
|
206
|
-
# Change Log
|
|
207
|
-
|
|
208
|
-
All notable changes to this project will be documented in this file. See
|
|
209
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
210
|
-
|
|
211
|
-
## [0.2.3-alpha.5](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.4...@ohif/i18n@0.2.3-alpha.5) (2019-08-08)
|
|
212
|
-
|
|
213
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
214
|
-
|
|
215
|
-
# Change Log
|
|
216
|
-
|
|
217
|
-
All notable changes to this project will be documented in this file. See
|
|
218
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
219
|
-
|
|
220
|
-
## [0.2.3-alpha.4](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.3...@ohif/i18n@0.2.3-alpha.4) (2019-08-08)
|
|
221
|
-
|
|
222
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
223
|
-
|
|
224
|
-
# Change Log
|
|
225
|
-
|
|
226
|
-
All notable changes to this project will be documented in this file. See
|
|
227
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
228
|
-
|
|
229
|
-
## [0.2.3-alpha.3](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.2...@ohif/i18n@0.2.3-alpha.3) (2019-08-08)
|
|
230
|
-
|
|
231
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
232
|
-
|
|
233
|
-
# Change Log
|
|
234
|
-
|
|
235
|
-
All notable changes to this project will be documented in this file. See
|
|
236
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
237
|
-
|
|
238
|
-
## [0.2.3-alpha.2](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.1...@ohif/i18n@0.2.3-alpha.2) (2019-08-07)
|
|
239
|
-
|
|
240
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
241
|
-
|
|
242
|
-
## [0.2.3-alpha.1](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.2.3-alpha.0...@ohif/i18n@0.2.3-alpha.1) (2019-08-07)
|
|
243
|
-
|
|
244
|
-
**Note:** Version bump only for package @ohif/i18n
|
|
245
|
-
|
|
246
|
-
## 0.2.3-alpha.0 (2019-08-05)
|
|
247
|
-
|
|
248
|
-
**Note:** Version bump only for package @ohif/i18n
|
package/dist/index.umd.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.umd.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ohifI18n=t():e.ohifI18n=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}([function(e,t,n){"use strict";e.exports=n(72)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var o=n(71);e.exports=function(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var o=n(78),r=n(79),i=n(80);e.exports=function(e,t){return o(e)||r(e,t)||i()}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=o=function(e){return n(e)}:e.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(t)}e.exports=o},function(e,t,n){var o=n(62).default;e.exports=o,e.exports.default=o},function(e,t,n){e.exports={parse:n(74),stringify:n(77)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},function(e){e.exports=JSON.parse('{"name":"@ohif/i18n","version":"0.52.8","description":"Internationalization library for The OHIF Viewer","author":"OHIF","license":"MIT","repository":"OHIF/Viewers","main":"dist/index.umd.js","module":"src/index.js","engines":{"node":">=10","npm":">=6","yarn":">=1.16.0"},"files":["dist","README.md"],"publishConfig":{"access":"public"},"scripts":{"dev":"cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --debug --output-pathinfo","dev:i18n":"yarn run dev","build":"cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js","build:package":"yarn run build","prepublishOnly":"yarn run build","pullTranslations":"./pullTranslations.sh","test:unit":"echo \'platform/i18n: missing unit tests\'","test:unit:ci":"echo \'platform/i18n: missing unit tests\'"},"peerDependencies":{"i18next":"^17.0.3","i18next-browser-languagedetector":"^3.0.1","react":"^16.8.6","react-dom":"^16.8.6","react-i18next":"^10.11.0"},"dependencies":{"@babel/runtime":"^7.5.5","classnames":"^2.2.6","i18next-locize-backend":"^2.0.0","locize-editor":"^2.0.0","locize-lastused":"^1.1.0","rollup-plugin-json":"^4.0.0"},"devDependencies":{"i18next":"^15.1.3","i18next-browser-languagedetector":"^3.0.1","locize-cli":"^4.8.0","react-i18next":"^10.11.0"},"gitHead":"83f94789776739623fa7144a5c9fa153af0ee997"}')},function(e){e.exports=JSON.parse('{"No hotkeys found":"Nenhuma tecla de atalho está configurada para este aplicativo. As teclas de atalho podem ser configuradas no arquivo app-config.js do aplicativo."}')},function(e){e.exports=JSON.parse('{"Browser":"Browser","Build Number":"Build Number","Latest Master Commits":"Latest Master Commits","More details":"More details","Name":"Name","OHIF Viewer - About":"OHIF Viewer - About","OS":"OS","Report an issue":"Report an issue","Repository URL":"Repository URL","Value":"Value","Version Information":"Version Information","Visit the forum":"Visit the forum"}')},function(e){e.exports=JSON.parse('{"Acquired":"Acquired","Angle":"Angle","Axial":"Axial","Bidirectional":"Bidirectional","Brush":"Brush","CINE":"CINE","Cancel":"Cancel","Circle":"Circle","Clear":"Clear","Coronal":"Coronal","Crosshairs":"Crosshairs","Download":"Download","Ellipse":"Ellipse","Elliptical":"Elliptical","Flip H":"Flip H","Flip V":"Flip V","Freehand":"Freehand","Invert":"Invert","Layout":"$t(Common:Layout)","Length":"Length","Levels":"Levels","Magnify":"Magnify","Manual":"Manual","Measurements":"Measurements","More":"$t(Common:More)","Next":"$t(Common:Next)","Pan":"Pan","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Probe","ROI Window":"ROI Window","Rectangle":"Rectangle","Reset":"$t(Common:Reset)","Reset to Defaults":"$t(Common:Reset) to Defaults","Rotate Right":"Rotate Right","Sagittal":"Sagittal","Save":"Save","Stack Scroll":"Stack Scroll","Stop":"$t(Common:Stop)","Themes":"Themes","Zoom":"Zoom"}')},function(e){e.exports=JSON.parse('{"Next image":"$t(Common:Next) $t(Common:Image)","Play / Stop":"$t(Common:Play) / $t(Common:Stop)","Previous image":"$t(Common:Previous) $t(Common:Image)","Skip to first image":"Skip to first $t(Common:Image)","Skip to last image":"Skip to last $t(Common:Image)","fps":"fps"}')},function(e){e.exports=JSON.parse('{"Close":"Close","Image":"Image","Layout":"Layout","Measurements":"Measurements","More":"More","Next":"Next","Play":"Play","Previous":"Previous","Reset":"Reset","RowsPerPage":"rows per page","Series":"Series","Show":"Show","Stop":"Stop","StudyDate":"Study Date"}')},function(e){e.exports=JSON.parse('{"Clear dates":"Clear dates","End Date":"End Date","Start Date":"Start Date"}')},function(e){e.exports=JSON.parse('{"About":"About","Back to Viewer":"Back to Viewer","INVESTIGATIONAL USE ONLY":"INVESTIGATIONAL USE ONLY","Options":"Options","Preferences":"Preferences","Study list":"Study list"}')},function(e){e.exports=JSON.parse('{"Criteria nonconformities":"Criteria nonconformities","Delete":"Delete","Description":"Description","MAX":"MAX","NonTargets":"NonTargets","Relabel":"Relabel","Targets":"Targets"}')},function(e){e.exports=JSON.parse('{"AccessionNumber":"Accession #","Empty":"Empty","MRN":"MRN","Modality":"Modality","PatientName":"Patient Name","StudyDate":"Study Date","StudyDescription":"Description","StudyList":"Study List"}')},function(e){e.exports=JSON.parse('{"Cancel":"$t(Buttons:Cancel)","No hotkeys found":"No hotkeys are configured for this application. Hotkeys can be configured in the application\'s app-config.js file.","Reset to Defaults":"$t(Buttons:Reset to Defaults)","ResetDefaultMessage":"Preferences successfully reset to default. <br /> You must <strong>Save</strong> to perform this action.","Save":"$t(Buttons:Save)","SaveMessage":"Preferences saved","User Preferences":"User Preferences"}')},function(e){e.exports=JSON.parse('{"emptyFilenameError":"The file name cannot be empty.","fileType":"File Type","filename":"File Name","formTitle":"Please specify the dimensions, filename, and desired type for the output image.","imageHeight":"Image height (px)","imagePreview":"Image Preview","imageWidth":"Image width (px)","keepAspectRatio":"Keep aspect ratio","loadingPreview":"Loading Image Preview...","minHeightError":"The minimum valid height is 100px.","minWidthError":"The minimum valid width is 100px.","showAnnotations":"Show Annotations"}')},function(e){e.exports=JSON.parse('{"Acquired":"Adquirido","Angle":"Ángulo","Axial":"Axial","Bidirectional":"Bidireccional","Brush":"Cepillo","CINE":"CINE","Cancel":"Cancelar","Circle":"Círculo","Clear":"Limpiar","Coronal":"Coronal","Crosshairs":"Punto de mira","Download":"Descargar","Ellipse":"Elipse","Elliptical":"Elíptico","Flip H":"Voltear H","Flip V":"Voltear V","Freehand":"Mano alzada","Invert":"Negativo","Layout":"$t(Common:Layout)","Length":"Longitud","Levels":"W/L","Magnify":"Lupa","Manual":"Manual","Measurements":"Medidas","More":"$t(Common:More)","Next":"$t(Common:Next)","Pan":"Mover","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Probar","ROI Window":"Ventana ROI","Rectangle":"Rectángulo","Reset":"$t(Common:Reset)","Reset to Defaults":"$t(Common:Reset) por defecto","Rotate Right":"Girar ->","Sagittal":"Sagital","Save":"Guardar","Stack Scroll":"Scroll","Stop":"$t(Common:Stop)","Themes":"Temas","Zoom":"Ampliar"}')},function(e){e.exports=JSON.parse('{"Next image":"$t(Common:Image) $t(Common:Next)","Play / Stop":"$t(Common:Play) / Stop","Previous image":"$t(Common:Image) $t(Common:Previous)","Skip to first image":"Ir a la primera $t(Common:Image)","Skip to last image":"Ir a la última $t(Common:Image)","fps":"imágenes/seg."}')},function(e){e.exports=JSON.parse('{"Image":"Imagen","Layout":"Formato","Measurements":"Medidas","More":"Más","Next":"Siguiente","Play":"Play","Previous":"Anterior","Reset":"Restaurar","RowsPerPage":"filas por página","Series":"Secuencia","Show":"Mostrar","Stop":"Detener","StudyDate":"Fecha de estudo"}')},function(e){e.exports=JSON.parse('{"About":"Acerca de","Back to Viewer":"Volver al visor","INVESTIGATIONAL USE ONLY":"SOLO USO PARA INVESTIGACIÓN","Options":"Opciones","Preferences":"Preferencias","Study list":"Lista de estudios"}')},function(e){e.exports=JSON.parse('{"Criteria nonconformities":"Criterios disconformes","Delete":"Borrar","Description":"Descripción","MAX":"Máximo","NonTargets":"No objetivos","Relabel":"Re-etiquetar","Targets":"Objetivos"}')},function(e){e.exports=JSON.parse('{"AccessionNumber":"Número de Adhesión","Empty":"vacío","MRN":"MRN","Modality":"Modalidad","PatientName":"Nombre del paciente","StudyDate":"Fetcha de estudio","StudyDescription":"Descripción","StudyList":"Lista de Estudio"}')},function(e){e.exports=JSON.parse('{"Cancel":"$t(Buttons:Cancel)","Reset to Defaults":"$t(Buttons:Reset to Defaults)","Save":"$t(Buttons:Save)","User Preferences":"Preferencias de Usuario"}')},function(e){e.exports=JSON.parse('{"Acquired":"Acquis","Angle":"Angle","Axial":"Axial","Bidirectional":"Bi-directionel","Brush":"Brosse","CINE":"Ciné","Cancel":"Annuler","Circle":"Cercle","Clear":"Effacer","Coronal":"Coronal","Crosshairs":"Repère","Ellipse":"Ellipse","Elliptical":"Elliptique","Flip H":"Flip H","Flip V":"Flip V","Freehand":"Main levée","Invert":"Inverser","Layout":"$t(Common:Layout)","Length":"Longueur","Levels":"Niveaux","Magnify":"Agrandir","Manual":"Manuel","Measurements":"Mesures","More":"$t(Common:More)","Next":"$t(Common:Next)","Pan":"Déplacer","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Sonde","ROI Window":"ROI fenêtrage","Rectangle":"Rectangle","Reset":"$t(Common:Reset)","Reset to Defaults":"Valeurs d\'usine","Rotate Right":"Tourner à droite","Sagittal":"Sagittal","Save":"Sauvegarder","Stack Scroll":"Défilement","Stop":"$t(Common:Stop)","Themes":"Themes","Zoom":"Zoom"}')},function(e){e.exports=JSON.parse('{"Next image":"$t(Common:Play) $t(Common:Image)","Play / Stop":"$t(Common:Play) / $t(Common:Stop)","Previous image":"$t(Common:Previous) $t(Common:Image)","Skip to first image":"Retour à la première $t(Common:Image)","Skip to last image":"Aller à la dernière $t(Common:Image)","fps":"ips"}')},function(e){e.exports=JSON.parse('{"Image":"Image","Layout":"Disposition","More":"Plus","Next":"Suivant","Play":"Play","Previous":"Précédent","Reset":"Reset","Stop":"Stop"}')},function(e){e.exports=JSON.parse('{"About":"A Propos","Back to Viewer":"Retour au viewer","INVESTIGATIONAL USE ONLY":"Seulement pour utilisation expérimentale","Options":"Options","Preferences":"Préférences","Study list":"Liste d\'études"}')},function(e){e.exports=JSON.parse('{"Cancel":"$t(Buttons:Cancel)","Reset to Defaults":"$t(Buttons:Reset to Defaults)","Save":"$t(Buttons:Save)","User Preferences":"Préférences utilisateur"}')},function(e){e.exports=JSON.parse('{"Acquired":"取得済","Angle":"分度器","Axial":"アキシャル","Bidirectional":"両方向","Brush":"ブラシ","CINE":"シネ","Cancel":"キャンセル","Circle":"サークル","Clear":"クリア","Coronal":"コロナル","Crosshairs":"クロスヘアー","Ellipse":"楕円","Elliptical":"楕円","Flip H":"左右反転","Flip V":"上下反転","Freehand":"フリーハンド","Invert":"反転","Layout":"$t(Common:Layout)","Length":"長さ","Levels":"レベル","Magnify":"拡大","Manual":"マニュアル","Measurements":"測定","More":"$t(Common:More)","Next":"$t(Common:Next)","Pan":"パン","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"プローブ","ROI Window":"ROIウィンドウ","Rectangle":"長方形","Reset":"$t(Common:Reset)","Reset to Defaults":"デフォルトへ$t(Common:Reset)","Rotate Right":"右に回転","Sagittal":"サジタル","Save":"保存","Stack Scroll":"スタックスクロール","Stop":"$t(Common:Stop)","Themes":"テーマ","Zoom":"ズーム"}')},function(e){e.exports=JSON.parse('{"Next image":"$t(Common:Next) $t(Common:Image)","Play / Stop":"$t(Common:Play) / $t(Common:Stop)","Previous image":"$t(Common:Previous) $t(Common:Image)","Skip to first image":"$t(Common:Image)最初にスキップ","Skip to last image":"$t(Common:Image)最後にスキップ","fps":"fps"}')},function(e){e.exports=JSON.parse('{"Image":"画像","Layout":"レイアウト","More":"もっと","Next":"次へ","Play":"プレイ","Previous":"前へ","Reset":"リセット","Stop":"ストップ"}')},function(e){e.exports=JSON.parse('{"About":"につい","Back to Viewer":"前のビュー","INVESTIGATIONAL USE ONLY":"調査用のみ","Options":"オプション","Preferences":"プレファレンス","Study list":"スタディリスト"}')},function(e){e.exports=JSON.parse('{"Cancel":"$t(Buttons:Cancel)","Reset to Defaults":"$t(Buttons:Reset to Defaults)","Save":"$t(Buttons:Save)","User Preferences":"ユーザプレファレンス"}')},function(e){e.exports=JSON.parse('{"Circle":"Cirkel","More":"Meer","Pan":"Pan","Zoom":"Inzoomen"}')},function(e){e.exports=JSON.parse('{"More":"Meer"}')},function(e){e.exports=JSON.parse('{"About":"Over","INVESTIGATIONAL USE ONLY":"ALLEEN VOOR ONDERZOEK","Options":"Opties","Preferences":"Voorkeuren","Study list":"Studie Overzicht"}')},function(e){e.exports=JSON.parse('{"Browser":"Navegador","Build Number":"Número da compilação","Latest Master Commits":"Últimos Commits na Master","More details":"Mais detalhes","Name":"Nome","OHIF Viewer - About":"OHIF Viewer - Sobre","OS":"SO","Report an issue":"Informar um problema","Repository URL":"URL do Repositório","Value":"Valor","Version Information":"Informação da Versão","Visit the forum":"Visite o fórum"}')},function(e){e.exports=JSON.parse('{"Acquired":"Adquirido","Angle":"Ângulo","Axial":"Axial","Bidirectional":"Bidirecional","Brush":"Pincel","CINE":"CINE","Cancel":"Cancelar","Circle":"Círculo","Clear":"Limpar","Coronal":"Coronal","Crosshairs":"Localizador","Download":"Baixar","Ellipse":"Elipse","Elliptical":"Elíptico","Flip H":"Inverter H","Flip V":"Inverter V","Freehand":"Desenho livre","Invert":"Inverter","Layout":"Layout","Length":"Tamanho","Levels":"Níveis","Magnify":"Ampliar","Manual":"Manual","Measurements":"Medidas","More":"Mais","Next":"Próximo","Pan":"Arrastar","Play":"Tocar","Previous":"Anterior","Probe":"Prova","ROI Window":"Janela ROI","Rectangle":"Retângulo","Reset":"$t(Common:Reset)","Reset to Defaults":"$t(Common:Reset) para o Padrão","Rotate Right":"Girar à direita","Sagittal":"Sagital","Save":"Salvar","Stack Scroll":"Navegar Stacks","Stop":"Parar","Themes":"Temas","Zoom":"Zoom"}')},function(e){e.exports=JSON.parse('{"Next image":"Próxima imagem","Play / Stop":"Tocar / Parar","Previous image":"Imagem Anterior","Skip to first image":"Pular para a primeira imagem","Skip to last image":"Pular para a última imagem","fps":"fps"}')},function(e){e.exports=JSON.parse('{"Close":"Fechar","Image":"Imagem","Layout":"Layout","More":"Mais","Next":"Próximo","Play":"Play","Previous":"Anterior","Reset":"Restaurar","Stop":"Stop"}')},function(e){e.exports=JSON.parse('{"Clear dates":"Limpar datas","End Date":"Data Final","Start Date":"Data Inicial"}')},function(e){e.exports=JSON.parse('{"About":"Quem somos","Back to Viewer":"Voltar para o Viewer","INVESTIGATIONAL USE ONLY":"APENAS PARA USO INVESTIGATIVO","Options":"Opções","Preferences":"Preferências","Study list":"Lista de estudos"}')},function(e){e.exports=JSON.parse('{"Cancel":"Cancelar","Reset to Defaults":"$t(Common:Reset) para Padrão","ResetDefaultMessage":"Preferências resetadas com sucesso. <br /> Você deve <strong>Salvar</strong> para que essa ação seja realizada.","Save":"Salvar","SaveMessage":"Preferências salvas","User Preferences":"Preferências do Usuário"}')},function(e){e.exports=JSON.parse('{"Acquired":"Đã lấy","Angle":"Góc","Axial":"Trục","Bidirectional":"Hai hướng","Brush":"Bút lông","CINE":"Duyệt tự động","Cancel":"Hủy bỏ","Circle":"Vòng tròn","Clear":"Xóa","Coronal":"Mặt phẳng vành","Crosshairs":"Vị trí tương quan","Ellipse":"Đo Elip","Elliptical":"Elip","Flip H":"Lật ngang","Flip V":"Lật dọc","Freehand":"Bằng tay","Invert":"Ảnh dương bản","Layout":"$t(Common:Layout)","Length":"Thước đo chiều dài","Levels":"Độ sáng","Magnify":"Phóng đại một phần","Manual":"Thủ công","Measurements":"Đo lường","More":"$t(Common:More)","Next":"$t(Common:Next)","Pan":"Di chuyển","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Thông tin điểm ảnh","ROI Window":"ROI Window","Rectangle":"Đo chữ nhật","Reset":"$t(Common:Reset)","Reset to Defaults":"$t(Common:Reset) đến mặc định","Rotate Right":"Xoay phải","Sagittal":"Mặt phẳng đứng dọc","Save":"Lưu","Stack Scroll":"Duyệt","Stop":"$t(Common:Stop)","Themes":"Giao diện","Zoom":"Thu phóng"}')},function(e){e.exports=JSON.parse('{"Next image":"$t(Common:Next) $t(Common:Image)","Play / Stop":"$t(Common:Play) / $t(Common:Stop)","Previous image":"$t(Common:Previous) $t(Common:Image)","Skip to first image":"Bỏ qua đến đầu $t(Common:Image)","Skip to last image":"Bỏ qua đến cuối $t(Common:Image)","fps":"fps"}')},function(e){e.exports=JSON.parse('{"Image":"Ảnh","Layout":"Cách bố trí","Measurements":"Đo lường","More":"Thêm","Next":"Tiếp theo","Play":"Phát","Previous":"Về sau","Reset":"Đặt lại","RowsPerPage":"trên 1 trang","Series":"Tập ảnh","Show":"Hiển thị","Stop":"Dừng","StudyDate":"Ngày chụp"}')},function(e){e.exports=JSON.parse('{"About":"Về chúng tôi","Back to Viewer":"Ảnh vừa xem","INVESTIGATIONAL USE ONLY":"Chỉ dùng cho nghiên cứu","Options":"Lựa chọn","Preferences":"Thiết lập","Study list":"Danh sách"}')},function(e){e.exports=JSON.parse('{"AccessionNumber":"Mã phiểu","Empty":"Rỗng","MRN":"Mã Bệnh nhân","Modality":"Thiết bị","PatientName":"Tên Bệnh nhân","StudyDate":"Ngày chụp","StudyDescription":"Diễn giải","StudyList":"Danh sách"}')},function(e){e.exports=JSON.parse('{"Cancel":"$t(Buttons:Cancel)","Reset to Defaults":"$t(Buttons:Reset to Defaults)","Save":"$t(Buttons:Save)","User Preferences":"Thiết lập theo người dùng"}')},function(e){e.exports=JSON.parse('{"Acquired":"已获取","Angle":"角度","Axial":"轴状面","Bidirectional":"双向","Brush":"橡皮擦","CINE":"播放动画","Cancel":"取消","Circle":"圆","Clear":"清除","Coronal":"冠状面","Crosshairs":"十字线","Ellipse":"椭圆","Elliptical":"椭圆的","Flip H":"左右翻转","Flip V":"上下翻转","Freehand":"自由画线","Invert":"灰度反转","Layout":"显示窗口","Length":"长度","Levels":"层级","Magnify":"放大镜","Manual":"手动","Measurements":"测量","More":"更多","Next":"下一个","Pan":"移动","Play":"播放","Previous":"上一个","Probe":"探针","ROI Window":"选择对比度","Rectangle":"矩形","Reset":"复原","Reset to Defaults":"返回默认","Rotate Right":"顺时针旋转","Sagittal":"矢状面","Save":"保存","Stack Scroll":"滑动切换图层","Stop":"停止","Themes":"主题","Zoom":"放大"}')},function(e){e.exports=JSON.parse('{"Next image":"下一个图像","Play / Stop":"播放/停止","Previous image":"上一个图像","Skip to first image":"跳转到第一个图像","Skip to last image":"跳转到最后一个图像","fps":"帧率"}')},function(e){e.exports=JSON.parse('{"Image":"图像","Layout":"显示窗口","Measurements":"测量值","More":"更多","Next":"下一个","Play":"播放","Previous":"上一个","Reset":"复原","RowsPerPage":"每页条数","Series":"序列","Show":"显示","Stop":"停止","StudyDate":"时间"}')},function(e){e.exports=JSON.parse('{"About":"关于","Back to Viewer":"返回视图","INVESTIGATIONAL USE ONLY":"研究用途","Options":"选项","Preferences":"偏好","Study list":"研究列表"}')},function(e){e.exports=JSON.parse('{"Criteria nonconformities":"不合标准","Delete":"删除","Description":"描述","MAX":"最大","NonTargets":"非靶向","Relabel":"重新标记","Targets":"靶向"}')},function(e){e.exports=JSON.parse('{"Empty":"无","Modality":"成像设备","PatientName":"患者姓名","StudyDate":"检查日期","StudyDescription":"描述","StudyList":"检查列表"}')},function(e){e.exports=JSON.parse('{"Cancel":"取消","Reset to Defaults":"返回默认","Save":"保存","User Preferences":"用户偏好"}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(63)),i=f(n(64)),a=f(n(65)),s=f(n(66)),u=f(n(67)),l=f(n(68)),c=f(n(69)),p=f(n(70));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return o(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=r.defaults(t,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(i.default),this.addDetector(a.default),this.addDetector(s.default),this.addDetector(u.default),this.addDetector(l.default),this.addDetector(c.default),this.addDetector(p.default)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];e.forEach((function(e){if(t.detectors[e]){var o=t.detectors[e].lookup(t.options);o&&"string"==typeof o&&(o=[o]),o&&(n=n.concat(o))}}));var o=void 0;if(n.forEach((function(e){if(!o){var n=t.services.languageUtils.formatLanguageCode(e);t.options.checkWhitelist&&!t.services.languageUtils.isWhitelisted(n)||(o=n)}})),!o){var r=this.i18nOptions.fallbackLng;"string"==typeof r&&(r=[r]),r||(r=[]),o="[object Array]"===Object.prototype.toString.apply(r)?r[0]:r[0]||r.default&&r.default[0]}return o}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();g.type="languageDetector",t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=function(e){return r.call(i.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return r.call(i.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var o=[],r=o.forEach,i=o.slice},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n,o){var r=void 0;if(n){var i=new Date;i.setTime(i.getTime()+60*n*1e3),r="; expires="+i.toGMTString()}else r="";o=o?"domain="+o+";":"",document.cookie=e+"="+t+r+";"+o+"path=/"},r=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null};t.default={name:"cookie",lookup:function(e){var t=void 0;if(e.lookupCookie&&"undefined"!=typeof document){var n=r(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&o(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"querystring",lookup:function(e){var t=void 0;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),o=0;o<n.length;o++){var r=n[o].indexOf("=");if(r>0)n[o].substring(0,r)===e.lookupQuerystring&&(t=n[o].substring(r+1))}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=void 0;try{o="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){o=!1}t.default={name:"localStorage",lookup:function(e){var t=void 0;if(e.lookupLocalStorage&&o){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&o&&window.localStorage.setItem(t.lookupLocalStorage,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"htmlTag",lookup:function(e){var t=void 0,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"path",lookup:function(e){var t=void 0;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"subdomain",lookup:function(e){var t=void 0;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){"use strict";var o=n(73),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function S(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function O(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=S.prototype;var k=O.prototype=new x;k.constructor=O,o(k,S.prototype),k.isPureReactComponent=!0;var w={current:null},P=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var o,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,o)&&!C.hasOwnProperty(o)&&(r[o]=t[o]);var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===r[o]&&(r[o]=u[o]);return{$$typeof:i,type:e,key:a,ref:s,props:r,_owner:w.current}}function L(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var R=/\/+/g,j=[];function E(e,t,n,o){if(j.length){var r=j.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>j.length&&j.push(e)}function A(e,t,n){return null==e?0:function e(t,n,o,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return o(r,t,""===n?"."+M(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=n+M(s=t[l],l);u+=e(s,c,o,r)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),l=0;!(s=t.next()).done;)u+=e(s=s.value,c=n+M(s,l++),o,r);else if("object"===s)throw o=""+t,Error(v(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return u}(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function T(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?$(e,o,n,(function(e){return e})):null!=e&&(L(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n)),o.push(e))}function $(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(R,"$&/")+"/"),A(e,D,t=E(t,i,o,r)),I(t)}var V={current:null};function U(){var e=V.current;if(null===e)throw Error(v(321));return e}var F={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var o=[];return $(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;A(e,T,t=E(null,null,t,n)),I(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return $(e,t,null,(function(e){return e})),t},only:function(e){if(!L(e))throw Error(v(143));return e}},t.Component=S,t.Fragment=s,t.Profiler=l,t.PureComponent=O,t.StrictMode=u,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=o({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)P.call(t,c)&&!C.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){l=Array(c);for(var p=0;p<c;p++)l[p]=arguments[p+2];r.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:r,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=N,t.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=L,t.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.13.0"},function(e,t,n){"use strict";var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))r.call(n,c)&&(u[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(u[s[p]]=n[s[p]])}}return u}},function(e,t,n){var o=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,r=n(75),i=Object.create?Object.create(null):{};function a(e,t,n,o,r){var i=t.indexOf("<",o),a=t.slice(o,-1===i?void 0:i);/^\s*$/.test(a)&&(a=" "),(!r&&i>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=i);var n,s=[],u=-1,l=[],c={},p=!1;return e.replace(o,(function(o,i){if(p){if(o!=="</"+n.name+">")return;p=!1}var f,d="/"!==o.charAt(1),g=0===o.indexOf("\x3c!--"),h=i+o.length,m=e.charAt(h);d&&!g&&(u++,"tag"===(n=r(o)).type&&t.components[n.name]&&(n.type="component",p=!0),n.voidElement||p||!m||"<"===m||a(n.children,e,u,h,t.ignoreWhitespace),c[n.tagName]=n,0===u&&s.push(n),(f=l[u-1])&&f.children.push(n),l[u]=n),(g||!d||n.voidElement)&&(g||u--,!p&&"<"!==m&&m&&a(f=-1===u?s:l[u].children,e,u,h,t.ignoreWhitespace))})),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},function(e,t,n){var o=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,r=n(76);e.exports=function(e){var t,n=0,i=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(o,(function(o){if("="===o)return i=!0,void n++;i?0===n?((r[o]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=o):(a.attrs[t]=o.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=o),n++,i=!1})),a}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(n,"")+"</"+t.name+">"}}e.exports=function(e){return e.reduce((function(e,t){return e+n("",t)}),"")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?c(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.r(t);var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,h(t))}},y=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return l(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,a({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),b=function(){function e(){s(this,e),this.observers={}}return l(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function S(){var e,t,n=new Promise((function(n,o){e=n,t=o}));return n.resolve=e,n.reject=t,n}function x(e){return null==e?"":""+e}function O(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function k(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return r()?{}:{obj:e,k:o(i.shift())}}function w(e,t,n){var o=k(e,t,Object);o.obj[o.k]=n}function P(e,t){var n=k(e,t),o=n.obj,r=n.k;if(o)return o[r]}function C(e,t,n){var o=P(e,n);return void 0!==o?o:P(t,n)}function N(e,t,n){for(var o in t)o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):N(e[o],t[o],n):e[o]=t[o];return e}function L(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var R={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function j(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return R[e]})):e}var E=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=p(this,f(t).call(this)),b.call(c(n)),n.data=e||{},n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return g(t,e),l(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split(".")),P(this.data,i)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=t,t=(a=e.split("."))[1]),this.addNamespaces(t),w(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(o=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=P(this.data,s)||{};o?N(u,n,r):u=a({},u,n),w(this.data,s,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),I={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))})),t}},A=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=p(this,f(t).call(this)),b.call(c(n)),O(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,c(n)),n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return g(t,e),l(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(i[0])>-1)&&(r=i.shift()),e=i.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t){var n=this;if("object"!==r(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),s=i.key,u=i.namespaces,l=u[u.length-1],c=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(p){var f=t.nsSeparator||this.options.nsSeparator;return l+f+s}return s}var d=this.resolve(e,t),g=d&&d.res,h=d&&d.usedKey||s,m=d&&d.exactUsedKey||s,v=Object.prototype.toString.apply(g),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(S&&g&&x&&y.indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,g,t):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(o){var O="[object Array]"===v,k=O?[]:{},w=O?m:h;for(var P in g)if(Object.prototype.hasOwnProperty.call(g,P)){var C="".concat(w).concat(o).concat(P);k[P]=this.translate(C,a({},t,{joinArrays:!1,ns:u})),k[P]===C&&(k[P]=g[P])}g=k}}else if(S&&"string"==typeof b&&"[object Array]"===v)(g=g.join(b))&&(g=this.extendTranslation(g,e,t));else{var N=!1,L=!1;if(!this.isValidLookup(g)&&void 0!==t.defaultValue){if(N=!0,void 0!==t.count){var R=this.pluralResolver.getSuffix(c,t.count);g=t["defaultValue".concat(R)]}g||(g=t.defaultValue)}this.isValidLookup(g)||(L=!0,g=s);var j=t.defaultValue&&t.defaultValue!==g&&this.options.updateMissing;if(L||N||j){this.logger.log(j?"updateKey":"missingKey",c,l,s,j?t.defaultValue:g);var E=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var A=0;A<I.length;A++)E.push(I[A]);else"all"===this.options.saveMissingTo?E=this.languageUtils.toResolveHierarchy(t.lng||this.language):E.push(t.lng||this.language);var M=function(e,o){n.options.missingKeyHandler?n.options.missingKeyHandler(e,l,o,j?t.defaultValue:g,j,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,l,o,j?t.defaultValue:g,j,t),n.emit("missingKey",e,l,o,g)};if(this.options.saveMissing){var T=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&T?E.forEach((function(e){n.pluralResolver.getPluralFormsOfKey(e,s).forEach((function(t){return M([e],t)}))})):M(E,s)}}g=this.extendTranslation(g,e,t,d),L&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(l,":").concat(s)),L&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a({},n,{interpolation:a({},this.options.interpolation,n.interpolation)}));var i=n.replace&&"string"!=typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(i=a({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,n.lng||this.language,n),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){return r.translate.apply(r,arguments)}),n)),n.interpolation&&this.interpolator.reset()}var s=n.postProcess||this.options.postProcess,u="string"==typeof s?[s]:s;return null!=e&&u&&u.length&&!1!==n.applyPostProcessor&&(e=I.handle(u,e,t,this.options&&this.options.postProcessPassResolved?a({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,d=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&a.logger.warn('key "'.concat(n,'" for namespace "').concat(i,"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"),d.forEach((function(n){if(!a.isValidLookup(t)){r=n;var i,u,c=l,d=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(d,l,n,e,s);else p&&(i=a.pluralResolver.getSuffix(n,s.count)),p&&f&&d.push(c+i),f&&d.push(c+="".concat(a.options.contextSeparator).concat(s.context)),p&&d.push(c+=i);for(;u=d.pop();)a.isValidLookup(t)||(o=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}]),t}(b);function M(e){return e.charAt(0).toUpperCase()+e.slice(1)}var T=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=y.create("languageUtils")}return l(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=M(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=M(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=M(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isWhitelisted(e)?r.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),o.forEach((function(e){r.indexOf(e)<0&&i(n.formatLanguageCode(e))})),r}}]),e}(),D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}};function V(){var e={};return D.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:$[t.fc]}}))})),e}var U=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=n,this.logger=y.create("pluralResolver"),this.rules=V()}return l(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,o=[],r=this.getRule(e);return r?(r.numbers.forEach((function(r){var i=n.getSuffix(e,r);o.push("".concat(t).concat(i))})),o):o}},{key:"getSuffix",value:function(e,t){var n=this,o=this.getRule(e);if(o){var r=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),i=o.numbers[r];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return l(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:j,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?L(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?L(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?L(t.nestingPrefix):t.nestingPrefixEscaped||L("$t("),this.nestingSuffix=t.nestingSuffix?L(t.nestingSuffix):t.nestingSuffixEscaped||L(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0)return C(t,u,e);var o=e.split(s.formatSeparator),r=o.shift().trim(),i=o.join(s.formatSeparator).trim();return s.format(C(t,u,r),i,n)};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=c(r[1].trim())))if("function"==typeof p){var f=p(e,r,o);i="string"==typeof f?f:""}else this.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=x(i));if(e=e.replace(r[0],l(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=c(r[1].trim())))if("function"==typeof p){var d=p(e,r,o);i="string"==typeof d?d:""}else this.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=x(i));if(i=this.escapeValue?l(this.escape(i)):l(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a({},r);function s(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var o=n.join(",");o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),t&&(i=a({},t,i))}catch(t){this.logger.error("failed parsing options string in nesting for key ".concat(e),t)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){if((o=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=x(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();var B=function(e){function t(e,n,o){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),r=p(this,f(t).call(this)),b.call(c(r)),r.backend=e,r.store=n,r.services=o,r.languageUtils=o.languageUtils,r.options=i,r.logger=y.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,i.backend,i),r}return g(t,e),l(t,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?a.indexOf(s)<0&&a.push(s):(r.state[s]=1,o=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),o||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:o}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var o=m(e.split("|"),2),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var o,s,u,l,c,p;o=n.loaded,s=i,l=k(o,[r],Object),c=l.obj,p=l.k,c[p]=c[p]||[],u&&(c[p]=c[p].concat(s)),u||c[p].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&r<5?setTimeout((function(){o.read.call(o,e,t,n,r+1,2*i,a)}),i):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=m(o,2),i=r[0],a=r[1];this.read(i,a,"read",null,null,(function(o,r){o&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(i," failed"),o),!o&&r&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(i),r),t.loaded(e,o,r)}))}},{key:"saveMissing",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" for namespace "').concat(t,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,a({},i,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),t}(b);function H(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function J(){}var _=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(s(this,t),e=p(this,f(t).call(this)),b.call(c(e)),e.options=z(n),e.services={},e.logger=y,e.modules={external:[]},o&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,o),p(e,c(e));setTimeout((function(){e.init(n,o)}),0)}return e}return g(t,e),l(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),this.options=a({},H(),this.options,z(t)),this.format=this.options.interpolation.format,n||(n=J),!this.options.isClone){this.modules.logger?y.init(o(this.modules.logger),this.options):y.init(null,this.options);var r=new T(this.options);this.store=new E(this.options.resources,this.options);var i=this.services;i.logger=y,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new U(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new F(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new B(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}var s=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=S(),l=function(){e.changeLanguage(e.options.lng,(function(t,o){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(o),n(t,o)}))};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],o=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(this.language)o(this.language);else{var r=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);r.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(n,this.options.ns,t)}else t(null)}},{key:"reloadResources",value:function(e,t,n){var o=S();return e||(e=this.languages),t||(t=this.options.ns),n||(n=J),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),n(e)})),o}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this,o=S();this.emit("languageChanging",e);var r=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources((function(r){!function(e,r){n.translator.changeLanguage(r),r&&(n.emit("languageChanged",r),n.logger.log("languageChanged",r)),o.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(r,e)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var i;if("object"!==r(o)){for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=a({},o);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this;if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};return!!this.hasResourceBundle(n,e)||(!this.services.backendConnector.backend||!(!i(n,e)||o&&!i(r,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=S();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=S();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter((function(e){return o.indexOf(e)<0}));return r.length?(this.options.preload=o.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,r=a({},this.options,n,{isClone:!0}),i=new t(r),s=["store","services","language"];return s.forEach((function(t){i[t]=e[t]})),i.translator=new A(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.emit.apply(i,[e].concat(n))})),i.init(r,o),i.translator.options=i.options,i}}]),t}(b));function q(e,t,n){var o;return function(){var r=this,i=arguments,a=function(){o=null,n||e.apply(r,i)},s=n&&!o;clearTimeout(o),o=setTimeout(a,t),s&&e.apply(r,i)}}function K(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var r="string"!=typeof t?[].concat(t):t.split(".");r.length>1;){if(!e)return{};var i=o(r.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return e?{obj:e,k:o(r.shift())}:{}}function W(e,t,n){var o=K(e,t,Object);o.obj[o.k]=n}function G(e,t){var n=K(e,t),o=n.obj,r=n.k;if(o)return o[r]}var X=new RegExp("{{(.+?)}}","g");function Y(e,t,n){var o,r,i;for(;o=X.exec(e);)"string"!=typeof(r=o[1].trim())&&(r=null==(i=r)?"":""+i),r||(r=""),r=r.replace(/\$/g,"$$$$"),e=e.replace(o[0],t[r]||r),X.lastIndex=0;return e}function Z(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var o='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(o),o}return!1}),!1)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n,o,r){try{var i=new(XMLHttpRequest||ActiveXObject)("MSXML2.XMLHTTP.3.0");i.open(o?"POST":"GET",e,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.authorize&&t.apiKey&&i.setRequestHeader("Authorization",t.apiKey),(o||t.setContentTypeJSON)&&i.setRequestHeader("Content-type","application/json"),i.onreadystatechange=function(){i.readyState>3&&n&&n(i.responseText,i)},i.send(JSON.stringify(o))}catch(e){"undefined"!=typeof window&&window.console&&console.log(e)}}var ne=function(){function e(t,n,o){s(this,e),t&&t.projectId?this.init(null,t,{},n):this.init(null,n,{},o),this.type="backend"}return l(e,[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;this.options=ee({},{loadPath:"https://api.locize.io/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.io/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",pullPath:"https://api.locize.io/pull/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.io/languages/{{projectId}}",addPath:"https://api.locize.io/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.io/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",pull:!1,private:!1,whitelistThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1},{},this.options,{},n),this.services=e,this.options.pull&&console.warn("deprecated: pull will be removed in future versions and should be replaced with locize private versions");var i="undefined"!=typeof window&&window.location&&window.location.hostname;i?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(i):this.options.allowedAddOrUpdateHosts.indexOf(i)>-1,o.saveMissing&&!this.isAddOrUpdateAllowed&&e&&e.logger&&e.logger.warn('locize-backend: will not save missings because the host "'.concat(i,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact)."))):this.isAddOrUpdateAllowed=!0,"function"==typeof r&&this.getOptions((function(e,o){if(e)return r(e);t.options.referenceLng=n.referenceLng||o.referenceLng||t.options.referenceLng,r(null,o)})),this.queuedWrites={},this.debouncedProcess=q(this.process,1e4)}},{key:"getLanguages",value:function(e){var t=Z(this.options,["projectId"]);if(t)return e(new Error(t));var n=Y(this.options.getLanguagesPath,{projectId:this.options.projectId});this.loadUrl(n,{},e)}},{key:"getOptions",value:function(e){var t=this;this.getLanguages((function(n,o){if(n)return e(n);var r=Object.keys(o);if(!r.length)return e(new Error("was unable to load languages via API"));var i=r.reduce((function(e,t){return o[t].isReferenceLanguage&&(e=t),e}),""),a=r.reduce((function(e,n){var r=o[n];return r.translated[t.options.version]&&r.translated[t.options.version]>=t.options.whitelistThreshold&&e.push(n),e}),[]),s=r.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:i,referenceLng:i,whitelist:a,load:s?"all":"languageOnly"})}))}},{key:"read",value:function(e,t,n){var o,r={};if(this.options.private){var i=Z(this.options,["projectId","version","apiKey"]);if(i)return n(new Error(i),!1);o=Y(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),r={authorize:!0}}else if(this.options.pull){var a=Z(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);o=Y(this.options.pullPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),r={authorize:!0}}else{var s=Z(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);o=Y(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}this.loadUrl(o,r,n)}},{key:"loadUrl",value:function(e,t,n){var o=this;te(e,ee({},this.options,{},t),(function(t,r){if(r.status>=500&&r.status<600)return n("failed loading "+e,!0);if(r.status>=400&&r.status<500)return n("failed loading "+e,!1);var i,a;try{i=JSON.parse(t)}catch(t){a="failed parsing "+e+" to json"}return a?n(a,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(i).length?n("loaded result empty for "+e,!1):void n(null,i)}))}},{key:"create",value:function(e,t,n,o,r,i){var a=this;r||(r=function(){});var s=Z(this.options,["projectId","version","apiKey","referenceLng"]);return s?r(new Error(s)):this.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===a.options.referenceLng})).length<1&&this.services&&this.services.logger&&this.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(this.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===a.options.referenceLng&&a.queue.call(a,a.options.referenceLng,t,n,o,r,i)}))):r("host is not allowed to create key.")}},{key:"update",value:function(e,t,n,o,r,i){var a=this;r||(r=function(){});var s=Z(this.options,["projectId","version","apiKey","referenceLng"]);return s?r(new Error(s)):this.isAddOrUpdateAllowed?(i||(i={}),"string"==typeof e&&(e=[e]),i.isUpdate=!0,void e.forEach((function(e){e===a.options.referenceLng&&a.queue.call(a,a.options.referenceLng,t,n,o,r,i)}))):r("host is not allowed to update key.")}},{key:"write",value:function(e,t){var n=this;if(!G(this.queuedWrites,["locks",e,t])){var o=Y(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),r=Y(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=G(this.queuedWrites,[e,t]);if(W(this.queuedWrites,[e,t],[]),i.length){W(this.queuedWrites,["locks",e,t],!0);var a=!1,s=!1,u={},l={};i.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(s||(s=!0),l[e.key]=t):(a||(a=!0),u[e.key]=t)}));var c=0;a&&c++,s&&c++;var p=function(){--c||(W(n.queuedWrites,["locks",e,t],!1),i.forEach((function(e){e.callback&&e.callback()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t))};c||p(),a&&te(o,ee({},{authorize:!0},{},this.options),(function(e,t){p()}),u),s&&te(r,ee({},{authorize:!0},{},this.options),(function(e,t){p()}),l)}}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,o,r,i){var a,s,u,l,c,p;a=this.queuedWrites,s={key:n,fallbackValue:o||"",callback:r,options:i},l=K(a,[e,t],Object),c=l.obj,p=l.k,c[p]=c[p]||[],u&&(c[p]=c[p].concat(s)),u||c[p].push(s),this.debouncedProcess()}}]),e}();ne.type="backend";var oe=ne;function re(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var o='i18next-lastused :: got "'+e[n]+'" in options for '+n+" which is invalid.";return console.warn(o),o}return!1}),!1)}var ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var ae={init:function(e){var t=e.t&&"function"==typeof e.t;this.options=ie({},{lastUsedPath:"https://api.locize.io/used/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",debounceSubmit:9e4,allowedHosts:["localhost"]},this.options,t?e.options.locizeLastUsed:e);var n,o,r,i,a=window.location&&window.location.hostname;this.isAllowed=!a||this.options.allowedHosts.indexOf(a)>-1,this.submitting=null,this.pending={},this.done={},this.submit=(n=this.submit,o=this.options.debounceSubmit,function(){var e=this,t=arguments,a=function(){i=null,r||n.apply(e,t)},s=r&&!i;clearTimeout(i),i=setTimeout(a,o),s&&n.apply(e,t)}),t&&this.interceptI18next(e)},interceptI18next:function(e){var t=this,n=e.services.resourceStore.getResource;e.services.resourceStore.getResource=function(o,r,i,a){return i&&t.used(r,i),n.call(e.services.resourceStore,o,r,i,a)}},used:function(e,t){var n=this;["pending","done"].forEach((function(o){n.done[e]&&n.done[e][t]||(n[o][e]||(n[o][e]={}),n[o][e][t]=!0)})),this.submit()},submit:function(){var e=this;if(this.isAllowed){if(this.submitting)return this.submit();var t=re(this.options,["projectId","version","apiKey","referenceLng"]);if(t)return callback(new Error(t));this.submitting=this.pending,this.pending={};var n=Object.keys(this.submitting),o=n.length,r=function(){--o||(e.submitting=null)};n.forEach((function(t){var n,o,i,a,s=Object.keys(e.submitting[t]),u=(n=e.options.lastUsedPath,o=["projectId","version","lng","ns"],i=ie({},e.options,{lng:e.options.referenceLng,ns:t}),a=n,o.forEach((function(e){var t=new RegExp("{{"+e+"}}","g");a=a.replace(t,i[e])})),a);s.length?function(e,t,n,o,r){try{var i=new(XMLHttpRequest||ActiveXObject)("MSXML2.XMLHTTP.3.0");i.open(o?"POST":"GET",e,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.authorize&&t.apiKey&&i.setRequestHeader("Authorization",t.apiKey),(o||t.setContentTypeJSON)&&i.setRequestHeader("Content-type","application/json"),i.onreadystatechange=function(){i.readyState>3&&n&&n(i.responseText,i)},i.send(JSON.stringify(o))}catch(e){window.console&&window.console.log(e)}}(u,ie({authorize:!0},e.options),(function(e,t){r()}),s):r()}))}},type:"3rdParty"},se=ae;function ue(e){var t,n,o={top:0,left:0,right:0,bottom:0},i=e&&e.ownerDocument;if(!(t=i&&i.documentElement))return o;"undefined"!==r(e.getBoundingClientRect)&&(o=e.getBoundingClientRect()),n=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(i);var a=o.top+n.pageYOffset-t.clientTop,s=o.left+n.pageXOffset-t.clientLeft;return{top:a,left:s,right:s+(o.right-o.left),bottom:a+(o.bottom-o.top)}}function le(e,t){var n=e,o=void 0!==t.options.nsSeparator?t.options.nsSeparator:":";if(e.indexOf(o)>-1){var r=e.split(o);r.shift(),n=r.join(o)}return n}function ce(e,t,n){var o=n.options.defaultNS,r=n.options.nsSeparator||":";if(e.indexOf(r)>-1)o=e.split(r)[0];else{var i;!function e(t){var n=t.getAttribute&&t.getAttribute("i18next-options");if(n||(n=t.getAttribute&&t.getAttribute("data-i18next-options")),n||(n=t.getAttribute&&t.getAttribute("i18n-options")),n||(n=t.getAttribute&&t.getAttribute("data-i18n-options")),n){var o={};try{o=JSON.parse(n)}catch(e){}o.ns&&(i=o.ns)}i||(i=t.getAttribute&&t.getAttribute("i18next-ns")),i||(i=t.getAttribute&&t.getAttribute("data-i18next-ns")),i||(i=t.getAttribute&&t.getAttribute("i18n-ns")),i||(i=t.getAttribute&&t.getAttribute("data-i18n-ns")),!i&&t.parentElement&&e(t.parentElement)}(t),i&&(o=i)}return o}function pe(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var o=t[n].split("=");if(o[0]==e)return o[1]}return!1}var fe='font-family: "Helvetica", "Arial", sans-serif; font-size: 14px; color: #fff; border: none; font-weight: 300; height: 30px; line-height: 30px; padding: 0; text-align: center; min-width: 90px; text-decoration: none; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; outline: none; cursor: pointer;';var de={url:"https://www.locize.io",openDashboard:!1,enabled:!1,enableByQS:"locize",toggleKeyCode:24,toggleKeyModifier:"ctrlKey",lngOverrideQS:"useLng",lngOverride:null,hasNamespacePrefixed:!1,autoOpen:!0,onEditorSaved:function(e,t){},mode:pe("locizeMode")||"iframe",iframeContainerStyle:"z-index: 2147480000; position: fixed; top: 0; right: 0; bottom: 0; width: 600px; box-shadow: -3px 0 5px 0 rgba(0,0,0,0.5);",iframeStyle:"height: 100%; width: 600px; border: none;",bodyStyle:"margin-right: 605px;"};var ge={type:"3rdParty",init:function(e){var t,n=this;e&&!e.init&&(e={languages:[(t=e).lng],nsSeparator:t.nsSeparator||":",options:{editor:t,backend:t,defaultNS:t.defaultNS}}),this.enabled=!1,this.i18next=e,this.options=a({},de,e.options.editor),this.handler=this.handler.bind(this),this.handleSavedMissing=this.handleSavedMissing.bind(this),(this.options.enabled||this.options.enableByQS&&"true"===pe(this.options.enableByQS))&&setTimeout((function(){n.options.autoOpen&&n.open()}),500),document.addEventListener("keypress",(function(e){e[n.options.toggleKeyModifier]&&e.which===n.options.toggleKeyCode&&(n.enabled?n.off():n.on())})),window.addEventListener("message",(function(e){e.data[n.options.toggleKeyModifier]&&e.data.which===n.options.toggleKeyCode&&(n.enabled?n.off():n.on()),"savedSegments"===e.data.type&&n.options.onEditorSaved(e.data.lng,e.data.ns)}))},handler:function(e){var t=this,n=function(e){if(e.srcElement&&1===e.srcElement.nodeType)return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var o,r=e.pageX,i=e.pageY,a=(ue(n),0),s=0;s<n.childNodes.length;s++){var u=n.childNodes[s],l=ue(u);1===u.nodeType&&l.bottom<i&&(a=s+1),!o&&l.top+(u.clientHeight||0)>i&&(o=s)}a+1>n.childNodes.length&&(a=n.childNodes.length-1),o||(o=n.childNodes.length);for(var c=a;c<o;c++){var p=n.childNodes[c];if(ue(p).left>r)break;p&&8!==p.nodeType&&(t=p)}}return t}(e);if(n){e.preventDefault(),e.stopPropagation();var o=n.textContent||n.text&&n.text.innerText||n.placeholder;if("string"==typeof o){var r=o.replace(/\n +/g,"").trim(),i=function(){var e={message:"searchForKey",projectId:t.i18next.options.backend.projectId,version:t.i18next.options.backend.version||"latest",lng:pe(t.options.lngOverrideQS)||t.options.lngOverride||t.i18next.languages[0],ns:ce(r,n,t.i18next),token:t.options.hasNamespacePrefixed?le(r,t.i18next):r};if(e.lng&&"cimode"!==e.lng.toLowerCase()||(e.lng=t.i18next.options.backend.referenceLng),t.options.handler)return t.options.handler(e);t.locizeInstance.postMessage(e,t.options.url),t.locizeInstance.focus()};this.options.autoOpen&&("iframe"!==this.options.mode&&!this.locizeInstance||this.locizeInstance.closed)?(this.open(),setTimeout((function(){i()}),3e3)):i()}}},handleSavedMissing:function(e,t){if(this.locizeInstance&&!this.locizeInstance.closed){var n={message:"savedMissings",projectId:this.i18next.options.backend.projectId,version:this.i18next.options.backend.version||"latest",lng:e,ns:t};this.locizeInstance.postMessage(n,this.options.url)}},open:function(){var e=this.options.url;this.options.openDashboard||(e="".concat(e,"/pid/").concat(this.options.projectId||this.i18next.options.backend.projectId,"/v/").concat(this.i18next.options.backend.version||"latest")),"iframe"===this.options.mode?this.locizeInstance=function(e,t){var n=document.createElement("div");n.setAttribute("style",t.iframeContainerStyle),n.setAttribute("ignorelocizeeditor",""),n.setAttribute("translated","");var o=document.createElement("iframe");o.setAttribute("style",t.iframeStyle),o.setAttribute("ignorelocizeeditor",""),o.setAttribute("translated",""),o.setAttribute("src",e),n.appendChild(o),document.body.appendChild(n);var r=document.body.getAttribute("style");return document.body.setAttribute("style","".concat(r,"; ").concat(t.bodyStyle)),o.contentWindow}(e,this.options):this.locizeInstance=window.open(e),this.toggleUI=function(e,t,n){var o=document.createElement("div");o.setAttribute("style",'z-index: 2147483647; font-family: "Helvetica", "Arial", sans-serif; position: fixed; bottom: 20px; right: 20px; padding: 10px; background-color: #fff; border: solid 1px #1976d2; box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.5);'),o.setAttribute("ignorelocizeeditor",""),o.setAttribute("translated","");var r=document.createElement("h4");r.id="locize-title",r.innerHTML="locize editor",r.setAttribute("style",'font-family: "Helvetica", "Arial", sans-serif; font-size: 14px; margin: 0 0 5px 0; color: #1976d2; font-weight: 300;'),r.setAttribute("ignorelocizeeditor",""),o.appendChild(r);var i=document.createElement("button");i.innerHTML="On",i.setAttribute("style","".concat(fe," display: none; background-color: #54A229;")),i.onclick=t,i.setAttribute("ignorelocizeeditor",""),o.appendChild(i);var a=document.createElement("button");return a.innerHTML="Off",a.setAttribute("style","".concat(fe," display: none; background-color: #D50000;")),a.onclick=e,a.setAttribute("ignorelocizeeditor",""),o.appendChild(a),document.body.appendChild(o),function(e){i.style.display=e?"block":"none",a.style.display=e?"none":"block"}}(this.on.bind(this),this.off.bind(this),this.options),this.on()},on:function(){document.body.addEventListener("click",this.handler,!0),this.toggleUI(!0),this.enabled=!0},off:function(){document.body.removeEventListener("click",this.handler,!0),this.toggleUI(!1),this.enabled=!1}},he=n(5),me=n.n(he),ve=(n(2),n(1)),ye=n.n(ve),be=(n(4),n(0)),Se=n.n(be);n(6),n(7),n(8);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(n,!0).forEach((function(t){ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke={bindI18n:"languageChanging languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0};Se.a.createContext();var we={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke=Oe({},ke,{},e)}(e.options.react),function(e){e}(e)}};n(3);n(9);var Pe={order:["querystring","cookie","localStorage","navigator","htmlTag","path","subdomain"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupFromPathIndex:0,lookupFromSubdomainIndex:0,caches:["localStorage","cookie"],excludeCacheFor:["cimode"],htmlTag:document.documentElement},Ce=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]},Ne=n(10);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{ar:{UserPreferencesModal:n(11)}},{},{"en-US":{AboutModal:n(12),Buttons:n(13),CineDialog:n(14),Common:n(15),DatePicker:n(16),Header:n(17),MeasurementTable:n(18),StudyList:n(19),UserPreferencesModal:n(20),ViewportDownloadForm:n(21)}},{},{es:{Buttons:n(22),CineDialog:n(23),Common:n(24),Header:n(25),MeasurementTable:n(26),StudyList:n(27),UserPreferencesModal:n(28)}},{},{fr:{Buttons:n(29),CineDialog:n(30),Common:n(31),Header:n(32),UserPreferencesModal:n(33)}},{},{"ja-JP":{Buttons:n(34),CineDialog:n(35),Common:n(36),Header:n(37),UserPreferencesModal:n(38)}},{},{nl:{Buttons:n(39),Common:n(40),Header:n(41)}},{},{"pt-BR":{AboutModal:n(42),Buttons:n(43),CineDialog:n(44),Common:n(45),DatePicker:n(46),Header:n(47),UserPreferencesModal:n(48)}},{},{vi:{Buttons:n(49),CineDialog:n(50),Common:n(51),Header:n(52),StudyList:n(53),UserPreferencesModal:n(54)}},{},{zh:{Buttons:n(55),CineDialog:n(56),Common:n(57),Header:n(58),MeasurementTable:n(59),StudyList:n(60),UserPreferencesModal:n(61)}}),Ee={ar:"Arabic",am:"Amharic",bg:"Bulgarian",bn:"Bengali",ca:"Catalan",cs:"Czech",da:"Danish",de:"German",el:"Greek",en:"English","en-GB":"English (Great Britain)","en-US":"English (USA)",es:"Spanish",et:"Estonian",fa:"Persian",fi:"Finnish",fil:"Filipino",fr:"French",gu:"Gujarati",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",id:"Indonesian",it:"Italian",ja:"Japanese","ja-JP":"Japanese (Japan)",kn:"Kannada",ko:"Korean",lt:"Lithuanian",lv:"Latvian",ml:"Malayalam",mr:"Marathi",ms:"Malay",nl:"Dutch",no:"Norwegian",pl:"Polish","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sk:"Slovak",sl:"Slovenian",sr:"Serbian",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",zh:"Chinese","zh-CN":"Chinese (China)","zh-TW":"Chinese (Taiwan)"};function Ie(e,t,n,o,r,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(o,r)}function Ae(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Ie(i,o,r,a,s,"next",e)}function s(e){Ie(i,o,r,a,s,"throw",e)}a(void 0)}))}}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $e={projectId:"",apiKey:"",referenceLng:"en-US",fallbacklng:"en-US"};function Ve(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o?(Ce("Using Locize for translation files","info"),e=_.use(oe).use(se).use(ge).use(me.a).use(we).init({fallbackLng:"en-US",saveMissing:r,debug:!1,keySeparator:!1,interpolation:{escapeValue:!1},detection:n,backend:$e,locizeLastUsed:$e,editor:Te({},$e,{onEditorSaved:(t=Ae(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.reloadResources(t,n);case 2:_.emit("editorSaved");case 3:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}),react:{useSuspense:!1,wait:!0,bindI18n:"languageChanged editorSaved"}})):(Ce("Using local translation files","info"),e=_.use(me.a).use(we).init({fallbackLng:"en-US",resources:je,debug:!1,keySeparator:!1,interpolation:{escapeValue:!1},detection:n,react:{wait:!0}})),e.then((function(e){_.T=e,Ce("T function available.","info")}))}Ce("version ".concat(Ne.version," loaded."),"info"),_.initializing=Ve(),_.initI18n=Ve,_.addLocales=function(e){Ce("Adding locales ".concat(e),"info");var t=[];Object.keys(e).map((function(n){Object.keys(e[n]).map((function(o){var r=e[n][o];t.push({key:n,namespace:o,locale:r}),_.addResourceBundle(n,o,r,!0,!0)}))})),Ce("Locales added successfully","info"),Ce(t,"info")},_.defaultLanguage="en-US",_.availableLanguages=function(e){var t=[];return Object.keys(e).forEach((function(e){t.push({value:e,label:Ee[e]||e})})),t}(je);t.default=_}])}));
|
|
3
|
-
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"dist/index.umd.js","sourceRoot":""}
|