@generaltranslation/react-core 1.0.3 → 1.0.5
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 +12 -0
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs +1 -1
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.esm.min.mjs +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/messages/messages.d.ts +32 -1
- package/dist/messages/messages.d.ts.map +1 -1
- package/dist/provider/hooks/translation/useCreateInternalUseGTFunction.d.ts.map +1 -1
- package/dist/translation/hooks/useGT.d.ts.map +1 -1
- package/dist/translation/hooks/useMessages.d.ts.map +1 -1
- package/dist/translation/inline/T.d.ts.map +1 -1
- package/dist/utils/use.d.ts +4 -0
- package/dist/utils/use.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -15,5 +15,5 @@ t.mode.CTRGladman=function(){var r=t.lib.BlockCipherMode.extend();function e(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 r=t,e=r.lib,n=e.WordArray,i=e.Hasher,o=r.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(t,r){for(var e=0;e<16;e++){var n=r+e,i=t[n];t[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,j=a.words,z=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+t[r+j[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+t[r+z[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 t=this._data,r=t.words,e=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(r.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,r,e){return t^r^e}function d(t,r,e){return t&r|~t&e}function v(t,r,e){return(t|~r)^e}function y(t,r,e){return t&e|r&~e}function g(t,r,e){return t^(r|~e)}function _(t,r){return t<<r|t>>>32-r}r.RIPEMD160=i._createHelper(h),r.HmacRIPEMD160=i._createHmacHelper(h)}(),t.RIPEMD160)),rt.exports;var t}(),it(),function(){return ot||(ot=1,at.exports=(c=b(),N(),it(),r=(t=c).lib,e=r.Base,n=r.WordArray,i=t.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:o,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e=this.cfg,i=a.create(e.hasher,t),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(r).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}}),t.PBKDF2=function(t,r,e){return s.create(e).compute(t,r)},c.PBKDF2)),at.exports;var t,r,e,n,i,o,a,s,c}(),lt(),ht(),vt(),_t(),mt(),kt(),function(){return At?St.exports:(At=1,St.exports=(r=b(),ht(),r.mode.ECB=((t=r.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,r){this._cipher.encryptBlock(t,r)}}),t.Decryptor=t.extend({processBlock:function(t,r){this._cipher.decryptBlock(t,r)}}),t),r.mode.ECB));var t,r}(),function(){return Et?Ot.exports:(Et=1,Ot.exports=(t=b(),ht(),t.pad.AnsiX923={pad:function(t,r){var e=t.sigBytes,n=4*r,i=n-e%n,o=e+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},t.pad.Ansix923));var t}(),function(){return Ct?Ht.exports:(Ct=1,Ht.exports=(t=b(),ht(),t.pad.Iso10126={pad:function(r,e){var n=4*e,i=n-r.sigBytes%n;r.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},t.pad.Iso10126));var t}(),function(){return jt?zt.exports:(jt=1,zt.exports=(t=b(),ht(),t.pad.Iso97971={pad:function(r,e){r.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(r,e)},unpad:function(r){t.pad.ZeroPadding.unpad(r),r.sigBytes--}},t.pad.Iso97971));var t}(),function(){return Dt||(Dt=1,Rt.exports=(t=b(),ht(),t.pad.ZeroPadding={pad:function(t,r){var e=4*r;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var r=t.words,e=t.sigBytes-1;for(e=t.sigBytes-1;e>=0;e--)if(r[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},t.pad.ZeroPadding)),Rt.exports;var t}(),function(){return Mt?Pt.exports:(Mt=1,Pt.exports=(t=b(),ht(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Ft?$t.exports:(Ft=1,$t.exports=(n=b(),ht(),r=(t=n).lib.CipherParams,e=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(e)},parse:function(t){var n=e.parse(t);return r.create({ciphertext:n})}},n.format.Hex));var t,r,e,n}(),function(){return Vt||(Vt=1,It.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.BlockCipher,n=r.algo,i=[],o=[],a=[],s=[],c=[],l=[],f=[],u=[],h=[],p=[];!function(){for(var t=[],r=0;r<256;r++)t[r]=r<128?r<<1:r<<1^283;var e=0,n=0;for(r=0;r<256;r++){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=t[e],y=t[v],g=t[y],_=257*t[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^t[t[t[g^v]]],n^=t[t[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 t=this._keyPriorReset=this._key,r=t.words,e=t.sigBytes/4,n=4*((this._nRounds=e+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<e?o[a]=r[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(t,r){this._doCryptBlock(t,r,this._keySchedule,a,s,c,l,i)},decryptBlock:function(t,r){var e=t[r+1];t[r+1]=t[r+3],t[r+3]=e,this._doCryptBlock(t,r,this._invKeySchedule,f,u,h,p,o),e=t[r+1],t[r+1]=t[r+3],t[r+3]=e},_doCryptBlock:function(t,r,e,n,i,o,a,s){for(var c=this._nRounds,l=t[r]^e[0],f=t[r+1]^e[1],u=t[r+2]^e[2],h=t[r+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++],t[r]=v,t[r+1]=y,t[r+2]=g,t[r+3]=_},keySize:8});r.AES=e._createHelper(v)}(),t.AES)),It.exports;var t}(),Nt(),function(){return Ut||(Ut=1,Kt.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.StreamCipher,n=r.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,r=t.words,e=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%e,s=r[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,r){t[r]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,r=this._i,e=this._j,n=0,i=0;i<4;i++){e=(e+t[r=(r+1)%256])%256;var o=t[r];t[r]=t[e],t[e]=o,n|=t[(t[r]+t[e])%256]<<24-8*i}return this._i=r,this._j=e,n}r.RC4=e._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)}});r.RC4Drop=e._createHelper(a)}(),t.RC4)),Kt.exports;var t}(),function(){return Lt||(Lt=1,Xt.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,r=this.cfg.iv,e=0;e<4;e++)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>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,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)i[e]^=n[e+4&7];if(r){var o=r.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(t,r){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),t[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,r=this._C,e=0;e<8;e++)o[e]=r[e];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=t[e]+r[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}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}r.Rabbit=e._createHelper(s)}(),t.Rabbit)),Xt.exports;var t}(),function(){return Jt||(Jt=1,qt.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,r=this.cfg.iv,e=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]^=e[i+4&7];if(r){var o=r.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(t,r){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),t[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,r=this._C,e=0;e<8;e++)o[e]=r[e];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=t[e]+r[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}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}r.RabbitLegacy=e._createHelper(s)}(),t.RabbitLegacy)),qt.exports;var t}(),Qt())),v.exports),sr=u(ar),cr="en",lr=["singular","plural","dual","zero","one","two","few","many","other"];var fr=new(function(){function t(){this.cache=new Map}return t.prototype._generateKey=function(t,r,e){void 0===e&&(e={});var n=Array.isArray(r)?r.join(","):r,i=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(t,":").concat(n,":").concat(i)},t.prototype.get=function(t,r,e){void 0===e&&(e={});var n=this._generateKey(t,r,e);if(!this.cache.has(n)){var i=new Intl[t](r,e);this.cache.set(n,i)}return this.cache.get(n)},t}());function ur(t){var r=t;if(r&&"object"==typeof r&&"string"==typeof r.k){var e=Object.keys(r);if(1===e.length)return!0;if(2===e.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===e.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}var hr={variable:"v",number:"n",datetime:"d",currency:"c"};function pr(t){return hr[t]}"function"==typeof SuppressedError&&SuppressedError;const dr={variable:"value",number:"n",datetime:"date",currency:"cost"};function vr(t={},r){if(t.name)return t.name;return`_gt_${dr[r]||"value"}_${t["data-_gt"]?.id}`}const yr="@generaltranslation/react-core";var gr={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const _r=t=>{if(!t)return"";const{type:r,props:e}=t;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:e.href?"a":e["data-_gt"]?.id?`C${e["data-_gt"].id}`:"function"},br=t=>{const{props:r}=t,e={t:_r(t)};if(r["data-_gt"]){const t=r["data-_gt"],n=t.transformation;if("variable"===n){const e=t.variableType||"variable",n=vr(r,e),i=pr(e);return{i:t.id,k:n,v:i}}e.i=t.id,e.d=((t,r,e)=>{let n=Object.entries(gr).reduce((t,[e,n])=>(r[n]&&(t[e]=r[n]),t),{});if("plural"===t&&e){const t={};Object.entries(e).forEach(([r,e])=>{t[r]=mr(e)}),n={...n,b:t,t:"p"}}if("branch"===t&&e){const t={};Object.entries(e).forEach(([r,e])=>{t[r]=mr(e)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,r,t.branches);let i=Object.entries(gr).reduce((t,[e,n])=>(r[n]&&(t[e]=r[n]),t),{});if("plural"===n&&t.branches){const r={};Object.entries(t.branches).forEach(([t,e])=>{r[t]=mr(e)}),i={...i,b:r,t:"p"}}if("branch"===n&&t.branches){const r={};Object.entries(t.branches).forEach(([t,e])=>{r[t]=mr(e)}),i={...i,b:r,t:"b"}}e.d=Object.keys(i).length?i:void 0}return r.children&&(e.c=mr(r.children)),e},xr=r=>{return e=r,t.isValidElement(e)?br(r):"number"==typeof r?r.toString():r;var e};function mr(t){return Array.isArray(t)?t.map(xr):xr(t)}function wr(t,r,e){let n="",i=null;return"number"==typeof t&&!i&&e&&(n=function(t,r,e){void 0===r&&(r=lr),void 0===e&&(e=["en"]);var n=fr.get("PluralRules",e).select(t),i=Math.abs(t);if(0===i&&r.includes("zero"))return"zero";if(1===i){if(r.includes("singular"))return"singular";if(r.includes("one"))return"one"}if("one"===n&&r.includes("singular"))return"singular";if(2===i){if(r.includes("dual"))return"dual";if(r.includes("two"))return"two"}return"two"===n&&r.includes("dual")?"dual":r.includes(n)?n:"two"===n&&r.includes("dual")?"dual":"two"===n&&r.includes("plural")?"plural":"two"===n&&r.includes("other")?"other":"few"===n&&r.includes("plural")?"plural":"few"===n&&r.includes("other")?"other":"many"===n&&r.includes("plural")?"plural":"many"===n&&r.includes("other")?"other":"other"===n&&r.includes("plural")?"plural":""}(t,Object.keys(e),r)),n&&!i&&(i=e[n]),i}function Br(t,r){let e=t;const n=r.split(".");for(const t of n){if("object"!=typeof e&&!Array.isArray(e))return;e=o(e,t)}return e}function kr(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 Ar(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 Sr(t){const r=t["data-_gt"]?.variableType||"variable";return{variableName:vr(t,r),variableType:pr(r),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 r={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.options&&t.options};return Object.keys(r).length?r:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function Er(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function Or({children:r,defaultLocale:e=cr,renderVariable:n}){const i=r=>t.isValidElement(r)?(r=>{const i=Er(r);if(Ar(r.props)){const{variableType:t,variableValue:i,variableOptions:o}=Sr(r.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[e]})}if("plural"===i?.transformation){const t=i.branches||{};return o(wr(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 Cr({sourceElement:r,targetElement:e,locales:n=[cr],renderVariable:i}){const{props:o}=r,a=o["data-_gt"],s=a?.transformation,c=e.d,l={};if(c&&Object.entries(gr).forEach(([t,r])=>{c[t]&&(l[r]=c[t])}),"plural"===s){const t=r.props.n;return Hr({source:wr(t,n,a.branches||{})||r.props.children,target:wr(t,n,e.d?.b||{})||e.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:r}=o;return Hr({source:(a.branches||{})[t]||r,target:(e.d?.b||{})[t]||e.c,locales:n,renderVariable:i})}return"fragment"===s&&e.c?t.createElement(t.Fragment,{key:r.props.key,children:Hr({source:o.children,target:e.c,locales:n,renderVariable:i})}):o?.children&&e?.c?t.cloneElement(r,{...o,...l,"data-_gt":void 0,children:Hr({source:o.children,target:e.c,locales:n,renderVariable:i})}):Or({children:r,defaultLocale:n[0],renderVariable:i})}function Hr({source:e,target:n,locales:i=[cr],renderVariable:o}){if(null==n&&e)return Or({children:e,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(e)&&e&&(e=[e]),Array.isArray(e)&&Array.isArray(n)){const a={},s={},c=e.filter(r=>{if(t.isValidElement(r)){if(!Ar(r.props))return!0;{const{variableName:t,variableValue:e,variableOptions:n}=Sr(r.props);a[t]=e,s[t]=n}}return!1}),l=t=>c.find(r=>{const e=Er(r);if(void 0!==e?.id){return e.id===t.i}return!1})||c.shift();return n.map((e,n)=>{if("string"==typeof e)return r.jsx(t.Fragment,{children:e},`string_${n}`);if(ur(e))return r.jsx(t.Fragment,{children:o({variableType:e.v||"v",variableValue:a[e.k],variableOptions:s[e.k],locales:i})},`var_${n}`);const c=l(e);return c?r.jsx(t.Fragment,{children:Cr({sourceElement:c,targetElement:e,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=ur(n)?"variable":"element";if(t.isValidElement(e)){if("element"===r)return Cr({sourceElement:e,targetElement:n,locales:i,renderVariable:o});if(Ar(e.props)){const{variableValue:t,variableOptions:r,variableType:n}=Sr(e.props);return o({variableType:n,variableValue:t,variableOptions:r,locales:i})}}}return Or({children:e,defaultLocale:i[0],renderVariable:o})}function jr(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]||"$_hash"in t[1])))))}const zr=t=>"string"==typeof t||Array.isArray(t),Dr=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function Rr(t,r){if(Array.isArray(t))return t.map((t,e)=>jr(t)?r[e]:Rr(t,r[e]));const e={...Object.fromEntries(Object.entries(t).filter(([,t])=>zr(t))),...Object.fromEntries(Object.entries(r).filter(([,t])=>zr(t)))},n=Object.entries(t).filter(([,t])=>Dr(t)).map(([t])=>t),i=Object.entries(r).filter(([,t])=>Dr(t)).map(([t])=>t),a=new Set([...n,...i]);for(const n of a)e[n]=Rr(o(t,n)||{},o(r,n)||{});return e}const Mr="function"==typeof i.use;function Pr({dictionary:t,id:r}){if(""===r)return t;let e=t;const n=r.split(".");for(const t of n)e=o(e,t);return e}const Fr=["constructor","prototype","__proto__"];function $r(t,r,e,n){if(jr(r))return t;const i=e.split(".");i.forEach(t=>{if(function(t){return!!Fr.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),r||={};for(const t of i.slice(0,-1))null==o(r,t)&&a(r,t,Array.isArray(o(n,t))?[]:{}),r=o(r,t),n=o(n,t);a(r,i[i.length-1],t)}var Vr=function(){return Vr=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var i in r=arguments[e])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},Vr.apply(this,arguments)};function Ir(t){return sr.SHA256(t).toString(sr.enc.Hex).slice(0,16)}function Tr(t,r){var e=t.source,n=t.context,i=t.id,o=t.dataFormat;void 0===r&&(r=Ir);var a={};return a.source="JSX"===o?Nr(e):e,a=Vr(Vr(Vr(Vr({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),r(d(a))}"function"==typeof SuppressedError&&SuppressedError;var Wr=function(t){if(t&&"object"==typeof t){var r={};if("c"in t&&t.c&&(r.c=Nr(t.c)),"d"in t){var e=null==t?void 0:t.d;(null==e?void 0:e.b)&&(r.b=Object.fromEntries(Object.entries(e.b).map(function(t){return[t[0],Nr(t[1])]}))),(null==e?void 0:e.t)&&(r.t=e.t)}return function(t){var r=t;if(r&&"object"==typeof r&&"string"==typeof r.k){var e=Object.keys(r);if(1===e.length)return!0;if(2===e.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===e.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}(t)?Vr({k:t.k},t.v&&{v:t.v}):r}return t};function Nr(t){return Array.isArray(t)?t.map(Wr):Wr(t)}const Ur=t=>`${yr} Error: Dictionary subtree not found for id: "${t}"`;exports.addGTIdentifier=function r(e,n=0){let i=n;const o=t=>{const{type:e,props:n}=t;i+=1;const o={id:i};let a;try{a="function"==typeof e&&e._gtt||""}catch{}if(a){const t=a.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[e,n])=>(function(t){return lr.includes(t)}(e)&&(t[e]=r(n,i)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...a}=n,s=Object.entries(a).reduce((t,[e,n])=>(t[e]=r(n,i),t),{});Object.keys(s).length&&(o.branches=s)}o.transformation=t[0]}return o};function a(r){return t.isValidElement(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(e)},exports.collectUntranslatedEntries=function t(r,e,n=""){const i=[];return Object.entries(r).forEach(([r,a])=>{const s=n?`${n}.${r}`:r;if(jr(a)){const{entry:t,metadata:n}=kr(a);o(e,r)||i.push({source:t,metadata:{$id:s,$context:n?.$context,$_hash:n?.$_hash||""}})}else i.push(...t(a,o(e,r)||(Array.isArray(a)?[]:{}),s))}),i},exports.decodeMsg=function(t){return t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t},exports.decodeOptions=function(t){if(-1===t.lastIndexOf(":"))return null;const r=t.slice(t.lastIndexOf(":")+1);try{const t=JSON.parse(function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var r=atob(t),e=new Uint8Array(r.length),n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return(new TextDecoder).decode(e)}(r));return t}catch{return null}},exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.flattenDictionary=function t(r,e=""){const n={};for(const i in r)if(r.hasOwnProperty(i)){const a=e?`${e}.${i}`:i;if("object"!=typeof o(r,i)||null===o(r,i)||Array.isArray(o(r,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(r,i)}else{const e=t(o(r,i),a);for(const t in e){if(n.hasOwnProperty(t))throw new Error(s(t));n[t]=e[t]}}}return n},exports.getDefaultRenderSettings=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3}),exports.getDictionaryEntry=Br,exports.getEntryAndMetadata=kr,exports.getPluralBranch=wr,exports.getSubtree=Pr,exports.getSubtreeWithCreation=function({dictionary:t,id:r,sourceDictionary:e}){if(""===r)return t;let n=t;const i=e,s=r.split(".");for(const t of s)void 0===o(n,t)&&(Array.isArray(o(i,t))?a(n,t,[]):a(n,t,{})),n=o(n,t);return n},exports.getVariableName=vr,exports.getVariableProps=Sr,exports.injectAndMerge=function(t,r,e){const n=Pr({dictionary:t,id:e});if(!n)throw new Error(Ur(e));if(jr(n))throw new Error(`${yr} Error: Cannot inject and merge a dictionary entry`);return function(t,r,e){const n=Br(t,e);if(!n)throw new Error(Ur(e));if(jr(n))throw new Error(`${yr} Error: Cannot inject and merge a dictionary entry`);const i=e.split("."),s=i.slice(0,-1),c=i[i.length-1];let l=t;return s.forEach(t=>{l=o(l,t)}),a(l,c,r),t}(t,Rr(n,r),e)},exports.injectEntry=$r,exports.injectFallbacks=function(t,r,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=Br(r,a);let c;jr(s)&&(c=kr(s).entry);$r(c||e,r,a,t)}),r},exports.injectHashes=function t(r,e=""){let n=!1;return Object.entries(r).forEach(([i,o])=>{const s=e?`${e}.${i}`:i;if(jr(o)){let{entry:t,metadata:e}=kr(o);e?.$_hash||(e||={},e.$_hash=Tr({source:t,...e?.$context&&{context:e.$context},id:s,dataFormat:"ICU"}),a(r,i,[t,e]),n=!0)}else{const{updateDictionary:r}=t(o,s);n=n||r}}),{dictionary:r,updateDictionary:n}},exports.injectTranslations=function(t,r,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=Br(r,c);let f;jr(l)&&(f=kr(l).entry);const u=e[i]||f;u&&($r(u,r,c,t),o=!0)}),{dictionary:r,updateDictionary:o}},exports.isDictionaryEntry=jr,exports.isValidDictionaryEntry=function(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof t?.[0])return!1;const r=t?.[1];if(void 0===r)return!0;if(r&&"object"==typeof r)return!0}return!1},exports.isVariableObject=function(t){const r=t;if(r&&"object"==typeof r&&"string"==typeof r.k){const t=Object.keys(r);if(1===t.length)return!0;if(2===t.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===t.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1},exports.mergeDictionaries=Rr,exports.msg=function(t,r){const n=r?.$_hash||Tr({source:t,...r?.$context&&{context:r.$context},...r?.$id&&{id:r.$id},dataFormat:"ICU"});r?(r.$_hash=n,r.$_source=t):r={$_hash:n,$_source:t};const i=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var r=(new TextEncoder).encode(t),e="",n=0;n<r.length;n++)e+=String.fromCharCode(r[n]);return btoa(e)}(JSON.stringify(r));let o=t;(function(t){let r=0,e=!1;for(;r<t.length;){const n=t[r];if("'"!==n){if(!e&&"{"===n){let e=r+1,n="";for(;e<t.length&&"}"!==t[e];)n+=t[e],e++;if(e<t.length&&n.trim().length>0)return!0;r=e<t.length?e+1:e;continue}r++}else{if(r+1<t.length&&"'"===t[r+1]){r+=2;continue}e=!e,r++}}return!1})(t)&&Object.keys(r||{}).length>2&&(o=e.formatMessage(t,{locales:[cr],variables:r}));let a=o;return i&&(a+=`:${i}`),a},exports.reactHasUse=Mr,exports.renderDefaultChildren=Or,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Hr,exports.stripMetadataFromEntries=function t(r){let e={};return Array.isArray(r)&&(e=[]),Object.entries(r).forEach(([r,n])=>{if(jr(n)){const{entry:t}=kr(n);a(e,r,t)}else a(e,r,t(n))}),e},exports.writeChildrenAsObjects=mr;
|
|
18
|
+
function(){var r=t,e=r.lib,n=e.WordArray,i=e.Hasher,o=r.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(t,r){for(var e=0;e<16;e++){var n=r+e,i=t[n];t[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,j=a.words,z=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+t[r+j[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+t[r+z[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 t=this._data,r=t.words,e=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(r.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,r,e){return t^r^e}function d(t,r,e){return t&r|~t&e}function v(t,r,e){return(t|~r)^e}function y(t,r,e){return t&e|r&~e}function g(t,r,e){return t^(r|~e)}function _(t,r){return t<<r|t>>>32-r}r.RIPEMD160=i._createHelper(h),r.HmacRIPEMD160=i._createHmacHelper(h)}(),t.RIPEMD160)),rt.exports;var t}(),it(),function(){return ot||(ot=1,at.exports=(c=b(),N(),it(),r=(t=c).lib,e=r.Base,n=r.WordArray,i=t.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:o,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e=this.cfg,i=a.create(e.hasher,t),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(r).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}}),t.PBKDF2=function(t,r,e){return s.create(e).compute(t,r)},c.PBKDF2)),at.exports;var t,r,e,n,i,o,a,s,c}(),lt(),ht(),vt(),_t(),mt(),kt(),function(){return At?St.exports:(At=1,St.exports=(r=b(),ht(),r.mode.ECB=((t=r.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,r){this._cipher.encryptBlock(t,r)}}),t.Decryptor=t.extend({processBlock:function(t,r){this._cipher.decryptBlock(t,r)}}),t),r.mode.ECB));var t,r}(),function(){return Et?Ot.exports:(Et=1,Ot.exports=(t=b(),ht(),t.pad.AnsiX923={pad:function(t,r){var e=t.sigBytes,n=4*r,i=n-e%n,o=e+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},t.pad.Ansix923));var t}(),function(){return Ct?Ht.exports:(Ct=1,Ht.exports=(t=b(),ht(),t.pad.Iso10126={pad:function(r,e){var n=4*e,i=n-r.sigBytes%n;r.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},t.pad.Iso10126));var t}(),function(){return jt?zt.exports:(jt=1,zt.exports=(t=b(),ht(),t.pad.Iso97971={pad:function(r,e){r.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(r,e)},unpad:function(r){t.pad.ZeroPadding.unpad(r),r.sigBytes--}},t.pad.Iso97971));var t}(),function(){return Dt||(Dt=1,Rt.exports=(t=b(),ht(),t.pad.ZeroPadding={pad:function(t,r){var e=4*r;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var r=t.words,e=t.sigBytes-1;for(e=t.sigBytes-1;e>=0;e--)if(r[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},t.pad.ZeroPadding)),Rt.exports;var t}(),function(){return Mt?Pt.exports:(Mt=1,Pt.exports=(t=b(),ht(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Ft?$t.exports:(Ft=1,$t.exports=(n=b(),ht(),r=(t=n).lib.CipherParams,e=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(e)},parse:function(t){var n=e.parse(t);return r.create({ciphertext:n})}},n.format.Hex));var t,r,e,n}(),function(){return Vt||(Vt=1,It.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.BlockCipher,n=r.algo,i=[],o=[],a=[],s=[],c=[],l=[],f=[],u=[],h=[],p=[];!function(){for(var t=[],r=0;r<256;r++)t[r]=r<128?r<<1:r<<1^283;var e=0,n=0;for(r=0;r<256;r++){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=t[e],y=t[v],g=t[y],_=257*t[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^t[t[t[g^v]]],n^=t[t[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 t=this._keyPriorReset=this._key,r=t.words,e=t.sigBytes/4,n=4*((this._nRounds=e+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<e?o[a]=r[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(t,r){this._doCryptBlock(t,r,this._keySchedule,a,s,c,l,i)},decryptBlock:function(t,r){var e=t[r+1];t[r+1]=t[r+3],t[r+3]=e,this._doCryptBlock(t,r,this._invKeySchedule,f,u,h,p,o),e=t[r+1],t[r+1]=t[r+3],t[r+3]=e},_doCryptBlock:function(t,r,e,n,i,o,a,s){for(var c=this._nRounds,l=t[r]^e[0],f=t[r+1]^e[1],u=t[r+2]^e[2],h=t[r+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++],t[r]=v,t[r+1]=y,t[r+2]=g,t[r+3]=_},keySize:8});r.AES=e._createHelper(v)}(),t.AES)),It.exports;var t}(),Nt(),function(){return Ut||(Ut=1,Kt.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.StreamCipher,n=r.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,r=t.words,e=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%e,s=r[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,r){t[r]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,r=this._i,e=this._j,n=0,i=0;i<4;i++){e=(e+t[r=(r+1)%256])%256;var o=t[r];t[r]=t[e],t[e]=o,n|=t[(t[r]+t[e])%256]<<24-8*i}return this._i=r,this._j=e,n}r.RC4=e._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)}});r.RC4Drop=e._createHelper(a)}(),t.RC4)),Kt.exports;var t}(),function(){return Lt||(Lt=1,Xt.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,r=this.cfg.iv,e=0;e<4;e++)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>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,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)i[e]^=n[e+4&7];if(r){var o=r.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(t,r){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),t[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,r=this._C,e=0;e<8;e++)o[e]=r[e];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=t[e]+r[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}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}r.Rabbit=e._createHelper(s)}(),t.Rabbit)),Xt.exports;var t}(),function(){return Jt||(Jt=1,qt.exports=(t=b(),j(),F(),lt(),ht(),function(){var r=t,e=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,r=this.cfg.iv,e=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]^=e[i+4&7];if(r){var o=r.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(t,r){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),t[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,r=this._C,e=0;e<8;e++)o[e]=r[e];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var n=t[e]+r[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}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}r.RabbitLegacy=e._createHelper(s)}(),t.RabbitLegacy)),qt.exports;var t}(),Qt())),v.exports),sr=u(ar),cr="en",lr=["singular","plural","dual","zero","one","two","few","many","other"];var fr=new(function(){function t(){this.cache=new Map}return t.prototype._generateKey=function(t,r,e){void 0===e&&(e={});var n=Array.isArray(r)?r.join(","):r,i=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(t,":").concat(n,":").concat(i)},t.prototype.get=function(t,r,e){void 0===e&&(e={});var n=this._generateKey(t,r,e);if(!this.cache.has(n)){var i=new Intl[t](r,e);this.cache.set(n,i)}return this.cache.get(n)},t}());function ur(t){var r=t;if(r&&"object"==typeof r&&"string"==typeof r.k){var e=Object.keys(r);if(1===e.length)return!0;if(2===e.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===e.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}var hr={variable:"v",number:"n",datetime:"d",currency:"c"};function pr(t){return hr[t]}"function"==typeof SuppressedError&&SuppressedError;const dr={variable:"value",number:"n",datetime:"date",currency:"cost"};function vr(t={},r){if(t.name)return t.name;return`_gt_${dr[r]||"value"}_${t["data-_gt"]?.id}`}const yr="@generaltranslation/react-core";var gr={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const _r=t=>{if(!t)return"";const{type:r,props:e}=t;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:e.href?"a":e["data-_gt"]?.id?`C${e["data-_gt"].id}`:"function"},br=t=>{const{props:r}=t,e={t:_r(t)};if(r["data-_gt"]){const t=r["data-_gt"],n=t.transformation;if("variable"===n){const e=t.variableType||"variable",n=vr(r,e),i=pr(e);return{i:t.id,k:n,v:i}}e.i=t.id,e.d=((t,r,e)=>{let n=Object.entries(gr).reduce((t,[e,n])=>(r[n]&&(t[e]=r[n]),t),{});if("plural"===t&&e){const t={};Object.entries(e).forEach(([r,e])=>{t[r]=mr(e)}),n={...n,b:t,t:"p"}}if("branch"===t&&e){const t={};Object.entries(e).forEach(([r,e])=>{t[r]=mr(e)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,r,t.branches);let i=Object.entries(gr).reduce((t,[e,n])=>(r[n]&&(t[e]=r[n]),t),{});if("plural"===n&&t.branches){const r={};Object.entries(t.branches).forEach(([t,e])=>{r[t]=mr(e)}),i={...i,b:r,t:"p"}}if("branch"===n&&t.branches){const r={};Object.entries(t.branches).forEach(([t,e])=>{r[t]=mr(e)}),i={...i,b:r,t:"b"}}e.d=Object.keys(i).length?i:void 0}return r.children&&(e.c=mr(r.children)),e},xr=r=>{return e=r,t.isValidElement(e)?br(r):"number"==typeof r?r.toString():r;var e};function mr(t){return Array.isArray(t)?t.map(xr):xr(t)}function wr(t,r,e){let n="",i=null;return"number"==typeof t&&!i&&e&&(n=function(t,r,e){void 0===r&&(r=lr),void 0===e&&(e=["en"]);var n=fr.get("PluralRules",e).select(t),i=Math.abs(t);if(0===i&&r.includes("zero"))return"zero";if(1===i){if(r.includes("singular"))return"singular";if(r.includes("one"))return"one"}if("one"===n&&r.includes("singular"))return"singular";if(2===i){if(r.includes("dual"))return"dual";if(r.includes("two"))return"two"}return"two"===n&&r.includes("dual")?"dual":r.includes(n)?n:"two"===n&&r.includes("dual")?"dual":"two"===n&&r.includes("plural")?"plural":"two"===n&&r.includes("other")?"other":"few"===n&&r.includes("plural")?"plural":"few"===n&&r.includes("other")?"other":"many"===n&&r.includes("plural")?"plural":"many"===n&&r.includes("other")?"other":"other"===n&&r.includes("plural")?"plural":""}(t,Object.keys(e),r)),n&&!i&&(i=e[n]),i}function Br(t,r){let e=t;const n=r.split(".");for(const t of n){if("object"!=typeof e&&!Array.isArray(e))return;e=o(e,t)}return e}function kr(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 Ar(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 Sr(t){const r=t["data-_gt"]?.variableType||"variable";return{variableName:vr(t,r),variableType:pr(r),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 r={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.options&&t.options};return Object.keys(r).length?r:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function Er(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function Or({children:r,defaultLocale:e=cr,renderVariable:n}){const i=r=>t.isValidElement(r)?(r=>{const i=Er(r);if(Ar(r.props)){const{variableType:t,variableValue:i,variableOptions:o}=Sr(r.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[e]})}if("plural"===i?.transformation){const t=i.branches||{};return o(wr(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 Cr({sourceElement:r,targetElement:e,locales:n=[cr],renderVariable:i}){const{props:o}=r,a=o["data-_gt"],s=a?.transformation,c=e.d,l={};if(c&&Object.entries(gr).forEach(([t,r])=>{c[t]&&(l[r]=c[t])}),"plural"===s){const t=r.props.n;return Hr({source:wr(t,n,a.branches||{})||r.props.children,target:wr(t,n,e.d?.b||{})||e.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:r}=o;return Hr({source:(a.branches||{})[t]||r,target:(e.d?.b||{})[t]||e.c,locales:n,renderVariable:i})}return"fragment"===s&&e.c?t.createElement(t.Fragment,{key:r.props.key,children:Hr({source:o.children,target:e.c,locales:n,renderVariable:i})}):o?.children&&e?.c?t.cloneElement(r,{...o,...l,"data-_gt":void 0,children:Hr({source:o.children,target:e.c,locales:n,renderVariable:i})}):Or({children:r,defaultLocale:n[0],renderVariable:i})}function Hr({source:e,target:n,locales:i=[cr],renderVariable:o}){if(null==n&&e)return Or({children:e,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(e)&&e&&(e=[e]),Array.isArray(e)&&Array.isArray(n)){const a={},s={},c=e.filter(r=>{if(t.isValidElement(r)){if(!Ar(r.props))return!0;{const{variableName:t,variableValue:e,variableOptions:n}=Sr(r.props);a[t]=e,s[t]=n}}return!1}),l=t=>c.find(r=>{const e=Er(r);if(void 0!==e?.id){return e.id===t.i}return!1})||c.shift();return n.map((e,n)=>{if("string"==typeof e)return r.jsx(t.Fragment,{children:e},`string_${n}`);if(ur(e))return r.jsx(t.Fragment,{children:o({variableType:e.v||"v",variableValue:a[e.k],variableOptions:s[e.k],locales:i})},`var_${n}`);const c=l(e);return c?r.jsx(t.Fragment,{children:Cr({sourceElement:c,targetElement:e,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=ur(n)?"variable":"element";if(t.isValidElement(e)){if("element"===r)return Cr({sourceElement:e,targetElement:n,locales:i,renderVariable:o});if(Ar(e.props)){const{variableValue:t,variableOptions:r,variableType:n}=Sr(e.props);return o({variableType:n,variableValue:t,variableOptions:r,locales:i})}}}return Or({children:e,defaultLocale:i[0],renderVariable:o})}function jr(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]||"$_hash"in t[1])))))}const zr=t=>"string"==typeof t||Array.isArray(t),Dr=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function Rr(t,r){if(Array.isArray(t))return t.map((t,e)=>jr(t)?r[e]:Rr(t,r[e]));const e={...Object.fromEntries(Object.entries(t).filter(([,t])=>zr(t))),...Object.fromEntries(Object.entries(r).filter(([,t])=>zr(t)))},n=Object.entries(t).filter(([,t])=>Dr(t)).map(([t])=>t),i=Object.entries(r).filter(([,t])=>Dr(t)).map(([t])=>t),a=new Set([...n,...i]);for(const n of a)e[n]=Rr(o(t,n)||{},o(r,n)||{});return e}const Mr="function"==typeof i.use;function Pr({dictionary:t,id:r}){if(""===r)return t;let e=t;const n=r.split(".");for(const t of n)e=o(e,t);return e}const Fr=["constructor","prototype","__proto__"];function $r(t,r,e,n){if(jr(r))return t;const i=e.split(".");i.forEach(t=>{if(function(t){return!!Fr.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),r||={};for(const t of i.slice(0,-1))null==o(r,t)&&a(r,t,Array.isArray(o(n,t))?[]:{}),r=o(r,t),n=o(n,t);a(r,i[i.length-1],t)}var Vr=function(){return Vr=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var i in r=arguments[e])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},Vr.apply(this,arguments)};function Ir(t){return sr.SHA256(t).toString(sr.enc.Hex).slice(0,16)}function Tr(t,r){var e=t.source,n=t.context,i=t.id,o=t.dataFormat;void 0===r&&(r=Ir);var a={};return a.source="JSX"===o?Nr(e):e,a=Vr(Vr(Vr(Vr({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),r(d(a))}"function"==typeof SuppressedError&&SuppressedError;var Wr=function(t){if(t&&"object"==typeof t){var r={};if("c"in t&&t.c&&(r.c=Nr(t.c)),"d"in t){var e=null==t?void 0:t.d;(null==e?void 0:e.b)&&(r.b=Object.fromEntries(Object.entries(e.b).map(function(t){return[t[0],Nr(t[1])]}))),(null==e?void 0:e.t)&&(r.t=e.t)}return function(t){var r=t;if(r&&"object"==typeof r&&"string"==typeof r.k){var e=Object.keys(r);if(1===e.length)return!0;if(2===e.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===e.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}(t)?Vr({k:t.k},t.v&&{v:t.v}):r}return t};function Nr(t){return Array.isArray(t)?t.map(Wr):Wr(t)}const Ur=t=>`${yr} Error: Dictionary subtree not found for id: "${t}"`;exports.addGTIdentifier=function r(e,n=0){let i=n;const o=t=>{const{type:e,props:n}=t;i+=1;const o={id:i};let a;try{a="function"==typeof e&&e._gtt||""}catch{}if(a){const t=a.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[e,n])=>(function(t){return lr.includes(t)}(e)&&(t[e]=r(n,i)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...a}=n,s=Object.entries(a).reduce((t,[e,n])=>(t[e]=r(n,i),t),{});Object.keys(s).length&&(o.branches=s)}o.transformation=t[0]}return o};function a(r){return t.isValidElement(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(e)},exports.collectUntranslatedEntries=function t(r,e,n=""){const i=[];return Object.entries(r).forEach(([r,a])=>{const s=n?`${n}.${r}`:r;if(jr(a)){const{entry:t,metadata:n}=kr(a);o(e,r)||i.push({source:t,metadata:{$id:s,$context:n?.$context,$_hash:n?.$_hash||""}})}else i.push(...t(a,o(e,r)||(Array.isArray(a)?[]:{}),s))}),i},exports.decodeMsg=function(t){return t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t},exports.decodeOptions=function(t){if(-1===t.lastIndexOf(":"))return null;const r=t.slice(t.lastIndexOf(":")+1);try{const t=JSON.parse(function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var r=atob(t),e=new Uint8Array(r.length),n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return(new TextDecoder).decode(e)}(r));return t}catch{return null}},exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.flattenDictionary=function t(r,e=""){const n={};for(const i in r)if(r.hasOwnProperty(i)){const a=e?`${e}.${i}`:i;if("object"!=typeof o(r,i)||null===o(r,i)||Array.isArray(o(r,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(r,i)}else{const e=t(o(r,i),a);for(const t in e){if(n.hasOwnProperty(t))throw new Error(s(t));n[t]=e[t]}}}return n},exports.getDefaultRenderSettings=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3}),exports.getDictionaryEntry=Br,exports.getEntryAndMetadata=kr,exports.getPluralBranch=wr,exports.getSubtree=Pr,exports.getSubtreeWithCreation=function({dictionary:t,id:r,sourceDictionary:e}){if(""===r)return t;let n=t;const i=e,s=r.split(".");for(const t of s)void 0===o(n,t)&&(Array.isArray(o(i,t))?a(n,t,[]):a(n,t,{})),n=o(n,t);return n},exports.getVariableName=vr,exports.getVariableProps=Sr,exports.injectAndMerge=function(t,r,e){const n=Pr({dictionary:t,id:e});if(!n)throw new Error(Ur(e));if(jr(n))throw new Error(`${yr} Error: Cannot inject and merge a dictionary entry`);return function(t,r,e){const n=Br(t,e);if(!n)throw new Error(Ur(e));if(jr(n))throw new Error(`${yr} Error: Cannot inject and merge a dictionary entry`);const i=e.split("."),s=i.slice(0,-1),c=i[i.length-1];let l=t;return s.forEach(t=>{l=o(l,t)}),a(l,c,r),t}(t,Rr(n,r),e)},exports.injectEntry=$r,exports.injectFallbacks=function(t,r,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=Br(r,a);let c;jr(s)&&(c=kr(s).entry);$r(c||e,r,a,t)}),r},exports.injectHashes=function t(r,e=""){let n=!1;return Object.entries(r).forEach(([i,o])=>{const s=e?`${e}.${i}`:i;if(jr(o)){let{entry:t,metadata:e}=kr(o);e?.$_hash||(e||={},e.$_hash=Tr({source:t,...e?.$context&&{context:e.$context},id:s,dataFormat:"ICU"}),a(r,i,[t,e]),n=!0)}else{const{updateDictionary:r}=t(o,s);n=n||r}}),{dictionary:r,updateDictionary:n}},exports.injectTranslations=function(t,r,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=Br(r,c);let f;jr(l)&&(f=kr(l).entry);const u=e[i]||f;u&&($r(u,r,c,t),o=!0)}),{dictionary:r,updateDictionary:o}},exports.isDictionaryEntry=jr,exports.isValidDictionaryEntry=function(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof t?.[0])return!1;const r=t?.[1];if(void 0===r)return!0;if(r&&"object"==typeof r)return!0}return!1},exports.isVariableObject=function(t){const r=t;if(r&&"object"==typeof r&&"string"==typeof r.k){const t=Object.keys(r);if(1===t.length)return!0;if(2===t.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===t.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1},exports.mergeDictionaries=Rr,exports.msg=function(t,r){if(!r)return t;r.$_source=t,r.$_hash||=Tr({source:t,...r?.$context&&{context:r.$context},...r?.$id&&{id:r.$id},dataFormat:"ICU"});let n=t;(function(t){let r=0,e=!1;for(;r<t.length;){const n=t[r];if("'"!==n){if(!e&&"{"===n){let e=r+1,n="";for(;e<t.length&&"}"!==t[e];)n+=t[e],e++;if(e<t.length&&n.trim().length>0)return!0;r=e<t.length?e+1:e;continue}r++}else{if(r+1<t.length&&"'"===t[r+1]){r+=2;continue}e=!e,r++}}return!1})(t)&&Object.keys(r||{}).length>2&&(n=e.formatMessage(t,{locales:[cr],variables:r}));const i=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var r=(new TextEncoder).encode(t),e="",n=0;n<r.length;n++)e+=String.fromCharCode(r[n]);return btoa(e)}(JSON.stringify(r));return`${n}:${i}`},exports.reactHasUse=Mr,exports.renderDefaultChildren=Or,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Hr,exports.stripMetadataFromEntries=function t(r){let e={};return Array.isArray(r)&&(e=[]),Object.entries(r).forEach(([r,n])=>{if(jr(n)){const{entry:t}=kr(n);a(e,r,t)}else a(e,r,t(n))}),e},exports.writeChildrenAsObjects=mr;
|
|
19
19
|
//# sourceMappingURL=internal.cjs.min.cjs.map
|