@generaltranslation/react-core 1.1.1 → 1.2.1
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/CHANGELOG.md +14 -0
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs +3 -3
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +3 -3
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/provider/GTProvider.d.ts +1 -23
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/hooks/locales/types.d.ts +1 -0
- package/dist/provider/hooks/locales/types.d.ts.map +1 -1
- package/dist/provider/hooks/locales/useLocaleState.d.ts +2 -1
- package/dist/provider/hooks/locales/useLocaleState.d.ts.map +1 -1
- package/dist/provider/hooks/types.d.ts +9 -0
- package/dist/provider/hooks/types.d.ts.map +1 -1
- package/dist/provider/hooks/useEnableI18n.d.ts +3 -0
- package/dist/provider/hooks/useEnableI18n.d.ts.map +1 -0
- package/dist/types-dir/config.d.ts +12 -1
- package/dist/types-dir/config.d.ts.map +1 -1
- package/dist/types.d.ts +16 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/cookies.d.ts +5 -0
- package/dist/utils/cookies.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/internal.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import renderDefaultChildren from './rendering/renderDefaultChildren';
|
|
|
11
11
|
import renderTranslatedChildren from './rendering/renderTranslatedChildren';
|
|
12
12
|
import { getDefaultRenderSettings } from './rendering/getDefaultRenderSettings';
|
|
13
13
|
import renderSkeleton from './rendering/renderSkeleton';
|
|
14
|
-
import { defaultLocaleCookieName, defaultRegionCookieName } from './utils/cookies';
|
|
14
|
+
import { defaultLocaleCookieName, defaultRegionCookieName, defaultEnableI18nCookieName } from './utils/cookies';
|
|
15
15
|
import mergeDictionaries from './dictionaries/mergeDictionaries';
|
|
16
16
|
import { reactHasUse } from './promises/reactHasUse';
|
|
17
17
|
import { getSubtree, getSubtreeWithCreation } from './dictionaries/getSubtree';
|
|
@@ -24,5 +24,5 @@ import { injectFallbacks } from './dictionaries/injectFallbacks';
|
|
|
24
24
|
import { injectAndMerge } from './dictionaries/injectAndMerge';
|
|
25
25
|
import { collectUntranslatedEntries } from './dictionaries/collectUntranslatedEntries';
|
|
26
26
|
import { msg, decodeMsg, decodeOptions } from './messages/messages';
|
|
27
|
-
export { addGTIdentifier, writeChildrenAsObjects, isVariableObject, flattenDictionary, getDictionaryEntry, isValidDictionaryEntry, getVariableProps, getPluralBranch, getEntryAndMetadata, getVariableName, renderDefaultChildren, renderTranslatedChildren, renderSkeleton, getDefaultRenderSettings, defaultLocaleCookieName, defaultRegionCookieName, mergeDictionaries, reactHasUse, getSubtree, getSubtreeWithCreation, injectEntry, isDictionaryEntry, stripMetadataFromEntries, injectHashes, injectTranslations, injectFallbacks, injectAndMerge, collectUntranslatedEntries, msg, decodeMsg, decodeOptions, };
|
|
27
|
+
export { addGTIdentifier, writeChildrenAsObjects, isVariableObject, flattenDictionary, getDictionaryEntry, isValidDictionaryEntry, getVariableProps, getPluralBranch, getEntryAndMetadata, getVariableName, renderDefaultChildren, renderTranslatedChildren, renderSkeleton, getDefaultRenderSettings, defaultLocaleCookieName, defaultRegionCookieName, defaultEnableI18nCookieName, mergeDictionaries, reactHasUse, getSubtree, getSubtreeWithCreation, injectEntry, isDictionaryEntry, stripMetadataFromEntries, injectHashes, injectTranslations, injectFallbacks, injectAndMerge, collectUntranslatedEntries, msg, decodeMsg, decodeOptions, };
|
|
28
28
|
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAEA,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAEA,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,wBAAwB,EACxB,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,0BAA0B,EAC1B,GAAG,EACH,SAAS,EACT,aAAa,GACd,CAAC"}
|
|
@@ -15,5 +15,5 @@ r.mode.CTRGladman=function(){var t=r.lib.BlockCipherMode.extend();function e(r){
|
|
|
15
15
|
|
|
16
16
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
17
17
|
*/
|
|
18
|
-
function(){var t=r,e=t.lib,n=e.WordArray,i=e.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,t){for(var e=0;e<16;e++){var n=t+e,i=r[n];r[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,b,x,m,w,B,k,A,S,E,O=this._hash.words,C=f.words,H=u.words,z=a.words,j=s.words,D=c.words,R=l.words;for(w=o=O[0],B=h=O[1],k=b=O[2],A=x=O[3],S=m=O[4],e=0;e<80;e+=1)E=o+r[t+z[e]]|0,E+=e<16?p(h,b,x)+C[0]:e<32?d(h,b,x)+C[1]:e<48?v(h,b,x)+C[2]:e<64?y(h,b,x)+C[3]:g(h,b,x)+C[4],E=(E=_(E|=0,D[e]))+m|0,o=m,m=x,x=_(b,10),b=h,h=E,E=w+r[t+j[e]]|0,E+=e<16?g(B,k,A)+H[0]:e<32?y(B,k,A)+H[1]:e<48?v(B,k,A)+H[2]:e<64?d(B,k,A)+H[3]:p(B,k,A)+H[4],E=(E=_(E|=0,R[e]))+S|0,w=S,S=A,A=_(k,10),k=B,B=E;E=O[1]+b+A|0,O[1]=O[2]+x+S|0,O[2]=O[3]+m+w|0,O[3]=O[4]+o+B|0,O[4]=O[0]+h+k|0,O[0]=E},_doFinalize:function(){var r=this._data,t=r.words,e=8*this._nDataBytes,n=8*r.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),r.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var r=i.clone.call(this);return r._hash=this._hash.clone(),r}});function p(r,t,e){return r^t^e}function d(r,t,e){return r&t|~r&e}function v(r,t,e){return(r|~t)^e}function y(r,t,e){return r&e|t&~e}function g(r,t,e){return r^(t|~e)}function _(r,t){return r<<t|r>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),r.RIPEMD160)),er.exports;var r}(),or(),function(){return ar||(ar=1,sr.exports=(c=x(),U(),or(),t=(r=c).lib,e=t.Base,n=t.WordArray,i=r.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:o,iterations:25e4}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,t){for(var e=this.cfg,i=a.create(e.hasher,r),o=n.create(),s=n.create([1]),c=o.words,l=s.words,f=e.keySize,u=e.iterations;c.length<f;){var h=i.update(t).finalize(s);i.reset();for(var p=h.words,d=p.length,v=h,y=1;y<u;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(h),l[0]++}return o.sigBytes=4*f,o}}),r.PBKDF2=function(r,t,e){return s.create(e).compute(r,t)},c.PBKDF2)),sr.exports;var r,t,e,n,i,o,a,s,c}(),fr(),pr(),yr(),br(),wr(),Ar(),function(){return Sr?Er.exports:(Sr=1,Er.exports=(t=x(),pr(),t.mode.ECB=((r=t.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(r,t){this._cipher.encryptBlock(r,t)}}),r.Decryptor=r.extend({processBlock:function(r,t){this._cipher.decryptBlock(r,t)}}),r),t.mode.ECB));var r,t}(),function(){return Or?Cr.exports:(Or=1,Cr.exports=(r=x(),pr(),r.pad.AnsiX923={pad:function(r,t){var e=r.sigBytes,n=4*t,i=n-e%n,o=e+i-1;r.clamp(),r.words[o>>>2]|=i<<24-o%4*8,r.sigBytes+=i},unpad:function(r){var t=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=t}},r.pad.Ansix923));var r}(),function(){return Hr?zr.exports:(Hr=1,zr.exports=(r=x(),pr(),r.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(r){var t=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=t}},r.pad.Iso10126));var r}(),function(){return jr?Dr.exports:(jr=1,Dr.exports=(r=x(),pr(),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971));var r}(),function(){return Rr||(Rr=1,Mr.exports=(r=x(),pr(),r.pad.ZeroPadding={pad:function(r,t){var e=4*t;r.clamp(),r.sigBytes+=e-(r.sigBytes%e||e)},unpad:function(r){var t=r.words,e=r.sigBytes-1;for(e=r.sigBytes-1;e>=0;e--)if(t[e>>>2]>>>24-e%4*8&255){r.sigBytes=e+1;break}}},r.pad.ZeroPadding)),Mr.exports;var r}(),function(){return Fr?Pr.exports:(Fr=1,Pr.exports=(r=x(),pr(),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding));var r}(),function(){return $r?Ir.exports:($r=1,Ir.exports=(n=x(),pr(),t=(r=n).lib.CipherParams,e=r.enc.Hex,r.format.Hex={stringify:function(r){return r.ciphertext.toString(e)},parse:function(r){var n=e.parse(r);return t.create({ciphertext:n})}},n.format.Hex));var r,t,e,n}(),function(){return Wr||(Wr=1,Tr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],f=[],u=[],h=[],p=[];!function(){for(var r=[],t=0;t<256;t++)r[t]=t<128?t<<1:t<<1^283;var e=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[e]=d,o[d]=e;var v=r[e],y=r[v],g=r[y],_=257*r[d]^16843008*d;a[e]=_<<24|_>>>8,s[e]=_<<16|_>>>16,c[e]=_<<8|_>>>24,l[e]=_,_=16843009*g^65537*y^257*v^16843008*e,f[d]=_<<24|_>>>8,u[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,e?(e=v^r[r[r[g^v]]],n^=r[r[n]]):e=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var r=this._keyPriorReset=this._key,t=r.words,e=r.sigBytes/4,n=4*((this._nRounds=e+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<e?o[a]=t[a]:(l=o[a-1],a%e?e>6&&a%e==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/e|0]<<24),o[a]=o[a-e]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:f[i[l>>>24]]^u[i[l>>>16&255]]^h[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(r,t){this._doCryptBlock(r,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(r,t){var e=r[t+1];r[t+1]=r[t+3],r[t+3]=e,this._doCryptBlock(r,t,this._invKeySchedule,f,u,h,p,o),e=r[t+1],r[t+1]=r[t+3],r[t+3]=e},_doCryptBlock:function(r,t,e,n,i,o,a,s){for(var c=this._nRounds,l=r[t]^e[0],f=r[t+1]^e[1],u=r[t+2]^e[2],h=r[t+3]^e[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&h]^e[p++],y=n[f>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&l]^e[p++],g=n[u>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&f]^e[p++],_=n[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&u]^e[p++];l=v,f=y,u=g,h=_}v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^e[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^e[p++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^e[p++],_=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^e[p++],r[t]=v,r[t+1]=y,r[t+2]=g,r[t+3]=_},keySize:8});t.AES=e._createHelper(v)}(),r.AES)),Tr.exports;var r}(),Ur(),function(){return Kr||(Kr=1,Lr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var r=this._key,t=r.words,e=r.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%e,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(r,t){r[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var r=this._S,t=this._i,e=this._j,n=0,i=0;i<4;i++){e=(e+r[t=(t+1)%256])%256;var o=r[t];r[t]=r[e],r[e]=o,n|=r[(r[t]+r[e])%256]<<24-8*i}return this._i=t,this._j=e,n}t.RC4=e._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),r.RC4)),Lr.exports;var r}(),function(){return Xr||(Xr=1,Jr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var r=this._key.words,t=this.cfg.iv,e=0;e<4;e++)r[e]=16711935&(r[e]<<8|r[e]>>>24)|4278255360&(r[e]<<24|r[e]>>>8);var n=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],i=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];for(this._b=0,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)i[e]^=n[e+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(i[0]^=l,i[1]^=u,i[2]^=f,i[3]^=h,i[4]^=l,i[5]^=u,i[6]^=f,i[7]^=h,e=0;e<4;e++)c.call(this)}},_doProcessBlock:function(r,t){var e=this._X;c.call(this),i[0]=e[0]^e[5]>>>16^e[3]<<16,i[1]=e[2]^e[7]>>>16^e[5]<<16,i[2]=e[4]^e[1]>>>16^e[7]<<16,i[3]=e[6]^e[3]>>>16^e[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),r[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var r=this._X,t=this._C,e=0;e<8;e++)o[e]=t[e];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=r[e]+t[e],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[e]=c^l}r[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,r[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,r[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,r[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,r[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,r[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,r[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,r[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),r.Rabbit)),Jr.exports;var r}(),function(){return Zr||(Zr=1,qr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var r=this._key.words,t=this.cfg.iv,e=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],n=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=e[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(n[0]^=l,n[1]^=u,n[2]^=f,n[3]^=h,n[4]^=l,n[5]^=u,n[6]^=f,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(r,t){var e=this._X;c.call(this),i[0]=e[0]^e[5]>>>16^e[3]<<16,i[1]=e[2]^e[7]>>>16^e[5]<<16,i[2]=e[4]^e[1]>>>16^e[7]<<16,i[3]=e[6]^e[3]>>>16^e[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),r[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var r=this._X,t=this._C,e=0;e<8;e++)o[e]=t[e];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=r[e]+t[e],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[e]=c^l}r[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,r[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,r[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,r[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,r[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,r[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,r[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,r[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),r.RabbitLegacy)),qr.exports;var r}(),Yr())),y.exports),ct=h(st),lt="en",ft=["singular","plural","dual","zero","one","two","few","many","other"];var ut=new(function(){function r(){this.cache=new Map}return r.prototype._generateKey=function(r,t,e){void 0===e&&(e={});var n=Array.isArray(t)?t.join(","):t,i=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n,":").concat(i)},r.prototype.get=function(r,t,e){void 0===e&&(e={});var n=this._generateKey(r,t,e);if(!this.cache.has(n)){var i=new Intl[r](t,e);this.cache.set(n,i)}return this.cache.get(n)},r}());function ht(r){var t=r;if(t&&"object"==typeof t&&"string"==typeof t.k){var e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}var pt={variable:"v",number:"n",datetime:"d",currency:"c"};function dt(r){return pt[r]}function vt(r,n=0){let i=n;const o=r=>{const{type:t,props:e}=r;i+=1;const n={id:i};let o;try{o="function"==typeof t&&t._gtt||""}catch{}if(o){const r=o.split("-");if("translate"===r[0]&&(r[0]="fragment"),"variable"===r[0]&&(n.variableType=r?.[1]||"variable"),"plural"===r[0]){const r=Object.entries(e).reduce((r,[t,e])=>(function(r){return ft.includes(r)}(t)&&(r[t]=vt(e,i)),r),{});Object.keys(r).length&&(n.branches=r)}if("branch"===r[0]){const{children:r,branch:t,...o}=e,a=Object.entries(o).reduce((r,[t,e])=>(r[t]=vt(e,i),r),{});Object.keys(a).length&&(n.branches=a)}n.transformation=r[0]}return n};function a(r){return e(r)?function(r){const{props:e}=r,n=o(r),i={...e,"data-_gt":n};return e.children&&!n.variableType&&(i.children=s(e.children)),r.type===t.Fragment&&(i["data-_gt"].transformation="fragment"),t.cloneElement(r,i)}(r):r}function s(r){return Array.isArray(r)?t.Children.map(r,a):a(r)}return s(r)}"function"==typeof SuppressedError&&SuppressedError;const yt={variable:"value",number:"n",datetime:"date",currency:"cost"};function gt(r={},t){if(r.name)return r.name;return`_gt_${yt[t]||"value"}_${r["data-_gt"]?.id}`}const _t="@generaltranslation/react-core";var bt={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const xt=r=>{if(!r)return"";const{type:t,props:e}=r;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:e.href?"a":e["data-_gt"]?.id?`C${e["data-_gt"].id}`:"function"},mt=r=>{const{props:t}=r,e={t:xt(r)};if(t["data-_gt"]){const r=t["data-_gt"],n=r.transformation;if("variable"===n){const e=r.variableType||"variable",n=gt(t,e),i=dt(e);return{i:r.id,k:n,v:i}}e.i=r.id,e.d=((r,t,e)=>{let n=Object.entries(bt).reduce((r,[e,n])=>(t[n]&&(r[e]=t[n]),r),{});if("plural"===r&&e){const r={};Object.entries(e).forEach(([t,e])=>{r[t]=Bt(e)}),n={...n,b:r,t:"p"}}if("branch"===r&&e){const r={};Object.entries(e).forEach(([t,e])=>{r[t]=Bt(e)}),n={...n,b:r,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,r.branches);let i=Object.entries(bt).reduce((r,[e,n])=>(t[n]&&(r[e]=t[n]),r),{});if("plural"===n&&r.branches){const t={};Object.entries(r.branches).forEach(([r,e])=>{t[r]=Bt(e)}),i={...i,b:t,t:"p"}}if("branch"===n&&r.branches){const t={};Object.entries(r.branches).forEach(([r,e])=>{t[r]=Bt(e)}),i={...i,b:t,t:"b"}}e.d=Object.keys(i).length?i:void 0}return t.children&&(e.c=Bt(t.children)),e},wt=r=>{return e=r,t.isValidElement(e)?mt(r):"number"==typeof r?r.toString():r;var e};function Bt(r){return Array.isArray(r)?r.map(wt):wt(r)}function kt(r,t,e){let n="",i=null;return"number"==typeof r&&!i&&e&&(n=function(r,t,e){void 0===t&&(t=ft),void 0===e&&(e=["en"]);var n=ut.get("PluralRules",e).select(r),i=Math.abs(r);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(r,Object.keys(e),t)),n&&!i&&(i=e[n]),i}function At(r){if("string"==typeof r)return!0;if(Array.isArray(r)){if("string"!=typeof r?.[0])return!1;const t=r?.[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}function St(r,t){let e=r;const n=t.split(".");for(const r of n){if("object"!=typeof e&&!Array.isArray(e))return;e=o(e,r)}return e}function Et(r){if(Array.isArray(r)){if(1===r.length)return{entry:r[0]};if(2===r.length)return{entry:r[0],metadata:r[1]}}return{entry:r}}function Ot(r){return"object"==typeof r&&!!r&&"data-_gt"in r&&"object"==typeof r["data-_gt"]&&!!r["data-_gt"]&&"transformation"in r["data-_gt"]&&"variable"===r["data-_gt"]?.transformation}function Ct(r){const t=r["data-_gt"]?.variableType||"variable";return{variableName:gt(r,t),variableType:dt(t),variableValue:void 0!==r.value?r.value:void 0!==r["data-_gt-unformatted-value"]?r["data-_gt-unformatted-value"]:void 0!==r.children?r.children:void 0,variableOptions:(()=>{const t={...void 0!==r.currency&&{currency:r.currency},...void 0!==r.options&&r.options};return Object.keys(t).length?t:"string"==typeof r["data-_gt-variable-options"]?JSON.parse(r["data-_gt-variable-options"]):r["data-_gt-variable-options"]||void 0})()}}function Ht(r){const t=r;if(t&&"object"==typeof t&&"string"==typeof t.k){const r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}function zt(r){return r&&r.props&&r.props["data-_gt"]?r.props["data-_gt"]:null}function jt({children:r,defaultLocale:e=lt,renderVariable:n}){const i=r=>t.isValidElement(r)?(r=>{const i=zt(r);if(Ot(r.props)){const{variableType:t,variableValue:i,variableOptions:o}=Ct(r.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[e]})}if("plural"===i?.transformation){const t=i.branches||{};return o(kt(r.props.n,[e],t)||r.props.children)}if("branch"===i?.transformation){let{children:t,branch:e,"data-_gt":n,...a}=r.props;return a=i.branches||{},o(void 0!==a[e]?a[e]:t)}return"fragment"===i?.transformation?t.createElement(t.Fragment,{key:r.props.key,children:o(r.props.children)}):r.props.children?t.cloneElement(r,{...r.props,"data-_gt":void 0,children:o(r.props.children)}):t.cloneElement(r,{...r.props,"data-_gt":void 0})})(r):r,o=r=>Array.isArray(r)?t.Children.map(r,i):i(r);return o(r)}function Dt({sourceElement:r,targetElement:e,locales:n=[lt],renderVariable:i}){const{props:o}=r,a=o["data-_gt"],s=a?.transformation,c=e.d,l={};if(c&&Object.entries(bt).forEach(([r,t])=>{c[r]&&(l[t]=c[r])}),"plural"===s){const t=r.props.n;return Rt({source:kt(t,n,a.branches||{})||r.props.children,target:kt(t,n,e.d?.b||{})||e.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:r,children:t}=o;return Rt({source:(a.branches||{})[r]||t,target:(e.d?.b||{})[r]||e.c,locales:n,renderVariable:i})}return"fragment"===s&&e.c?t.createElement(t.Fragment,{key:r.props.key,children:Rt({source:o.children,target:e.c,locales:n,renderVariable:i})}):o?.children&&e?.c?t.cloneElement(r,{...o,...l,"data-_gt":void 0,children:Rt({source:o.children,target:e.c,locales:n,renderVariable:i})}):jt({children:r,defaultLocale:n[0],renderVariable:i})}function Rt({source:r,target:e,locales:i=[lt],renderVariable:o}){if(null==e&&r)return jt({children:r,defaultLocale:i[0],renderVariable:o});if("string"==typeof e)return e;if(Array.isArray(e)&&!Array.isArray(r)&&r&&(r=[r]),Array.isArray(r)&&Array.isArray(e)){const a={},s={},c=r.filter(r=>{if(t.isValidElement(r)){if(!Ot(r.props))return!0;{const{variableName:t,variableValue:e,variableOptions:n}=Ct(r.props);a[t]=e,s[t]=n}}return!1}),l=r=>c.find(t=>{const e=zt(t);if(void 0!==e?.id){return e.id===r.i}return!1})||c.shift();return e.map((r,e)=>{if("string"==typeof r)return n(t.Fragment,{children:r},`string_${e}`);if(ht(r))return n(t.Fragment,{children:o({variableType:r.v||"v",variableValue:a[r.k],variableOptions:s[r.k],locales:i})},`var_${e}`);const c=l(r);return c?n(t.Fragment,{children:Dt({sourceElement:c,targetElement:r,locales:i,renderVariable:o})},`element_${e}`):void 0})}if(e&&"object"==typeof e&&!Array.isArray(e)){const n=ht(e)?"variable":"element";if(t.isValidElement(r)){if("element"===n)return Dt({sourceElement:r,targetElement:e,locales:i,renderVariable:o});if(Ot(r.props)){const{variableValue:t,variableOptions:e,variableType:n}=Ct(r.props);return o({variableType:n,variableValue:t,variableOptions:e,locales:i})}}}return jt({children:r,defaultLocale:i[0],renderVariable:o})}const Mt=(r="production")=>({method:"default",timeout:"development"===r?8e3:12e3});function Ft(){return""}const Pt="generaltranslation.locale",$t="generaltranslation.region";function It(r){return void 0!==r&&("string"==typeof r||!!Array.isArray(r)&&((1===r.length||2===r.length)&&("string"==typeof r[0]&&(2!==r.length||"object"==typeof r[1]&&null!==r[1]&&("$context"in r[1]||"$_hash"in r[1])))))}const Wt=r=>"string"==typeof r||Array.isArray(r),Tt=r=>"object"==typeof r&&null!==r&&!Array.isArray(r);function Vt(r,t){if(Array.isArray(r))return r.map((r,e)=>It(r)?t[e]:Vt(r,t[e]));const e={...Object.fromEntries(Object.entries(r).filter(([,r])=>Wt(r))),...Object.fromEntries(Object.entries(t).filter(([,r])=>Wt(r)))},n=Object.entries(r).filter(([,r])=>Tt(r)).map(([r])=>r),i=Object.entries(t).filter(([,r])=>Tt(r)).map(([r])=>r),a=new Set([...n,...i]);for(const n of a)e[n]=Vt(o(r,n)||{},o(t,n)||{});return e}const Nt="function"==typeof r.use;function Ut({dictionary:r,id:t}){if(""===t)return r;let e=r;const n=t.split(".");for(const r of n)e=o(e,r);return e}function Kt({dictionary:r,id:t,sourceDictionary:e}){if(""===t)return r;let n=r;const i=e,s=t.split(".");for(const r of s)void 0===o(n,r)&&(Array.isArray(o(i,r))?a(n,r,[]):a(n,r,{})),n=o(n,r);return n}const Lt=["constructor","prototype","__proto__"];function Xt(r,t,e,n){if(It(t))return r;const i=e.split(".");i.forEach(r=>{if(function(r){return!!Lt.includes(r)}(r))throw new Error(`Invalid key: ${r}`)}),t||={};for(const r of i.slice(0,-1))null==o(t,r)&&a(t,r,Array.isArray(o(n,r))?[]:{}),t=o(t,r),n=o(n,r);a(t,i[i.length-1],r)}function Jt(r){let t={};return Array.isArray(r)&&(t=[]),Object.entries(r).forEach(([r,e])=>{if(It(e)){const{entry:n}=Et(e);a(t,r,n)}else a(t,r,Jt(e))}),t}var Zt=function(){return Zt=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},Zt.apply(this,arguments)};function qt(r){return ct.SHA256(r).toString(ct.enc.Hex).slice(0,16)}function Gt(r,t){var e=r.source,n=r.context,i=r.id,o=r.dataFormat;void 0===t&&(t=qt);var a={};return a.source="JSX"===o?Yt(e):e,a=Zt(Zt(Zt(Zt({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),t(v(a))}"function"==typeof SuppressedError&&SuppressedError;var Qt=function(r){if(r&&"object"==typeof r){var t={};if("c"in r&&r.c&&(t.c=Yt(r.c)),"d"in r){var e=null==r?void 0:r.d;(null==e?void 0:e.b)&&(t.b=Object.fromEntries(Object.entries(e.b).map(function(r){return[r[0],Yt(r[1])]}))),(null==e?void 0:e.t)&&(t.t=e.t)}return function(r){var t=r;if(t&&"object"==typeof t&&"string"==typeof t.k){var e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(r)?Zt({k:r.k},r.v&&{v:r.v}):t}return r};function Yt(r){return Array.isArray(r)?r.map(Qt):Qt(r)}function re(r,t=""){let e=!1;return Object.entries(r).forEach(([n,i])=>{const o=t?`${t}.${n}`:n;if(It(i)){let{entry:t,metadata:s}=Et(i);s?.$_hash||(s||={},s.$_hash=Gt({source:t,...s?.$context&&{context:s.$context},id:o,dataFormat:"ICU"}),a(r,n,[t,s]),e=!0)}else{const{updateDictionary:r}=re(i,o);e=e||r}}),{dictionary:r,updateDictionary:e}}function te(r,t,e,n,i=""){let o=!1;const a=i?i.split("."):[];return n.forEach(({metadata:n})=>{const{$_hash:i,$id:s}=n,c=a.length>0?s.split(".").slice(a.length).join("."):s,l=St(t,c);let f;It(l)&&(f=Et(l).entry);const u=e[i]||f;u&&(Xt(u,t,c,r),o=!0)}),{dictionary:t,updateDictionary:o}}function ee(r,t,e,n=""){const i=n?n.split("."):[];return e.forEach(({source:e,metadata:n})=>{const{$id:o}=n,a=i.length>0?o.split(".").slice(i.length).join("."):o,s=St(t,a);let c;It(s)&&(c=Et(s).entry);Xt(c||e,t,a,r)}),t}const ne=r=>`${_t} Error: Dictionary subtree not found for id: "${r}"`;function ie(r,t,e){const n=Ut({dictionary:r,id:e});if(!n)throw new Error(ne(e));if(It(n))throw new Error(`${_t} Error: Cannot inject and merge a dictionary entry`);return function(r,t,e){const n=St(r,e);if(!n)throw new Error(ne(e));if(It(n))throw new Error(`${_t} Error: Cannot inject and merge a dictionary entry`);const i=e.split("."),s=i.slice(0,-1),c=i[i.length-1];let l=r;return s.forEach(r=>{l=o(l,r)}),a(l,c,t),r}(r,Vt(n,t),e)}function oe(r,t,e=""){const n=[];return Object.entries(r).forEach(([r,i])=>{const a=e?`${e}.${r}`:r;if(It(i)){const{entry:e,metadata:s}=Et(i);o(t,r)||n.push({source:e,metadata:{$id:a,$context:s?.$context,$_hash:s?.$_hash||""}})}else n.push(...oe(i,o(t,r)||(Array.isArray(i)?[]:{}),a))}),n}function ae(r,t){if(!t)return r;t.$_source=r,t.$_hash||=Gt({source:r,...t?.$context&&{context:t.$context},...t?.$id&&{id:t.$id},dataFormat:"ICU"});let e=r;if(function(r){let t=0,e=!1;for(;t<r.length;){const n=r[t];if("'"!==n){if(!e&&"{"===n){let e=t+1,n="";for(;e<r.length&&"}"!==r[e];)n+=r[e],e++;if(e<r.length&&n.trim().length>0)return!0;t=e<r.length?e+1:e;continue}t++}else{if(t+1<r.length&&"'"===r[t+1]){t+=2;continue}e=!e,t++}}return!1}(r)&&Object.keys(t||{}).length>2)try{e=i(r,{locales:[lt],variables:t})}catch(t){return console.warn((r=>`${_t} Warning: error formatting string. Expect translation resolution to fail. Original message: "${r}"`)(r),"Error: ",t),r}const n=function(r){if("undefined"!=typeof Buffer)return Buffer.from(r,"utf8").toString("base64");for(var t=(new TextEncoder).encode(r),e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}(JSON.stringify(t));return`${e}:${n}`}function se(r){return r&&-1!==r.lastIndexOf(":")?r.slice(0,r.lastIndexOf(":")):r}function ce(r){if(-1===r.lastIndexOf(":"))return null;const t=r.slice(r.lastIndexOf(":")+1);try{const r=JSON.parse(function(r){if("undefined"!=typeof Buffer)return Buffer.from(r,"base64").toString("utf8");for(var t=atob(r),e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return(new TextDecoder).decode(e)}(t));return r}catch{return null}}export{vt as addGTIdentifier,oe as collectUntranslatedEntries,se as decodeMsg,ce as decodeOptions,Pt as defaultLocaleCookieName,$t as defaultRegionCookieName,c as flattenDictionary,Mt as getDefaultRenderSettings,St as getDictionaryEntry,Et as getEntryAndMetadata,kt as getPluralBranch,Ut as getSubtree,Kt as getSubtreeWithCreation,gt as getVariableName,Ct as getVariableProps,ie as injectAndMerge,Xt as injectEntry,ee as injectFallbacks,re as injectHashes,te as injectTranslations,It as isDictionaryEntry,At as isValidDictionaryEntry,Ht as isVariableObject,Vt as mergeDictionaries,ae as msg,Nt as reactHasUse,jt as renderDefaultChildren,Ft as renderSkeleton,Rt as renderTranslatedChildren,Jt as stripMetadataFromEntries,Bt as writeChildrenAsObjects};
|
|
18
|
+
function(){var t=r,e=t.lib,n=e.WordArray,i=e.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,t){for(var e=0;e<16;e++){var n=t+e,i=r[n];r[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,b,x,m,w,B,k,A,S,E,O=this._hash.words,C=f.words,H=u.words,z=a.words,j=s.words,D=c.words,R=l.words;for(w=o=O[0],B=h=O[1],k=b=O[2],A=x=O[3],S=m=O[4],e=0;e<80;e+=1)E=o+r[t+z[e]]|0,E+=e<16?p(h,b,x)+C[0]:e<32?d(h,b,x)+C[1]:e<48?v(h,b,x)+C[2]:e<64?y(h,b,x)+C[3]:g(h,b,x)+C[4],E=(E=_(E|=0,D[e]))+m|0,o=m,m=x,x=_(b,10),b=h,h=E,E=w+r[t+j[e]]|0,E+=e<16?g(B,k,A)+H[0]:e<32?y(B,k,A)+H[1]:e<48?v(B,k,A)+H[2]:e<64?d(B,k,A)+H[3]:p(B,k,A)+H[4],E=(E=_(E|=0,R[e]))+S|0,w=S,S=A,A=_(k,10),k=B,B=E;E=O[1]+b+A|0,O[1]=O[2]+x+S|0,O[2]=O[3]+m+w|0,O[3]=O[4]+o+B|0,O[4]=O[0]+h+k|0,O[0]=E},_doFinalize:function(){var r=this._data,t=r.words,e=8*this._nDataBytes,n=8*r.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),r.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var r=i.clone.call(this);return r._hash=this._hash.clone(),r}});function p(r,t,e){return r^t^e}function d(r,t,e){return r&t|~r&e}function v(r,t,e){return(r|~t)^e}function y(r,t,e){return r&e|t&~e}function g(r,t,e){return r^(t|~e)}function _(r,t){return r<<t|r>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),r.RIPEMD160)),er.exports;var r}(),or(),function(){return ar||(ar=1,sr.exports=(c=x(),U(),or(),t=(r=c).lib,e=t.Base,n=t.WordArray,i=r.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:o,iterations:25e4}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,t){for(var e=this.cfg,i=a.create(e.hasher,r),o=n.create(),s=n.create([1]),c=o.words,l=s.words,f=e.keySize,u=e.iterations;c.length<f;){var h=i.update(t).finalize(s);i.reset();for(var p=h.words,d=p.length,v=h,y=1;y<u;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(h),l[0]++}return o.sigBytes=4*f,o}}),r.PBKDF2=function(r,t,e){return s.create(e).compute(r,t)},c.PBKDF2)),sr.exports;var r,t,e,n,i,o,a,s,c}(),fr(),pr(),yr(),br(),wr(),Ar(),function(){return Sr?Er.exports:(Sr=1,Er.exports=(t=x(),pr(),t.mode.ECB=((r=t.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(r,t){this._cipher.encryptBlock(r,t)}}),r.Decryptor=r.extend({processBlock:function(r,t){this._cipher.decryptBlock(r,t)}}),r),t.mode.ECB));var r,t}(),function(){return Or?Cr.exports:(Or=1,Cr.exports=(r=x(),pr(),r.pad.AnsiX923={pad:function(r,t){var e=r.sigBytes,n=4*t,i=n-e%n,o=e+i-1;r.clamp(),r.words[o>>>2]|=i<<24-o%4*8,r.sigBytes+=i},unpad:function(r){var t=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=t}},r.pad.Ansix923));var r}(),function(){return Hr?zr.exports:(Hr=1,zr.exports=(r=x(),pr(),r.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(r){var t=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=t}},r.pad.Iso10126));var r}(),function(){return jr?Dr.exports:(jr=1,Dr.exports=(r=x(),pr(),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971));var r}(),function(){return Rr||(Rr=1,Mr.exports=(r=x(),pr(),r.pad.ZeroPadding={pad:function(r,t){var e=4*t;r.clamp(),r.sigBytes+=e-(r.sigBytes%e||e)},unpad:function(r){var t=r.words,e=r.sigBytes-1;for(e=r.sigBytes-1;e>=0;e--)if(t[e>>>2]>>>24-e%4*8&255){r.sigBytes=e+1;break}}},r.pad.ZeroPadding)),Mr.exports;var r}(),function(){return Fr?Pr.exports:(Fr=1,Pr.exports=(r=x(),pr(),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding));var r}(),function(){return $r?Ir.exports:($r=1,Ir.exports=(n=x(),pr(),t=(r=n).lib.CipherParams,e=r.enc.Hex,r.format.Hex={stringify:function(r){return r.ciphertext.toString(e)},parse:function(r){var n=e.parse(r);return t.create({ciphertext:n})}},n.format.Hex));var r,t,e,n}(),function(){return Wr||(Wr=1,Tr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],f=[],u=[],h=[],p=[];!function(){for(var r=[],t=0;t<256;t++)r[t]=t<128?t<<1:t<<1^283;var e=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[e]=d,o[d]=e;var v=r[e],y=r[v],g=r[y],_=257*r[d]^16843008*d;a[e]=_<<24|_>>>8,s[e]=_<<16|_>>>16,c[e]=_<<8|_>>>24,l[e]=_,_=16843009*g^65537*y^257*v^16843008*e,f[d]=_<<24|_>>>8,u[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,e?(e=v^r[r[r[g^v]]],n^=r[r[n]]):e=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var r=this._keyPriorReset=this._key,t=r.words,e=r.sigBytes/4,n=4*((this._nRounds=e+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<e?o[a]=t[a]:(l=o[a-1],a%e?e>6&&a%e==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/e|0]<<24),o[a]=o[a-e]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:f[i[l>>>24]]^u[i[l>>>16&255]]^h[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(r,t){this._doCryptBlock(r,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(r,t){var e=r[t+1];r[t+1]=r[t+3],r[t+3]=e,this._doCryptBlock(r,t,this._invKeySchedule,f,u,h,p,o),e=r[t+1],r[t+1]=r[t+3],r[t+3]=e},_doCryptBlock:function(r,t,e,n,i,o,a,s){for(var c=this._nRounds,l=r[t]^e[0],f=r[t+1]^e[1],u=r[t+2]^e[2],h=r[t+3]^e[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&h]^e[p++],y=n[f>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&l]^e[p++],g=n[u>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&f]^e[p++],_=n[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&u]^e[p++];l=v,f=y,u=g,h=_}v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^e[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^e[p++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^e[p++],_=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^e[p++],r[t]=v,r[t+1]=y,r[t+2]=g,r[t+3]=_},keySize:8});t.AES=e._createHelper(v)}(),r.AES)),Tr.exports;var r}(),Ur(),function(){return Kr||(Kr=1,Lr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var r=this._key,t=r.words,e=r.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%e,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(r,t){r[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var r=this._S,t=this._i,e=this._j,n=0,i=0;i<4;i++){e=(e+r[t=(t+1)%256])%256;var o=r[t];r[t]=r[e],r[e]=o,n|=r[(r[t]+r[e])%256]<<24-8*i}return this._i=t,this._j=e,n}t.RC4=e._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),r.RC4)),Lr.exports;var r}(),function(){return Xr||(Xr=1,Jr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var r=this._key.words,t=this.cfg.iv,e=0;e<4;e++)r[e]=16711935&(r[e]<<8|r[e]>>>24)|4278255360&(r[e]<<24|r[e]>>>8);var n=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],i=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];for(this._b=0,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)i[e]^=n[e+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(i[0]^=l,i[1]^=u,i[2]^=f,i[3]^=h,i[4]^=l,i[5]^=u,i[6]^=f,i[7]^=h,e=0;e<4;e++)c.call(this)}},_doProcessBlock:function(r,t){var e=this._X;c.call(this),i[0]=e[0]^e[5]>>>16^e[3]<<16,i[1]=e[2]^e[7]>>>16^e[5]<<16,i[2]=e[4]^e[1]>>>16^e[7]<<16,i[3]=e[6]^e[3]>>>16^e[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),r[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var r=this._X,t=this._C,e=0;e<8;e++)o[e]=t[e];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=r[e]+t[e],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[e]=c^l}r[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,r[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,r[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,r[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,r[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,r[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,r[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,r[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),r.Rabbit)),Jr.exports;var r}(),function(){return Zr||(Zr=1,qr.exports=(r=x(),j(),$(),fr(),pr(),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var r=this._key.words,t=this.cfg.iv,e=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],n=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=e[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(n[0]^=l,n[1]^=u,n[2]^=f,n[3]^=h,n[4]^=l,n[5]^=u,n[6]^=f,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(r,t){var e=this._X;c.call(this),i[0]=e[0]^e[5]>>>16^e[3]<<16,i[1]=e[2]^e[7]>>>16^e[5]<<16,i[2]=e[4]^e[1]>>>16^e[7]<<16,i[3]=e[6]^e[3]>>>16^e[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),r[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var r=this._X,t=this._C,e=0;e<8;e++)o[e]=t[e];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=r[e]+t[e],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[e]=c^l}r[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,r[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,r[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,r[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,r[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,r[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,r[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,r[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),r.RabbitLegacy)),qr.exports;var r}(),Yr())),y.exports),ct=h(st),lt="en",ft=["singular","plural","dual","zero","one","two","few","many","other"];var ut=new(function(){function r(){this.cache=new Map}return r.prototype._generateKey=function(r,t,e){void 0===e&&(e={});var n=Array.isArray(t)?t.join(","):t,i=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n,":").concat(i)},r.prototype.get=function(r,t,e){void 0===e&&(e={});var n=this._generateKey(r,t,e);if(!this.cache.has(n)){var i=new Intl[r](t,e);this.cache.set(n,i)}return this.cache.get(n)},r}());function ht(r){var t=r;if(t&&"object"==typeof t&&"string"==typeof t.k){var e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}var pt={variable:"v",number:"n",datetime:"d",currency:"c"};function dt(r){return pt[r]}function vt(r,n=0){let i=n;const o=r=>{const{type:t,props:e}=r;i+=1;const n={id:i};let o;try{o="function"==typeof t&&t._gtt||""}catch{}if(o){const r=o.split("-");if("translate"===r[0]&&(r[0]="fragment"),"variable"===r[0]&&(n.variableType=r?.[1]||"variable"),"plural"===r[0]){const r=Object.entries(e).reduce((r,[t,e])=>(function(r){return ft.includes(r)}(t)&&(r[t]=vt(e,i)),r),{});Object.keys(r).length&&(n.branches=r)}if("branch"===r[0]){const{children:r,branch:t,...o}=e,a=Object.entries(o).reduce((r,[t,e])=>(r[t]=vt(e,i),r),{});Object.keys(a).length&&(n.branches=a)}n.transformation=r[0]}return n};function a(r){return e(r)?function(r){const{props:e}=r,n=o(r),i={...e,"data-_gt":n};return e.children&&!n.variableType&&(i.children=s(e.children)),r.type===t.Fragment&&(i["data-_gt"].transformation="fragment"),t.cloneElement(r,i)}(r):r}function s(r){return Array.isArray(r)?t.Children.map(r,a):a(r)}return s(r)}"function"==typeof SuppressedError&&SuppressedError;const yt={variable:"value",number:"n",datetime:"date",currency:"cost"};function gt(r={},t){if(r.name)return r.name;return`_gt_${yt[t]||"value"}_${r["data-_gt"]?.id}`}const _t="@generaltranslation/react-core";var bt={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const xt=r=>{if(!r)return"";const{type:t,props:e}=r;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:e.href?"a":e["data-_gt"]?.id?`C${e["data-_gt"].id}`:"function"},mt=r=>{const{props:t}=r,e={t:xt(r)};if(t["data-_gt"]){const r=t["data-_gt"],n=r.transformation;if("variable"===n){const e=r.variableType||"variable",n=gt(t,e),i=dt(e);return{i:r.id,k:n,v:i}}e.i=r.id,e.d=((r,t,e)=>{let n=Object.entries(bt).reduce((r,[e,n])=>(t[n]&&(r[e]=t[n]),r),{});if("plural"===r&&e){const r={};Object.entries(e).forEach(([t,e])=>{r[t]=Bt(e)}),n={...n,b:r,t:"p"}}if("branch"===r&&e){const r={};Object.entries(e).forEach(([t,e])=>{r[t]=Bt(e)}),n={...n,b:r,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,r.branches);let i=Object.entries(bt).reduce((r,[e,n])=>(t[n]&&(r[e]=t[n]),r),{});if("plural"===n&&r.branches){const t={};Object.entries(r.branches).forEach(([r,e])=>{t[r]=Bt(e)}),i={...i,b:t,t:"p"}}if("branch"===n&&r.branches){const t={};Object.entries(r.branches).forEach(([r,e])=>{t[r]=Bt(e)}),i={...i,b:t,t:"b"}}e.d=Object.keys(i).length?i:void 0}return t.children&&(e.c=Bt(t.children)),e},wt=r=>{return e=r,t.isValidElement(e)?mt(r):"number"==typeof r?r.toString():r;var e};function Bt(r){return Array.isArray(r)?r.map(wt):wt(r)}function kt(r,t,e){let n="",i=null;return"number"==typeof r&&!i&&e&&(n=function(r,t,e){void 0===t&&(t=ft),void 0===e&&(e=["en"]);var n=ut.get("PluralRules",e).select(r),i=Math.abs(r);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(r,Object.keys(e),t)),n&&!i&&(i=e[n]),i}function At(r){if("string"==typeof r)return!0;if(Array.isArray(r)){if("string"!=typeof r?.[0])return!1;const t=r?.[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}function St(r,t){let e=r;const n=t.split(".");for(const r of n){if("object"!=typeof e&&!Array.isArray(e))return;e=o(e,r)}return e}function Et(r){if(Array.isArray(r)){if(1===r.length)return{entry:r[0]};if(2===r.length)return{entry:r[0],metadata:r[1]}}return{entry:r}}function Ot(r){return"object"==typeof r&&!!r&&"data-_gt"in r&&"object"==typeof r["data-_gt"]&&!!r["data-_gt"]&&"transformation"in r["data-_gt"]&&"variable"===r["data-_gt"]?.transformation}function Ct(r){const t=r["data-_gt"]?.variableType||"variable";return{variableName:gt(r,t),variableType:dt(t),variableValue:void 0!==r.value?r.value:void 0!==r["data-_gt-unformatted-value"]?r["data-_gt-unformatted-value"]:void 0!==r.children?r.children:void 0,variableOptions:(()=>{const t={...void 0!==r.currency&&{currency:r.currency},...void 0!==r.options&&r.options};return Object.keys(t).length?t:"string"==typeof r["data-_gt-variable-options"]?JSON.parse(r["data-_gt-variable-options"]):r["data-_gt-variable-options"]||void 0})()}}function Ht(r){const t=r;if(t&&"object"==typeof t&&"string"==typeof t.k){const r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}function zt(r){return r&&r.props&&r.props["data-_gt"]?r.props["data-_gt"]:null}function jt({children:r,defaultLocale:e=lt,renderVariable:n}){const i=r=>t.isValidElement(r)?(r=>{const i=zt(r);if(Ot(r.props)){const{variableType:t,variableValue:i,variableOptions:o}=Ct(r.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[e]})}if("plural"===i?.transformation){const t=i.branches||{};return o(kt(r.props.n,[e],t)||r.props.children)}if("branch"===i?.transformation){let{children:t,branch:e,"data-_gt":n,...a}=r.props;return a=i.branches||{},o(void 0!==a[e]?a[e]:t)}return"fragment"===i?.transformation?t.createElement(t.Fragment,{key:r.props.key,children:o(r.props.children)}):r.props.children?t.cloneElement(r,{...r.props,"data-_gt":void 0,children:o(r.props.children)}):t.cloneElement(r,{...r.props,"data-_gt":void 0})})(r):r,o=r=>Array.isArray(r)?t.Children.map(r,i):i(r);return o(r)}function Dt({sourceElement:r,targetElement:e,locales:n=[lt],renderVariable:i}){const{props:o}=r,a=o["data-_gt"],s=a?.transformation,c=e.d,l={};if(c&&Object.entries(bt).forEach(([r,t])=>{c[r]&&(l[t]=c[r])}),"plural"===s){const t=r.props.n;return Rt({source:kt(t,n,a.branches||{})||r.props.children,target:kt(t,n,e.d?.b||{})||e.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:r,children:t}=o;return Rt({source:(a.branches||{})[r]||t,target:(e.d?.b||{})[r]||e.c,locales:n,renderVariable:i})}return"fragment"===s&&e.c?t.createElement(t.Fragment,{key:r.props.key,children:Rt({source:o.children,target:e.c,locales:n,renderVariable:i})}):o?.children&&e?.c?t.cloneElement(r,{...o,...l,"data-_gt":void 0,children:Rt({source:o.children,target:e.c,locales:n,renderVariable:i})}):jt({children:r,defaultLocale:n[0],renderVariable:i})}function Rt({source:r,target:e,locales:i=[lt],renderVariable:o}){if(null==e&&r)return jt({children:r,defaultLocale:i[0],renderVariable:o});if("string"==typeof e)return e;if(Array.isArray(e)&&!Array.isArray(r)&&r&&(r=[r]),Array.isArray(r)&&Array.isArray(e)){const a={},s={},c=r.filter(r=>{if(t.isValidElement(r)){if(!Ot(r.props))return!0;{const{variableName:t,variableValue:e,variableOptions:n}=Ct(r.props);a[t]=e,s[t]=n}}return!1}),l=r=>c.find(t=>{const e=zt(t);if(void 0!==e?.id){return e.id===r.i}return!1})||c.shift();return e.map((r,e)=>{if("string"==typeof r)return n(t.Fragment,{children:r},`string_${e}`);if(ht(r))return n(t.Fragment,{children:o({variableType:r.v||"v",variableValue:a[r.k],variableOptions:s[r.k],locales:i})},`var_${e}`);const c=l(r);return c?n(t.Fragment,{children:Dt({sourceElement:c,targetElement:r,locales:i,renderVariable:o})},`element_${e}`):void 0})}if(e&&"object"==typeof e&&!Array.isArray(e)){const n=ht(e)?"variable":"element";if(t.isValidElement(r)){if("element"===n)return Dt({sourceElement:r,targetElement:e,locales:i,renderVariable:o});if(Ot(r.props)){const{variableValue:t,variableOptions:e,variableType:n}=Ct(r.props);return o({variableType:n,variableValue:t,variableOptions:e,locales:i})}}}return jt({children:r,defaultLocale:i[0],renderVariable:o})}const Mt=(r="production")=>({method:"default",timeout:"development"===r?8e3:12e3});function Ft(){return""}const Pt="generaltranslation.locale",$t="generaltranslation.region",It="generaltranslation.enable-i18n";function Wt(r){return void 0!==r&&("string"==typeof r||!!Array.isArray(r)&&((1===r.length||2===r.length)&&("string"==typeof r[0]&&(2!==r.length||"object"==typeof r[1]&&null!==r[1]&&("$context"in r[1]||"$_hash"in r[1])))))}const Tt=r=>"string"==typeof r||Array.isArray(r),Vt=r=>"object"==typeof r&&null!==r&&!Array.isArray(r);function Nt(r,t){if(Array.isArray(r))return r.map((r,e)=>Wt(r)?t[e]:Nt(r,t[e]));const e={...Object.fromEntries(Object.entries(r).filter(([,r])=>Tt(r))),...Object.fromEntries(Object.entries(t).filter(([,r])=>Tt(r)))},n=Object.entries(r).filter(([,r])=>Vt(r)).map(([r])=>r),i=Object.entries(t).filter(([,r])=>Vt(r)).map(([r])=>r),a=new Set([...n,...i]);for(const n of a)e[n]=Nt(o(r,n)||{},o(t,n)||{});return e}const Ut="function"==typeof r.use;function Kt({dictionary:r,id:t}){if(""===t)return r;let e=r;const n=t.split(".");for(const r of n)e=o(e,r);return e}function Lt({dictionary:r,id:t,sourceDictionary:e}){if(""===t)return r;let n=r;const i=e,s=t.split(".");for(const r of s)void 0===o(n,r)&&(Array.isArray(o(i,r))?a(n,r,[]):a(n,r,{})),n=o(n,r);return n}const Xt=["constructor","prototype","__proto__"];function Jt(r,t,e,n){if(Wt(t))return r;const i=e.split(".");i.forEach(r=>{if(function(r){return!!Xt.includes(r)}(r))throw new Error(`Invalid key: ${r}`)}),t||={};for(const r of i.slice(0,-1))null==o(t,r)&&a(t,r,Array.isArray(o(n,r))?[]:{}),t=o(t,r),n=o(n,r);a(t,i[i.length-1],r)}function Zt(r){let t={};return Array.isArray(r)&&(t=[]),Object.entries(r).forEach(([r,e])=>{if(Wt(e)){const{entry:n}=Et(e);a(t,r,n)}else a(t,r,Zt(e))}),t}var qt=function(){return qt=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},qt.apply(this,arguments)};function Gt(r){return ct.SHA256(r).toString(ct.enc.Hex).slice(0,16)}function Qt(r,t){var e=r.source,n=r.context,i=r.id,o=r.dataFormat;void 0===t&&(t=Gt);var a={};return a.source="JSX"===o?re(e):e,a=qt(qt(qt(qt({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),t(v(a))}"function"==typeof SuppressedError&&SuppressedError;var Yt=function(r){if(r&&"object"==typeof r){var t={};if("c"in r&&r.c&&(t.c=re(r.c)),"d"in r){var e=null==r?void 0:r.d;(null==e?void 0:e.b)&&(t.b=Object.fromEntries(Object.entries(e.b).map(function(r){return[r[0],re(r[1])]}))),(null==e?void 0:e.t)&&(t.t=e.t)}return function(r){var t=r;if(t&&"object"==typeof t&&"string"==typeof t.k){var e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(r)?qt({k:r.k},r.v&&{v:r.v}):t}return r};function re(r){return Array.isArray(r)?r.map(Yt):Yt(r)}function te(r,t=""){let e=!1;return Object.entries(r).forEach(([n,i])=>{const o=t?`${t}.${n}`:n;if(Wt(i)){let{entry:t,metadata:s}=Et(i);s?.$_hash||(s||={},s.$_hash=Qt({source:t,...s?.$context&&{context:s.$context},id:o,dataFormat:"ICU"}),a(r,n,[t,s]),e=!0)}else{const{updateDictionary:r}=te(i,o);e=e||r}}),{dictionary:r,updateDictionary:e}}function ee(r,t,e,n,i=""){let o=!1;const a=i?i.split("."):[];return n.forEach(({metadata:n})=>{const{$_hash:i,$id:s}=n,c=a.length>0?s.split(".").slice(a.length).join("."):s,l=St(t,c);let f;Wt(l)&&(f=Et(l).entry);const u=e[i]||f;u&&(Jt(u,t,c,r),o=!0)}),{dictionary:t,updateDictionary:o}}function ne(r,t,e,n=""){const i=n?n.split("."):[];return e.forEach(({source:e,metadata:n})=>{const{$id:o}=n,a=i.length>0?o.split(".").slice(i.length).join("."):o,s=St(t,a);let c;Wt(s)&&(c=Et(s).entry);Jt(c||e,t,a,r)}),t}const ie=r=>`${_t} Error: Dictionary subtree not found for id: "${r}"`;function oe(r,t,e){const n=Kt({dictionary:r,id:e});if(!n)throw new Error(ie(e));if(Wt(n))throw new Error(`${_t} Error: Cannot inject and merge a dictionary entry`);return function(r,t,e){const n=St(r,e);if(!n)throw new Error(ie(e));if(Wt(n))throw new Error(`${_t} Error: Cannot inject and merge a dictionary entry`);const i=e.split("."),s=i.slice(0,-1),c=i[i.length-1];let l=r;return s.forEach(r=>{l=o(l,r)}),a(l,c,t),r}(r,Nt(n,t),e)}function ae(r,t,e=""){const n=[];return Object.entries(r).forEach(([r,i])=>{const a=e?`${e}.${r}`:r;if(Wt(i)){const{entry:e,metadata:s}=Et(i);o(t,r)||n.push({source:e,metadata:{$id:a,$context:s?.$context,$_hash:s?.$_hash||""}})}else n.push(...ae(i,o(t,r)||(Array.isArray(i)?[]:{}),a))}),n}function se(r,t){if(!t)return r;t.$_source=r,t.$_hash||=Qt({source:r,...t?.$context&&{context:t.$context},...t?.$id&&{id:t.$id},dataFormat:"ICU"});let e=r;if(function(r){let t=0,e=!1;for(;t<r.length;){const n=r[t];if("'"!==n){if(!e&&"{"===n){let e=t+1,n="";for(;e<r.length&&"}"!==r[e];)n+=r[e],e++;if(e<r.length&&n.trim().length>0)return!0;t=e<r.length?e+1:e;continue}t++}else{if(t+1<r.length&&"'"===r[t+1]){t+=2;continue}e=!e,t++}}return!1}(r)&&Object.keys(t||{}).length>2)try{e=i(r,{locales:[lt],variables:t})}catch(t){return console.warn((r=>`${_t} Warning: error formatting string. Expect translation resolution to fail. Original message: "${r}"`)(r),"Error: ",t),r}const n=function(r){if("undefined"!=typeof Buffer)return Buffer.from(r,"utf8").toString("base64");for(var t=(new TextEncoder).encode(r),e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}(JSON.stringify(t));return`${e}:${n}`}function ce(r){return r&&-1!==r.lastIndexOf(":")?r.slice(0,r.lastIndexOf(":")):r}function le(r){if(-1===r.lastIndexOf(":"))return null;const t=r.slice(r.lastIndexOf(":")+1);try{const r=JSON.parse(function(r){if("undefined"!=typeof Buffer)return Buffer.from(r,"base64").toString("utf8");for(var t=atob(r),e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return(new TextDecoder).decode(e)}(t));return r}catch{return null}}export{vt as addGTIdentifier,ae as collectUntranslatedEntries,ce as decodeMsg,le as decodeOptions,It as defaultEnableI18nCookieName,Pt as defaultLocaleCookieName,$t as defaultRegionCookieName,c as flattenDictionary,Mt as getDefaultRenderSettings,St as getDictionaryEntry,Et as getEntryAndMetadata,kt as getPluralBranch,Kt as getSubtree,Lt as getSubtreeWithCreation,gt as getVariableName,Ct as getVariableProps,oe as injectAndMerge,Jt as injectEntry,ne as injectFallbacks,te as injectHashes,ee as injectTranslations,Wt as isDictionaryEntry,At as isValidDictionaryEntry,Ht as isVariableObject,Nt as mergeDictionaries,se as msg,Ut as reactHasUse,jt as renderDefaultChildren,Ft as renderSkeleton,Rt as renderTranslatedChildren,Zt as stripMetadataFromEntries,Bt as writeChildrenAsObjects};
|
|
19
19
|
//# sourceMappingURL=internal.esm.min.mjs.map
|