gt-react 10.6.2-alpha.0 → 10.6.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs.min.cjs +1 -2
- package/dist/client.d.ts +26 -5
- package/dist/client.esm.min.mjs +3 -4
- package/dist/dictionaries/collectUntranslatedEntries.d.ts +1 -1
- package/dist/dictionaries/collectUntranslatedEntries.d.ts.map +1 -1
- package/dist/dictionaries/getEntryAndMetadata.d.ts +1 -1
- package/dist/dictionaries/getEntryAndMetadata.d.ts.map +1 -1
- package/dist/dictionaries/getSubtree.d.ts +0 -6
- package/dist/dictionaries/getSubtree.d.ts.map +1 -1
- package/dist/dictionaries/injectEntry.d.ts +1 -1
- package/dist/dictionaries/injectEntry.d.ts.map +1 -1
- package/dist/dictionaries/injectFallbacks.d.ts +1 -1
- package/dist/dictionaries/injectFallbacks.d.ts.map +1 -1
- package/dist/dictionaries/injectTranslations.d.ts +1 -1
- package/dist/dictionaries/injectTranslations.d.ts.map +1 -1
- package/dist/dictionaries/mergeDictionaries.d.ts.map +1 -1
- package/dist/hooks/useGTClass.d.ts +2 -1
- package/dist/hooks/useGTClass.d.ts.map +1 -1
- package/dist/hooks/useLocaleSelector.d.ts +23 -1
- package/dist/hooks/useLocaleSelector.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -4
- package/dist/index.esm.min.mjs +3 -4
- package/dist/internal.cjs.min.cjs +2 -3
- package/dist/internal.esm.min.mjs +3 -4
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsFunction.d.ts.map +1 -1
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsObjFunction.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +25 -20
- package/dist/client.cjs.min.cjs.map +0 -1
- package/dist/client.esm.min.mjs.map +0 -1
- package/dist/index.cjs.min.cjs.map +0 -1
- package/dist/index.esm.min.mjs.map +0 -1
- package/dist/internal.cjs.min.cjs.map +0 -1
- package/dist/internal.esm.min.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var t=require("react"),e=require("react/jsx-runtime"),r=require("generaltranslation");function n(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var i=n(t);function o(t,e){if(void 0===t)throw new Error("Cannot index into an undefined dictionary");return Array.isArray(t),t[e]}function a(t,e,r){Array.isArray(t),t[e]=r}const s=t=>`Duplicate key found in dictionary: "${t}"`;function c(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}"function"==typeof SuppressedError&&SuppressedError;var l,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function p(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){var r=!1;try{r=this instanceof t}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}var d=(u||(u=1,l=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r="boolean"==typeof e.cycles&&e.cycles,n=e.cmp&&function(t){return function(e){return function(r,n){var i={key:r,value:e[r]},o={key:n,value:e[n]};return t(i,o)}}}(e.cmp),i=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var o,a;if(Array.isArray(e)){for(a="[",o=0;o<e.length;o++)o&&(a+=","),a+=t(e[o])||"null";return a+"]"}if(null===e)return"null";if(-1!==i.indexOf(e)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(e)-1,c=Object.keys(e).sort(n&&n(e));for(a="",o=0;o<c.length;o++){var l=c[o],u=t(e[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+a+"}"}}(t)}),l),v=h(d),y={exports:{}};var g,_={exports:{}},b=p(Object.freeze({__proto__:null,default:{}}));function x(){return g||(g=1,_.exports=(t=t||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==f&&f.crypto&&(r=f.crypto),!r)try{r=b}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),l=o.enc={},u=l.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},h=l.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*l,o);if(l){for(var f=0;f<l;f+=a)this._doProcessBlock(i,f);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=d.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new v.HMAC.init(t,r).finalize(e)}}});var v=o.algo={};return o}(Math),t)),_.exports;var t}var m,w={exports:{}};function k(){return m||(m=1,w.exports=(a=x(),r=(e=a).lib,n=r.Base,i=r.WordArray,(o=e.x64={}).Word=n.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=n.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=n.clone.call(this),e=t.words=this.words.slice(0),r=e.length,i=0;i<r;i++)e[i]=e[i].clone();return t}}),a)),w.exports;var t,e,r,n,i,o,a}var B,S={exports:{}};function A(){return B||(B=1,S.exports=(t=x(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init,n=e.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)),S.exports;var t}var O,j={exports:{}};function E(){return O||(O=1,j.exports=(t=x(),function(){var e=t,r=e.lib.WordArray,n=e.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return r.create(n,2*e)}},n.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o++)n[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return r.create(n,2*e)}}}(),t.enc.Utf16)),j.exports;var t}var C,H={exports:{}};function z(){return C||(C=1,H.exports=(t=x(),function(){var e=t,r=e.lib.WordArray;function n(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)),H.exports;var t}var D,R={exports:{}};function M(){return D||(D=1,R.exports=(t=x(),function(){var e=t,r=e.lib.WordArray;function n(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var r=t.words,n=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<n;c++)o.push(i.charAt(s>>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var r=t.length,i=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var c=t.indexOf(s);-1!==c&&(r=c)}return n(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),t.enc.Base64url)),R.exports;var t}var P,F={exports:{}};function $(){return P||(P=1,F.exports=(t=x(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_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=this._hash.words,a=t[e+0],c=t[e+1],p=t[e+2],d=t[e+3],v=t[e+4],y=t[e+5],g=t[e+6],_=t[e+7],b=t[e+8],x=t[e+9],m=t[e+10],w=t[e+11],k=t[e+12],B=t[e+13],S=t[e+14],A=t[e+15],O=o[0],j=o[1],E=o[2],C=o[3];O=l(O,j,E,C,a,7,s[0]),C=l(C,O,j,E,c,12,s[1]),E=l(E,C,O,j,p,17,s[2]),j=l(j,E,C,O,d,22,s[3]),O=l(O,j,E,C,v,7,s[4]),C=l(C,O,j,E,y,12,s[5]),E=l(E,C,O,j,g,17,s[6]),j=l(j,E,C,O,_,22,s[7]),O=l(O,j,E,C,b,7,s[8]),C=l(C,O,j,E,x,12,s[9]),E=l(E,C,O,j,m,17,s[10]),j=l(j,E,C,O,w,22,s[11]),O=l(O,j,E,C,k,7,s[12]),C=l(C,O,j,E,B,12,s[13]),E=l(E,C,O,j,S,17,s[14]),O=u(O,j=l(j,E,C,O,A,22,s[15]),E,C,c,5,s[16]),C=u(C,O,j,E,g,9,s[17]),E=u(E,C,O,j,w,14,s[18]),j=u(j,E,C,O,a,20,s[19]),O=u(O,j,E,C,y,5,s[20]),C=u(C,O,j,E,m,9,s[21]),E=u(E,C,O,j,A,14,s[22]),j=u(j,E,C,O,v,20,s[23]),O=u(O,j,E,C,x,5,s[24]),C=u(C,O,j,E,S,9,s[25]),E=u(E,C,O,j,d,14,s[26]),j=u(j,E,C,O,b,20,s[27]),O=u(O,j,E,C,B,5,s[28]),C=u(C,O,j,E,p,9,s[29]),E=u(E,C,O,j,_,14,s[30]),O=f(O,j=u(j,E,C,O,k,20,s[31]),E,C,y,4,s[32]),C=f(C,O,j,E,b,11,s[33]),E=f(E,C,O,j,w,16,s[34]),j=f(j,E,C,O,S,23,s[35]),O=f(O,j,E,C,c,4,s[36]),C=f(C,O,j,E,v,11,s[37]),E=f(E,C,O,j,_,16,s[38]),j=f(j,E,C,O,m,23,s[39]),O=f(O,j,E,C,B,4,s[40]),C=f(C,O,j,E,a,11,s[41]),E=f(E,C,O,j,d,16,s[42]),j=f(j,E,C,O,g,23,s[43]),O=f(O,j,E,C,x,4,s[44]),C=f(C,O,j,E,k,11,s[45]),E=f(E,C,O,j,A,16,s[46]),O=h(O,j=f(j,E,C,O,p,23,s[47]),E,C,a,6,s[48]),C=h(C,O,j,E,_,10,s[49]),E=h(E,C,O,j,S,15,s[50]),j=h(j,E,C,O,y,21,s[51]),O=h(O,j,E,C,k,6,s[52]),C=h(C,O,j,E,d,10,s[53]),E=h(E,C,O,j,m,15,s[54]),j=h(j,E,C,O,c,21,s[55]),O=h(O,j,E,C,b,6,s[56]),C=h(C,O,j,E,A,10,s[57]),E=h(E,C,O,j,g,15,s[58]),j=h(j,E,C,O,B,21,s[59]),O=h(O,j,E,C,v,6,s[60]),C=h(C,O,j,E,w,10,s[61]),E=h(E,C,O,j,p,15,s[62]),j=h(j,E,C,O,x,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+j|0,o[2]=o[2]+E|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function u(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),t.MD5)),F.exports;var t}var V,I={exports:{}};function N(){return V||(V=1,I.exports=(s=x(),e=(t=s).lib,r=e.WordArray,n=e.Hasher,i=t.algo,o=[],a=i.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)o[l]=0|t[e+l];else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var f=(n<<5|n>>>27)+c+o[l];f+=l<20?1518500249+(i&a|~i&s):l<40?1859775393+(i^a^s):l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=n._createHelper(a),t.HmacSHA1=n._createHmacHelper(a),s.SHA1)),I.exports;var t,e,r,n,i,o,a,s}var W,T={exports:{}};function U(){return W||(W=1,T.exports=(t=x(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)l[p]=0|t[e+p];else{var d=l[p-15],v=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=l[p-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[p]=v+l[p-7]+g+l[p-16]}var _=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[p]+l[p];h=f,f=u,u=s,s=a+x|0,a=o,o=i,i=n,n=x+(b+_)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)),T.exports;var t}var K,L={exports:{}};var X,J={exports:{}};function q(){return X||(X=1,J.exports=(t=x(),k(),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var u=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],p=n.high,d=n.low,v=i.high,y=i.low,g=o.high,_=o.low,b=a.high,x=a.low,m=s.high,w=s.low,k=u.high,B=u.low,S=f.high,A=f.low,O=h.high,j=h.low,E=p,C=d,H=v,z=y,D=g,R=_,M=b,P=x,F=m,$=w,V=k,I=B,N=S,W=A,T=O,U=j,K=0;K<80;K++){var L,X,J=l[K];if(K<16)X=J.high=0|t[e+2*K],L=J.low=0|t[e+2*K+1];else{var q=l[K-15],Z=q.high,G=q.low,Q=(Z>>>1|G<<31)^(Z>>>8|G<<24)^Z>>>7,Y=(G>>>1|Z<<31)^(G>>>8|Z<<24)^(G>>>7|Z<<25),tt=l[K-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),ot=l[K-7],at=ot.high,st=ot.low,ct=l[K-16],lt=ct.high,ut=ct.low;X=(X=(X=Q+at+((L=Y+st)>>>0<Y>>>0?1:0))+nt+((L+=it)>>>0<it>>>0?1:0))+lt+((L+=ut)>>>0<ut>>>0?1:0),J.high=X,J.low=L}var ft,ht=F&V^~F&N,pt=$&I^~$&W,dt=E&H^E&D^H&D,vt=C&z^C&R^z&R,yt=(E>>>28|C<<4)^(E<<30|C>>>2)^(E<<25|C>>>7),gt=(C>>>28|E<<4)^(C<<30|E>>>2)^(C<<25|E>>>7),_t=(F>>>14|$<<18)^(F>>>18|$<<14)^(F<<23|$>>>9),bt=($>>>14|F<<18)^($>>>18|F<<14)^($<<23|F>>>9),xt=c[K],mt=xt.high,wt=xt.low,kt=T+_t+((ft=U+bt)>>>0<U>>>0?1:0),Bt=gt+vt;T=N,U=W,N=V,W=I,V=F,I=$,F=M+(kt=(kt=(kt=kt+ht+((ft+=pt)>>>0<pt>>>0?1:0))+mt+((ft+=wt)>>>0<wt>>>0?1:0))+X+((ft+=L)>>>0<L>>>0?1:0))+(($=P+ft|0)>>>0<P>>>0?1:0)|0,M=D,P=R,D=H,R=z,H=E,z=C,E=kt+(yt+dt+(Bt>>>0<gt>>>0?1:0))+((C=ft+Bt|0)>>>0<ft>>>0?1:0)|0}d=n.low=d+C,n.high=p+E+(d>>>0<C>>>0?1:0),y=i.low=y+z,i.high=v+H+(y>>>0<z>>>0?1:0),_=o.low=_+R,o.high=g+D+(_>>>0<R>>>0?1:0),x=a.low=x+P,a.high=b+M+(x>>>0<P>>>0?1:0),w=s.low=w+$,s.high=m+F+(w>>>0<$>>>0?1:0),B=u.low=B+I,u.high=k+V+(B>>>0<I>>>0?1:0),A=f.low=A+W,f.high=S+N+(A>>>0<W>>>0?1:0),j=h.low=j+U,h.high=O+T+(j>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)),J.exports;var t}var Z,G={exports:{}};var Q,Y={exports:{}};function tt(){return Q||(Q=1,Y.exports=(t=x(),k(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,c=[],l=[],u=[];!function(){for(var t=1,e=0,r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var n=(2*t+3*e)%5;t=e%5,e=n}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var p=(1<<h)-1;p<32?f^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,f)}}();var f=[];!function(){for(var t=0;t<25;t++)f[t]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(j=r[i]).high^=a,j.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,d=0,v=0;v<5;v++)p^=(j=r[h+5*v]).high,d^=j.low;var y=f[h];y.high=p,y.low=d}for(h=0;h<5;h++){var g=f[(h+4)%5],_=f[(h+1)%5],b=_.high,x=_.low;for(p=g.high^(b<<1|x>>>31),d=g.low^(x<<1|b>>>31),v=0;v<5;v++)(j=r[h+5*v]).high^=p,j.low^=d}for(var m=1;m<25;m++){var w=(j=r[m]).high,k=j.low,B=c[m];B<32?(p=w<<B|k>>>32-B,d=k<<B|w>>>32-B):(p=k<<B-32|w>>>64-B,d=w<<B-32|k>>>64-B);var S=f[l[m]];S.high=p,S.low=d}var A=f[0],O=r[0];for(A.high=O.high,A.low=O.low,h=0;h<5;h++)for(v=0;v<5;v++){var j=r[m=h+5*v],E=f[m],C=f[(h+1)%5+5*v],H=f[(h+2)%5+5*v];j.high=E.high^~C.high&H.high,j.low=E.low^~C.low&H.low}j=r[0];var z=u[s];j.high^=z.high,j.low^=z.low}},_doFinalize:function(){var t=this._data,r=t.words;this._nDataBytes;var n=8*t.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var f=a[u],h=f.high,p=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(h)}return new i.init(l,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),t.SHA3)),Y.exports;var t}var et,rt={exports:{}};var nt,it={exports:{}};function ot(){return nt||(nt=1,it.exports=(t=x(),r=(e=t).lib.Base,n=e.enc.Utf8,void(e.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var r=t.blockSize,i=4*r;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))),it.exports;var t,e,r,n}var at,st={exports:{}};var ct,lt={exports:{}};function ut(){return ct||(ct=1,lt.exports=(s=x(),N(),ot(),e=(t=s).lib,r=e.Base,n=e.WordArray,i=t.algo,o=i.MD5,a=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,i=this.cfg,o=i.hasher.create(),a=n.create(),s=a.words,c=i.keySize,l=i.iterations;s.length<c;){r&&o.update(r),r=o.update(t).finalize(e),o.reset();for(var u=1;u<l;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(t,e,r){return a.create(r).compute(t,e)},s.EvpKDF)),lt.exports;var t,e,r,n,i,o,a,s}var ft,ht={exports:{}};function pt(){return ft||(ft=1,ht.exports=(t=x(),ut(),void(t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,l=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:g}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},h=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=f.CBC=function(){var t=h.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);n.decryptBlock(t,e),r.call(this,t,e,i),this._prevBlock=o}}),t}(),d=(r.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:d}),reset:function(){var t;u.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var v=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(r.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(e):e).toString(c)},parse:function(t){var e,r=c.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:e})}},g=n.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=(r.kdf={}).OpenSSL={execute:function(t,e,r,n,i){if(n||(n=o.random(8)),i)a=l.create({keySize:e+r,hasher:i}).compute(t,n);else var a=l.create({keySize:e+r}).compute(t,n);var s=o.create(a.words.slice(e),4*r);return a.sigBytes=4*e,v.create({key:a,iv:s,salt:n})}},b=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:_}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=g.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt,n.hasher);return n.iv=i.iv,g.decrypt.call(this,t,e,i.key,n)}})}()))),ht.exports;var t}var dt,vt={exports:{}};function yt(){return dt||(dt=1,vt.exports=(t=x(),pt(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)t[e+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=o}}),e}(),t.mode.CFB)),vt.exports;var t}var gt,_t={exports:{}};function bt(){return gt||(gt=1,_t.exports=(r=x(),pt(),r.mode.CTR=(t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)t[e+s]^=a[s]}}),t.Decryptor=e,t),r.mode.CTR)),_t.exports;var t,e,r}var xt,mt={exports:{}};function wt(){return xt||(xt=1,mt.exports=(t=x(),pt(),
|
|
1
|
+
"use strict";var t=require("react"),e=require("react/jsx-runtime"),r=require("generaltranslation");function n(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var i=n(t);function o(t,e){if(null==t)throw new Error("Cannot index into an undefined dictionary");return Array.isArray(t),t[e]}function a(t,e,r){Array.isArray(t),t[e]=r}const s=t=>`Duplicate key found in dictionary: "${t}"`;function c(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}"function"==typeof SuppressedError&&SuppressedError;var l,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function p(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){var r=!1;try{r=this instanceof t}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}var d=(u||(u=1,l=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r="boolean"==typeof e.cycles&&e.cycles,n=e.cmp&&function(t){return function(e){return function(r,n){var i={key:r,value:e[r]},o={key:n,value:e[n]};return t(i,o)}}}(e.cmp),i=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var o,a;if(Array.isArray(e)){for(a="[",o=0;o<e.length;o++)o&&(a+=","),a+=t(e[o])||"null";return a+"]"}if(null===e)return"null";if(-1!==i.indexOf(e)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(e)-1,c=Object.keys(e).sort(n&&n(e));for(a="",o=0;o<c.length;o++){var l=c[o],u=t(e[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+a+"}"}}(t)}),l),v=h(d),y={exports:{}};var g,_={exports:{}},b=p(Object.freeze({__proto__:null,default:{}}));function x(){return g||(g=1,_.exports=(t=t||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==f&&f.crypto&&(r=f.crypto),!r)try{r=b}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),l=o.enc={},u=l.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},h=l.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*l,o);if(l){for(var f=0;f<l;f+=a)this._doProcessBlock(i,f);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=d.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new v.HMAC.init(t,r).finalize(e)}}});var v=o.algo={};return o}(Math),t)),_.exports;var t}var m,w={exports:{}};function k(){return m||(m=1,w.exports=(a=x(),r=(e=a).lib,n=r.Base,i=r.WordArray,(o=e.x64={}).Word=n.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=n.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=n.clone.call(this),e=t.words=this.words.slice(0),r=e.length,i=0;i<r;i++)e[i]=e[i].clone();return t}}),a)),w.exports;var t,e,r,n,i,o,a}var B,S={exports:{}};function A(){return B||(B=1,S.exports=(t=x(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init,n=e.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)),S.exports;var t}var O,j={exports:{}};function E(){return O||(O=1,j.exports=(t=x(),function(){var e=t,r=e.lib.WordArray,n=e.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return r.create(n,2*e)}},n.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o++)n[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return r.create(n,2*e)}}}(),t.enc.Utf16)),j.exports;var t}var C,H={exports:{}};function z(){return C||(C=1,H.exports=(t=x(),function(){var e=t,r=e.lib.WordArray;function n(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)),H.exports;var t}var D,R={exports:{}};function M(){return D||(D=1,R.exports=(t=x(),function(){var e=t,r=e.lib.WordArray;function n(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var r=t.words,n=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<n;c++)o.push(i.charAt(s>>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var r=t.length,i=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var c=t.indexOf(s);-1!==c&&(r=c)}return n(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),t.enc.Base64url)),R.exports;var t}var P,F={exports:{}};function $(){return P||(P=1,F.exports=(t=x(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_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=this._hash.words,a=t[e+0],c=t[e+1],p=t[e+2],d=t[e+3],v=t[e+4],y=t[e+5],g=t[e+6],_=t[e+7],b=t[e+8],x=t[e+9],m=t[e+10],w=t[e+11],k=t[e+12],B=t[e+13],S=t[e+14],A=t[e+15],O=o[0],j=o[1],E=o[2],C=o[3];O=l(O,j,E,C,a,7,s[0]),C=l(C,O,j,E,c,12,s[1]),E=l(E,C,O,j,p,17,s[2]),j=l(j,E,C,O,d,22,s[3]),O=l(O,j,E,C,v,7,s[4]),C=l(C,O,j,E,y,12,s[5]),E=l(E,C,O,j,g,17,s[6]),j=l(j,E,C,O,_,22,s[7]),O=l(O,j,E,C,b,7,s[8]),C=l(C,O,j,E,x,12,s[9]),E=l(E,C,O,j,m,17,s[10]),j=l(j,E,C,O,w,22,s[11]),O=l(O,j,E,C,k,7,s[12]),C=l(C,O,j,E,B,12,s[13]),E=l(E,C,O,j,S,17,s[14]),O=u(O,j=l(j,E,C,O,A,22,s[15]),E,C,c,5,s[16]),C=u(C,O,j,E,g,9,s[17]),E=u(E,C,O,j,w,14,s[18]),j=u(j,E,C,O,a,20,s[19]),O=u(O,j,E,C,y,5,s[20]),C=u(C,O,j,E,m,9,s[21]),E=u(E,C,O,j,A,14,s[22]),j=u(j,E,C,O,v,20,s[23]),O=u(O,j,E,C,x,5,s[24]),C=u(C,O,j,E,S,9,s[25]),E=u(E,C,O,j,d,14,s[26]),j=u(j,E,C,O,b,20,s[27]),O=u(O,j,E,C,B,5,s[28]),C=u(C,O,j,E,p,9,s[29]),E=u(E,C,O,j,_,14,s[30]),O=f(O,j=u(j,E,C,O,k,20,s[31]),E,C,y,4,s[32]),C=f(C,O,j,E,b,11,s[33]),E=f(E,C,O,j,w,16,s[34]),j=f(j,E,C,O,S,23,s[35]),O=f(O,j,E,C,c,4,s[36]),C=f(C,O,j,E,v,11,s[37]),E=f(E,C,O,j,_,16,s[38]),j=f(j,E,C,O,m,23,s[39]),O=f(O,j,E,C,B,4,s[40]),C=f(C,O,j,E,a,11,s[41]),E=f(E,C,O,j,d,16,s[42]),j=f(j,E,C,O,g,23,s[43]),O=f(O,j,E,C,x,4,s[44]),C=f(C,O,j,E,k,11,s[45]),E=f(E,C,O,j,A,16,s[46]),O=h(O,j=f(j,E,C,O,p,23,s[47]),E,C,a,6,s[48]),C=h(C,O,j,E,_,10,s[49]),E=h(E,C,O,j,S,15,s[50]),j=h(j,E,C,O,y,21,s[51]),O=h(O,j,E,C,k,6,s[52]),C=h(C,O,j,E,d,10,s[53]),E=h(E,C,O,j,m,15,s[54]),j=h(j,E,C,O,c,21,s[55]),O=h(O,j,E,C,b,6,s[56]),C=h(C,O,j,E,A,10,s[57]),E=h(E,C,O,j,g,15,s[58]),j=h(j,E,C,O,B,21,s[59]),O=h(O,j,E,C,v,6,s[60]),C=h(C,O,j,E,w,10,s[61]),E=h(E,C,O,j,p,15,s[62]),j=h(j,E,C,O,x,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+j|0,o[2]=o[2]+E|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function u(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),t.MD5)),F.exports;var t}var V,I={exports:{}};function N(){return V||(V=1,I.exports=(s=x(),e=(t=s).lib,r=e.WordArray,n=e.Hasher,i=t.algo,o=[],a=i.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)o[l]=0|t[e+l];else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var f=(n<<5|n>>>27)+c+o[l];f+=l<20?1518500249+(i&a|~i&s):l<40?1859775393+(i^a^s):l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=n._createHelper(a),t.HmacSHA1=n._createHmacHelper(a),s.SHA1)),I.exports;var t,e,r,n,i,o,a,s}var W,T={exports:{}};function U(){return W||(W=1,T.exports=(t=x(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)l[p]=0|t[e+p];else{var d=l[p-15],v=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=l[p-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[p]=v+l[p-7]+g+l[p-16]}var _=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[p]+l[p];h=f,f=u,u=s,s=a+x|0,a=o,o=i,i=n,n=x+(b+_)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)),T.exports;var t}var K,L={exports:{}};var X,J={exports:{}};function q(){return X||(X=1,J.exports=(t=x(),k(),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var u=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],p=n.high,d=n.low,v=i.high,y=i.low,g=o.high,_=o.low,b=a.high,x=a.low,m=s.high,w=s.low,k=u.high,B=u.low,S=f.high,A=f.low,O=h.high,j=h.low,E=p,C=d,H=v,z=y,D=g,R=_,M=b,P=x,F=m,$=w,V=k,I=B,N=S,W=A,T=O,U=j,K=0;K<80;K++){var L,X,J=l[K];if(K<16)X=J.high=0|t[e+2*K],L=J.low=0|t[e+2*K+1];else{var q=l[K-15],Z=q.high,G=q.low,Q=(Z>>>1|G<<31)^(Z>>>8|G<<24)^Z>>>7,Y=(G>>>1|Z<<31)^(G>>>8|Z<<24)^(G>>>7|Z<<25),tt=l[K-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),ot=l[K-7],at=ot.high,st=ot.low,ct=l[K-16],lt=ct.high,ut=ct.low;X=(X=(X=Q+at+((L=Y+st)>>>0<Y>>>0?1:0))+nt+((L+=it)>>>0<it>>>0?1:0))+lt+((L+=ut)>>>0<ut>>>0?1:0),J.high=X,J.low=L}var ft,ht=F&V^~F&N,pt=$&I^~$&W,dt=E&H^E&D^H&D,vt=C&z^C&R^z&R,yt=(E>>>28|C<<4)^(E<<30|C>>>2)^(E<<25|C>>>7),gt=(C>>>28|E<<4)^(C<<30|E>>>2)^(C<<25|E>>>7),_t=(F>>>14|$<<18)^(F>>>18|$<<14)^(F<<23|$>>>9),bt=($>>>14|F<<18)^($>>>18|F<<14)^($<<23|F>>>9),xt=c[K],mt=xt.high,wt=xt.low,kt=T+_t+((ft=U+bt)>>>0<U>>>0?1:0),Bt=gt+vt;T=N,U=W,N=V,W=I,V=F,I=$,F=M+(kt=(kt=(kt=kt+ht+((ft+=pt)>>>0<pt>>>0?1:0))+mt+((ft+=wt)>>>0<wt>>>0?1:0))+X+((ft+=L)>>>0<L>>>0?1:0))+(($=P+ft|0)>>>0<P>>>0?1:0)|0,M=D,P=R,D=H,R=z,H=E,z=C,E=kt+(yt+dt+(Bt>>>0<gt>>>0?1:0))+((C=ft+Bt|0)>>>0<ft>>>0?1:0)|0}d=n.low=d+C,n.high=p+E+(d>>>0<C>>>0?1:0),y=i.low=y+z,i.high=v+H+(y>>>0<z>>>0?1:0),_=o.low=_+R,o.high=g+D+(_>>>0<R>>>0?1:0),x=a.low=x+P,a.high=b+M+(x>>>0<P>>>0?1:0),w=s.low=w+$,s.high=m+F+(w>>>0<$>>>0?1:0),B=u.low=B+I,u.high=k+V+(B>>>0<I>>>0?1:0),A=f.low=A+W,f.high=S+N+(A>>>0<W>>>0?1:0),j=h.low=j+U,h.high=O+T+(j>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)),J.exports;var t}var Z,G={exports:{}};var Q,Y={exports:{}};function tt(){return Q||(Q=1,Y.exports=(t=x(),k(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,c=[],l=[],u=[];!function(){for(var t=1,e=0,r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var n=(2*t+3*e)%5;t=e%5,e=n}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var p=(1<<h)-1;p<32?f^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,f)}}();var f=[];!function(){for(var t=0;t<25;t++)f[t]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(j=r[i]).high^=a,j.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,d=0,v=0;v<5;v++)p^=(j=r[h+5*v]).high,d^=j.low;var y=f[h];y.high=p,y.low=d}for(h=0;h<5;h++){var g=f[(h+4)%5],_=f[(h+1)%5],b=_.high,x=_.low;for(p=g.high^(b<<1|x>>>31),d=g.low^(x<<1|b>>>31),v=0;v<5;v++)(j=r[h+5*v]).high^=p,j.low^=d}for(var m=1;m<25;m++){var w=(j=r[m]).high,k=j.low,B=c[m];B<32?(p=w<<B|k>>>32-B,d=k<<B|w>>>32-B):(p=k<<B-32|w>>>64-B,d=w<<B-32|k>>>64-B);var S=f[l[m]];S.high=p,S.low=d}var A=f[0],O=r[0];for(A.high=O.high,A.low=O.low,h=0;h<5;h++)for(v=0;v<5;v++){var j=r[m=h+5*v],E=f[m],C=f[(h+1)%5+5*v],H=f[(h+2)%5+5*v];j.high=E.high^~C.high&H.high,j.low=E.low^~C.low&H.low}j=r[0];var z=u[s];j.high^=z.high,j.low^=z.low}},_doFinalize:function(){var t=this._data,r=t.words;this._nDataBytes;var n=8*t.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var f=a[u],h=f.high,p=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(h)}return new i.init(l,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),t.SHA3)),Y.exports;var t}var et,rt={exports:{}};var nt,it={exports:{}};function ot(){return nt||(nt=1,it.exports=(t=x(),r=(e=t).lib.Base,n=e.enc.Utf8,void(e.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var r=t.blockSize,i=4*r;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))),it.exports;var t,e,r,n}var at,st={exports:{}};var ct,lt={exports:{}};function ut(){return ct||(ct=1,lt.exports=(s=x(),N(),ot(),e=(t=s).lib,r=e.Base,n=e.WordArray,i=t.algo,o=i.MD5,a=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,i=this.cfg,o=i.hasher.create(),a=n.create(),s=a.words,c=i.keySize,l=i.iterations;s.length<c;){r&&o.update(r),r=o.update(t).finalize(e),o.reset();for(var u=1;u<l;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(t,e,r){return a.create(r).compute(t,e)},s.EvpKDF)),lt.exports;var t,e,r,n,i,o,a,s}var ft,ht={exports:{}};function pt(){return ft||(ft=1,ht.exports=(t=x(),ut(),void(t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,l=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:g}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},h=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=f.CBC=function(){var t=h.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);n.decryptBlock(t,e),r.call(this,t,e,i),this._prevBlock=o}}),t}(),d=(r.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:d}),reset:function(){var t;u.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var v=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(r.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(e):e).toString(c)},parse:function(t){var e,r=c.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:e})}},g=n.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=(r.kdf={}).OpenSSL={execute:function(t,e,r,n,i){if(n||(n=o.random(8)),i)a=l.create({keySize:e+r,hasher:i}).compute(t,n);else var a=l.create({keySize:e+r}).compute(t,n);var s=o.create(a.words.slice(e),4*r);return a.sigBytes=4*e,v.create({key:a,iv:s,salt:n})}},b=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:_}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=g.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt,n.hasher);return n.iv=i.iv,g.decrypt.call(this,t,e,i.key,n)}})}()))),ht.exports;var t}var dt,vt={exports:{}};function yt(){return dt||(dt=1,vt.exports=(t=x(),pt(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)t[e+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=o}}),e}(),t.mode.CFB)),vt.exports;var t}var gt,_t={exports:{}};function bt(){return gt||(gt=1,_t.exports=(r=x(),pt(),r.mode.CTR=(t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)t[e+s]^=a[s]}}),t.Decryptor=e,t),r.mode.CTR)),_t.exports;var t,e,r}var xt,mt={exports:{}};function wt(){return xt||(xt=1,mt.exports=(t=x(),pt(),
|
|
2
2
|
/** @preserve
|
|
3
3
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
4
4
|
* derived from CryptoJS.mode.CTR
|
|
@@ -15,5 +15,4 @@ 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]),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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),f=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,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,h,b,x,m,w,k,B,S,A,O,j=this._hash.words,E=u.words,C=f.words,H=a.words,z=s.words,D=c.words,R=l.words;for(w=o=j[0],k=h=j[1],B=b=j[2],S=x=j[3],A=m=j[4],r=0;r<80;r+=1)O=o+t[e+H[r]]|0,O+=r<16?p(h,b,x)+E[0]:r<32?d(h,b,x)+E[1]:r<48?v(h,b,x)+E[2]:r<64?y(h,b,x)+E[3]:g(h,b,x)+E[4],O=(O=_(O|=0,D[r]))+m|0,o=m,m=x,x=_(b,10),b=h,h=O,O=w+t[e+z[r]]|0,O+=r<16?g(k,B,S)+C[0]:r<32?y(k,B,S)+C[1]:r<48?v(k,B,S)+C[2]:r<64?d(k,B,S)+C[3]:p(k,B,S)+C[4],O=(O=_(O|=0,R[r]))+A|0,w=A,A=S,S=_(B,10),B=k,k=O;O=j[1]+b+S|0,j[1]=j[2]+x+A|0,j[2]=j[3]+m+w|0,j[3]=j[4]+o+k|0,j[4]=j[0]+h+B|0,j[0]=O},_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 g(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(),t.RIPEMD160)),rt.exports;var t}(),ot(),function(){return at||(at=1,st.exports=(c=x(),U(),ot(),e=(t=c).lib,r=e.Base,n=e.WordArray,i=t.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,i=a.create(r.hasher,t),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,f=r.iterations;c.length<u;){var h=i.update(e).finalize(s);i.reset();for(var p=h.words,d=p.length,v=h,y=1;y<f;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*u,o}}),t.PBKDF2=function(t,e,r){return s.create(r).compute(t,e)},c.PBKDF2)),st.exports;var t,e,r,n,i,o,a,s,c}(),ut(),pt(),yt(),bt(),wt(),St(),function(){return At?Ot.exports:(At=1,Ot.exports=(e=x(),pt(),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 jt?Et.exports:(jt=1,Et.exports=(t=x(),pt(),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 Ct?Ht.exports:(Ct=1,Ht.exports=(t=x(),pt(),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 zt?Dt.exports:(zt=1,Dt.exports=(t=x(),pt(),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 Rt||(Rt=1,Mt.exports=(t=x(),pt(),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)),Mt.exports;var t}(),function(){return Pt?Ft.exports:(Pt=1,Ft.exports=(t=x(),pt(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return $t?Vt.exports:($t=1,Vt.exports=(n=x(),pt(),e=(t=n).lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var n=r.parse(t);return e.create({ciphertext:n})}},n.format.Hex));var t,e,r,n}(),function(){return It||(It=1,Nt.exports=(t=x(),z(),$(),ut(),pt(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],f=[],h=[],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],g=t[y],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,f[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[g^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]:(l=o[a-1],a%r?r>6&&a%r==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/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^f[i[l>>>16&255]]^h[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,l,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,u,f,h,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,l=t[e]^r[0],u=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],y=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++],_=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[p++];l=v,u=y,f=g,h=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],y=(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++],_=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),Nt.exports;var t}(),Ut(),function(){return Kt||(Kt=1,Lt.exports=(t=x(),z(),$(),ut(),pt(),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)),Lt.exports;var t}(),function(){return Xt||(Xt=1,Jt.exports=(t=x(),z(),$(),ut(),pt(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(i[0]^=l,i[1]^=f,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=f,i[6]^=u,i[7]^=h,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=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}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Jt.exports;var t}(),function(){return qt||(qt=1,Zt.exports=(t=x(),z(),$(),ut(),pt(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(n[0]^=l,n[1]^=f,n[2]^=u,n[3]^=h,n[4]^=l,n[5]^=f,n[6]^=u,n[7]^=h,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=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}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Zt.exports;var t}(),Yt())),y.exports),ce=h(se),le="en",ue=["singular","plural","dual","zero","one","two","few","many","other"];var fe=new(function(){function t(){this.cache=new Map}return t.prototype._generateKey=function(t,e,r){void 0===r&&(r={});var n=Array.isArray(e)?e.join(","):e,i=r?JSON.stringify(r,Object.keys(r).sort()):"{}";return"".concat(t,":").concat(n,":").concat(i)},t.prototype.get=function(t,e,r){void 0===r&&(r={});var n=this._generateKey(t,e,r);if(!this.cache.has(n)){var i=new Intl[t](e,r);this.cache.set(n,i)}return this.cache.get(n)},t}());function he(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 pe={variable:"v",number:"n",datetime:"d",currency:"c"};function de(t){return pe[t]}"function"==typeof SuppressedError&&SuppressedError;const ve={variable:"value",number:"n",datetime:"date",currency:"cost"};function ye(t={},e){var r;if(t.name)return t.name;return`_gt_${ve[e]||"value"}_${null===(r=t["data-_gt"])||void 0===r?void 0:r.id}`}var ge={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const _e=t=>{var e;if(!t)return"";const{type:r,props:n}=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:n.href?"a":(null===(e=n["data-_gt"])||void 0===e?void 0:e.id)?`C${n["data-_gt"].id}`:"function"},be=t=>{const{props:e}=t,r={t:_e(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=ye(e,r),i=de(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(ge).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]=me(r)}),n=Object.assign(Object.assign({},n),{b:t,t:"p"})}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=me(r)}),n=Object.assign(Object.assign({},n),{b:t,t:"b"})}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(ge).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]=me(r)}),i=Object.assign(Object.assign({},i),{b:e,t:"p"})}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=me(r)}),i=Object.assign(Object.assign({},i),{b:e,t:"b"})}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=me(e.children)),r},xe=e=>{return r=e,t.isValidElement(r)?be(e):"number"==typeof e?e.toString():e;var r};function me(t){return Array.isArray(t)?t.map(xe):xe(t)}function we(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=ue),void 0===r&&(r=["en"]);var n=fe.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 ke(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=o(r,t)}return r}function Be(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 Se(t){var e;return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===(null===(e=t["data-_gt"])||void 0===e?void 0:e.transformation)}function Ae(t){var e;const r=(null===(e=t["data-_gt"])||void 0===e?void 0:e.variableType)||"variable";return{variableName:ye(t,r),variableType:de(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 e=Object.assign(Object.assign({},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 Oe(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function je({children:e,defaultLocale:r=le,renderVariable:n}){const i=e=>t.isValidElement(e)?(e=>{const i=Oe(e);if(Se(e.props)){const{variableType:t,variableValue:i,variableOptions:o}=Ae(e.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[r]})}if("plural"===(null==i?void 0:i.transformation)){const t=i.branches||{};return o(we(e.props.n,[r],t)||e.props.children)}if("branch"===(null==i?void 0:i.transformation)){let t=e.props,{children:r,branch:n,"data-_gt":a}=t,s=c(t,["children","branch","data-_gt"]);return s=i.branches||{},o(void 0!==s[n]?s[n]:r)}return"fragment"===(null==i?void 0:i.transformation)?t.createElement(t.Fragment,{key:e.props.key,children:o(e.props.children)}):e.props.children?t.cloneElement(e,Object.assign(Object.assign({},e.props),{"data-_gt":void 0,children:o(e.props.children)})):t.cloneElement(e,Object.assign(Object.assign({},e.props),{"data-_gt":void 0}))})(e):e,o=e=>Array.isArray(e)?t.Children.map(e,i):i(e);return o(e)}function Ee({sourceElement:e,targetElement:r,locales:n=[le],renderVariable:i}){var o,a;const{props:s}=e,c=s["data-_gt"],l=null==c?void 0:c.transformation,u=r.d,f={};if(u&&Object.entries(ge).forEach(([t,e])=>{u[t]&&(f[e]=u[t])}),"plural"===l){const t=e.props.n;return Ce({source:we(t,n,c.branches||{})||e.props.children,target:we(t,n,(null===(o=r.d)||void 0===o?void 0:o.b)||{})||r.c,locales:n,renderVariable:i})}if("branch"===l){const{branch:t,children:e}=s;return Ce({source:(c.branches||{})[t]||e,target:((null===(a=r.d)||void 0===a?void 0:a.b)||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===l&&r.c?t.createElement(t.Fragment,{key:e.props.key,children:Ce({source:s.children,target:r.c,locales:n,renderVariable:i})}):(null==s?void 0:s.children)&&(null==r?void 0:r.c)?t.cloneElement(e,Object.assign(Object.assign(Object.assign({},s),f),{"data-_gt":void 0,children:Ce({source:s.children,target:r.c,locales:n,renderVariable:i})})):je({children:e,defaultLocale:n[0],renderVariable:i})}function Ce({source:r,target:n,locales:i=[le],renderVariable:o}){if(null==n&&r)return je({children:r,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(r)&&r&&(r=[r]),Array.isArray(r)&&Array.isArray(n)){const a={},s={},c=r.filter(e=>{if(t.isValidElement(e)){if(!Se(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n}=Ae(e.props);a[t]=r,s[t]=n}}return!1}),l=t=>c.find(e=>{const r=Oe(e);if(void 0!==(null==r?void 0:r.id)){return r.id===t.i}return!1})||c.shift();return n.map((r,n)=>{if("string"==typeof r)return e.jsx(t.Fragment,{children:r},`string_${n}`);if(he(r))return e.jsx(t.Fragment,{children:o({variableType:r.v||"v",variableValue:a[r.k],variableOptions:s[r.k],locales:i})},`var_${n}`);const c=l(r);return c?e.jsx(t.Fragment,{children:Ee({sourceElement:c,targetElement:r,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const e=he(n)?"variable":"element";if(t.isValidElement(r)){if("element"===e)return Ee({sourceElement:r,targetElement:n,locales:i,renderVariable:o});if(Se(r.props)){const{variableValue:t,variableOptions:e,variableType:n}=Ae(r.props);return o({variableType:n,variableValue:t,variableOptions:e,locales:i})}}}return je({children:r,defaultLocale:i[0],renderVariable:o})}const He={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};var ze=function(){return ze=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},ze.apply(this,arguments)};function De(t){return ce.SHA256(t).toString(ce.enc.Hex).slice(0,16)}function Re(t,e){var r=t.source,n=t.context,i=t.id,o=t.dataFormat;void 0===e&&(e=De);var a={};return a.source="JSX"===o?Pe(r):r,a=ze(ze(ze(ze({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),e(v(a))}"function"==typeof SuppressedError&&SuppressedError;var Me=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Pe(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],Pe(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)?ze({k:t.k},t.v&&{v:t.v}):e}return t};function Pe(t){return Array.isArray(t)?t.map(Me):Me(t)}function Fe(t){return void 0!==t&&(null===t||"object"!=typeof t||!!Array.isArray(t)&&((1===t.length||2===t.length)&&(("object"!=typeof t[0]||null===t[0])&&(2!==t.length||"object"==typeof t[1]&&null!==t[1]&&("$context"in t[1]||"$_hash"in t[1])))))}function $e(t,e){if(Array.isArray(t))return t.map((t,r)=>Fe(t)?e[r]:$e(t,e[r]));const r=Object.assign(Object.assign({},Object.fromEntries(Object.entries(t).filter(([,t])=>Fe(t)))),Object.fromEntries(Object.entries(e).filter(([,t])=>Fe(t)))),n=Object.entries(t).filter(([,t])=>!Fe(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>!Fe(t)).map(([t])=>t),a=new Set([...n,...i]);for(const n of a)r[n]=$e(o(t,n)||{},o(e,n)||{});return r}const Ve="function"==typeof i.use;function Ie({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=o(r,t);return r}const Ne=["constructor","prototype","__proto__"];function We(t,e,r,n){if(Fe(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!Ne.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||(e={});for(const t of i.slice(0,-1))void 0===o(e,t)&&a(e,t,Array.isArray(o(n,t))?[]:{}),e=o(e,t),n=o(n,t);a(e,i[i.length-1],t)}const Te=t=>`gt-react Error: Dictionary subtree not found for id: "${t}"`;exports.addGTIdentifier=function e(r,n=0){let i=n;const o=t=>{const{type:r,props:n}=t;i+=1;const o={id:i};let a;try{a="function"==typeof r&&r._gtt||""}catch(t){}if(a){const t=a.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[r,n])=>(function(t){return ue.includes(t)}(r)&&(t[r]=e(n,i)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:r}=n,a=c(n,["children","branch"]),s=Object.entries(a).reduce((t,[r,n])=>(t[r]=e(n,i),t),{});Object.keys(s).length&&(o.branches=s)}o.transformation=t[0]}return o};function a(e){return t.isValidElement(e)?function(e){const{props:r}=e,n=o(e),i=Object.assign(Object.assign({},r),{"data-_gt":n});return r.children&&!n.variableType&&(i.children=s(r.children)),e.type===t.Fragment&&(i["data-_gt"].transformation="fragment"),t.cloneElement(e,i)}(e):e}function s(e){return Array.isArray(e)?t.Children.map(e,a):a(e)}return s(r)},exports.collectUntranslatedEntries=function t(e,r,n=""){const i=[];return Object.entries(e).forEach(([e,a])=>{const s=n?`${n}.${e}`:e;if(Fe(a)){const{entry:t,metadata:n}=Be(a);void 0===o(r,e)&&i.push({source:t,metadata:{$id:s,$context:null==n?void 0:n.$context,$_hash:(null==n?void 0:n.$_hash)||""}})}else{let n=o(r,e);void 0===n&&(n=Array.isArray(a)?[]:{}),i.push(...t(a,n,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 e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(Buffer.from(e,"base64").toString())}catch(t){return null}},exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.defaultRenderSettings=He,exports.flattenDictionary=function t(e,r=""){const n={};for(const i in e)if(e.hasOwnProperty(i)){const a=r?`${r}.${i}`:i;if("object"!=typeof o(e,i)||null===o(e,i)||Array.isArray(o(e,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(e,i)}else{const r=t(o(e,i),a);for(const t in r){if(n.hasOwnProperty(t))throw new Error(s(t));n[t]=r[t]}}}return n},exports.getDictionaryEntry=ke,exports.getEntryAndMetadata=Be,exports.getPluralBranch=we,exports.getSubtree=Ie,exports.getSubtreeWithCreation=function({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,s=e.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=ye,exports.getVariableProps=Ae,exports.injectAndMerge=function(t,e,r){const n=Ie({dictionary:t,id:r});if(!n)throw new Error(Te(r));if(Fe(n))throw new Error("gt-react Error: Cannot inject and merge a dictionary entry");return function(t,e,r){const n=ke(t,r);if(!n)throw new Error(Te(r));if(Fe(n))throw new Error("gt-react Error: Cannot inject and merge a dictionary entry");const i=r.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,e),t}(t,$e(n,e),r)},exports.injectEntry=We,exports.injectFallbacks=function(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=ke(e,a);let c;Fe(s)&&(c=Be(s).entry);We(c||r,e,a,t)}),e},exports.injectHashes=function t(e,r=""){let n=!1;return Object.entries(e).forEach(([i,o])=>{const s=r?`${r}.${i}`:i;if(Fe(o)){let{entry:t,metadata:r}=Be(o);(null==r?void 0:r.$_hash)||(r||(r={}),r.$_hash=Re(Object.assign(Object.assign({source:t||""},(null==r?void 0:r.$context)&&{context:r.$context}),{id:s,dataFormat:"ICU"})),a(e,i,[t,r]),n=!0)}else{const{updateDictionary:e}=t(o,s);n=n||e}}),{dictionary:e,updateDictionary:n}},exports.injectTranslations=function(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,l=ke(e,c);let u;Fe(l)&&(u=Be(l).entry);const f=r[i]||u;f&&(We(f,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}},exports.isDictionaryEntry=Fe,exports.isValidDictionaryEntry=function(t){if("object"!=typeof t||null===t)return!0;if(Array.isArray(t)){if("object"==typeof(null==t?void 0:t[0])&&null!==(null==t?void 0:t[0]))return!1;const e=null==t?void 0:t[1];if(void 0===e)return!0;if(e&&"object"==typeof e)return!0}return!1},exports.isVariableObject=function(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},exports.mergeDictionaries=$e,exports.msg=function(t,e){const n=(null==e?void 0:e.$_hash)||Re(Object.assign(Object.assign(Object.assign({source:t},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),{dataFormat:"ICU"}));e?(e.$_hash=n,e.$_source=t):e={$_hash:n,$_source:t};const i=Buffer.from(JSON.stringify(e)).toString("base64");let o=t;(function(t){let e=0,r=!1;for(;e<t.length;){const n=t[e];if("'"!==n){if(!r&&"{"===n){let r=e+1,n="";for(;r<t.length&&"}"!==t[r];)n+=t[r],r++;if(r<t.length&&n.trim().length>0)return!0;e=r<t.length?r+1:r;continue}e++}else{if(e+1<t.length&&"'"===t[e+1]){e+=2;continue}r=!r,e++}}return!1})(t)&&Object.keys(e||{}).length>2&&(o=r.formatMessage(t,{locales:[le],variables:e}));let a=o;return i&&(a+=`:${i}`),a},exports.reactHasUse=Ve,exports.renderDefaultChildren=je,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Ce,exports.stripMetadataFromEntries=function t(e){let r={};return Array.isArray(e)&&(r=[]),Object.entries(e).forEach(([e,n])=>{if(Fe(n)){const{entry:t}=Be(n);a(r,e,t)}else a(r,e,t(n))}),r},exports.writeChildrenAsObjects=me;
|
|
19
|
-
//# sourceMappingURL=internal.cjs.min.cjs.map
|
|
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]),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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),f=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,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,h,b,x,m,w,k,B,S,A,O,j=this._hash.words,E=u.words,C=f.words,H=a.words,z=s.words,D=c.words,R=l.words;for(w=o=j[0],k=h=j[1],B=b=j[2],S=x=j[3],A=m=j[4],r=0;r<80;r+=1)O=o+t[e+H[r]]|0,O+=r<16?p(h,b,x)+E[0]:r<32?d(h,b,x)+E[1]:r<48?v(h,b,x)+E[2]:r<64?y(h,b,x)+E[3]:g(h,b,x)+E[4],O=(O=_(O|=0,D[r]))+m|0,o=m,m=x,x=_(b,10),b=h,h=O,O=w+t[e+z[r]]|0,O+=r<16?g(k,B,S)+C[0]:r<32?y(k,B,S)+C[1]:r<48?v(k,B,S)+C[2]:r<64?d(k,B,S)+C[3]:p(k,B,S)+C[4],O=(O=_(O|=0,R[r]))+A|0,w=A,A=S,S=_(B,10),B=k,k=O;O=j[1]+b+S|0,j[1]=j[2]+x+A|0,j[2]=j[3]+m+w|0,j[3]=j[4]+o+k|0,j[4]=j[0]+h+B|0,j[0]=O},_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 g(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(),t.RIPEMD160)),rt.exports;var t}(),ot(),function(){return at||(at=1,st.exports=(c=x(),U(),ot(),e=(t=c).lib,r=e.Base,n=e.WordArray,i=t.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,i=a.create(r.hasher,t),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,f=r.iterations;c.length<u;){var h=i.update(e).finalize(s);i.reset();for(var p=h.words,d=p.length,v=h,y=1;y<f;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*u,o}}),t.PBKDF2=function(t,e,r){return s.create(r).compute(t,e)},c.PBKDF2)),st.exports;var t,e,r,n,i,o,a,s,c}(),ut(),pt(),yt(),bt(),wt(),St(),function(){return At?Ot.exports:(At=1,Ot.exports=(e=x(),pt(),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 jt?Et.exports:(jt=1,Et.exports=(t=x(),pt(),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 Ct?Ht.exports:(Ct=1,Ht.exports=(t=x(),pt(),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 zt?Dt.exports:(zt=1,Dt.exports=(t=x(),pt(),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 Rt||(Rt=1,Mt.exports=(t=x(),pt(),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)),Mt.exports;var t}(),function(){return Pt?Ft.exports:(Pt=1,Ft.exports=(t=x(),pt(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return $t?Vt.exports:($t=1,Vt.exports=(n=x(),pt(),e=(t=n).lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var n=r.parse(t);return e.create({ciphertext:n})}},n.format.Hex));var t,e,r,n}(),function(){return It||(It=1,Nt.exports=(t=x(),z(),$(),ut(),pt(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],f=[],h=[],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],g=t[y],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,f[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[g^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]:(l=o[a-1],a%r?r>6&&a%r==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/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^f[i[l>>>16&255]]^h[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,l,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,u,f,h,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,l=t[e]^r[0],u=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],y=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++],_=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[p++];l=v,u=y,f=g,h=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],y=(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++],_=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),Nt.exports;var t}(),Ut(),function(){return Kt||(Kt=1,Lt.exports=(t=x(),z(),$(),ut(),pt(),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)),Lt.exports;var t}(),function(){return Xt||(Xt=1,Jt.exports=(t=x(),z(),$(),ut(),pt(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(i[0]^=l,i[1]^=f,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=f,i[6]^=u,i[7]^=h,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=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}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Jt.exports;var t}(),function(){return qt||(qt=1,Zt.exports=(t=x(),z(),$(),ut(),pt(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(n[0]^=l,n[1]^=f,n[2]^=u,n[3]^=h,n[4]^=l,n[5]^=f,n[6]^=u,n[7]^=h,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=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}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Zt.exports;var t}(),Yt())),y.exports),ce=h(se),le="en",ue=["singular","plural","dual","zero","one","two","few","many","other"];var fe=new(function(){function t(){this.cache=new Map}return t.prototype._generateKey=function(t,e,r){void 0===r&&(r={});var n=Array.isArray(e)?e.join(","):e,i=r?JSON.stringify(r,Object.keys(r).sort()):"{}";return"".concat(t,":").concat(n,":").concat(i)},t.prototype.get=function(t,e,r){void 0===r&&(r={});var n=this._generateKey(t,e,r);if(!this.cache.has(n)){var i=new Intl[t](e,r);this.cache.set(n,i)}return this.cache.get(n)},t}());function he(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 pe={variable:"v",number:"n",datetime:"d",currency:"c"};function de(t){return pe[t]}"function"==typeof SuppressedError&&SuppressedError;const ve={variable:"value",number:"n",datetime:"date",currency:"cost"};function ye(t={},e){var r;if(t.name)return t.name;return`_gt_${ve[e]||"value"}_${null===(r=t["data-_gt"])||void 0===r?void 0:r.id}`}var ge={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const _e=t=>{var e;if(!t)return"";const{type:r,props:n}=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:n.href?"a":(null===(e=n["data-_gt"])||void 0===e?void 0:e.id)?`C${n["data-_gt"].id}`:"function"},be=t=>{const{props:e}=t,r={t:_e(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=ye(e,r),i=de(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(ge).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]=me(r)}),n=Object.assign(Object.assign({},n),{b:t,t:"p"})}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=me(r)}),n=Object.assign(Object.assign({},n),{b:t,t:"b"})}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(ge).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]=me(r)}),i=Object.assign(Object.assign({},i),{b:e,t:"p"})}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=me(r)}),i=Object.assign(Object.assign({},i),{b:e,t:"b"})}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=me(e.children)),r},xe=e=>{return r=e,t.isValidElement(r)?be(e):"number"==typeof e?e.toString():e;var r};function me(t){return Array.isArray(t)?t.map(xe):xe(t)}function we(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=ue),void 0===r&&(r=["en"]);var n=fe.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 ke(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=o(r,t)}return r}function Be(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 Se(t){var e;return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===(null===(e=t["data-_gt"])||void 0===e?void 0:e.transformation)}function Ae(t){var e;const r=(null===(e=t["data-_gt"])||void 0===e?void 0:e.variableType)||"variable";return{variableName:ye(t,r),variableType:de(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 e=Object.assign(Object.assign({},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 Oe(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function je({children:e,defaultLocale:r=le,renderVariable:n}){const i=e=>t.isValidElement(e)?(e=>{const i=Oe(e);if(Se(e.props)){const{variableType:t,variableValue:i,variableOptions:o}=Ae(e.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[r]})}if("plural"===(null==i?void 0:i.transformation)){const t=i.branches||{};return o(we(e.props.n,[r],t)||e.props.children)}if("branch"===(null==i?void 0:i.transformation)){let t=e.props,{children:r,branch:n,"data-_gt":a}=t,s=c(t,["children","branch","data-_gt"]);return s=i.branches||{},o(void 0!==s[n]?s[n]:r)}return"fragment"===(null==i?void 0:i.transformation)?t.createElement(t.Fragment,{key:e.props.key,children:o(e.props.children)}):e.props.children?t.cloneElement(e,Object.assign(Object.assign({},e.props),{"data-_gt":void 0,children:o(e.props.children)})):t.cloneElement(e,Object.assign(Object.assign({},e.props),{"data-_gt":void 0}))})(e):e,o=e=>Array.isArray(e)?t.Children.map(e,i):i(e);return o(e)}function Ee({sourceElement:e,targetElement:r,locales:n=[le],renderVariable:i}){var o,a;const{props:s}=e,c=s["data-_gt"],l=null==c?void 0:c.transformation,u=r.d,f={};if(u&&Object.entries(ge).forEach(([t,e])=>{u[t]&&(f[e]=u[t])}),"plural"===l){const t=e.props.n;return Ce({source:we(t,n,c.branches||{})||e.props.children,target:we(t,n,(null===(o=r.d)||void 0===o?void 0:o.b)||{})||r.c,locales:n,renderVariable:i})}if("branch"===l){const{branch:t,children:e}=s;return Ce({source:(c.branches||{})[t]||e,target:((null===(a=r.d)||void 0===a?void 0:a.b)||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===l&&r.c?t.createElement(t.Fragment,{key:e.props.key,children:Ce({source:s.children,target:r.c,locales:n,renderVariable:i})}):(null==s?void 0:s.children)&&(null==r?void 0:r.c)?t.cloneElement(e,Object.assign(Object.assign(Object.assign({},s),f),{"data-_gt":void 0,children:Ce({source:s.children,target:r.c,locales:n,renderVariable:i})})):je({children:e,defaultLocale:n[0],renderVariable:i})}function Ce({source:r,target:n,locales:i=[le],renderVariable:o}){if(null==n&&r)return je({children:r,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(r)&&r&&(r=[r]),Array.isArray(r)&&Array.isArray(n)){const a={},s={},c=r.filter(e=>{if(t.isValidElement(e)){if(!Se(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n}=Ae(e.props);a[t]=r,s[t]=n}}return!1}),l=t=>c.find(e=>{const r=Oe(e);if(void 0!==(null==r?void 0:r.id)){return r.id===t.i}return!1})||c.shift();return n.map((r,n)=>{if("string"==typeof r)return e.jsx(t.Fragment,{children:r},`string_${n}`);if(he(r))return e.jsx(t.Fragment,{children:o({variableType:r.v||"v",variableValue:a[r.k],variableOptions:s[r.k],locales:i})},`var_${n}`);const c=l(r);return c?e.jsx(t.Fragment,{children:Ee({sourceElement:c,targetElement:r,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const e=he(n)?"variable":"element";if(t.isValidElement(r)){if("element"===e)return Ee({sourceElement:r,targetElement:n,locales:i,renderVariable:o});if(Se(r.props)){const{variableValue:t,variableOptions:e,variableType:n}=Ae(r.props);return o({variableType:n,variableValue:t,variableOptions:e,locales:i})}}}return je({children:r,defaultLocale:i[0],renderVariable:o})}const He={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};var ze=function(){return ze=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},ze.apply(this,arguments)};function De(t){return ce.SHA256(t).toString(ce.enc.Hex).slice(0,16)}function Re(t,e){var r=t.source,n=t.context,i=t.id,o=t.dataFormat;void 0===e&&(e=De);var a={};return a.source="JSX"===o?Pe(r):r,a=ze(ze(ze(ze({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),e(v(a))}"function"==typeof SuppressedError&&SuppressedError;var Me=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Pe(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],Pe(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)?ze({k:t.k},t.v&&{v:t.v}):e}return t};function Pe(t){return Array.isArray(t)?t.map(Me):Me(t)}function Fe(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 $e=t=>"string"==typeof t||Array.isArray(t),Ve=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function Ie(t,e){if(Array.isArray(t))return t.map((t,r)=>Fe(t)?e[r]:Ie(t,e[r]));const r=Object.assign(Object.assign({},Object.fromEntries(Object.entries(t).filter(([,t])=>$e(t)))),Object.fromEntries(Object.entries(e).filter(([,t])=>$e(t)))),n=Object.entries(t).filter(([,t])=>Ve(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>Ve(t)).map(([t])=>t),a=new Set([...n,...i]);for(const n of a)r[n]=Ie(o(t,n)||{},o(e,n)||{});return r}const Ne="function"==typeof i.use;function We({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=o(r,t);return r}const Te=["constructor","prototype","__proto__"];function Ue(t,e,r,n){if(Fe(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!Te.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||(e={});for(const t of i.slice(0,-1))null==o(e,t)&&a(e,t,Array.isArray(o(n,t))?[]:{}),e=o(e,t),n=o(n,t);a(e,i[i.length-1],t)}const Ke=t=>`gt-react Error: Dictionary subtree not found for id: "${t}"`;exports.addGTIdentifier=function e(r,n=0){let i=n;const o=t=>{const{type:r,props:n}=t;i+=1;const o={id:i};let a;try{a="function"==typeof r&&r._gtt||""}catch(t){}if(a){const t=a.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[r,n])=>(function(t){return ue.includes(t)}(r)&&(t[r]=e(n,i)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:r}=n,a=c(n,["children","branch"]),s=Object.entries(a).reduce((t,[r,n])=>(t[r]=e(n,i),t),{});Object.keys(s).length&&(o.branches=s)}o.transformation=t[0]}return o};function a(e){return t.isValidElement(e)?function(e){const{props:r}=e,n=o(e),i=Object.assign(Object.assign({},r),{"data-_gt":n});return r.children&&!n.variableType&&(i.children=s(r.children)),e.type===t.Fragment&&(i["data-_gt"].transformation="fragment"),t.cloneElement(e,i)}(e):e}function s(e){return Array.isArray(e)?t.Children.map(e,a):a(e)}return s(r)},exports.collectUntranslatedEntries=function t(e,r,n=""){const i=[];return Object.entries(e).forEach(([e,a])=>{const s=n?`${n}.${e}`:e;if(Fe(a)){const{entry:t,metadata:n}=Be(a);o(r,e)||i.push({source:t,metadata:{$id:s,$context:null==n?void 0:n.$context,$_hash:(null==n?void 0:n.$_hash)||""}})}else i.push(...t(a,o(r,e)||(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 e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(Buffer.from(e,"base64").toString())}catch(t){return null}},exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.defaultRenderSettings=He,exports.flattenDictionary=function t(e,r=""){const n={};for(const i in e)if(e.hasOwnProperty(i)){const a=r?`${r}.${i}`:i;if("object"!=typeof o(e,i)||null===o(e,i)||Array.isArray(o(e,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(e,i)}else{const r=t(o(e,i),a);for(const t in r){if(n.hasOwnProperty(t))throw new Error(s(t));n[t]=r[t]}}}return n},exports.getDictionaryEntry=ke,exports.getEntryAndMetadata=Be,exports.getPluralBranch=we,exports.getSubtree=We,exports.getSubtreeWithCreation=function({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,s=e.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=ye,exports.getVariableProps=Ae,exports.injectAndMerge=function(t,e,r){const n=We({dictionary:t,id:r});if(!n)throw new Error(Ke(r));if(Fe(n))throw new Error("gt-react Error: Cannot inject and merge a dictionary entry");return function(t,e,r){const n=ke(t,r);if(!n)throw new Error(Ke(r));if(Fe(n))throw new Error("gt-react Error: Cannot inject and merge a dictionary entry");const i=r.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,e),t}(t,Ie(n,e),r)},exports.injectEntry=Ue,exports.injectFallbacks=function(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=ke(e,a);let c;Fe(s)&&(c=Be(s).entry);Ue(c||r,e,a,t)}),e},exports.injectHashes=function t(e,r=""){let n=!1;return Object.entries(e).forEach(([i,o])=>{const s=r?`${r}.${i}`:i;if(Fe(o)){let{entry:t,metadata:r}=Be(o);(null==r?void 0:r.$_hash)||(r||(r={}),r.$_hash=Re(Object.assign(Object.assign({source:t},(null==r?void 0:r.$context)&&{context:r.$context}),{id:s,dataFormat:"ICU"})),a(e,i,[t,r]),n=!0)}else{const{updateDictionary:e}=t(o,s);n=n||e}}),{dictionary:e,updateDictionary:n}},exports.injectTranslations=function(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,l=ke(e,c);let u;Fe(l)&&(u=Be(l).entry);const f=r[i]||u;f&&(Ue(f,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}},exports.isDictionaryEntry=Fe,exports.isValidDictionaryEntry=function(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof(null==t?void 0:t[0]))return!1;const e=null==t?void 0:t[1];if(void 0===e)return!0;if(e&&"object"==typeof e)return!0}return!1},exports.isVariableObject=function(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},exports.mergeDictionaries=Ie,exports.msg=function(t,e){const n=(null==e?void 0:e.$_hash)||Re(Object.assign(Object.assign(Object.assign({source:t},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),{dataFormat:"ICU"}));e?(e.$_hash=n,e.$_source=t):e={$_hash:n,$_source:t};const i=Buffer.from(JSON.stringify(e)).toString("base64");let o=t;(function(t){let e=0,r=!1;for(;e<t.length;){const n=t[e];if("'"!==n){if(!r&&"{"===n){let r=e+1,n="";for(;r<t.length&&"}"!==t[r];)n+=t[r],r++;if(r<t.length&&n.trim().length>0)return!0;e=r<t.length?r+1:r;continue}e++}else{if(e+1<t.length&&"'"===t[e+1]){e+=2;continue}r=!r,e++}}return!1})(t)&&Object.keys(e||{}).length>2&&(o=r.formatMessage(t,{locales:[le],variables:e}));let a=o;return i&&(a+=`:${i}`),a},exports.reactHasUse=Ne,exports.renderDefaultChildren=je,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Ce,exports.stripMetadataFromEntries=function t(e){let r={};return Array.isArray(e)&&(r=[]),Object.entries(e).forEach(([e,n])=>{if(Fe(n)){const{entry:t}=Be(n);a(r,e,t)}else a(r,e,t(n))}),r},exports.writeChildrenAsObjects=me;
|