@generaltranslation/react-core 1.5.8 → 1.5.9

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.
@@ -24,8 +24,8 @@ 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
- import { Static } from './variables/Static';
27
+ import { Static, Derive } from './variables/Derive';
28
28
  export * from 'gt-i18n/fallbacks';
29
- export { declareStatic, declareVar, decodeVars } from 'gt-i18n';
30
- 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, Static, };
29
+ export { declareStatic, derive, declareVar, decodeVars } from 'gt-i18n';
30
+ 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, Static, Derive, };
31
31
  //# sourceMappingURL=internal.d.ts.map
@@ -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,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;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhE,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,EACb,MAAM,GACP,CAAC"}
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;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAExE,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,EACb,MAAM,EACN,MAAM,GACP,CAAC"}
@@ -15,5 +15,5 @@ t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){
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 e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.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]),h=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]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,E,B,w,S,H,A,T,x=this._hash.words,O=l.words,P=u.words,C=a.words,k=s.words,R=c.words,I=h.words;for(B=o=x[0],w=f=x[1],S=b=x[2],H=m=x[3],A=E=x[4],r=0;r<80;r+=1)T=o+t[e+C[r]]|0,T+=r<16?p(f,b,m)+O[0]:r<32?d(f,b,m)+O[1]:r<48?v(f,b,m)+O[2]:r<64?y(f,b,m)+O[3]:_(f,b,m)+O[4],T=(T=g(T|=0,R[r]))+E|0,o=E,E=m,m=g(b,10),b=f,f=T,T=B+t[e+k[r]]|0,T+=r<16?_(w,S,H)+P[0]:r<32?y(w,S,H)+P[1]:r<48?v(w,S,H)+P[2]:r<64?d(w,S,H)+P[3]:p(w,S,H)+P[4],T=(T=g(T|=0,I[r]))+A|0,B=A,A=H,H=g(S,10),S=w,w=T;T=x[1]+b+H|0,x[1]=x[2]+m+A|0,x[2]=x[3]+E+B|0,x[3]=x[4]+o+w|0,x[4]=x[0]+f+S|0,x[0]=T},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.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 t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function _(t,e,r){return t^(e|~r)}function g(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(f),e.HmacRIPEMD160=i._createHmacHelper(f)}(),t.RIPEMD160)),Fe.exports;var t}(),Ve(),function(){return $e||($e=1,Ke.exports=(t=oe(),Oe(),Ve(),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,h=a.words,l=r.keySize,u=r.iterations;c.length<l;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<u;y++){v=n.finalize(v),n.reset();for(var _=v.words,g=0;g<d;g++)p[g]^=_[g]}o.concat(f),h[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Ke.exports;var t}(),Ye(),Qe(),er(),ir(),sr(),lr(),function(){return ur?fr.exports:(ur=1,fr.exports=(e=oe(),Qe(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return pr?dr.exports:(pr=1,dr.exports=(t=oe(),Qe(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return vr?yr.exports:(vr=1,yr.exports=(t=oe(),Qe(),t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return _r?gr.exports:(_r=1,gr.exports=(t=oe(),Qe(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return br||(br=1,mr.exports=(t=oe(),Qe(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding)),mr.exports;var t}(),function(){return Er?Br.exports:(Er=1,Br.exports=(t=oe(),Qe(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return wr||(wr=1,Sr.exports=(t=oe(),Qe(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex)),Sr.exports;var t}(),function(){return Hr||(Hr=1,Ar.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],h=[],l=[],u=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=t[r],y=t[v],_=t[y],g=257*t[d]^16843008*d;a[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,c[r]=g<<8|g>>>24,h[r]=g,g=16843009*_^65537*y^257*v^16843008*r,l[d]=g<<24|g>>>8,u[d]=g<<16|g>>>16,f[d]=g<<8|g>>>24,p[d]=g,r?(r=v^t[t[t[_^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(h=o[a-1],a%r?r>6&&a%r==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=d[a/r|0]<<24),o[a]=o[a-r]^h);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var h=o[a];else h=o[a-4];s[c]=c<4||a<=4?h:l[i[h>>>24]]^u[i[h>>>16&255]]^f[i[h>>>8&255]]^p[i[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,h,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,u,f,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],u=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[p++],y=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],_=n[u>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&l]^r[p++],g=n[f>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++];h=v,l=y,u=_,f=g}v=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],y=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],_=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[p++],g=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=_,t[e+3]=g},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),Ar.exports;var t}(),Or(),function(){return Pr||(Pr=1,Cr.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=e[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(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4)),Cr.exports;var t}(),function(){return kr||(kr=1,Rr.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(i[0]^=h,i[1]^=u,i[2]^=l,i[3]^=f,i[4]^=h,i[5]^=u,i[6]^=l,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Rr.exports;var t}(),function(){return Ir||(Ir=1,Lr.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(n[0]^=h,n[1]^=u,n[2]^=l,n[3]^=f,n[4]^=h,n[5]^=u,n[6]^=l,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Lr.exports;var t}(),Dr())),ee.exports),Gr=Ft(Fr),zr="en",Vr=["singular","plural","dual","zero","one","two","few","many","other"];"function"==typeof SuppressedError&&SuppressedError;var $r,Kr,Xr="ellipsis",Wr="DEFAULT_TERMINATOR_KEY",Yr={ellipsis:($r={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},$r[Wr]={terminator:"…",separator:void 0},$r),none:(Kr={},Kr[Wr]={terminator:void 0,separator:void 0},Kr)},Zr=function(){function t(t,e){var r,n,i,o,a,s,c,h,l;void 0===e&&(e={});try{var u=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[zr],f=Intl.getCanonicalLocales(u);this.locale=f.length?f[0]:zr}catch(t){this.locale=zr}if(!Yr[null!==(r=e.style)&&void 0!==r?r:Xr])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:Xr));if(void 0!==e.maxChars){h=null!==(i=e.style)&&void 0!==i?i:Xr;var p=new Intl.Locale(this.locale).language;l=Yr[h][p]||Yr[h][Wr]}var d=null!==(o=e.terminator)&&void 0!==o?o:null==l?void 0:l.terminator,v=null!=d?null!==(a=e.separator)&&void 0!==a?a:null==l?void 0:l.separator:void 0;this.additionLength=(null!==(s=null==d?void 0:d.length)&&void 0!==s?s:0)+(null!==(c=null==v?void 0:v.length)&&void 0!==c?c:0),void 0!==e.maxChars&&Math.abs(e.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:e.maxChars,style:h,terminator:d,separator:v}}return t.prototype.format=function(t){return this.formatToParts(t).join("")},t.prototype.formatToParts=function(t){var e=this.options,r=e.maxChars,n=e.terminator,i=e.separator,o=void 0===r||Math.abs(r)>=t.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==o&&o>-1?t.slice(0,o):t.slice(o);return null==r||null==o||0===o||null==n||t.length<=Math.abs(r)?[a]:o>0?null!=i?[a,i,n]:[a,n]:null!=i?[n,i,a]:[n,a]},t.prototype.resolvedOptions=function(){return this.options},t}(),Jr={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:Zr},Qr=function(){function t(){this.cache={}}return t.prototype._generateKey=function(t,e){void 0===e&&(e={});var r=t?Array.isArray(t)?t.map(function(t){return String(t)}).join(","):String(t):"undefined",n=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n)},t.prototype.get=function(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0],a=void 0===o?zr:o,s=n[1],c=void 0===s?{}:s,h=this._generateKey(a,c),l=null===(r=this.cache[t])||void 0===r?void 0:r[h];return void 0===l&&(l=new((e=Jr[t]).bind.apply(e,function(t,e,r){if(2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}([void 0],n,!1))),this.cache[t]||(this.cache[t]={}),this.cache[t][h]=l),l},t}(),qr=new Qr;function tn(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}var en={variable:"v",number:"n",datetime:"d",currency:"c"};function rn(t){return en[t]}function nn(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return(new TextDecoder).decode(r)}function on(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,i=t.options,o=i.recurseIntoVisited,a=void 0===o||o,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(i,["recurseIntoVisited"]),c=function(t,e){void 0===e&&(e={}),e=f({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new It(t,e).parse();if(r.err){var n=SyntaxError(K[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||jt(r.val),r.val}(e,s);return h(c),c;function h(t){t.map(l)}function l(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===X.select||t.type===X.plural?Object.values(t.options).map(function(t){return t.value}).map(h):t.type===X.tag&&h(t.children))}}var an="_gt_",sn=new RegExp("^".concat(an,"\\d+$")),cn=new RegExp("^".concat(an,"$"));function hn(t){var e;return t.type===Xt.TYPE.select&&sn.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Xt.TYPE.literal)}function ln(t){var e;return t.type===Xt.TYPE.select&&cn.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Xt.TYPE.literal)}function un(t){if(!t.includes(an))return t;var e=[];on({icuString:t,shouldVisit:ln,visitor:function(t){var r,n,i,o;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,value:t.options.other.value.length>0?t.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],i=0;i<e.length;i++)n.push(t.slice(r,e[i].start)),n.push(e[i].value),r=e[i].end;return r<t.length&&n.push(t.slice(r)),n.join("")}function fn(t){var e=t.replace(/['\']/g,"''"),r=/[{}<>]/,n=e.search(r);if(-1===n)return e;for(var i=-1,o=e.length-1;o>=0;o--)if(r.test(e[o])){i=o;break}return e.slice(0,n)+"'"+e.slice(n,i+1)+"'"+e.slice(i+1)}function pn(t,e){var r=fn(String(null!=t?t:"")),n=" other {".concat(r,"}"),i="";if(null==e?void 0:e.$name){var o=fn(e.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(an,", select,").concat(n).concat(i,"}")}function dn(t){return t}function vn(t){if(!t.includes(an))return t;var e=[];on({icuString:t,shouldVisit:ln,visitor:function(t){var r,n,i,o,a,s,c,h;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(h=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==h?h:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,i=0;i<e.length;i++){var o=e[i],a=o.start,s=o.end,c=o.otherStart,h=o.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(i+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(h,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}function yn(t,n=0){let i=n;const o=t=>{const{type:e,props:r}=t;i+=1;const n={id:i};let o;try{o="function"==typeof e&&e._gtt||""}catch{}if(o){const t=o.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(n.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(r).reduce((t,[e,r])=>(function(t){return Vr.includes(t)}(e)&&(t[e]=yn(r,i)),t),{});Object.keys(t).length&&(n.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...o}=r,a=Object.fromEntries(Object.entries(o).filter(([t])=>!t.startsWith("data-"))),s=Object.entries(a).reduce((t,[e,r])=>(t[e]=yn(r,i),t),{});Object.keys(s).length&&(n.branches=s)}n.transformation=t[0]}return n};function a(t){return r(t)?function(t){const{props:r}=t,n=o(t),i={...r,"data-_gt":n};return r.children&&!n.variableType&&(i.children=s(r.children)),t.type===e.Fragment&&(i["data-_gt"].transformation="fragment"),e.cloneElement(t,i)}(t):t}function s(t){return Array.isArray(t)?e.Children.map(t,a):a(t)}return s(t)}const _n={variable:"value",number:"n",datetime:"date",currency:"cost"};function gn(t={},e){if(t.name)return t.name;return`_gt_${_n[e]||"value"}_${t["data-_gt"]?.id}`}const bn="@generaltranslation/react-core";var mn={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const En=t=>{if(!t)return"";const{type:e,props:r}=t;if(e&&"function"==typeof e){if("displayName"in e&&"string"==typeof e.displayName&&e.displayName)return e.displayName;if("name"in e&&"string"==typeof e.name&&e.name)return e.name}return e&&"string"==typeof e?e:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},Bn=t=>{const{props:e}=t,r={t:En(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=gn(e,r),i=rn(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(mn).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Sn(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Sn(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(mn).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Sn(r)}),i={...i,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Sn(r)}),i={...i,b:e,t:"b"}}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=Sn(e.children)),r},wn=t=>{return r=t,e.isValidElement(r)?Bn(t):"number"==typeof t?t.toString():t;var r};function Sn(t){return Array.isArray(t)?t.map(wn):wn(t)}function Hn(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=Vr),void 0===r&&(r=[zr]);var n=qr.get("PluralRules",r).select(t),i=Math.abs(t);if(0===i&&e.includes("zero"))return"zero";if(1===i){if(e.includes("singular"))return"singular";if(e.includes("one"))return"one"}if("one"===n&&e.includes("singular"))return"singular";if(2===i){if(e.includes("dual"))return"dual";if(e.includes("two"))return"two"}return"two"===n&&e.includes("dual")?"dual":e.includes(n)?n:"two"===n&&e.includes("dual")?"dual":"two"===n&&e.includes("plural")?"plural":"two"===n&&e.includes("other")?"other":"few"===n&&e.includes("plural")?"plural":"few"===n&&e.includes("other")?"other":"many"===n&&e.includes("plural")?"plural":"many"===n&&e.includes("other")?"other":"other"===n&&e.includes("plural")?"plural":""}(t,Object.keys(r),e)),n&&!i&&(i=r[n]),i}function An(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof t?.[0])return!1;const e=t?.[1];if(void 0===e)return!0;if(e&&"object"==typeof e)return!0}return!1}function Tn(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=a(r,t)}return r}function xn(t){if(Array.isArray(t)){if(1===t.length)return{entry:t[0]};if(2===t.length)return{entry:t[0],metadata:t[1]}}return{entry:t}}function On(t){return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===t["data-_gt"]?.transformation}function Pn(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:gn(t,e),variableType:rn(e),variableValue:void 0!==t.value?t.value:void 0!==t["data-_gt-unformatted-value"]?t["data-_gt-unformatted-value"]:void 0!==t.children?t.children:void 0,variableOptions:(()=>{const e={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.options&&t.options};return Object.keys(e).length?e:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function Cn(t){const e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){const t=Object.keys(e);if(1===t.length)return!0;if(2===t.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===t.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}function kn(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function Rn({children:t,defaultLocale:r=zr,renderVariable:n}){const i=t=>e.isValidElement(t)?(t=>{const i=kn(t);if(On(t.props)){const{variableType:e,variableValue:i,variableOptions:o}=Pn(t.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[r]})}if("plural"===i?.transformation){const e=i.branches||{};return o(Hn(t.props.n,[r],e)||t.props.children)}if("branch"===i?.transformation){let{children:e,branch:r,"data-_gt":n,...a}=t.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===i?.transformation?e.createElement(e.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?e.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):e.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?e.Children.map(t,i):i(t);return o(t)}function In({sourceElement:t,targetElement:r,locales:n=[zr],renderVariable:i}){const{props:o}=t,a=o["data-_gt"],s=a?.transformation,c=r.d,h={};if(c&&Object.entries(mn).forEach(([t,e])=>{c[t]&&(h[e]=c[t])}),"plural"===s){const e=t.props.n;return Ln({source:Hn(e,n,a.branches||{})||t.props.children,target:Hn(e,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:e}=o;return Ln({source:(a.branches||{})[t]||e,target:(r.d?.b||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?e.createElement(e.Fragment,{key:t.props.key,children:Ln({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?e.cloneElement(t,{...o,...h,"data-_gt":void 0,children:Ln({source:o.children,target:r.c,locales:n,renderVariable:i})}):Rn({children:t,defaultLocale:n[0],renderVariable:i})}function Ln({source:t,target:r,locales:i=[zr],renderVariable:o}){if(null==r&&t)return Rn({children:t,defaultLocale:i[0],renderVariable:o});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const a={},s={},c=t.filter(t=>{if(e.isValidElement(t)){if(!On(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n}=Pn(t.props);a[e]=r,s[e]=n}}return!1}),h=t=>c.find(e=>{const r=kn(e);if(void 0!==r?.id){return r.id===t.i}return!1})||c.shift();return r.map((t,r)=>{if("string"==typeof t)return n(e.Fragment,{children:t},`string_${r}`);if(tn(t))return n(e.Fragment,{children:o({variableType:t.v||"v",variableValue:a[t.k],variableOptions:s[t.k],locales:i})},`var_${r}`);const c=h(t);return c?n(e.Fragment,{children:In({sourceElement:c,targetElement:t,locales:i,renderVariable:o})},`element_${r}`):void 0})}if(r&&"object"==typeof r&&!Array.isArray(r)){const n=tn(r)?"variable":"element";if(e.isValidElement(t)){if("element"===n)return In({sourceElement:t,targetElement:r,locales:i,renderVariable:o});if(On(t.props)){const{variableValue:e,variableOptions:r,variableType:n}=Pn(t.props);return o({variableType:n,variableValue:e,variableOptions:r,locales:i})}}}return Rn({children:t,defaultLocale:i[0],renderVariable:o})}const Mn=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3});function Nn(){return""}const Dn="generaltranslation.locale",jn="generaltranslation.region",Un="generaltranslation.enable-i18n";function Fn(t){return void 0!==t&&("string"==typeof t||!!Array.isArray(t)&&((1===t.length||2===t.length)&&("string"==typeof t[0]&&(2!==t.length||"object"==typeof t[1]&&null!==t[1]&&("$context"in t[1]||"$maxChars"in t[1]||"$_hash"in t[1])))))}const Gn=t=>"string"==typeof t||Array.isArray(t),zn=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function Vn(t,e){if(Array.isArray(t))return t.map((t,r)=>Fn(t)?e[r]:Vn(t,e[r]));const r={...Object.fromEntries(Object.entries(t).filter(([,t])=>Gn(t))),...Object.fromEntries(Object.entries(e).filter(([,t])=>Gn(t)))},n=Object.entries(t).filter(([,t])=>zn(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>zn(t)).map(([t])=>t),o=new Set([...n,...i]);for(const n of o)r[n]=Vn(a(t,n)||{},a(e,n)||{});return r}const $n="function"==typeof t.use;function Kn({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=a(r,t);return r}function Xn({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,o=e.split(".");for(const t of o)void 0===a(n,t)&&(Array.isArray(a(i,t))?s(n,t,[]):s(n,t,{})),n=a(n,t);return n}const Wn=["constructor","prototype","__proto__"];function Yn(t,e,r,n){if(Fn(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!Wn.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||={};for(const t of i.slice(0,-1))null==a(e,t)&&s(e,t,Array.isArray(a(n,t))?[]:{}),e=a(e,t),n=a(n,t);s(e,i[i.length-1],t)}function Zn(t){let e={};return Array.isArray(t)&&(e=[]),Object.entries(t).forEach(([t,r])=>{if(Fn(r)){const{entry:n}=xn(r);s(e,t,n)}else s(e,t,Zn(r))}),e}var Jn=function(){return Jn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Jn.apply(this,arguments)};function Qn(t){return Gr.SHA256(t).toString(Gr.enc.Hex).slice(0,16)}function qn(t,e){var r=t.source,n=t.context,i=t.id,o=t.maxChars,a=t.dataFormat;void 0===e&&(e=Qn);var s={dataFormat:a};return s.source="JSX"===a?ei(r):r,s=Jn(Jn(Jn(Jn({},s),i&&{id:i}),n&&{context:n}),null!=o&&{maxChars:Math.abs(o)}),e(te(s))}"function"==typeof SuppressedError&&SuppressedError;var ti=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=ei(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],ei(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?Jn({k:t.k},t.v&&{v:t.v}):e}return t};function ei(t){return Array.isArray(t)?t.map(ti):ti(t)}function ri(t,e=""){let r=!1;return Object.entries(t).forEach(([n,i])=>{const o=e?`${e}.${n}`:n;if(Fn(i)){let{entry:e,metadata:a}=xn(i);a?.$_hash||(a||={},a.$_hash=qn({source:vn(e),...a?.$context&&{context:a.$context},...null!=a?.$maxChars&&{maxChars:Math.abs(a.$maxChars)},id:o,dataFormat:"ICU"}),s(t,n,[e,a]),r=!0)}else{const{updateDictionary:t}=ri(i,o);r=r||t}}),{dictionary:t,updateDictionary:r}}function ni(t,e,r,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,h=Tn(e,c);let l;Fn(h)&&(l=xn(h).entry);const u=r[i]||l;u&&(Yn(u,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}}function ii(t,e,r,n=""){const i=n?n.split("."):[];return r.forEach(({source:r,metadata:n})=>{const{$id:o}=n,a=i.length>0?o.split(".").slice(i.length).join("."):o,s=Tn(e,a);let c;Fn(s)&&(c=xn(s).entry);Yn(c||r,e,a,t)}),e}const oi=t=>`${bn} Error: Dictionary subtree not found for id: "${t}"`;function ai(t,e,r){const n=Kn({dictionary:t,id:r});if(!n)throw new Error(oi(r));if(Fn(n))throw new Error(`${bn} Error: Cannot inject and merge a dictionary entry`);return function(t,e,r){const n=Tn(t,r);if(!n)throw new Error(oi(r));if(Fn(n))throw new Error(`${bn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),o=i.slice(0,-1),c=i[i.length-1];let h=t;return o.forEach(t=>{h=a(h,t)}),s(h,c,e),t}(t,Vn(n,e),r)}function si(t,e,r=""){const n=[];return Object.entries(t).forEach(([t,i])=>{const o=r?`${r}.${t}`:t;if(Fn(i)){const{entry:r,metadata:s}=xn(i);a(e,t)||n.push({source:r,metadata:{$id:o,$context:s?.$context,$maxChars:s?.$maxChars,$_hash:s?.$_hash||""}})}else n.push(...si(i,a(e,t)||(Array.isArray(i)?[]:{}),o))}),n}var ci=function(t,e){return ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ci(t,e)},hi=function(){return hi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},hi.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var li,ui;function fi(t,e){return qn(hi(hi(hi(hi({source:vn(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),null!=(null==e?void 0:e.$maxChars)&&{maxChars:Math.abs(e.$maxChars)}),{dataFormat:"ICU"}))}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(li||(li={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(ui||(ui={})),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ci(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]}}(function(){});function pi(t,e){var r;if("string"!=typeof t)return e?t.map(function(t,r){return pi(t,hi(hi({},e),e.$id&&{$id:"".concat(e.$id,".").concat(r)}))}):t;if(!e)return t;var n=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(e),o=t;try{o=i(t,{locales:[zr],variables:hi(hi({},n),(r={},r[an]="other",r))})}catch(e){return function(t){console.warn(t)}("String interpolation failed. Error: "+e),t}var a=t,s=e.$_hash||fi(t,e),c=hi(hi({},e),{$_source:a,$_hash:s}),h=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var e=(new TextEncoder).encode(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}(JSON.stringify(c));return"".concat(o,":").concat(h)}function di(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}function vi(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(nn(e))}catch(t){return null}}function yi({children:t}){return t}var _i=function(){return _i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_i.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var gi=function(t){console.warn(t)},bi="String interpolation failed.";function mi(t,e){var r;if(!t)return t;var n=e.$_fallback,a=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(e);try{var s=function(t){if(!t.includes(an))return{};var e=1,r={};return on({icuString:t,shouldVisit:ln,visitor:function(t){var n;r[t.value+e]=t.options.other.value.length?null===(n=t.options.other.value[0])||void 0===n?void 0:n.value:"",e+=1},options:{recurseIntoVisited:!1}}),r}(n||""),c=function(t,e){try{return i(t,{variables:e})}catch(e){return gi(bi+" Error: "+e),t}}(Object.keys(s).length?function(t){if(!t.includes(an))return t;var e=on({icuString:t,shouldVisit:hn,visitor:function(t){t.type=Xt.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return Qt.printAST(e)}(t):t,_i(_i(_i({},a),s),((r={})[an]="other",r)));return o(c,{maxChars:e.$maxChars})}catch(r){return gi(bi),null!=n?mi(n,_i(_i({},e),{$_fallback:void 0})):o(t,{maxChars:e.$maxChars})}}var Ei=function(t,e){return void 0===e&&(e={}),mi(t,e)},Bi=function(t,e){var r;if(void 0===e&&(e={}),!t)return t;var n=null!==(r=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(nn(e))}catch(t){return null}}(t))&&void 0!==r?r:{};return function(t){return!(!t.$_hash||!t.$_source)}(n)?function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}(t):Ei(t,e)};export{yi as Static,yn as addGTIdentifier,si as collectUntranslatedEntries,dn as declareStatic,pn as declareVar,di as decodeMsg,vi as decodeOptions,un as decodeVars,Un as defaultEnableI18nCookieName,Dn as defaultLocaleCookieName,jn as defaultRegionCookieName,h as flattenDictionary,Mn as getDefaultRenderSettings,Tn as getDictionaryEntry,xn as getEntryAndMetadata,Hn as getPluralBranch,Kn as getSubtree,Xn as getSubtreeWithCreation,gn as getVariableName,Pn as getVariableProps,Ei as gtFallback,ai as injectAndMerge,Yn as injectEntry,ii as injectFallbacks,ri as injectHashes,ni as injectTranslations,Fn as isDictionaryEntry,An as isValidDictionaryEntry,Cn as isVariableObject,Bi as mFallback,Vn as mergeDictionaries,pi as msg,$n as reactHasUse,Rn as renderDefaultChildren,Nn as renderSkeleton,Ln as renderTranslatedChildren,Zn as stripMetadataFromEntries,Sn as writeChildrenAsObjects};
18
+ function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.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]),h=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]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,E,B,w,S,H,A,T,x=this._hash.words,O=l.words,P=u.words,C=a.words,k=s.words,R=c.words,I=h.words;for(B=o=x[0],w=f=x[1],S=b=x[2],H=m=x[3],A=E=x[4],r=0;r<80;r+=1)T=o+t[e+C[r]]|0,T+=r<16?p(f,b,m)+O[0]:r<32?d(f,b,m)+O[1]:r<48?v(f,b,m)+O[2]:r<64?y(f,b,m)+O[3]:_(f,b,m)+O[4],T=(T=g(T|=0,R[r]))+E|0,o=E,E=m,m=g(b,10),b=f,f=T,T=B+t[e+k[r]]|0,T+=r<16?_(w,S,H)+P[0]:r<32?y(w,S,H)+P[1]:r<48?v(w,S,H)+P[2]:r<64?d(w,S,H)+P[3]:p(w,S,H)+P[4],T=(T=g(T|=0,I[r]))+A|0,B=A,A=H,H=g(S,10),S=w,w=T;T=x[1]+b+H|0,x[1]=x[2]+m+A|0,x[2]=x[3]+E+B|0,x[3]=x[4]+o+w|0,x[4]=x[0]+f+S|0,x[0]=T},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.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 t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function _(t,e,r){return t^(e|~r)}function g(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(f),e.HmacRIPEMD160=i._createHmacHelper(f)}(),t.RIPEMD160)),Fe.exports;var t}(),Ve(),function(){return $e||($e=1,Ke.exports=(t=oe(),Oe(),Ve(),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,h=a.words,l=r.keySize,u=r.iterations;c.length<l;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<u;y++){v=n.finalize(v),n.reset();for(var _=v.words,g=0;g<d;g++)p[g]^=_[g]}o.concat(f),h[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Ke.exports;var t}(),Ye(),Qe(),er(),ir(),sr(),lr(),function(){return ur?fr.exports:(ur=1,fr.exports=(e=oe(),Qe(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return pr?dr.exports:(pr=1,dr.exports=(t=oe(),Qe(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return vr?yr.exports:(vr=1,yr.exports=(t=oe(),Qe(),t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return _r?gr.exports:(_r=1,gr.exports=(t=oe(),Qe(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return br||(br=1,mr.exports=(t=oe(),Qe(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding)),mr.exports;var t}(),function(){return Er?Br.exports:(Er=1,Br.exports=(t=oe(),Qe(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return wr||(wr=1,Sr.exports=(t=oe(),Qe(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex)),Sr.exports;var t}(),function(){return Hr||(Hr=1,Ar.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],h=[],l=[],u=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=t[r],y=t[v],_=t[y],g=257*t[d]^16843008*d;a[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,c[r]=g<<8|g>>>24,h[r]=g,g=16843009*_^65537*y^257*v^16843008*r,l[d]=g<<24|g>>>8,u[d]=g<<16|g>>>16,f[d]=g<<8|g>>>24,p[d]=g,r?(r=v^t[t[t[_^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(h=o[a-1],a%r?r>6&&a%r==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=d[a/r|0]<<24),o[a]=o[a-r]^h);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var h=o[a];else h=o[a-4];s[c]=c<4||a<=4?h:l[i[h>>>24]]^u[i[h>>>16&255]]^f[i[h>>>8&255]]^p[i[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,h,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,u,f,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],u=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[p++],y=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],_=n[u>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&l]^r[p++],g=n[f>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++];h=v,l=y,u=_,f=g}v=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],y=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],_=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[p++],g=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=_,t[e+3]=g},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),Ar.exports;var t}(),Or(),function(){return Pr||(Pr=1,Cr.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=e[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(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4)),Cr.exports;var t}(),function(){return kr||(kr=1,Rr.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(i[0]^=h,i[1]^=u,i[2]^=l,i[3]^=f,i[4]^=h,i[5]^=u,i[6]^=l,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Rr.exports;var t}(),function(){return Ir||(Ir=1,Lr.exports=(t=oe(),_e(),we(),Ye(),Qe(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(n[0]^=h,n[1]^=u,n[2]^=l,n[3]^=f,n[4]^=h,n[5]^=u,n[6]^=l,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Lr.exports;var t}(),Dr())),ee.exports),Gr=Ft(Fr),zr="en",Vr=["singular","plural","dual","zero","one","two","few","many","other"];"function"==typeof SuppressedError&&SuppressedError;var $r,Kr,Xr="ellipsis",Wr="DEFAULT_TERMINATOR_KEY",Yr={ellipsis:($r={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},$r[Wr]={terminator:"…",separator:void 0},$r),none:(Kr={},Kr[Wr]={terminator:void 0,separator:void 0},Kr)},Zr=function(){function t(t,e){var r,n,i,o,a,s,c,h,l;void 0===e&&(e={});try{var u=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[zr],f=Intl.getCanonicalLocales(u);this.locale=f.length?f[0]:zr}catch(t){this.locale=zr}if(!Yr[null!==(r=e.style)&&void 0!==r?r:Xr])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:Xr));if(void 0!==e.maxChars){h=null!==(i=e.style)&&void 0!==i?i:Xr;var p=new Intl.Locale(this.locale).language;l=Yr[h][p]||Yr[h][Wr]}var d=null!==(o=e.terminator)&&void 0!==o?o:null==l?void 0:l.terminator,v=null!=d?null!==(a=e.separator)&&void 0!==a?a:null==l?void 0:l.separator:void 0;this.additionLength=(null!==(s=null==d?void 0:d.length)&&void 0!==s?s:0)+(null!==(c=null==v?void 0:v.length)&&void 0!==c?c:0),void 0!==e.maxChars&&Math.abs(e.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:e.maxChars,style:h,terminator:d,separator:v}}return t.prototype.format=function(t){return this.formatToParts(t).join("")},t.prototype.formatToParts=function(t){var e=this.options,r=e.maxChars,n=e.terminator,i=e.separator,o=void 0===r||Math.abs(r)>=t.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==o&&o>-1?t.slice(0,o):t.slice(o);return null==r||null==o||0===o||null==n||t.length<=Math.abs(r)?[a]:o>0?null!=i?[a,i,n]:[a,n]:null!=i?[n,i,a]:[n,a]},t.prototype.resolvedOptions=function(){return this.options},t}(),Jr={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:Zr},Qr=function(){function t(){this.cache={}}return t.prototype._generateKey=function(t,e){void 0===e&&(e={});var r=t?Array.isArray(t)?t.map(function(t){return String(t)}).join(","):String(t):"undefined",n=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n)},t.prototype.get=function(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0],a=void 0===o?zr:o,s=n[1],c=void 0===s?{}:s,h=this._generateKey(a,c),l=null===(r=this.cache[t])||void 0===r?void 0:r[h];return void 0===l&&(l=new((e=Jr[t]).bind.apply(e,function(t,e,r){if(2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}([void 0],n,!1))),this.cache[t]||(this.cache[t]={}),this.cache[t][h]=l),l},t}(),qr=new Qr;function tn(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}var en={variable:"v",number:"n",datetime:"d",currency:"c"};function rn(t){return en[t]}function nn(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return(new TextDecoder).decode(r)}function on(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,i=t.options,o=i.recurseIntoVisited,a=void 0===o||o,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(i,["recurseIntoVisited"]),c=function(t,e){void 0===e&&(e={}),e=f({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new It(t,e).parse();if(r.err){var n=SyntaxError(K[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||jt(r.val),r.val}(e,s);return h(c),c;function h(t){t.map(l)}function l(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===X.select||t.type===X.plural?Object.values(t.options).map(function(t){return t.value}).map(h):t.type===X.tag&&h(t.children))}}var an="_gt_",sn=new RegExp("^".concat(an,"\\d+$")),cn=new RegExp("^".concat(an,"$"));function hn(t){var e;return t.type===Xt.TYPE.select&&sn.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Xt.TYPE.literal)}function ln(t){var e;return t.type===Xt.TYPE.select&&cn.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Xt.TYPE.literal)}function un(t){if(!t.includes(an))return t;var e=[];on({icuString:t,shouldVisit:ln,visitor:function(t){var r,n,i,o;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,value:t.options.other.value.length>0?t.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],i=0;i<e.length;i++)n.push(t.slice(r,e[i].start)),n.push(e[i].value),r=e[i].end;return r<t.length&&n.push(t.slice(r)),n.join("")}function fn(t){var e=t.replace(/['\']/g,"''"),r=/[{}<>]/,n=e.search(r);if(-1===n)return e;for(var i=-1,o=e.length-1;o>=0;o--)if(r.test(e[o])){i=o;break}return e.slice(0,n)+"'"+e.slice(n,i+1)+"'"+e.slice(i+1)}function pn(t,e){var r=fn(String(null!=t?t:"")),n=" other {".concat(r,"}"),i="";if(null==e?void 0:e.$name){var o=fn(e.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(an,", select,").concat(n).concat(i,"}")}function dn(t){return t}var vn=dn;function yn(t){if(!t.includes(an))return t;var e=[];on({icuString:t,shouldVisit:ln,visitor:function(t){var r,n,i,o,a,s,c,h;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(h=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==h?h:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,i=0;i<e.length;i++){var o=e[i],a=o.start,s=o.end,c=o.otherStart,h=o.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(i+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(h,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}function _n(t,n=0){let i=n;const o=t=>{const{type:e,props:r}=t;i+=1;const n={id:i};let o;try{o="function"==typeof e&&e._gtt||""}catch{}if(o){const t=o.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(n.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(r).reduce((t,[e,r])=>(function(t){return Vr.includes(t)}(e)&&(t[e]=_n(r,i)),t),{});Object.keys(t).length&&(n.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...o}=r,a=Object.fromEntries(Object.entries(o).filter(([t])=>!t.startsWith("data-"))),s=Object.entries(a).reduce((t,[e,r])=>(t[e]=_n(r,i),t),{});Object.keys(s).length&&(n.branches=s)}n.transformation=t[0]}return n};function a(t){return r(t)?function(t){const{props:r}=t,n=o(t),i={...r,"data-_gt":n};return r.children&&!n.variableType&&(i.children=s(r.children)),t.type===e.Fragment&&(i["data-_gt"].transformation="fragment"),e.cloneElement(t,i)}(t):t}function s(t){return Array.isArray(t)?e.Children.map(t,a):a(t)}return s(t)}const gn={variable:"value",number:"n",datetime:"date",currency:"cost"};function bn(t={},e){if(t.name)return t.name;return`_gt_${gn[e]||"value"}_${t["data-_gt"]?.id}`}const mn="@generaltranslation/react-core";var En={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const Bn=t=>{if(!t)return"";const{type:e,props:r}=t;if(e&&"function"==typeof e){if("displayName"in e&&"string"==typeof e.displayName&&e.displayName)return e.displayName;if("name"in e&&"string"==typeof e.name&&e.name)return e.name}return e&&"string"==typeof e?e:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},wn=t=>{const{props:e}=t,r={t:Bn(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=bn(e,r),i=rn(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(En).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Hn(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Hn(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(En).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Hn(r)}),i={...i,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Hn(r)}),i={...i,b:e,t:"b"}}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=Hn(e.children)),r},Sn=t=>{return r=t,e.isValidElement(r)?wn(t):"number"==typeof t?t.toString():t;var r};function Hn(t){return Array.isArray(t)?t.map(Sn):Sn(t)}function An(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=Vr),void 0===r&&(r=[zr]);var n=qr.get("PluralRules",r).select(t),i=Math.abs(t);if(0===i&&e.includes("zero"))return"zero";if(1===i){if(e.includes("singular"))return"singular";if(e.includes("one"))return"one"}if("one"===n&&e.includes("singular"))return"singular";if(2===i){if(e.includes("dual"))return"dual";if(e.includes("two"))return"two"}return"two"===n&&e.includes("dual")?"dual":e.includes(n)?n:"two"===n&&e.includes("dual")?"dual":"two"===n&&e.includes("plural")?"plural":"two"===n&&e.includes("other")?"other":"few"===n&&e.includes("plural")?"plural":"few"===n&&e.includes("other")?"other":"many"===n&&e.includes("plural")?"plural":"many"===n&&e.includes("other")?"other":"other"===n&&e.includes("plural")?"plural":""}(t,Object.keys(r),e)),n&&!i&&(i=r[n]),i}function Tn(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof t?.[0])return!1;const e=t?.[1];if(void 0===e)return!0;if(e&&"object"==typeof e)return!0}return!1}function xn(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=a(r,t)}return r}function On(t){if(Array.isArray(t)){if(1===t.length)return{entry:t[0]};if(2===t.length)return{entry:t[0],metadata:t[1]}}return{entry:t}}function Pn(t){return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===t["data-_gt"]?.transformation}function Cn(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:bn(t,e),variableType:rn(e),variableValue:void 0!==t.value?t.value:void 0!==t["data-_gt-unformatted-value"]?t["data-_gt-unformatted-value"]:void 0!==t.children?t.children:void 0,variableOptions:(()=>{const e={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.options&&t.options};return Object.keys(e).length?e:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function kn(t){const e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){const t=Object.keys(e);if(1===t.length)return!0;if(2===t.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===t.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}function Rn(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function In({children:t,defaultLocale:r=zr,renderVariable:n}){const i=t=>e.isValidElement(t)?(t=>{const i=Rn(t);if(Pn(t.props)){const{variableType:e,variableValue:i,variableOptions:o}=Cn(t.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[r]})}if("plural"===i?.transformation){const e=i.branches||{};return o(An(t.props.n,[r],e)||t.props.children)}if("branch"===i?.transformation){let{children:e,branch:r,"data-_gt":n,...a}=t.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===i?.transformation?e.createElement(e.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?e.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):e.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?e.Children.map(t,i):i(t);return o(t)}function Ln({sourceElement:t,targetElement:r,locales:n=[zr],renderVariable:i}){const{props:o}=t,a=o["data-_gt"],s=a?.transformation,c=r.d,h={};if(c&&Object.entries(En).forEach(([t,e])=>{c[t]&&(h[e]=c[t])}),"plural"===s){const e=t.props.n;return Mn({source:An(e,n,a.branches||{})||t.props.children,target:An(e,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:e}=o;return Mn({source:(a.branches||{})[t]||e,target:(r.d?.b||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?e.createElement(e.Fragment,{key:t.props.key,children:Mn({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?e.cloneElement(t,{...o,...h,"data-_gt":void 0,children:Mn({source:o.children,target:r.c,locales:n,renderVariable:i})}):In({children:t,defaultLocale:n[0],renderVariable:i})}function Mn({source:t,target:r,locales:i=[zr],renderVariable:o}){if(null==r&&t)return In({children:t,defaultLocale:i[0],renderVariable:o});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const a={},s={},c=t.filter(t=>{if(e.isValidElement(t)){if(!Pn(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n}=Cn(t.props);a[e]=r,s[e]=n}}return!1}),h=t=>c.find(e=>{const r=Rn(e);if(void 0!==r?.id){return r.id===t.i}return!1})||c.shift();return r.map((t,r)=>{if("string"==typeof t)return n(e.Fragment,{children:t},`string_${r}`);if(tn(t))return n(e.Fragment,{children:o({variableType:t.v||"v",variableValue:a[t.k],variableOptions:s[t.k],locales:i})},`var_${r}`);const c=h(t);return c?n(e.Fragment,{children:Ln({sourceElement:c,targetElement:t,locales:i,renderVariable:o})},`element_${r}`):void 0})}if(r&&"object"==typeof r&&!Array.isArray(r)){const n=tn(r)?"variable":"element";if(e.isValidElement(t)){if("element"===n)return Ln({sourceElement:t,targetElement:r,locales:i,renderVariable:o});if(Pn(t.props)){const{variableValue:e,variableOptions:r,variableType:n}=Cn(t.props);return o({variableType:n,variableValue:e,variableOptions:r,locales:i})}}}return In({children:t,defaultLocale:i[0],renderVariable:o})}const Nn=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3});function Dn(){return""}const jn="generaltranslation.locale",Un="generaltranslation.region",Fn="generaltranslation.enable-i18n";function Gn(t){return void 0!==t&&("string"==typeof t||!!Array.isArray(t)&&((1===t.length||2===t.length)&&("string"==typeof t[0]&&(2!==t.length||"object"==typeof t[1]&&null!==t[1]&&("$context"in t[1]||"$maxChars"in t[1]||"$_hash"in t[1])))))}const zn=t=>"string"==typeof t||Array.isArray(t),Vn=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function $n(t,e){if(Array.isArray(t))return t.map((t,r)=>Gn(t)?e[r]:$n(t,e[r]));const r={...Object.fromEntries(Object.entries(t).filter(([,t])=>zn(t))),...Object.fromEntries(Object.entries(e).filter(([,t])=>zn(t)))},n=Object.entries(t).filter(([,t])=>Vn(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>Vn(t)).map(([t])=>t),o=new Set([...n,...i]);for(const n of o)r[n]=$n(a(t,n)||{},a(e,n)||{});return r}const Kn="function"==typeof t.use;function Xn({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=a(r,t);return r}function Wn({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,o=e.split(".");for(const t of o)void 0===a(n,t)&&(Array.isArray(a(i,t))?s(n,t,[]):s(n,t,{})),n=a(n,t);return n}const Yn=["constructor","prototype","__proto__"];function Zn(t,e,r,n){if(Gn(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!Yn.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||={};for(const t of i.slice(0,-1))null==a(e,t)&&s(e,t,Array.isArray(a(n,t))?[]:{}),e=a(e,t),n=a(n,t);s(e,i[i.length-1],t)}function Jn(t){let e={};return Array.isArray(t)&&(e=[]),Object.entries(t).forEach(([t,r])=>{if(Gn(r)){const{entry:n}=On(r);s(e,t,n)}else s(e,t,Jn(r))}),e}var Qn=function(){return Qn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Qn.apply(this,arguments)};function qn(t){return Gr.SHA256(t).toString(Gr.enc.Hex).slice(0,16)}function ti(t,e){var r=t.source,n=t.context,i=t.id,o=t.maxChars,a=t.dataFormat;void 0===e&&(e=qn);var s={dataFormat:a};return s.source="JSX"===a?ri(r):r,s=Qn(Qn(Qn(Qn({},s),i&&{id:i}),n&&{context:n}),null!=o&&{maxChars:Math.abs(o)}),e(te(s))}"function"==typeof SuppressedError&&SuppressedError;var ei=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=ri(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],ri(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?Qn({k:t.k},t.v&&{v:t.v}):e}return t};function ri(t){return Array.isArray(t)?t.map(ei):ei(t)}function ni(t,e=""){let r=!1;return Object.entries(t).forEach(([n,i])=>{const o=e?`${e}.${n}`:n;if(Gn(i)){let{entry:e,metadata:a}=On(i);a?.$_hash||(a||={},a.$_hash=ti({source:yn(e),...a?.$context&&{context:a.$context},...null!=a?.$maxChars&&{maxChars:Math.abs(a.$maxChars)},id:o,dataFormat:"ICU"}),s(t,n,[e,a]),r=!0)}else{const{updateDictionary:t}=ni(i,o);r=r||t}}),{dictionary:t,updateDictionary:r}}function ii(t,e,r,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,h=xn(e,c);let l;Gn(h)&&(l=On(h).entry);const u=r[i]||l;u&&(Zn(u,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}}function oi(t,e,r,n=""){const i=n?n.split("."):[];return r.forEach(({source:r,metadata:n})=>{const{$id:o}=n,a=i.length>0?o.split(".").slice(i.length).join("."):o,s=xn(e,a);let c;Gn(s)&&(c=On(s).entry);Zn(c||r,e,a,t)}),e}const ai=t=>`${mn} Error: Dictionary subtree not found for id: "${t}"`;function si(t,e,r){const n=Xn({dictionary:t,id:r});if(!n)throw new Error(ai(r));if(Gn(n))throw new Error(`${mn} Error: Cannot inject and merge a dictionary entry`);return function(t,e,r){const n=xn(t,r);if(!n)throw new Error(ai(r));if(Gn(n))throw new Error(`${mn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),o=i.slice(0,-1),c=i[i.length-1];let h=t;return o.forEach(t=>{h=a(h,t)}),s(h,c,e),t}(t,$n(n,e),r)}function ci(t,e,r=""){const n=[];return Object.entries(t).forEach(([t,i])=>{const o=r?`${r}.${t}`:t;if(Gn(i)){const{entry:r,metadata:s}=On(i);a(e,t)||n.push({source:r,metadata:{$id:o,$context:s?.$context,$maxChars:s?.$maxChars,$_hash:s?.$_hash||""}})}else n.push(...ci(i,a(e,t)||(Array.isArray(i)?[]:{}),o))}),n}var hi=function(t,e){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},hi(t,e)},li=function(){return li=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},li.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var ui,fi;function pi(t,e){return ti(li(li(li(li({source:yn(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),null!=(null==e?void 0:e.$maxChars)&&{maxChars:Math.abs(e.$maxChars)}),{dataFormat:"ICU"}))}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(ui||(ui={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(fi||(fi={})),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}hi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]}}(function(){});function di(t,e){var r;if("string"!=typeof t)return e?t.map(function(t,r){return di(t,li(li({},e),e.$id&&{$id:"".concat(e.$id,".").concat(r)}))}):t;if(!e)return t;var n=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(e),o=t;try{o=i(t,{locales:[zr],variables:li(li({},n),(r={},r[an]="other",r))})}catch(e){return function(t){console.warn(t)}("String interpolation failed. Error: "+e),t}var a=t,s=e.$_hash||pi(t,e),c=li(li({},e),{$_source:a,$_hash:s}),h=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var e=(new TextEncoder).encode(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}(JSON.stringify(c));return"".concat(o,":").concat(h)}function vi(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}function yi(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(nn(e))}catch(t){return null}}function _i({children:t}){return t}const gi=_i;var bi=function(){return bi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},bi.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var mi=function(t){console.warn(t)},Ei="String interpolation failed.";function Bi(t,e){var r;if(!t)return t;var n=e.$_fallback,a=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(e);try{var s=function(t){if(!t.includes(an))return{};var e=1,r={};return on({icuString:t,shouldVisit:ln,visitor:function(t){var n;r[t.value+e]=t.options.other.value.length?null===(n=t.options.other.value[0])||void 0===n?void 0:n.value:"",e+=1},options:{recurseIntoVisited:!1}}),r}(n||""),c=function(t,e){try{return i(t,{variables:e})}catch(e){return mi(Ei+" Error: "+e),t}}(Object.keys(s).length?function(t){if(!t.includes(an))return t;var e=on({icuString:t,shouldVisit:hn,visitor:function(t){t.type=Xt.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return Qt.printAST(e)}(t):t,bi(bi(bi({},a),s),((r={})[an]="other",r)));return o(c,{maxChars:e.$maxChars})}catch(r){return mi(Ei),null!=n?Bi(n,bi(bi({},e),{$_fallback:void 0})):o(t,{maxChars:e.$maxChars})}}var wi=function(t,e){return void 0===e&&(e={}),Bi(t,e)},Si=function(t,e){var r;if(void 0===e&&(e={}),!t)return t;var n=null!==(r=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(nn(e))}catch(t){return null}}(t))&&void 0!==r?r:{};return function(t){return!(!t.$_hash||!t.$_source)}(n)?function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}(t):wi(t,e)};export{_i as Derive,gi as Static,_n as addGTIdentifier,ci as collectUntranslatedEntries,vn as declareStatic,pn as declareVar,vi as decodeMsg,yi as decodeOptions,un as decodeVars,Fn as defaultEnableI18nCookieName,jn as defaultLocaleCookieName,Un as defaultRegionCookieName,dn as derive,h as flattenDictionary,Nn as getDefaultRenderSettings,xn as getDictionaryEntry,On as getEntryAndMetadata,An as getPluralBranch,Xn as getSubtree,Wn as getSubtreeWithCreation,bn as getVariableName,Cn as getVariableProps,wi as gtFallback,si as injectAndMerge,Zn as injectEntry,oi as injectFallbacks,ni as injectHashes,ii as injectTranslations,Gn as isDictionaryEntry,Tn as isValidDictionaryEntry,kn as isVariableObject,Si as mFallback,$n as mergeDictionaries,di as msg,Kn as reactHasUse,In as renderDefaultChildren,Dn as renderSkeleton,Mn as renderTranslatedChildren,Jn as stripMetadataFromEntries,Hn as writeChildrenAsObjects};
19
19
  //# sourceMappingURL=internal.esm.min.mjs.map